sweep-0.9.3/0000755000175000017500000000000011001133767011363 5ustar userusersweep-0.9.3/sweep.svg0000644000175000017500000053125210777660176013261 0ustar useruser image/svg+xml image/svg+xml sweep-0.9.3/sweep.spec0000644000175000017500000000515110777670437013407 0ustar useruser%define name sweep %define version 0.9.3 %define release 1 %define prefix /usr Summary: Sound wave editor Name: %{name} Version: %{version} Release: %{release} Copyright: GPL Group: Applications/Sound URL: http://sweep.sourceforge.net/ Source: %{name}-%{version}.tar.gz Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root Docdir: %{prefix}/doc Prefix: %{prefix} Requires: gtk+ >= 2.2.0 %description Sweep is an editor for sound samples. It operates on files of various formats such as .wav, .aiff and .au, and has multiple undo/redo levels and filters. It supports audio filter plugins from the LADSPA project. %package devel Summary: Sweep plugin development kit Group: Applications/Sound Requires: %{name} = %{version} %description devel The sweep-devel package contains header files and documentation for writing plugins for Sweep, a sound wave editor. Install sweep-devel if you're going to create plugins for Sweep. You will also need to install sweep. %prep %setup -q -n %{name}-%{version} if [ -f configure ]; then CFLAGS=$RPM_OPT_FLAGS \ ./configure --prefix=%{prefix}; else CFLAGS=$RPM_OPT_FLAGS \ ./autogen.sh --prefix=%{prefix}; fi %build LINGUAS="fr hu it de pl" CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} gmake %install if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi mkdir -p $RPM_BUILD_ROOT%{prefix} make prefix=$RPM_BUILD_ROOT%{prefix} install-strip %files %defattr (0555, bin, bin) %{prefix}/bin/sweep %defattr (0444, bin, bin, 0555) %{prefix}/lib/sweep/libladspameta* %{prefix}/lib/sweep/libecho* %{prefix}/lib/sweep/libnormalise* %{prefix}/lib/sweep/libreverse* %{prefix}/lib/sweep/libbyenergy* %defattr (0555, bin, man) %{prefix}/man/man1/sweep.1* %doc ABOUT-NLS NEWS README ChangeLog %doc README.Solaris README.ALSA %doc doc/*.txt %defattr (-, root, root) %{prefix}/share/gnome/apps/Multimedia/sweep.desktop %{prefix}/share/locale/*/*/* %files devel %doc doc/plugin_writers_guide.txt %{prefix}/include/sweep/ %clean rm -r $RPM_BUILD_ROOT %changelog * Sun Oct 08 2000 Conrad Parker - updated for sweep version 0.1.0 - added devel package - added packaging of plugins - added documentation * Tue Aug 09 2005 Peter Shorthose - use autoconf to generate the spec via sweep.spec.in - insert the package version via the autoconf macro - remind the reader that the above changes are untested as of now * Thur Aug 25 2005 Peter Shorthose - update Gtk requirements sweep-0.9.3/po/0000755000175000017500000000000011001133764011776 5ustar userusersweep-0.9.3/po/ja.po0000644000175000017500000017650710777670577013003 0ustar useruser# Japanese translation file for sweep. # Copyright @ 2004 Free Software Foundation, Inc. # Norihiro YONEDA , 2007 # # #: src/sample-display.c:222 msgid "" msgstr "" "Project-Id-Version: sweep-0.8.2\n" "Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/\n" "POT-Creation-Date: 2008-04-11 15:11+0100\n" "PO-Revision-Date: 2004-04-26 12:31+0200\n" "Last-Translator: Norihiro YONEDA \n" "Language-Team: Puppy Linux Japanese\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/main.c:89 msgid "Welcome to Sweep" msgstr "Sweepã«ã‚ˆã†ã“ã" #: src/main.c:90 msgid "" "Hello, my name is Scrubby. Welcome to Sweep!\n" "\n" "Would you like to create a new file or load an existing file?" msgstr "" "ã‚„ã‚ã€ç§ã®åå‰ã¯ã‚¹ã‚¯ãƒ©ãƒ“ーã§ã™ã€‚Sweepã«ã‚ˆã†ã“ãï¼\n" "\n" "æ–°ã—ã„ファイルを作りã¾ã™ã‹ï¼Ÿãれã¨ã‚‚ファイルをロードã—ã¾ã™ã‹ï¼Ÿ" #: src/main.c:94 msgid "Create new file" msgstr "æ–°ã—ã„ファイルã®ä½œæˆ" #: src/main.c:94 msgid "Load existing file" msgstr "既存ã®ãƒ•ァイルをロードã™ã‚‹" #: src/main.c:129 msgid "WARNING: Build includes incomplete development code.\n" msgstr "警告:ビルドã¯ä¸å®Œå…¨ãªé–‹ç™ºã‚³ãƒ¼ãƒ‰ã‚’å«ã‚“ã§ã„ã¾ã™ã€‚\n" #: src/main.c:188 msgid "Sweep version" msgstr "Sweep ãƒãƒ¼ã‚¸ãƒ§ãƒ³" #: src/main.c:189 msgid "Sweep plugin API version" msgstr "Sweep プラグインAPIãƒãƒ¼ã‚¸ãƒ§ãƒ³" #: src/main.c:195 #, c-format msgid "Usage: %s [option ...] [files ...]\n" msgstr "ä½¿ã„æ–¹: %s [オプション ...] [ファイル ...]\n" #: src/main.c:196 msgid "Valid options are:\n" msgstr "有効ãªã‚ªãƒ—ションã¯:\n" #: src/main.c:197 msgid " -h --help Output this help.\n" msgstr " -h --help ã“ã®ãƒ˜ãƒ«ãƒ—を出力。\n" #: src/main.c:198 msgid " -v --version Output version info.\n" msgstr " -v --version ãƒãƒ¼ã‚¸ãƒ§ãƒ³æƒ…報を出力。\n" #: src/main.c:199 msgid " --display Use the designated X display.\n" msgstr " --display <ディスプレイ> 指定ã®X表示を使ã†ã€‚\n" #: src/main.c:200 msgid "" " --ignore-failed-lock Continue when attempt to lock the\n" " preferences file fails. For use when\n" " the users home directory is on an NFS\n" " file system. (possibly unsafe) \n" msgstr "" " --ignore-failed-lock åˆæœŸè¨­å®šãƒ•ァイルã®ãƒ­ãƒƒã‚¯ã«å¤±æ•—ã™ã‚‹æ™‚\n" " ç¶šã‘ã¦ä¸‹ã•ã„。ユーザーホームディレクトリãŒ\n" " NFSファイルシステム上ã«ã‚る時ã«\n" " 使ã„ã¾ã™ã€‚(ãŸã¶ã‚“安全ã§ãªã„)\n" #: src/main.c:206 msgid " --no-toolbox Do not show the toolbox window.\n" msgstr " --no-toolbox ツールボックスウィンドウを表示ã—ãªã„。\n" #: src/about_dialog.c:99 msgid "This is Sweep version" msgstr "Sweepã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ã™" #: src/about_dialog.c:119 msgid "http://sweep.sourceforge.net/" msgstr "http://sweep.sourceforge.net/" #: src/callbacks.c:926 src/callbacks.c:939 src/edit.c:1568 src/edit.c:1642 #: src/edit.c:1726 msgid "Clipboard empty" msgstr "クリップボードã¯ç©ºã§ã™" #: src/channelops.c:146 #, c-format msgid "Duplicate to %d channels" msgstr "%d ãƒãƒ£ãƒ³ãƒãƒ«ã«è¤‡å†™" #: src/channelops.c:148 #, c-format msgid "Duplicate from %d to %d channels" msgstr "%d ã‹ã‚‰ %d ãƒãƒ£ãƒ³ãƒãƒ«ã«è¤‡å†™" #: src/channelops.c:207 msgid "Sweep: Duplicate channel" msgstr "Sweep: ãƒãƒ£ãƒ³ãƒãƒ«ã‚’複写" #: src/channelops.c:214 src/channelops.c:698 #, c-format msgid "Currently: %d channels" msgstr "ç¾åœ¨: %d ãƒãƒ£ãƒ³ãƒãƒ«" #: src/channelops.c:221 src/channelops.c:704 msgid "Output channels" msgstr "出力ãƒãƒ£ãƒ³ãƒãƒ«" #: src/channelops.c:231 src/channelops.c:714 src/driver.c:374 #: src/file_sndfile1.c:285 src/param.c:779 src/question_dialogs.c:144 #: src/question_dialogs.c:204 src/question_dialogs.c:253 #: src/sweep_sample.c:1918 src/undo_dialog.c:440 msgid "OK" msgstr "OK" #: src/channelops.c:242 src/channelops.c:725 src/driver.c:387 #: src/file_sndfile1.c:295 src/param.c:788 src/question_dialogs.c:158 #: src/view.c:543 src/view.c:2650 msgid "Cancel" msgstr "キャンセル" #: src/channelops.c:347 src/view.c:361 msgid "Mix down to mono" msgstr "æ··ãœã¦ãƒ¢ãƒŽãƒ©ãƒ«ã«ã™ã‚‹" #: src/channelops.c:445 src/view.c:340 msgid "Remove left channel" msgstr "å·¦ãƒãƒ£ãƒ³ãƒãƒ«ã‚’削除" #: src/channelops.c:455 src/view.c:349 msgid "Remove right channel" msgstr "å³ãƒãƒ£ãƒ³ãƒãƒ«ã‚’削除" #: src/channelops.c:539 msgid "Swap channels" msgstr "ãƒãƒ£ãƒ³ãƒãƒ«ã‚’入れæ›ãˆã‚‹" #: src/channelops.c:541 msgid "Not stereo" msgstr "éžã‚¹ãƒ†ãƒ¬ã‚ª" #: src/channelops.c:643 #, c-format msgid "Convert from %d to %d channels" msgstr "%d ã‹ã‚‰ %d ãƒãƒ£ãƒ³ãƒãƒ«ã«å¤‰æ›" #: src/channelops.c:692 msgid "Sweep: Add/Remove channels" msgstr "Sweep: ãƒãƒ£ãƒ³ãƒãƒ«ã‚’追加/削除" #: src/driver.c:369 msgid "Sweep: audio device configuration" msgstr "Sweep: オーディオデãƒã‚¤ã‚¹ã®è¨­å®š" #: src/driver.c:410 msgid "Changes to device settings will take effect on next playback." msgstr "デãƒã‚¤ã‚¹è¨­å®šã®å¤‰æ›´ã¯æ¬¡ã®å†ç”Ÿã‹ã‚‰æœ‰åйã«ãªã‚Šã¾ã™ã€‚" #: src/driver.c:424 msgid "Device name" msgstr "デãƒã‚¤ã‚¹å" #: src/driver.c:430 msgid "Set the main device for playback and recording" msgstr "å†ç”ŸéŒ²éŸ³ç”¨ãƒ¡ã‚¤ãƒ³ãƒ‡ãƒã‚¤ã‚¹ã‚’設定" #: src/driver.c:440 msgid "Main device:" msgstr "メインデãƒã‚¤ã‚¹" #: src/driver.c:454 src/driver.c:636 src/samplerate.c:570 msgid "Default" msgstr "デフォルト" #: src/driver.c:467 msgid "Use a different device for monitoring" msgstr "モニタ用ã«åˆ¥ã®ãƒ‡ãƒã‚¤ã‚¹ã‚’使ã†" #: src/driver.c:479 msgid "Monitor output:" msgstr "モニタ出力" #: src/driver.c:504 msgid "Swap" msgstr "入れæ›ãˆ" #: src/driver.c:512 msgid "Swap main and monitor devices." msgstr "メインã¨ãƒ¢ãƒ‹ã‚¿ã®ãƒ‡ãƒã‚¤ã‚¹ã‚’入れæ›ãˆã‚‹" #: src/driver.c:521 src/driver.c:622 src/file_speex.c:1957 #: src/file_vorbis.c:1348 src/samplerate.c:556 src/sweep_sample.c:532 msgid "Reset" msgstr "リセット" #: src/driver.c:529 msgid "Reset to the last remembered device names." msgstr "最後ã«è¨˜æ†¶ã•れãŸãƒ‡ãƒã‚¤ã‚¹åã«ãƒªã‚»ãƒƒãƒˆ" #: src/driver.c:535 src/file_speex.c:1971 src/file_vorbis.c:1362 #: src/param.c:747 src/sweep_sample.c:543 msgid "Defaults" msgstr "デフォルト" #: src/driver.c:543 msgid "Set to default device names." msgstr "デフォルトデãƒã‚¤ã‚¹åã«è¨­å®š" #: src/driver.c:554 msgid "Device buffering" msgstr "デãƒã‚¤ã‚¹ãƒãƒƒãƒ•ァリング" #: src/driver.c:564 msgid "" "Low latency /\n" "More dropouts" msgstr "" "低é…å»¶ /\n" "高ドロップアウト" #: src/driver.c:586 msgid "" "High latency /\n" "Fewer dropouts" msgstr "" "高é…å»¶ /\n" "低ドロップアウト" #: src/driver.c:590 msgid "" "Varying this slider controls the lag between cursor movements and playback. " "This is particularly noticeable when \"scrubbing\" during playback.\n" "\n" "Lower values improve responsiveness but may degrade audio quality on heavily-" "loaded systems." msgstr "" "ã“ã®ã‚¹ãƒ©ã‚¤ãƒ€ã‚’変ãˆã‚‹äº‹ã§ã‚«ãƒ¼ã‚½ãƒ«ã®å‹•ãã¨å†ç”Ÿã®é–“ã®é…れをæ“作ã—ã¾ã™ã€‚ã“れã¯å†" "生中㫠\"スクラブ\" (scrubbing)を発生ã—ãŸæ™‚ã«ç‰¹ã«ç›®ç«‹ã¡ã¾ã™ã€‚\n" "\n" "低ã„値ã¯å応を改善ã—ã¾ã™ãŒã€é‡ã„è² è·ã®ã‚·ã‚¹ãƒ†ãƒ ä¸Šã§ã¯éŸ³è³ªã‚’低下ã•ã›ã‚‹ã‹ã‚‚知れ" "ã¾ã›ã‚“。" #: src/driver.c:609 msgid "Remember these options" msgstr "ã“ã®ã‚ªãƒ—ションを記憶ã™ã‚‹" #: src/driver.c:630 msgid "Reset to the last remembered device buffering." msgstr "最後ã«è¨˜æ†¶ã•れãŸãƒ‡ãƒã‚¤ã‚¹ãƒãƒƒãƒ•ァリングã«ãƒªã‚»ãƒƒãƒˆã€‚" #: src/driver.c:644 msgid "Set to default device buffering." msgstr "デフォルトã®ãƒ‡ãƒã‚¤ã‚¹ãƒãƒƒãƒ•ァリングã«è¨­å®šã€‚" #: src/edit.c:1291 msgid "No selection to copy" msgstr "コピーã™ã‚‹ã‚‚ã®ãŒé¸æŠžã•れã¦ã„ã¾ã›ã‚“" #: src/edit.c:1308 src/view.c:572 src/view.c:1150 msgid "Copy" msgstr "コピー" #: src/edit.c:1342 msgid "No selection to cut" msgstr "切りå–ã‚‹ã‚‚ã®ãŒé¸æŠžã•れã¦ã„ã¾ã›ã‚“" #: src/edit.c:1358 src/view.c:568 src/view.c:1144 msgid "Cut" msgstr "切りå–り" #: src/edit.c:1388 msgid "No selection to clear" msgstr "クリアã™ã‚‹ã‚‚ã®ãŒé¸æŠžã•れã¦ã„ã¾ã›ã‚“" #: src/edit.c:1404 src/view.c:576 src/view.c:1156 msgid "Clear" msgstr "クリア" #: src/edit.c:1430 msgid "No selection to delete" msgstr "削除ã™ã‚‹ã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã¯ã‚りã¾ã›ã‚“" #: src/edit.c:1447 src/view.c:564 msgid "Delete" msgstr "削除" #: src/edit.c:1482 msgid "Nothing to crop out" msgstr "トリミングã™ã‚‹ã‚‚ã®ã¯ã‚りã¾ã›ã‚“" #: src/edit.c:1498 src/view.c:580 src/view.c:1162 src/view.c:1868 msgid "Crop" msgstr "トリミング" #: src/edit.c:1572 src/edit.c:1646 src/edit.c:1730 msgid "Clipboard data has incompatible format" msgstr "クリップボードデータã¯ã€éžäº’æ›ãƒ•ォーマットãŒã‚りã¾ã™" #: src/edit.c:1590 msgid "Paste insert" msgstr "挿入ã—ã¦è²¼ã‚Šä»˜ã‘" #: src/edit.c:1669 msgid "Paste mix" msgstr "æ··ãœã¦è²¼ã‚Šä»˜ã‘" #: src/edit.c:1757 msgid "Paste xfade" msgstr "Xフェードã—ã¦è²¼ã‚Šä»˜ã‘" #: src/file_dialogs.c:73 msgid "MP3 export unsupported" msgstr "MP3エクスãƒãƒ¼ãƒˆã¯ã‚µãƒãƒ¼ãƒˆã•れã¦ã„ã¾ã›ã‚“" #: src/file_dialogs.c:74 msgid "" "Export to MP3 format cannot legally be supported in free software\n" "due to patent licensing restrictions.\n" "\n" "Please use Ogg Vorbis format instead, which\n" "provides better quality and is free." msgstr "" "MP3フォーマットã¸ã®ã‚¨ã‚¯ã‚¹ãƒãƒ¼ãƒˆã¯ã€ç‰¹è¨±ãƒ©ã‚¤ã‚»ãƒ³ã‚¹è¦åˆ¶ã®ãŸã‚\n" "ç„¡æ–™ã‚½ãƒ•ãƒˆã§æ³•çš„ã«ã‚µãƒãƒ¼ãƒˆã§ãã¾ã›ã‚“。\n" "\n" "ãã®ä»£ã‚りã«Ogg Vorbisフォーマットを使ã£ã¦ä¸‹ã•ã„。\n" "より良ã„音質をæä¾›ã—ã€ãƒ•リーã§ã™ã€‚" #: src/file_dialogs.c:99 msgid "Raw PCM (headerless)" msgstr "生PCM(ヘッダーãªã—)" #: src/file_dialogs.c:157 #, c-format msgid "%s does not exist." msgstr "%s ã¯å­˜åœ¨ã—ã¾ã›ã‚“" #: src/file_dialogs.c:158 msgid "Directory does not exist" msgstr "ディレクトリã¯å­˜åœ¨ã—ã¾ã›ã‚“" #: src/file_dialogs.c:262 #, c-format msgid "" "Unable to read\n" "%s" msgstr "" "%s \n" "を読ã‚ã¾ã›ã‚“" #: src/file_dialogs.c:289 #, fuzzy msgid "Sweep: Open Files" msgstr "Sweep: æ–°è¦ãƒ•ァイル" #: src/file_dialogs.c:370 #, c-format msgid "" "Are you sure you want to revert %s to\n" "%s?\n" "\n" "All changes and undo information will be lost." msgstr "" "本当㫠%s ã‚’\n" "%s ã«æˆ»ã—ã¾ã™ã‹ï¼Ÿ\n" "\n" "ã™ã¹ã¦ã®å¤‰æ›´ã¨ã‚¢ãƒ³ãƒ‰ã‚¥æƒ…å ±ã¯å¤±ã‚れã¾ã™ã€‚" #: src/file_dialogs.c:374 msgid "Revert file" msgstr "ファイルを戻ã™" #: src/file_dialogs.c:375 src/view.c:509 msgid "Revert" msgstr "戻ã™" #: src/file_dialogs.c:375 msgid "Don't revert" msgstr "戻ã•ãªã„" #: src/file_dialogs.c:545 src/file_dialogs.c:824 #, c-format msgid "Save as %s cancelled" msgstr "%s ã§ä¿å­˜ã¯ã‚­ãƒ£ãƒ³ã‚»ãƒ«ã•れã¾ã—ãŸ" #: src/file_dialogs.c:582 msgid "By extension" msgstr "æ‹¡å¼µå­ä»˜ã" #: src/file_dialogs.c:640 msgid "MP3 (Use Ogg Vorbis instead)" msgstr "MP3(代ã‚りã«Ogg Vorbisを使ã†ï¼‰" #: src/file_dialogs.c:707 msgid "Sweep: Save file" msgstr "Sweep: ファイルをä¿å­˜" #: src/file_dialogs.c:721 msgid "Save Options" msgstr "オプションをä¿å­˜" #: src/file_dialogs.c:730 msgid "Determine File Type:" msgstr "ファイルタイプを決定" #: src/file_dialogs.c:810 #, c-format msgid "" "You are not allowed to write to\n" "%s" msgstr "" "%s ã¸ã®æ›¸ãè¾¼ã¿ã¯\n" "許å¯ã•れã¦ã„ã¾ã›ã‚“" #: src/file_dialogs.c:812 #, c-format msgid "%s exists. Overwrite?" msgstr "%s ã¯å­˜åœ¨ã—ã¾ã™ã€‚上書ãã—ã¾ã™ã‹ï¼Ÿ" #: src/file_dialogs.c:814 msgid "File exists" msgstr "ファイルã¯å­˜åœ¨ã—ã¾ã™" #: src/file_dialogs.c:815 msgid "Overwrite" msgstr "上書ã" #: src/file_dialogs.c:815 msgid "Don't overwrite" msgstr "上書ãã—ãªã„" #: src/file_dialogs.c:887 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Are you sure you want to save?" msgstr "" "%s\n" " ã¯ãƒ‡ã‚£ã‚¹ã‚¯ä¸Šã§å¤‰æ›´ã•れã¾ã—ãŸã€‚\n" "\n" "本当ã«ä¿å­˜ã—ã¾ã™ã‹ï¼Ÿ" #: src/file_dialogs.c:891 src/sweep_undo.c:331 src/view.c:3401 msgid "File modified" msgstr "ファイルã¯å¤‰æ›´ã•れã¾ã—ãŸ" #: src/file_dialogs.c:892 src/file_speex.c:2127 src/file_vorbis.c:1611 #: src/view.c:501 src/view.c:1782 msgid "Save" msgstr "ä¿å­˜" #: src/file_dialogs.c:892 src/file_speex.c:2138 src/file_vorbis.c:1622 msgid "Don't save" msgstr "ä¿å­˜ã—ãªã„" #: src/file_sndfile1.c:327 msgid "Powered by libsndfile" msgstr "libsndfile ã§ä½œå‹•" #: src/file_sndfile1.c:354 msgid "Encoding" msgstr "エンコード" #: src/file_sndfile1.c:375 msgid "Encoding:" msgstr "エンコード:" #: src/file_sndfile1.c:447 msgid "Sampling rate:" msgstr "サンプリングレート:" #: src/file_sndfile1.c:480 src/file_speex.c:2078 src/file_vorbis.c:1562 #: src/samplerate.c:584 msgid "About" msgstr "ãƒãƒ¼ã‚¸ãƒ§ãƒ³æƒ…å ±" #: src/file_sndfile1.c:496 msgid "" "Libsndfile is a C library by Erik de Castro Lopo\n" "for reading and writing files containing sampled sound." msgstr "" "Libsndfileã¯ã€ã‚µãƒ³ãƒ—リングã•れãŸéŸ³ã‚’å«ã‚€ãƒ•ã‚¡ã‚¤ãƒ«ã‚’èª­ã¿æ›¸ãã™ã‚‹ãŸã‚ã®\n" "Erik de Castro Lopoã«ã‚ˆã‚‹Cライブラリã§ã™ã€‚" #: src/file_sndfile1.c:507 msgid "" "This user interface by Erik de Castro Lopo\n" " and Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "ã“ã®ãƒ¦ãƒ¼ã‚¶ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ェース㯠Erik de Castro Lopo ã¨\n" "Conrad Parker ã«ã‚ˆã‚Šã¾ã™ã€‚\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" #: src/file_sndfile1.c:550 msgid "Sweep: Save PCM options" msgstr "Sweep: PCMオプションをä¿å­˜" #: src/file_sndfile1.c:719 msgid "Sweep: Load Raw PCM options" msgstr "Sweep: 生PCMオプションをロード" #: src/file_sndfile1.c:771 src/file_mad.c:435 src/file_speex.c:577 #: src/file_vorbis.c:324 #, c-format msgid "Loading %s" msgstr "%s をロード中" #: src/file_sndfile1.c:998 src/file_speex.c:1074 src/file_vorbis.c:702 #, c-format msgid "Saving %s" msgstr "%s ã‚’ä¿å­˜ä¸­" #: src/file_speex.c:1016 src/file_speex.c:1036 msgid "Speex encoding results" msgstr "Speexã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰çµæžœ" #: src/file_speex.c:1208 msgid "Narrowband ~8 kHz (telephone quality)" msgstr "狭帯域 ~8 kHz(電話音質)" #: src/file_speex.c:1209 msgid "Wideband ~16 kHz" msgstr "広帯域 ~16 kHz" #: src/file_speex.c:1211 msgid "Ultra-wideband 32-48 kHz" msgstr "ウルトラ広帯域 32-48 kHz" #: src/file_speex.c:1218 msgid "Constant bitrate (CBR) with no features" msgstr "固定ビットレート(CBR)特性ãªã—" #: src/file_speex.c:1221 msgid "CBR with Voice Activity Detection (VAD)" msgstr "音声活動検出付ãCBR(VAD)" #: src/file_speex.c:1222 msgid "VAD generates low bitrate comfort noise to replace non-speech" msgstr "" "VADã¯ã€éžã‚¹ãƒ”ーãƒã«ç½®ãæ›ãˆã‚‹ãŸã‚ã«ä½Žãƒ“ットレートã®å¿«é©ãªéŸ³ã‚’生ã¿å‡ºã—ã¾ã™ã€‚" #: src/file_speex.c:1225 msgid "CBR with VAD and Discontinuous Transmission (DTX)" msgstr "VAD付ãCBRã¨ä¸é€£ç¶šé€ä¿¡ï¼ˆDTX)" #: src/file_speex.c:1226 msgid "DTX marks extended pauses with a minimum bitrate signal" msgstr "DTXã¯ã€æœ€å°ãƒ“ットレート信å·ã§å»¶é•·ã—ãŸä¸€æ™‚åœæ­¢ã‚’マークã—ã¾ã™ã€‚" #: src/file_speex.c:1229 msgid "Variable bitrate (VBR) with VAD" msgstr "VAD付ãå¯å¤‰ãƒ“ットレート(VBR)" #: src/file_speex.c:1230 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech; this " "selection uses VBR without DTX, which may improve performance compared to " "full VBR in the presence of background noise." msgstr "" "VBRã¯ãƒ“ットレートをスピーãƒã®è¤‡é›‘ã•ã«åˆã‚ã›ã‚‹äº‹ãŒã§ãã¾ã™; ã“ã®é¸æŠžã¯DTXãªã—" "ã§VBRを使ã„ã¾ã™ã€‚ãã—ã¦ãƒãƒƒã‚¯ã‚°ãƒ©ã‚¦ãƒ³ãƒ‰ãƒŽã‚¤ã‚ºãŒã‚ã‚‹å ´åˆ å®Œå…¨VBRã¨æ¯”較ã—ã¦ãƒ‘" "フォーマンスをå‘上ã•ã›ã‚‹ã‹ã‚‚知れã¾ã›ã‚“。" #: src/file_speex.c:1235 msgid "Variable bitrate (VBR) with all features" msgstr "å¯å¤‰ãƒ“ットレート(VBR)全特性ã‚り" #: src/file_speex.c:1236 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech, and handles " "pauses using VAD and DTX" msgstr "" "VBRã¯ãƒ“ットレートをスピーãƒã®è¤‡é›‘ã•ã«åˆã‚ã›ã‚‹äº‹ãŒã§ãã¾ã™ã€‚ ãã—ã¦VADã¨DTXã‚’" "使ã£ã¦ä¸€æ™‚åœæ­¢ã‚’æ“作ã—ã¾ã™ã€‚" #: src/file_speex.c:1240 msgid "Constant bitrate (CBR)" msgstr "固定ビットレート(CBR)" #: src/file_speex.c:1242 msgid "Variable bitrate (VBR)" msgstr "å¯å¤‰ãƒ“ットレート(VBR)" #: src/file_speex.c:1243 msgid "VBR allows the bitrate to adapt to the complexity of the speech." msgstr "VBRã¯ãƒ“ットレートをスピーãƒã®è¤‡é›‘ã•ã«åˆã‚ã›ã‚‹äº‹ãŒã§ãã¾ã™ã€‚" #: src/file_speex.c:1298 src/file_speex.c:1803 msgid "Average bitrate" msgstr "å¹³å‡ãƒ“ットレート" #: src/file_speex.c:1301 msgid "Maximum bitrate" msgstr "最大ビットレート" #: src/file_speex.c:1494 src/file_vorbis.c:1013 msgid "Hack the planet!" msgstr "惑星ã«ãƒãƒƒã‚¯ï¼" #: src/file_speex.c:1580 msgid "Sweep: Speex save options" msgstr "Sweep: Speexä¿å­˜ã‚ªãƒ—ション" #: src/file_speex.c:1631 msgid "Speex encoding" msgstr "Speexエンコード" #: src/file_speex.c:1644 msgid "Mode:" msgstr "モード:" #: src/file_speex.c:1670 msgid "Auto" msgstr "自動" #: src/file_speex.c:1679 msgid "" "Automatically select the encoding mode based on the sampling rate of the " "file." msgstr "ファイルã®ã‚µãƒ³ãƒ—リングレートを元ã«ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ãƒ¢ãƒ¼ãƒ‰ã‚’自動的ã«é¸æŠžã€‚" #: src/file_speex.c:1732 src/file_vorbis.c:1160 msgid "Encoding quality:" msgstr "エンコードå“質" #: src/file_speex.c:1775 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file)." msgstr "" "エンコードå“質㯠0(最低å“è³ªã€æœ€å°ãƒ•ァイル)㨠10(最高å“è³ªã€æœ€å¤§ãƒ•ァイル)ã®" "é–“ã§ã™ã€‚" #: src/file_speex.c:1785 msgid "Enable bitrate management" msgstr "ビットレート管ç†ã‚’有効" #: src/file_speex.c:1798 msgid "" "For non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For " "VBR encoding, this sets the average bitrate." msgstr "" "éžVBR(固定ビットレート)エンコード用ã«ã¯æœ€é«˜ãƒ“ットレートを設定ã—ã¾ã™ã€‚VBRエ" "ンコード用ã«ã¯å¹³å‡ãƒ“ットレートを設定ã—ã¾ã™ã€‚" #: src/file_speex.c:1821 msgid "bps" msgstr "bps" #: src/file_speex.c:1827 msgid "Extra" msgstr "追加" #: src/file_speex.c:1849 msgid "Encoding complexity:" msgstr "エンコードã®è¤‡é›‘ã•" #: src/file_speex.c:1888 msgid "" "This sets the encoding speed/quality tradeoff between 0 (faster encoding) " "and 10 (slower encoding)" msgstr "" "ã“れã¯ã€0(より速ã„エンコード)ã¨10(よりé…ã„エンコード)ã®é–“㧠エンコード速" "度/音質妥å”点を設定ã—ã¾ã™ã€‚" #: src/file_speex.c:1904 msgid "Speex frames per Ogg packet:" msgstr "Oggパケット当ãŸã‚Šã®Speexフレーム" #: src/file_speex.c:1930 msgid "" "Number of Speex frames to pack into each Ogg packet. Higher values save " "space at low bitrates." msgstr "" "å„々ã®Oggパケットã«å…¥ã‚Œã‚‹Speexフレーム数。より高ã„値ã¯ã€ä½Žã„ビットレートã§å®¹" "é‡ã‚’節約ã—ã¾ã™ã€‚" #: src/file_speex.c:1945 src/file_vorbis.c:1336 msgid "Remember these encoding options" msgstr "エンコードオプションを記憶" #: src/file_speex.c:1965 src/file_vorbis.c:1356 msgid "Reset to the last remembered encoding options." msgstr "最後ã«è¨˜æ†¶ã—ãŸã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã‚ªãƒ—ションã«ãƒªã‚»ãƒƒãƒˆ" #: src/file_speex.c:1980 msgid "Automatically select best encoding options for this file." msgstr "ã“ã®ãƒ•ã‚¡ã‚¤ãƒ«ã«æœ€é©ãªã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã‚ªãƒ—ションを自動的ã«é¸æŠž" #: src/file_speex.c:1985 src/file_vorbis.c:1469 msgid "Ogg stream" msgstr "Ogg ストリーム" #: src/file_speex.c:1998 src/file_vorbis.c:1482 msgid "Ogg stream serial number:" msgstr "Ogg ストリームシリアル番å·ï¼š" #: src/file_speex.c:2019 src/file_vorbis.c:1503 msgid "Remember this serial number" msgstr "ã“ã®ã‚·ãƒªã‚¢ãƒ«ç•ªå·ã‚’記憶" #: src/file_speex.c:2029 src/file_vorbis.c:1513 msgid "" "Remember this serial number for future re-use.\n" "USE OF THIS OPTION IS NOT RECOMMENDED.\n" "Each encoded file should have a different serial number; re-use of Ogg " "serial numbers in different files may create incompatabilities with " "streaming applications. This option is provided for bitstream engineering " "purposes only.\n" "If this option is not checked, new serial numbers will be randomly generated " "for each file encoded." msgstr "" "ã“ã®ã‚·ãƒªã‚¢ãƒ«ç•ªå·ã‚’今後ã®å†åˆ©ç”¨ã®ãŸã‚ã«è¨˜æ†¶ã—ã¾ã™ã€‚\n" "「ã“ã®ã‚ªãƒ—ションã®ä½¿ç”¨ã¯æŽ¨å¥¨ã—ã¾ã›ã‚“ã€\n" "エンコードã•れãŸå„ファイルã¯é•ã£ãŸã‚·ãƒªã‚¢ãƒ«ç•ªå·ã§ãªã‘れã°ã„ã‘ã¾ã›ã‚“;別ã®ãƒ•ã‚¡" "イルã§ã® Oggシリアル番å·ã®å†åˆ©ç”¨ã¯ã‚¹ãƒˆãƒªãƒ¼ãƒŸãƒ³ã‚°ã‚¢ãƒ—リケーションã§ä¸é©åˆã‚’生" "ãšã‚‹ã‹ã‚‚知れã¾ã›ã‚“。ã“ã®ã‚ªãƒ—ションã¯ãƒ“ットストリーム技術ã®ç›®çš„ã ã‘ã«è¦å®šã•れ" "ã¦ã„ã¾ã™ã€‚\n" "ã“ã®ã‚ªãƒ—ションã«ãƒã‚§ãƒƒã‚¯ã‚’入れãªã„ã¨ã€ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã•れãŸå„ファイルã«ãƒ©ãƒ³ãƒ€ãƒ ã« " "æ–°ã—ã„シリアル番å·ãŒä½œã‚Šå‡ºã•れã¾ã™ã€‚" #: src/file_speex.c:2056 src/file_vorbis.c:1540 msgid "Randomize!" msgstr "ランダム化ã™ã‚‹ï¼" #: src/file_speex.c:2063 src/file_vorbis.c:1547 msgid "" "Generate a random serial number for the Ogg bitstream. The number will " "change while this button is held down." msgstr "" "Oggビットストリームã®ãŸã‚ã«ãƒ©ãƒ³ãƒ€ãƒ ãªã‚·ãƒªã‚¢ãƒ«ç•ªå·ã‚’作り出ã—ã¾ã™ã€‚ã“ã®ãƒœã‚¿ãƒ³ã‚’" "押ã—ã¦ã„ã‚‹é–“ã€æ•°ã¯å¤‰ã‚りã¾ã™ã€‚" #: src/file_speex.c:2094 msgid "" "Speex is a high quality speech codec designed for\n" "voice over IP (VoIP) and file-based compression.\n" "It is free, open and unpatented." msgstr "" "Speexã¯IP(VoIP)ã¨ãƒ•ァイルã«åŸºã¥ã圧縮ã«ã¤ã„ã¦éŸ³å£°ç”¨ã«\n" "設計ã•れãŸé«˜éŸ³è³ªã‚¹ãƒ”ーãƒã‚³ãƒ¼ãƒ‡ãƒƒã‚¯ã§ã™ã€‚\n" "フリーã§ã€ã‚ªãƒ¼ãƒ—ンã§ç‰¹è¨±æ¨©ã‚’付与ã•れã¦ã„ã¾ã›ã‚“。" #: src/file_speex.c:2105 msgid "" "Ogg, Speex, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ogg, Speex, Xiph.org Foundation ã¨ãã®ãƒ­ã‚´ã¯\n" "the Xiph.org Foundation ã®ç™»éŒ²å•†æ¨™ï¼ˆtm)ã§ã™ã€‚\n" "許å¯ã‚’å¾—ã¦ä½¿ç”¨ã—ã¦ã„ã¾ã™ã€‚" #: src/file_speex.c:2120 src/file_vorbis.c:1604 src/samplerate.c:611 msgid "" "This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "ã“ã®ãƒ¦ãƒ¼ã‚¶ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ェース㯠Conrad Parker ã«ã‚ˆã‚Šã¾ã™ã€\n" "Copyright (C) 2002 CSIRO Australia.\n" #: src/file_vorbis.c:356 #, c-format msgid "" "Decoding %s\n" "Encoded by: %s\n" "\n" "%s" msgstr "" "%s をデコード中\n" "エンコード: %s\n" "\n" "%s" #: src/file_vorbis.c:470 msgid "Unsupported encoding mode" msgstr "サãƒãƒ¼ãƒˆã•れã¦ã„ãªã„エンコードモード" #: src/file_vorbis.c:473 msgid "Invalid encoding options" msgstr "無効ãªã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã‚ªãƒ—ション" #: src/file_vorbis.c:643 src/file_vorbis.c:663 msgid "Ogg Vorbis encoding results" msgstr "Ogg Vorbis ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰çµæžœ" #: src/file_vorbis.c:1089 msgid "Sweep: Ogg Vorbis save options" msgstr "Sweep: Ogg Vorbis ä¿å­˜ã‚ªãƒ—ション" #: src/file_vorbis.c:1148 msgid "Vorbis encoding" msgstr "Vorbis エンコード" #: src/file_vorbis.c:1195 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file) using variable bitrate mode (VBR)." msgstr "" "å¯å¤‰ãƒ“ットレートモード(VBR)を使ã£ãŸã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰å“質㯠0(最低å“è³ªã€æœ€å°ãƒ•ァイ" "ル)㨠10(最高å“è³ªã€æœ€å¤§ãƒ•ァイル)ã®é–“ã§ã™ã€‚" #: src/file_vorbis.c:1205 msgid "Enable bitrate management engine" msgstr "ビットレート管ç†ã‚¨ãƒ³ã‚¸ãƒ³ã‚’有効ã«ã™ã‚‹" #: src/file_vorbis.c:1211 msgid "" "This enables average bitrate mode (ABR). You must suggest a nominal average " "bitrate and may specify minimum and maximum bounds.\n" "For best results it is generally recommended that you use the variable " "bitrate 'encoding quality' control (above) instead." msgstr "" "ã“れã¯å¹³å‡ãƒ“ットレートモード(ABR)を有効ã«ã—ã¾ã™ã€‚公称平å‡ãƒ“ットレートをæç¤º" "ã— æœ€å°æœ€å¤§ç¯„囲を指定ã—ãªã‘れã°ãªã‚Šã¾ã›ã‚“。\n" "最高ã®çµæžœã«ã™ã‚‹ã«ã¯ã€ä¸€èˆ¬çš„ã«ï¼ˆä¸Šã®ï¼‰å¯å¤‰ãƒ“ットレート「エンコードå“質〠コン" "トロールを代ã‚りã«ä½¿ã†äº‹ã‚’推奨ã—ã¾ã™ã€‚" #: src/file_vorbis.c:1221 msgid "Bitrate management engine" msgstr "ビットレート管ç†ã‚¨ãƒ³ã‚¸ãƒ³" #: src/file_vorbis.c:1247 msgid "Nominal bitrate (ABR):" msgstr "公称ビットレート(ABR):" #: src/file_vorbis.c:1260 msgid "" "Specify a nominal bitrate. Attempt to encode at a bitrate averaging this." msgstr "" "公称ビットレートを指定ã—ã¾ã™ã€‚ã“れã¯ãƒ“ットレートを平å‡åŒ–ã—ã¦ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã‚’試ã¿" "ã¾ã™ã€‚" #: src/file_vorbis.c:1264 src/file_vorbis.c:1293 src/file_vorbis.c:1323 msgid "kbps" msgstr "kbps" #: src/file_vorbis.c:1276 msgid "Minimum bitrate:" msgstr "最å°ãƒ“ットレート:" #: src/file_vorbis.c:1289 msgid "" "Specify a minimum bitrate, useful for encoding for a fixed-size channel. " "(Optional)" msgstr "" "最å°ãƒ“ットレートを指定ã—ã¾ã™ã€‚固定サイズãƒãƒ£ãƒ³ãƒãƒ«ã«ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã™ã‚‹æ™‚ã«å½¹ã«ç«‹" "ã¡ã¾ã™ã€‚(オプション)" #: src/file_vorbis.c:1306 msgid "Maximum bitrate:" msgstr "最大ビットレート:" #: src/file_vorbis.c:1319 msgid "" "Specify a maximum bitrate, useful for streaming applications. (Optional)" msgstr "" "最大ビットレートを指定ã—ã¾ã™ã€‚ストリーミングアプリケーションã«å½¹ç«‹ã¡ã¾ã™ã€‚" "(オプション)" #: src/file_vorbis.c:1370 msgid "Set to default encoding options." msgstr "デフォルトエンコードオプションã«è¨­å®š" #: src/file_vorbis.c:1377 msgid "Metadata" msgstr "メタデータ" #: src/file_vorbis.c:1399 msgid "Title:" msgstr "タイトル:" #: src/file_vorbis.c:1399 msgid "Track/Work name" msgstr "トラック/作å“å" #: src/file_vorbis.c:1401 msgid "Version:" msgstr "ãƒãƒ¼ã‚¸ãƒ§ãƒ³ï¼š" #: src/file_vorbis.c:1402 msgid "" "The version field may be used to differentiate multiple versions of the same " "track title in a single collection. (e.g. remix info)" msgstr "" "ãƒãƒ¼ã‚¸ãƒ§ãƒ³ãƒ•ィールドã¯ã€ã‚·ãƒ³ã‚°ãƒ«ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã®ä¸­ã§åŒã˜ãƒˆãƒ©ãƒƒã‚¯ã‚¿ã‚¤ãƒˆãƒ«ã®è¤‡æ•°" "ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’区別ã™ã‚‹ã®ã«ç”¨ã„られã¾ã™ã€‚(例ãˆã°ã€ãƒªãƒŸãƒƒã‚¯ã‚¹æƒ…報)" #: src/file_vorbis.c:1406 msgid "Album:" msgstr "アルãƒãƒ ï¼š" #: src/file_vorbis.c:1407 msgid "The collection name to which this track belongs" msgstr "ã“ã®ãƒˆãƒ©ãƒƒã‚¯ãŒå±žã™ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³å" #: src/file_vorbis.c:1409 msgid "Artist:" msgstr "アーãƒã‚¹ãƒˆï¼š" #: src/file_vorbis.c:1410 msgid "" "The artist generally considered responsible for the work. In popular music " "this is usually the performing band or singer. For classical music it would " "be the composer. For an audio book it would be the author of the original " "text." msgstr "" "通常ã€ä½œå“ã«å¯¾ã—ã¦è²¬ä»»ãŒã‚ã‚‹ã¨æ€ã‚れるアーティスト。ãƒãƒ”ュラー音楽ã®ä¸­ã§ã€ã“" "れã¯é€šå¸¸æ¼”å¥ãƒãƒ³ãƒ‰ã¾ãŸã¯æ­Œæ‰‹ã§ã™ã€‚クラシック音楽ã§ã¯ä½œæ›²å®¶ã§ã™ã€‚オーディオ" "ブックã§ã¯åŽŸæ–‡ã®è‘—者ã§ã™ã€‚" #: src/file_vorbis.c:1416 msgid "Performer:" msgstr "æ¼”å¥è€…:" #: src/file_vorbis.c:1417 msgid "" "The artist(s) who performed the work. In classical music this would be the " "conductor, orchestra, soloists. In an audio book it would be the actor who " "did the reading. In popular music this is typically the same as the ARTIST " "and is omitted." msgstr "" "作å“ã‚’æ¼”å¥ã—ãŸã‚¢ãƒ¼ãƒ†ã‚£ã‚¹ãƒˆï¼ˆãŸã¡ï¼‰ã€‚クラシック音楽ã§ã¯æŒ‡æ®è€…ã€ã‚ªãƒ¼ã‚±ã‚¹ãƒˆãƒ©ã€" "ソリストã§ã™ã€‚オーディオブックã§ã¯æœ—読ã—ãŸä¿³å„ªã§ã™ã€‚ãƒãƒ”ュラー音楽ã§ã¯ã€Œã‚¢ãƒ¼" "ãƒã‚¹ãƒˆã€ã¨å…¸åž‹çš„ã«åŒã˜ã§çœç•¥ã•れã¾ã™ã€‚" #: src/file_vorbis.c:1424 msgid "Copyright:" msgstr "著作権:" #: src/file_vorbis.c:1425 msgid "" "Copyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'" msgstr "著作権帰属ã€ä¾‹ãˆã°ã€Ž2001 Nobody's Bandã€ã¾ãŸã¯ã€Ž1999 Jack Moffittã€" #: src/file_vorbis.c:1428 msgid "License:" msgstr "ライセンス:" #: src/file_vorbis.c:1429 msgid "" "License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL " "to a license such as a Creative Commons license (\"www.creativecommons.org/" "blahblah/license.html\") or the EFF Open Audio License ('distributed under " "the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/" "eff_oal.html for details'), etc." msgstr "" "ライセンス情報ã€ä¾‹ãˆã°ã€ã€Œè‘—作権所有ã€ã€Œã©ã‚“ãªä½¿ç”¨ã§ã‚‚許å¯ã€ã€ãƒ©ã‚¤ã‚»ãƒ³ã‚¹ã¸ã®" "URLã€ä¾‹ï¼›Creative Commons license(\"www.creativecommons.org/blahblah/" "license.html\")ã¾ãŸã¯ã€EFF Open Audio License(Open Audio Licenseã®ä¸‹ã«é…布" "ã•れã¾ã™ã€‚詳細ã¯ã€http://www.eff.org/IP/Open_licenses/eff_oal.htmlã‚’ã”覧下ã•" "ã„)ãªã©ã€‚" #: src/file_vorbis.c:1438 msgid "Organization:" msgstr "団体:" #: src/file_vorbis.c:1439 msgid "Name of the organization producing the track (i.e. the 'record label')" msgstr "トラックを製作ã—ãŸå›£ä½“åã€ä¾‹ãˆã°ã€Œãƒ¬ã‚³ãƒ¼ãƒ‰ãƒ©ãƒ™ãƒ«ã€" #: src/file_vorbis.c:1442 msgid "Description:" msgstr "解説" #: src/file_vorbis.c:1443 msgid "A short text description of the contents" msgstr "内容ã«ã¤ã„ã¦ã®çŸ­ã„解説文" #: src/file_vorbis.c:1445 msgid "Genre:" msgstr "ジャンル:" #: src/file_vorbis.c:1446 msgid "A short text indication of music genre" msgstr "音楽ジャンルã®çŸ­ã„表示文" #: src/file_vorbis.c:1448 msgid "Date:" msgstr "日付:" #: src/file_vorbis.c:1449 msgid "Date the track was recorded" msgstr "トラックã®éŒ²éŸ³æ—¥" #: src/file_vorbis.c:1451 msgid "Location:" msgstr "場所:" #: src/file_vorbis.c:1452 msgid "Location where track was recorded" msgstr "トラックã®éŒ²éŸ³å ´æ‰€" #: src/file_vorbis.c:1454 msgid "Contact:" msgstr "連絡先:" #: src/file_vorbis.c:1455 msgid "" "Contact information for the creators or distributors of the track. This " "could be a URL, an email address, the physical address of the producing " "label." msgstr "" "トラックã®è£½ä½œè€…ã¾ãŸã¯è²©å£²è€…ã¸ã®é€£çµ¡å…ˆã€‚ã“れã¯URLã€é›»å­ãƒ¡ãƒ¼ãƒ«ã‚¢ãƒ‰ãƒ¬ã‚¹ã€ãƒ—ロ" "デュースレーベルã®å®Ÿéš›ã®ä½æ‰€ãªã©ã§ã™ã€‚" #: src/file_vorbis.c:1460 msgid "ISRC:" msgstr "ISRC:" #: src/file_vorbis.c:1461 msgid "" "ISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-" "content/online/isrc_intro.html) for more information on ISRC numbers." msgstr "" "トラック用ã®ISRC番å·; ISRC番å·ã«é–¢ã™ã‚‹è©³ç´°ãªæƒ…å ±ã«ã¤ã„ã¦ã¯ã€ISRC紹介ページ" "http://www.ifpi.org/site-content/online/isrc_intro.html ã‚’å‚ç…§ã—ã¦ä¸‹ã•ã„。" #: src/file_vorbis.c:1578 msgid "" "Ogg Vorbis is a high quality general purpose\n" "perceptual audio codec. It is free, open and\n" "unpatented." msgstr "" "Ogg Vorbisã¯ã€é«˜å“質多目的知覚的ãªã‚ªãƒ¼ãƒ‡ã‚£ã‚ªã‚³ãƒ¼ãƒ‡ãƒƒã‚¯ã§ã™ã€‚\n" "フリーã€ã‚ªãƒ¼ãƒ—ンã§ã€ç‰¹è¨±æ¨©ã‚’付与ã•れã¦ã„ã¾ã›ã‚“。" #: src/file_vorbis.c:1589 msgid "" "Ogg, Vorbis, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ogg, Speex, Xiph.org Foundation ã¨ãã®ãƒ­ã‚´ã¯\n" "the Xiph.org Foundation ã®ç™»éŒ²å•†æ¨™ï¼ˆtm)ã§ã™ã€‚\n" "許å¯ã‚’å¾—ã¦ä½¿ç”¨ã—ã¦ã„ã¾ã™ã€‚" #: src/head.c:408 src/view.c:2324 msgid "Cursor position (indicator)" msgstr "カーソルä½ç½®ï¼ˆã‚¤ãƒ³ã‚¸ã‚±ãƒ¼ã‚¿ï¼‰" #: src/head.c:449 msgid "Reverse mode (toggle)" msgstr "å転モード(切り替ãˆï¼‰" #: src/head.c:467 msgid "Loop mode recording (toggle)" msgstr "ループモード録音(切り替ãˆï¼‰" #: src/head.c:486 msgid "Record into selection" msgstr "セレクションã«éŒ²éŸ³" #: src/head.c:503 src/view.c:1068 msgid "Stop" msgstr "åœæ­¢" #: src/head.c:516 src/view.c:2469 msgid "Go to beginning" msgstr "最åˆã«æˆ»ã‚‹" #: src/head.c:527 src/view.c:2480 msgid "Rewind" msgstr "å·»ãæˆ»ã—" #: src/head.c:540 src/view.c:2492 msgid "Fast forward" msgstr "æ—©é€ã‚Š" #: src/head.c:555 src/view.c:2505 msgid "Go to the end" msgstr "最後ã«é£›ã¶" #: src/interface.c:327 msgid "Sweep" msgstr "Sweep" #: src/interface.c:352 src/view.c:446 msgid "File" msgstr "ファイル" #: src/interface.c:357 msgid "New" msgstr "æ–°è¦" #: src/interface.c:366 msgid "Open" msgstr "é–‹ã" #: src/interface.c:375 src/sweep_sample.c:800 src/sweep_sample.c:808 #: src/view.c:529 msgid "Quit" msgstr "終了" #: src/interface.c:386 src/view.c:1073 msgid "Help" msgstr "ヘルプ" #: src/interface.c:391 msgid "About..." msgstr "ãƒãƒ¼ã‚¸ãƒ§ãƒ³æƒ…å ±..." #: src/interface.c:414 src/view.c:618 msgid "Select" msgstr "é¸æŠž" #: src/interface.c:415 msgid "Select regions of a sample" msgstr "サンプリング音ã®é ˜åŸŸé¸æŠž" #: src/interface.c:416 msgid "" "This tool allows you to select regions of a sample. You can then apply edits " "and effects to the: selected regions. Hold down shift whilst selecting to " "add discontinuous regions to the selection." msgstr "" "ã“ã®ãƒ„ールã«ã‚ˆã£ã¦ã€ã‚µãƒ³ãƒ—リング音ã®é ˜åŸŸã‚’é¸æŠžã§ãã¾ã™ã€‚ãã—ã¦é¸æŠžé ˜åŸŸã‚’編集" "ã—ã¦åŠ¹æžœã‚’é©ç”¨ã§ãã¾ã™ã€‚ä¸é€£ç¶šãªé ˜åŸŸã‚’セレクションã«è¿½åŠ ã™ã‚‹ã«ã¯é¸æŠžã™ã‚‹é–“ã€" "シフトキーを押ã•ãˆã¦ã„ã¦ä¸‹ã•ã„。" #: src/interface.c:433 msgid "Move" msgstr "移動" #: src/interface.c:434 msgid "Move regions in a sample" msgstr "サンプリング音ã«é ˜åŸŸã‚’移動" #: src/interface.c:435 msgid "With this tool you can move selected regions of a sample." msgstr "ã“ã®ãƒ„ールã§ã‚µãƒ³ãƒ—リング音ã®é¸æŠžé ˜åŸŸã‚’移動ã§ãã¾ã™ã€‚" #: src/interface.c:447 msgid "Scrub" msgstr "スクラブ" #: src/interface.c:448 msgid "Locate sounds directly" msgstr "音æºã‚’直接示ã™" #: src/interface.c:449 msgid "" "Place the play marker on a sample. Click anywhere in a view to instantly " "move the playback position to that part of the sample." msgstr "" "å†ç”Ÿãƒžãƒ¼ã‚«ã‚’サンプリング音ã«ç½®ã„ã¦è¡¨ç¤ºã®å¥½ããªã¨ã“ã‚ã§ã‚¯ãƒªãƒƒã‚¯ã™ã‚‹ã¨ã€å†ç”Ÿä½" "ç½®ã¯ç°¡å˜ã«ã‚µãƒ³ãƒ—リング音ã®ãã®éƒ¨åˆ†ã«ç§»å‹•ã—ã¾ã™ã€‚" #: src/interface.c:466 msgid "Zoom" msgstr "ズーム" #: src/interface.c:467 msgid "Zoom in & out" msgstr "ズームインã¨ã‚ºãƒ¼ãƒ ã‚¢ã‚¦ãƒˆ" #: src/interface.c:468 msgid "" "Zoom in and out of a view. Click anywhere in a view to zoom in on that part " "of the sample. Hold down shift and click on the view to zoom out." msgstr "" "表示ã®ã‚ºãƒ¼ãƒ ã‚¤ãƒ³ã€ã‚¢ã‚¦ãƒˆã€‚サンプリング音ã®ä¸€éƒ¨åˆ†ã‚’拡大ã™ã‚‹ã«ã¯ã€è¡¨ç¤ºã®ã©ã“ã‹" "をクリックã—ã¦ä¸‹ã•ã„。シフトキーを押ã—ã¦ã‚¯ãƒªãƒƒã‚¯ã™ã‚‹ã¨ç¸®å°ã—ã¾ã™ã€‚" #: src/interface.c:484 msgid "Pencil" msgstr "鉛筆" #: src/interface.c:485 msgid "Edit PCM sample values" msgstr "PCMサンプル値を編集" #: src/interface.c:486 msgid "When zoomed down to individual samples, click to edit" msgstr "個々ã®ã‚µãƒ³ãƒ—ルã«ã‚ºãƒ¼ãƒ ã—ãŸæ™‚ã€ç·¨é›†ã™ã‚‹ã«ã¯ã‚¯ãƒªãƒƒã‚¯ã—ã¦ä¸‹ã•ã„。" #: src/interface.c:497 msgid "Noise" msgstr "ノイズ" #: src/interface.c:498 msgid "Add noise" msgstr "ノイズを加ãˆã‚‹" #: src/interface.c:499 msgid "Randomise PCM values" msgstr "PCM値をランダム化ã™ã‚‹" #: src/notes.c:61 msgid "C3" msgstr "C3" #: src/notes.c:62 msgid "C#3" msgstr "C#3" #: src/notes.c:63 msgid "D3" msgstr "D3" #: src/notes.c:64 msgid "Eb3" msgstr "Db3" #: src/notes.c:65 msgid "E3" msgstr "E3" #: src/notes.c:66 msgid "F3" msgstr "F3" #: src/notes.c:67 msgid "F#3" msgstr "F#3" #: src/notes.c:68 msgid "G3" msgstr "G3" #: src/notes.c:69 msgid "G#3" msgstr "G#3" #: src/notes.c:70 msgid "A3" msgstr "A3" #: src/notes.c:71 msgid "Bb3" msgstr "Bb3" #: src/notes.c:72 msgid "B3" msgstr "B3" #: src/notes.c:74 msgid "C4" msgstr "C4" #: src/notes.c:76 msgid "C#4" msgstr "C#4" #: src/notes.c:77 msgid "D4" msgstr "D4" #: src/notes.c:78 msgid "Eb4" msgstr "Eb4" #: src/notes.c:79 msgid "E4" msgstr "E4" #: src/notes.c:80 msgid "F4" msgstr "F4" #: src/notes.c:81 msgid "F#4" msgstr "F#4" #: src/notes.c:82 msgid "G4" msgstr "G4" #: src/notes.c:83 msgid "G#4" msgstr "G#4" #: src/notes.c:84 msgid "A4" msgstr "A4" #: src/notes.c:85 msgid "Bb4" msgstr "Bb4" #: src/notes.c:86 msgid "B4" msgstr "B4" #: src/notes.c:88 msgid "C5" msgstr "C5" #: src/notes.c:89 msgid "C#5" msgstr "C#5" #: src/notes.c:90 msgid "D5" msgstr "D5" #: src/notes.c:91 msgid "D#5" msgstr "D#5" #: src/notes.c:92 msgid "E5" msgstr "E5" #: src/notes.c:94 msgid "F5" msgstr "F5" #: src/notes.c:95 msgid "F#5" msgstr "F#5" #: src/notes.c:96 msgid "G5" msgstr "G5" #: src/notes.c:97 msgid "G#5" msgstr "G#5" #: src/notes.c:98 msgid "A5" msgstr "A5" #: src/notes.c:99 msgid "Bb5" msgstr "Bb5" #: src/notes.c:100 msgid "B5" msgstr "B5" #: src/param.c:117 #, c-format msgid "TRUE" msgstr "真" #: src/param.c:118 #, c-format msgid "FALSE" msgstr "å½" #: src/param.c:738 msgid "Parameters" msgstr "パラメータ" #: src/param.c:769 msgid "Preview" msgstr "プレビュー" #: src/paste_dialogs.c:221 msgid "Start gain" msgstr "ゲイン開始" #: src/paste_dialogs.c:223 src/record.c:489 src/record.c:507 #: plugins/echo/echo.c:61 msgid "Gain" msgstr "ゲイン" #: src/paste_dialogs.c:230 msgid "Sweep: Paste crossfade" msgstr "Sweep: クロスフェード貼り付ã‘" #: src/paste_dialogs.c:232 msgid "Sweep: Paste mix" msgstr "Sweep: ミックス貼り付ã‘" #: src/paste_dialogs.c:257 msgid "Source" msgstr "ソース" #: src/paste_dialogs.c:257 msgid "Clipboard" msgstr "クリップボード" #: src/paste_dialogs.c:279 src/paste_dialogs.c:318 msgid "End gain" msgstr "ゲイン終了" #: src/paste_dialogs.c:287 src/paste_dialogs.c:326 msgid "Invert phase" msgstr "ä½ç›¸å転" #: src/paste_dialogs.c:295 msgid "Destination" msgstr "行ãå…ˆ" #: src/paste_dialogs.c:345 msgid "" "Indicates the total duration of the clipboard, which is the maximum length " "that will be pasted." msgstr "貼り付ã‘る事ãŒã§ãる最大長クリップボードã®å…¨ä½“ã®æ¼”奿™‚間を示ã—ã¾ã™ã€‚" #: src/paste_dialogs.c:362 msgid "Clipboard duration:" msgstr "æ¼”å¥æ™‚時間をクリップボードã¸ï¼š" #: src/paste_dialogs.c:375 msgid "Crossfade" msgstr "クロスフェード" #: src/paste_dialogs.c:375 msgid "Mix" msgstr "ミックス" #: src/paste_dialogs.c:394 msgid "Don't crossfade" msgstr "クロスフェードã—ãªã„" #: src/paste_dialogs.c:394 msgid "Don't mix" msgstr "ミックスã—ãªã„" #: src/preferences.c:62 msgid "Error creating ~/.sweep" msgstr "~/.sweepã®ä½œæˆã‚¨ãƒ©ãƒ¼" #: src/preferences.c:66 #, c-format msgid "Created %s/ mode %04o\n" msgstr "Created %s/ mode %04o\n" #: src/preferences.c:73 msgid "Error on ~/.sweep" msgstr "~/.sweep ã§ã‚¨ãƒ©ãƒ¼" #: src/preferences.c:82 msgid "Error setting permissions on ~/.sweep" msgstr "~/.sweep ã§ãƒ‘ーミッションã®è¨­å®šã‚¨ãƒ©ãƒ¼" #: src/preferences.c:89 msgid "Error accessing ~/.sweep" msgstr "~/.sweep ã«ã‚¢ã‚¯ã‚»ã‚¹ã‚¨ãƒ©ãƒ¼" #: src/preferences.c:124 msgid "Error opening ~/.sweep/preferences.tdb" msgstr "~/.sweep/preferences.tdb ã®ã‚ªãƒ¼ãƒ—ンエラー" #: src/record.c:94 src/record.c:544 msgid "Ready to record" msgstr "éŒ²éŸ³ã®æº–å‚™ãŒã§ãã¾ã—ãŸ" #: src/record.c:308 msgid "No selection to record into" msgstr "録音ã™ã‚‹ã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ãŒã‚りã¾ã›ã‚“" #: src/record.c:446 msgid "Sweep: Record" msgstr "Sweep: 録音" #: src/record.c:459 src/undo_dialog.c:376 msgid "File:" msgstr "ファイル:" #: src/record.c:482 msgid "Previous sound" msgstr "å‰ã®éŸ³" #: src/record.c:496 msgid "" "This slider allows you to mix the new recording in with the previous " "contents of the buffer. Set it to -inf dB to overwrite the previous sound." msgstr "" "ã“ã®ã‚¹ãƒ©ã‚¤ãƒ€ãƒ¼ã¯ã€æ–°ã—ã„録音をãƒãƒƒãƒ•ã‚¡ã®å‰ã®å†…容ã«ãƒŸãƒƒã‚¯ã‚¹ã•ã›ã‚‹äº‹ãŒã§ãã¾" "ã™ã€‚å‰ã®éŸ³ã«ä¸Šæ›¸ãã™ã‚‹ -inf dB ã«è¨­å®šã—ã¾ã™ã€‚" #: src/record.c:502 msgid "Recorded sound" msgstr "録音ã•れãŸéŸ³" #: src/record.c:514 msgid "" "This slider allows you to reduce the level of the recorded sound. Set it to " "0 dB to record without any reduction. Note that setting this to -inf dB will " "record silence." msgstr "" "ã“ã®ã‚¹ãƒ©ã‚¤ãƒ€ãƒ¼ã¯ã€éŒ²éŸ³ã•れãŸéŸ³ã®ãƒ¬ãƒ™ãƒ«ã‚’減らã™ã“ã¨ãŒã§ãã¾ã™ã€‚æŒç¶šæ™‚é–“ãªã—ã§" "録音ã™ã‚‹ã«ã¯0dBã«è¨­å®šã—ã¦ä¸‹ã•ã„。注æ„ã€ã“れを設定ã™ã‚‹ã¨ -inf dB ã¯ã€ç„¡éŸ³ã‚’録" "音ã—ã¾ã™ã€‚" #: src/sample-display.c:223 msgid "New selection" msgstr "æ–°ã—ã„セレクション" #: src/sample-display.c:224 msgid "Selection: add/modify region" msgstr "セレクション: 領域ã®è¿½åŠ /変更" #: src/sample-display.c:225 msgid "Selection: subtract region" msgstr "セレクション: å–り去ã£ãŸé ˜åŸŸ" #: src/samplerate.c:103 src/samplerate.c:167 msgid "Resample error" msgstr "リサンプルエラー" #: src/samplerate.c:104 src/samplerate.c:168 msgid "libsamplerate error" msgstr "libsamplerateエラー" #: src/samplerate.c:234 #, c-format msgid "Resample from %d Hz to %d Hz" msgstr "%d Hz ã‹ã‚‰ %d Hz ã«ãƒªã‚µãƒ³ãƒ—ル" #: src/samplerate.c:445 msgid "Sweep: Resample" msgstr "Sweep: リサンプル" #: src/samplerate.c:467 msgid "Conversion" msgstr "変æ›" #: src/samplerate.c:474 #, c-format msgid "Current sample rate: %d Hz" msgstr "ç¾åœ¨ã®ã‚µãƒ³ãƒ—ルレート: %d Hz" #: src/samplerate.c:483 msgid "New sample rate" msgstr "æ–°ã—ã„サンプルレート" #: src/samplerate.c:494 msgid "Quality" msgstr "音質" #: src/samplerate.c:501 msgid "Converter" msgstr "コンãƒãƒ¼ã‚¿" #: src/samplerate.c:544 msgid "Remember this quality" msgstr "ã“ã®éŸ³è³ªã‚’記憶ã™ã‚‹" #: src/samplerate.c:564 msgid "Reset to the last remembered quality." msgstr "最後ã«è¨˜æ†¶ã—ãŸéŸ³è³ªã«ãƒªã‚»ãƒƒãƒˆ" #: src/samplerate.c:578 msgid "Set to default quality." msgstr "デフォルトã®éŸ³è³ªã«è¨­å®š" #: src/samplerate.c:600 msgid "" "Secret Rabbit Code (aka libsamplerate) is a\n" "Sample Rate Converter for audio by Erik de Castro Lopo\n" msgstr "" "Secret Rabbit Code (aka libsamplerate) 㯠Erik de Castro Lopo æ°ãŒ\n" "作ã£ãŸã‚ªãƒ¼ãƒ‡ã‚£ã‚ªç”¨ã‚µãƒ³ãƒ—ルレートコンãƒãƒ¼ã‚¿ã§ã™ã€‚\n" #: src/samplerate.c:620 msgid "Resample" msgstr "リサンプル" #: src/samplerate.c:633 msgid "Don't resample" msgstr "リサンプルã—ãªã„" #: src/sw_chooser.c:51 src/sw_chooser.c:66 msgid "Custom" msgstr "カスタム" #: src/sw_chooser.c:52 msgid "192000 Hz (Studio quality)" msgstr "192000 Hz (スタジオ音質)" #: src/sw_chooser.c:53 msgid " 96000 Hz (High quality)" msgstr " 96000 Hz (高音質)" #: src/sw_chooser.c:54 msgid " 48000 Hz (DAT quality)" msgstr " 48000 Hz (DAT音質)" #: src/sw_chooser.c:55 msgid " 44100 Hz (CD quality)" msgstr " 44100 Hz (CD音質)" #: src/sw_chooser.c:56 msgid " 32000 Hz (Ultra-wideband voice quality)" msgstr " 32000 Hz (ウルトラ広帯域音質)" #: src/sw_chooser.c:57 msgid " 22050 Hz" msgstr " 22050 Hz" #: src/sw_chooser.c:58 msgid " 16000 Hz (Wideband voice quality)" msgstr " 16000 Hz (広帯域音質)" #: src/sw_chooser.c:59 msgid " 11025 Hz" msgstr " 11025 Hz" #: src/sw_chooser.c:60 msgid " 8000 Hz (Narrowband voice quality)" msgstr " 8000 Hz (狭帯域音質)" #: src/sw_chooser.c:61 msgid " 4000 Hz (Low quality)" msgstr " 4000 Hz (低音質)" #: src/sw_chooser.c:67 src/view.c:3446 src/view.c:3459 src/view.c:3498 #, c-format msgid "Mono" msgstr "モノラル" #: src/sw_chooser.c:68 src/view.c:3446 src/view.c:3459 src/view.c:3501 #, c-format msgid "Stereo" msgstr "ステレオ" #: src/sw_chooser.c:69 msgid "Quadraphonic" msgstr "ï¼”ãƒãƒ£ãƒ³ãƒãƒ«" #: src/sw_chooser.c:306 msgid "Custom: " msgstr "カスタム:" #: src/sw_chooser.c:341 msgid "Sampling rate" msgstr "サンプリングレート" #: src/sw_chooser.c:343 msgid "Hz" msgstr "Hz" #: src/sw_chooser.c:367 src/view.c:884 msgid "Channels" msgstr "ãƒãƒ£ãƒ³ãƒãƒ«" #: src/sw_chooser.c:369 src/view.c:3505 msgid "channels" msgstr "ãƒãƒ£ãƒ³ãƒãƒ«" #: src/sweep_filter.c:125 msgid "No selection to process" msgstr "加工ã™ã‚‹ã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã¯ã‚りã¾ã›ã‚“" #: src/sweep_sample.c:119 src/view.c:3444 src/view.c:3450 src/view.c:3457 #: src/view.c:3463 msgid "Untitled" msgstr "無題" #: src/sweep_sample.c:324 msgid "Overflow" msgstr "オーãƒãƒ¼ãƒ•ロー" #: src/sweep_sample.c:407 msgid "Sweep: New file" msgstr "Sweep: æ–°è¦ãƒ•ァイル" #: src/sweep_sample.c:435 msgid "Name:" msgstr "åå‰ï¼š" #: src/sweep_sample.c:455 msgid "Duration:" msgstr "æ¼”å¥æ™‚間:" #: src/sweep_sample.c:471 msgid "hh:mm:ss.xxx" msgstr "hh:mm:ss.xxx" #: src/sweep_sample.c:514 msgid "Remember this format" msgstr "ã“ã®ãƒ•ォーマットを記憶ã™ã‚‹" #: src/sweep_sample.c:520 msgid "" "Remember this sampling rate and channel configuration for creating new files." msgstr "æ–°è¦ãƒ•ァイル作æˆç”¨ã«ã“ã®ã‚µãƒ³ãƒ—リングレートã¨ãƒãƒ£ãƒ³ãƒãƒ«è¨­å®šã‚’記憶ã™ã‚‹ã€‚" #: src/sweep_sample.c:540 msgid "Reset to the last remembered format for new files." msgstr "æ–°è¦ãƒ•ã‚¡ã‚¤ãƒ«ç”¨ã«æœ€å¾Œã«è¨˜æ†¶ã—ãŸãƒ•ォーマットã«ãƒªã‚»ãƒƒãƒˆã™ã‚‹ã€‚" #: src/sweep_sample.c:551 msgid "Set to the default format for new files." msgstr "æ–°è¦ãƒ•ァイル用ã«ãƒ‡ãƒ•ォルトフォーマットã«ãƒªã‚»ãƒƒãƒˆã™ã‚‹ã€‚" #: src/sweep_sample.c:567 msgid "" "Indicates the amount of data memory which will be allocated for the selected " "duration and format. All audio data is processed internally in 32 bit " "floating point format." msgstr "" "é¸æŠžã•ã‚ŒãŸæ¼”奿™‚é–“ã¨ãƒ•ォーマットã«å‰²ã‚Šå½“ã¦ã‚‰ã‚Œã‚‹ãƒ‡ãƒ¼ã‚¿ãƒ¡ãƒ¢ãƒªã®é‡ã‚’示ã—ã¾ã™ã€‚" "ã™ã¹ã¦ã®ã‚ªãƒ¼ãƒ‡ã‚£ã‚ªãƒ‡ãƒ¼ã‚¿ã¯ã€32ãƒ“ãƒƒãƒˆã®æµ®å‹•å°æ•°ç‚¹ãƒ•ォーマットã§å†…部的ã«å‡¦ç†ã•" "れã¾ã™ã€‚" #: src/sweep_sample.c:582 msgid "Data memory:" msgstr "データメモリ:" #: src/sweep_sample.c:594 msgid "Create" msgstr "作æˆ" #: src/sweep_sample.c:606 msgid "Don't create" msgstr "作æˆã—ãªã„" #: src/sweep_sample.c:774 msgid "Excellent!!!" msgstr "ã™ã°ã‚‰ã—ã„ï¼ï¼ï¼" #: src/sweep_sample.c:796 msgid "Files unsaved" msgstr "未ä¿å­˜ãƒ•ァイル" #: src/sweep_sample.c:797 msgid "" "Some files are unsaved. If you quit, all changes will be lost.\n" "\n" "Are you sure you want to quit?" msgstr "" "ã„ãã¤ã‹ã®ãƒ•ァイルã¯ä¿å­˜ã•れã¦ã„ã¾ã›ã‚“。終了ã™ã‚‹ã¨ã€ã™ã¹ã¦ã®å¤‰æ›´ã¯å¤±ã‚れã¾" "ã™ã€‚\n" "\n" "本当ã«çµ‚了ã—ã¾ã™ã‹ï¼Ÿ" #: src/sweep_sample.c:800 src/sweep_sample.c:808 msgid "Don't quit" msgstr "終了ã—ãªã„" #: src/sweep_sample.c:804 msgid "Files playing" msgstr "å†ç”Ÿãƒ•ァイル" #: src/sweep_sample.c:805 msgid "" "No files are unsaved, but some files are currently playing.\n" "\n" "Are you sure you want to quit?" msgstr "" "未ä¿å­˜ã®ãƒ•ァイルã¯ã‚りã¾ã›ã‚“。ã—ã‹ã—ã€ã„ãã¤ã‹ã®ãƒ•ァイルã¯ç¾åœ¨å†ç”Ÿä¸­ã§ã™ã€‚\n" "\n" "本当ã«çµ‚了ã—ã¾ã™ã‹ï¼Ÿ" #: src/sweep_sample.c:1465 src/view.c:1206 msgid "Invert selection" msgstr "セレクションã®å転" #: src/sweep_sample.c:1485 src/view.c:1214 src/view.c:1308 msgid "Select all" msgstr "å…¨é¸æŠž" #: src/sweep_sample.c:1505 src/view.c:1222 msgid "Select none" msgstr "é¸æŠžã—ãªã„" #: src/sweep_sample.c:1525 msgid "Halve selection" msgstr "セレクションをåŠåˆ†ã«åˆ‡ã‚‹" #: src/sweep_sample.c:1545 msgid "Double selection" msgstr "セレクションを2å€ã«ã™ã‚‹" #: src/sweep_sample.c:1568 msgid "Selection left" msgstr "セレクションを左ã¸" #: src/sweep_sample.c:1590 msgid "Selection right" msgstr "セレクションをå³ã¸" #: src/sweep_sample.c:1678 #, c-format msgid "Insert selection [" msgstr "セレクションを挿入 [" #: src/sweep_sample.c:1731 #, c-format msgid "Subtract selection [" msgstr "セレクションをå–り去る [" #: src/sweep_sample.c:1776 #, c-format msgid "Set selection [" msgstr "セレクションを設定 [" #: src/sweep_sample.c:1875 msgid "Sweep: File properties" msgstr "Sweep: ファイルプロパティ" #: src/sweep_sample.c:1899 msgid "Filename: " msgstr "ファイルå:" #: src/sweep_sample.c:1901 msgid "Sampling rate: " msgstr "サンプリングレート:" #: src/sweep_sample.c:1903 msgid "Channels: " msgstr "ãƒãƒ£ãƒ³ãƒãƒ«ï¼š" #: src/sweep_sample.c:1905 msgid "Data memory: " msgstr "データメモリ:" #: src/sweep_sample.c:1907 msgid "Duration: " msgstr "æ¼”å¥æ™‚間:" #: src/sweep_undo.c:327 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Do you want to continue editing this buffer?" msgstr "" "%s\n" "ã¯ãƒ‡ã‚£ã‚¹ã‚¯ä¸Šã§å¤‰æ›´ã•れã¾ã—ãŸã€‚\n" "\n" "ã“ã®ãƒãƒƒãƒ•ã‚¡ã®ç·¨é›†ã‚’ç¶šã‘ã¾ã™ã‹ï¼Ÿ" #: src/sweep_undo.c:332 msgid "Continue editing" msgstr "編集を続ã‘ã‚‹" #: src/sweep_undo.c:332 msgid "Reread from disk" msgstr "ディスクã‹ã‚‰å†èª­ã¿è¾¼ã¿" #: src/sweep_undo.c:430 src/sweep_undo.c:488 msgid "Nothing to undo" msgstr "å…ƒã«æˆ»ã™ã‚‚ã®ã¯ã‚りã¾ã›ã‚“" #: src/sweep_undo.c:511 src/sweep_undo.c:567 msgid "Nothing to redo" msgstr "リドゥã™ã‚‹ã‚‚ã®ã¯ã‚りã¾ã›ã‚“" #: src/undo_dialog.c:159 msgid "Original data" msgstr "オリジナルデータ" #: src/undo_dialog.c:344 msgid "Action" msgstr "アクション" #: src/undo_dialog.c:351 msgid "Sweep: History" msgstr "Sweep: 履歴" #: src/undo_dialog.c:393 src/view.c:548 src/view.c:1887 msgid "Undo" msgstr "å…ƒã«æˆ»ã™" #: src/undo_dialog.c:401 src/view.c:552 src/view.c:1896 msgid "Redo" msgstr "リドゥ" #: src/undo_dialog.c:426 msgid "Revert to selected state" msgstr "é¸æŠžçŠ¶æ…‹ã«æˆ»ã™" #: src/undo_dialog.c:452 src/view.c:525 src/view.c:3402 msgid "Close" msgstr "é–‰ã˜ã‚‹" #: src/view.c:311 msgid "Duplicate to stereo" msgstr "ステレオã«è¤‡è£½" #: src/view.c:319 msgid "Duplicate to multichannel" msgstr "マルãƒãƒãƒ£ãƒ³ãƒãƒ«ã«è¤‡è£½" #: src/view.c:331 msgid "Swap left and right" msgstr "å·¦å³ã‚’入れæ›ãˆã‚‹" #: src/view.c:371 msgid "Add/Remove channels" msgstr "ãƒãƒ£ãƒ³ãƒãƒ«ã‚’追加/削除" #: src/view.c:454 src/view.c:1768 msgid "New ..." msgstr "æ–°è¦..." #: src/view.c:458 src/view.c:1775 msgid "Open ..." msgstr "é–‹ã..." #: src/view.c:488 msgid "Open Recent" msgstr "" #: src/view.c:505 msgid "Save As ..." msgstr "åå‰ã‚’付ã‘ã¦ä¿å­˜..." #: src/view.c:517 msgid "Properties ..." msgstr "プロパティ..." #: src/view.c:535 src/view.c:1136 msgid "Edit" msgstr "編集" #: src/view.c:556 msgid "Show history ..." msgstr "履歴を表示" #: src/view.c:588 src/view.c:1172 msgid "Paste: Insert" msgstr "貼り付ã‘: 挿入" #: src/view.c:592 src/view.c:1178 msgid "Paste: Mix" msgstr "貼り付ã‘: ミックス" #: src/view.c:596 src/view.c:1184 msgid "Paste: Crossfade" msgstr "貼り付ã‘: クロスフェード" #: src/view.c:600 msgid "Paste as New" msgstr "æ–°è¦ã§è²¼ã‚Šä»˜ã‘" #: src/view.c:608 msgid "Preview Cut/Cursor" msgstr "切å–り/カーソルをプレビュー" #: src/view.c:612 msgid "Pre-roll to Cursor" msgstr "カーソルã«ãƒ—リロール" #: src/view.c:626 msgid "Invert" msgstr "å転" #: src/view.c:630 msgid "All" msgstr "ã™ã¹ã¦" #: src/view.c:634 msgid "None" msgstr "ãªã—" #: src/view.c:642 msgid "Halve" msgstr "åŠåˆ†" #: src/view.c:646 msgid "Double" msgstr "ï¼’å€" #: src/view.c:650 msgid "Shift left" msgstr "å·¦ã«ã‚·ãƒ•ト" #: src/view.c:654 msgid "Shift right" msgstr "å³ã«ã‚·ãƒ•ト" #: src/view.c:659 msgid "View" msgstr "表示" #: src/view.c:666 src/view.c:2061 msgid "Autoscroll: follow playback cursor" msgstr "自動スクロール: å†ç”Ÿã‚«ãƒ¼ã‚½ãƒ«ã«è¿½å¾“" #: src/view.c:684 msgid "Center" msgstr "中央" #: src/view.c:692 src/view.c:1996 msgid "Zoom in" msgstr "ズームイン" #: src/view.c:696 src/view.c:2005 msgid "Zoom out" msgstr "ズームアウト" #: src/view.c:700 src/view.c:1111 msgid "Zoom to selection" msgstr "セレクションã«ã‚ºãƒ¼ãƒ " #: src/view.c:706 msgid "Left" msgstr "å·¦" #: src/view.c:710 msgid "Right" msgstr "å³" #: src/view.c:715 src/view.c:1117 src/view.c:1276 msgid "Zoom normal" msgstr "標準ズーム" #: src/view.c:719 src/view.c:1123 src/view.c:1282 src/view.c:1987 msgid "Zoom all" msgstr "ã™ã¹ã¦ã‚ºãƒ¼ãƒ " #: src/view.c:723 msgid "1:1" msgstr "1:1" #: src/view.c:733 msgid "Remember as" msgstr "åå‰ã‚’付ã‘ã¦è¨˜æ†¶" #: src/view.c:752 src/view.c:783 msgid "Area 1" msgstr "領域 1" #: src/view.c:753 src/view.c:784 msgid "Area 2" msgstr "領域 ï¼’" #: src/view.c:754 src/view.c:785 msgid "Area 3" msgstr "領域 3" #: src/view.c:755 src/view.c:786 msgid "Area 4" msgstr "領域 ï¼”" #: src/view.c:756 src/view.c:787 msgid "Area 5" msgstr "領域 5" #: src/view.c:757 src/view.c:788 msgid "Area 6" msgstr "領域 ï¼–" #: src/view.c:758 src/view.c:789 msgid "Area 7" msgstr "領域 ï¼—" #: src/view.c:759 src/view.c:790 msgid "Area 8" msgstr "領域 8" #: src/view.c:760 src/view.c:791 msgid "Area 9" msgstr "領域 ï¼™" #: src/view.c:761 src/view.c:792 msgid "Area 10" msgstr "領域 1ï¼" #: src/view.c:765 msgid "Zoom to" msgstr "ズーム" #: src/view.c:798 msgid "Color scheme" msgstr "カラースキーム" #: src/view.c:804 msgid "Decoder Red" msgstr "デコーダレッド" #: src/view.c:812 msgid "Orangeboom" msgstr "オレンジブーム" #: src/view.c:820 msgid "Lame Yellow" msgstr "ライムイエロー" #: src/view.c:828 msgid "Coogee Bay Blue" msgstr "クージーベイブルー" #: src/view.c:836 msgid "Blackwattle" msgstr "ブラックワトル" #: src/view.c:844 msgid "Frigid" msgstr "フリジッド" #: src/view.c:852 msgid "Radar" msgstr "ラダー" #: src/view.c:860 msgid "Bluescreen" msgstr "ブルースクリーン" #: src/view.c:872 src/view.c:1236 src/view.c:1322 msgid "New View" msgstr "æ–°è¦è¡¨ç¤º" #: src/view.c:877 msgid "Sample" msgstr "サンプル" #: src/view.c:894 msgid "Resample ..." msgstr "リサンプル..." #: src/view.c:903 msgid "Duplicate" msgstr "複製" #: src/view.c:908 src/view.c:1192 msgid "Process" msgstr "処ç†" #: src/view.c:917 msgid "Playback" msgstr "å†ç”Ÿ" #: src/view.c:924 msgid "Configure audio device ..." msgstr "オーディオデãƒã‚¤ã‚¹ã®è¨­å®š..." #: src/view.c:934 msgid "Transport" msgstr "ç§»é€" #: src/view.c:943 msgid "Go to start of file" msgstr "ファイルã®å§‹ã‚ã«è¡Œã" #: src/view.c:949 msgid "Go to start of window" msgstr "ウィンドウã®å§‹ã‚ã«è¡Œã" #: src/view.c:954 msgid "Skip back" msgstr "後ã‚ã«ã‚¹ã‚­ãƒƒãƒ—" #: src/view.c:959 msgid "Skip forward" msgstr "å‰ã«ã‚¹ã‚­ãƒƒãƒ—" #: src/view.c:964 msgid "Go to end of window" msgstr "ウィンドウã®çµ‚ã‚りã«è¡Œã" #: src/view.c:969 msgid "Go to end of file" msgstr "ファイルã®çµ‚ã‚りã«è¡Œã" #: src/view.c:978 msgid "Play selection" msgstr "セレクションをå†ç”Ÿ" #: src/view.c:984 msgid "Play sample" msgstr "サンプルをå†ç”Ÿ" #: src/view.c:990 msgid "Play note" msgstr "音符をå†ç”Ÿ" #: src/view.c:1009 msgid "Toggle monitoring" msgstr "モニタリングã®åˆ‡ã‚Šæ›¿ãˆ" #: src/view.c:1022 msgid "Toggle looping" msgstr "ループを切り替ãˆ" #: src/view.c:1034 msgid "Toggle muting" msgstr "ミュートを切り替ãˆ" #: src/view.c:1045 msgid "Toggle reverse playback" msgstr "å転å†ç”Ÿã‚’切り替ãˆ" #: src/view.c:1063 msgid "Pause" msgstr "ä¸€æ™‚åœæ­¢" #: src/view.c:1079 msgid "About MP3 export..." msgstr "MP3ã®ã‚¨ã‚¯ã‚¹ãƒãƒ¼ãƒˆã«ã¤ã„ã¦..." #: src/view.c:1085 msgid "About Sweep ..." msgstr "Sweepã«ã¤ã„ã¦" #: src/view.c:1249 src/view.c:1335 msgid "File properties ..." msgstr "ファイルプロパティ..." #: src/view.c:1294 msgid "Paste" msgstr "貼り付ã‘" #: src/view.c:1791 msgid "Save as ..." msgstr "åå‰ã‚’付ã‘ã¦ä¿å­˜..." #: src/view.c:1811 msgid "Cut selection to clipboard" msgstr "セレクションを切りå–ã£ã¦ã‚¯ãƒªãƒƒãƒ—ボードã¸" #: src/view.c:1821 msgid "Copy selection to clipboard" msgstr "セレクションをコピーã—ã¦ã‚¯ãƒªãƒƒãƒ—ボードã¸" #: src/view.c:1832 msgid "Paste: insert clipboard at cursor position" msgstr "貼り付ã‘: カーソルä½ç½®ã«ã‚¯ãƒªãƒƒãƒ—ボードを挿入" #: src/view.c:1843 msgid "Paste: mix clipboard in from cursor position" msgstr "貼り付ã‘: カーソルä½ç½®ã‹ã‚‰ã‚¯ãƒªãƒƒãƒ—ボードをミックス" #: src/view.c:1854 msgid "Paste: fade clipboard in from cursor position" msgstr "貼り付ã‘: カーソルä½ç½®ã‹ã‚‰ã‚¯ãƒªãƒƒãƒ—ボードをフェードイン" #: src/view.c:1924 #, fuzzy msgid "Hand tool" msgstr "ãƒãƒ³ãƒ‰ãƒ„ール" #: src/view.c:1932 msgid "Selector tool" msgstr "セレクタツール" #: src/view.c:1944 msgid "\"Scrubby\" the scrub tool" msgstr "「Scrubbyã€ã‚¹ã‚¯ãƒ©ãƒ–ツール" #: src/view.c:1954 msgid "Pencil tool" msgstr "鉛筆ツール" #: src/view.c:1962 msgid "Noise tool" msgstr "ノイズツール" #: src/view.c:2052 msgid "Visible length" msgstr "å¯è¦–é•·" #: src/view.c:2171 msgid "Vertical zoom [Shift + Arrow Up/Down]" msgstr "垂直ズーム [Shift + 上下矢å°ã‚­ãƒ¼]" #: src/view.c:2301 msgid "Record ..." msgstr "録音..." #: src/view.c:2377 msgid "Reverse mode playback (toggle)" msgstr "リãƒãƒ¼ã‚¹ãƒ¢ãƒ¼ãƒ‰å†ç”Ÿï¼ˆåˆ‡ã‚Šæ›¿ãˆï¼‰" #: src/view.c:2395 msgid "Loop mode playback (toggle)" msgstr "ループモードå†ç”Ÿï¼ˆåˆ‡ã‚Šæ›¿ãˆï¼‰" #: src/view.c:2419 #, fuzzy msgid "Play all / Pause" msgstr "ã™ã¹ã¦å†ç”Ÿ / ä¸€æ™‚åœæ­¢" #: src/view.c:2436 #, fuzzy msgid "Play selection / Pause" msgstr "セレクションをå†ç”Ÿ / ä¸€æ™‚åœæ­¢" #: src/view.c:2452 #, fuzzy msgid "Stop playback" msgstr "å†ç”Ÿã‚’åœæ­¢" #: src/view.c:2519 msgid "Muted playback (toggle)" msgstr "ミュートå†ç”Ÿï¼ˆåˆ‡ã‚Šæ›¿ãˆï¼‰" #: src/view.c:2539 src/view.c:2557 msgid "Playback gain slider (volume)" msgstr "å†ç”Ÿã‚²ã‚¤ãƒ³ã‚¹ãƒ©ã‚¤ãƒ€ï¼ˆéŸ³é‡ï¼‰" #: src/view.c:2569 msgid "Monitor (toggle)" msgstr "モニタ(切り替ãˆï¼‰" #: src/view.c:2587 msgid "SYNC" msgstr "SYNC" #: src/view.c:3144 #, c-format msgid "Remembered as area %d" msgstr "領域 %d ã¨ã—ã¦è¨˜æ†¶" #: src/view.c:3162 #, c-format msgid "No area remembered as %d" msgstr "%d ã¨ã—ã¦é ˜åŸŸã¯ä½•も記憶ã•れã¦ã„ã¾ã›ã‚“" #: src/view.c:3165 #, c-format msgid "Zoomed to area %d" msgstr "領域 %d ã«ã‚ºãƒ¼ãƒ " #: src/view.c:3347 src/view.c:3351 msgid "Scrub!" msgstr "スクラブï¼" #: src/view.c:3347 src/view.c:3353 msgid "Ready" msgstr "準備完了" #: src/view.c:3399 #, c-format msgid "%s has been modified. Close anyway?" msgstr "%s ã¯ä¿®æ­£ã•れã¾ã—ãŸã€‚終了ã—ã¾ã™ã‹ï¼Ÿ" #: src/view.c:3402 msgid "Don't close" msgstr "終了ã—ãªã„" #: src/view.c:3449 src/view.c:3462 msgid "*" msgstr "*" #: src/view.c:3465 msgid "Empty" msgstr "空" #: plugins/byenergy/byenergy.c:58 msgid "Select regions above threshold" msgstr "ã—ãã„値より上ã«é ˜åŸŸã‚’é¸æŠž" #: plugins/byenergy/byenergy.c:59 msgid "" "Whether to select those regions lying above a given threshold or below it." msgstr "ãã®é ˜åŸŸã‚’所定ã®ã—ãã„値以上ã‹ã€ãれ以下ã«é–¢ä¿‚ãªãé¸æŠžã™ã‚‹ã‹ã©ã†ã‹ã€‚" #: plugins/byenergy/byenergy.c:66 msgid "Resolution" msgstr "レゾリューション" #: plugins/byenergy/byenergy.c:67 msgid "Width of energy detection window (s)" msgstr "エãƒãƒ«ã‚®ãƒ¼æ¤œå‡ºã‚¦ã‚£ãƒ³ãƒ‰ã®å¹… (s)" #: plugins/byenergy/byenergy.c:73 msgid "Threshold" msgstr "ã—ãã„値" #: plugins/byenergy/byenergy.c:74 msgid "Energy level to detect [0.0 - 1.0]" msgstr "検出ã™ã‚‹ã‚¨ãƒãƒ«ã‚®ãƒ¼ãƒ¬ãƒ™ãƒ« [0.0 - 1.0]" #: plugins/byenergy/byenergy.c:80 msgid "Minimum duration" msgstr "æœ€å°æ¼”奿™‚é–“" #: plugins/byenergy/byenergy.c:81 msgid "Shortest region of selection to detect (s)" msgstr "セレクションã®ä¸€ç•ªçŸ­ã„領域を見ã¤ã‘ã‚‹ (s)" #: plugins/byenergy/byenergy.c:87 msgid "Maximum interruption" msgstr "最大割り込ã¿" #: plugins/byenergy/byenergy.c:88 msgid "Longest length of sound above threshold to allow (s)" msgstr "上ã®ã—ãã„値ã§è¨±ã•ã‚Œã‚‹éŸ³ã®æœ€é•·ã®é•·ã• (s)" #: plugins/byenergy/byenergy.c:227 plugins/byenergy/byenergy.c:232 msgid "Select by energy" msgstr "エãƒãƒ«ã‚®ãƒ¼ã§é¸æŠž" #: plugins/byenergy/byenergy.c:233 msgid "Select loud or quiet regions" msgstr "大ããªéŸ³ã‹é™ã‹ãªé ˜åŸŸã‚’é¸æŠž" #: plugins/echo/echo.c:53 msgid "Delay" msgstr "é…å»¶" #: plugins/echo/echo.c:54 msgid "Time to delay by" msgstr "é…延時間" #: plugins/echo/echo.c:62 msgid "Gain with which to mix in delayed signal" msgstr "é…å»¶ä¿¡å·ã«ãƒŸãƒƒã‚¯ã‚¹ã™ã‚‹ã‚²ã‚¤ãƒ³" #: plugins/echo/echo.c:107 plugins/echo/echo.c:113 msgid "Echo" msgstr "エコー" #: plugins/echo/echo.c:114 msgid "Apply an echo to selected regions of a sample" msgstr "エコーをサンプルã®é¸æŠžé ˜åŸŸã«é©ç”¨ã€‚" #: plugins/normalise/normalise.c:128 plugins/normalise/normalise.c:133 msgid "Normalise" msgstr "標準化" #: plugins/normalise/normalise.c:134 msgid "Alter the sample's amplitude to lie between 1.0 and -1.0" msgstr "ã‚µãƒ³ãƒ—ãƒ«ã®æŒ¯å¹…ã‚’1.0ã¨-1.0ã®é–“ã«å¤‰æ›´ã™ã‚‹" #: plugins/reverse/reverse.c:129 plugins/reverse/reverse.c:134 #: plugins/reverse/reverse.c:140 msgid "Reverse" msgstr "å転" #: plugins/reverse/reverse.c:141 msgid "Reverse selected regions of a sample" msgstr "サンプルã®é¸æŠžé ˜åŸŸã‚’å転" #: plugins/example/example.c:37 plugins/example/example.c:86 msgid "With a fork" msgstr "フォークã§" #: plugins/example/example.c:38 msgid "With a spoon" msgstr "スプーンã§" #: plugins/example/example.c:39 msgid "With false teeth" msgstr "入れ歯ã§" #: plugins/example/example.c:40 msgid "With Nigel's bum" msgstr "ãƒŠã‚¤ã‚¸ã‚§ãƒ«ã®æ”¾æµªè€…ã§" #: plugins/example/example.c:56 msgid "Flim" msgstr "5ãƒãƒ³ãƒ‰æœ­" #: plugins/example/example.c:57 msgid "Should you manage your flim?" msgstr "5ãƒãƒ³ãƒ‰æœ­ã‚’管ç†ã—ã¾ã™ã‹ï¼Ÿ" #: plugins/example/example.c:64 msgid "Beans" msgstr "豆" #: plugins/example/example.c:65 msgid "Method of eating beans" msgstr "豆を食ã¹ã‚‹æ–¹æ³•" #: plugins/example/example.c:72 msgid "Pants methodology" msgstr "パンツ方法論" #: plugins/example/example.c:73 msgid "How many pants should you wear per day?" msgstr "1日ã«ä½•æžšã®ãƒ‘ンツをã¯ãã¾ã™ã‹ï¼Ÿ" #: plugins/example/example.c:122 plugins/example/example.c:129 msgid "Example Filter Region" msgstr "フィルタ領域ã®ä¾‹" #: plugins/example/example.c:130 msgid "An example filter region plugin" msgstr "フィルタ領域プラグイン" #: plugins/fade/fade.c:148 plugins/fade/fade.c:161 msgid "Fade in" msgstr "フェードイン" #: plugins/fade/fade.c:156 plugins/fade/fade.c:177 msgid "Fade out" msgstr "フェードアウト" #: plugins/fade/fade.c:162 msgid "Apply a linear fade to the selection, fading in from silence" msgstr "線形フェードをセレクションã«é©ç”¨ã™ã‚‹ã€‚無音ã‹ã‚‰ãƒ•ェードイン。" #: plugins/fade/fade.c:178 msgid "Apply a linear fade to the selection, fading out to silence" msgstr "線形フェードをセレクションã«é©ç”¨ã™ã‚‹ã€‚無音ã¸ãƒ•ェードアウト。" #~ msgid "Sweep: Load file" #~ msgstr "Sweep: ファイルをロード" #~ msgid "Go to beginning [Ctrl+Home]" #~ msgstr "最åˆã«è¡Œã [Ctrl+Home]" #~ msgid "Go to the end [Ctrl+End]" #~ msgstr "最後ã«è¡Œã [Ctrl+End]" #~ msgid "About Sweep" #~ msgstr "Sweepã«ã¤ã„ã¦" #~ msgid "Channels:" #~ msgstr "ãƒãƒ£ãƒ³ãƒãƒ«ï¼š" #~ msgid "Mono (mixdown)" #~ msgstr "モノラル(ミックスダウン)" #~ msgid "Stereo (duplicate)" #~ msgstr "ステレオ(複製)" #~ msgid "Bitwidth:" #~ msgstr "ビット幅:" #~ msgid "8 bit" #~ msgstr "8 ビット" #~ msgid "16 bit" #~ msgstr "16 ビット" #~ msgid "24 bit" #~ msgstr "24 ビット" #~ msgid "32 bit" #~ msgstr "32 ビット" sweep-0.9.3/po/quot.sed0000644000175000017500000000023110777660173013501 0ustar userusers/"\([^"]*\)"/“\1â€/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“â€/""/g sweep-0.9.3/po/de.gmo0000644000175000017500000012477110777670577013141 0ustar useruserÞ•¼Å\!p,9q,;«,-ç,0-F-$^- ƒ-"- °-(º-ã-ú-.+.8D.F}.Ä.×.#í.//./(2/&[/‚/…/ˆ/‹/‘/¥/µ/¾/ Å/Ï/ã/ê/8î/'0<G0;„0-À0Yî0H1O1W1^1e1l1s1z11ˆ11—19œ1NÖ1"%2H2X2[2^2a2e2i2m2s2 2 ™2 ¤2±2µ2¹2½2À2Ã21Æ2'ø2 3'3=.3l3 u3€3 †3&3·3Ë3Û3 á3î3 4' 4–H4ß4è4 ù45 #5-5=5B5H^5 §5²5¹5É5à5 å5ï5 6!6=6D6M6Q6l6p6s6v67y6 ±6 ¾6Ì6è6 î6ú67!7*707 77 D7P7e7 v7‚7 ›7 §7´7 Ä7Î7 Þ7é7 ø7 888 (8 28S8l8†8 š8 ¤8¯8²8µ8¸8¼8À8Å8Ê8á8ç8 9"9+9„@9bÅ9(: ::D:"M:p:‰:¡:&³:%Ú:; ;¹#;Ý;ã;ç;ë;ï;ò;õ;ø;þ;< << !< -<;<O< U< `< n<|<w<ù<=== ====(=mC=±=¸=È=Ú=î=> >&>7>=>kM>¹>¾>'Ü>?’?š?© ?_J@ª@½@Ö@ Ý@ê@ û@Ah ALuAÂBËB ÞBéB!C "C4,CaC}CšC¶CÓC êC÷CDD-D6DMD^DoDsD„DŠD›D«D°DµDÎDFæD-E%3EYE]EeEnE ~EŒE[¥EFF,F@FWFoF‹F ‘FœF³F ¸F ÂFÍFáFñF^G`GcGeG åGðGu Hv€H÷HüH I I I,IfnRf>Ág@h1Ah<sh°h"Îh ñh#ûh i))iSiki„ižiSºiRjajuj'’jºj¼j×j.Ûj, k7k:k=k@kIk ck nk|kƒk—k±k¸k2¾k!ñk7l7Kl&ƒl{ªl&m /m9mBmKmTm]mfmomxm m‹mFmQ×m*)nTnnnqntnwnzn}n€n‡n šn ¦n±nÂnÇnÌnÑnÔn×n5Ún&o7o ?oLJo—ožo §o³o7Âoúo p !p +p6pRp*jp •p6q?q Sq!aq ƒq qšq$£qIÈq rr&r9r Pr \rgr‚r•r®r½r Ír(Úrss ssFsXsgs*ws¢s ©s&µsÜsësüs t t"t't ;t HtStpt€tt ¡t¯tÃtÓtëtût uu )u 5uVupuŒu£uªu²uµu¸u»u¿uÃu ÈuÓuçuìu v &v0vGvlÉv6w JwUw'gw w!°wÒw/æw*xAxXxÜhxEyKyPyUyZy]y`ycy jy uy€yˆyŽyŸy±yÈyÏy×yéy zˆz˜z¡z¦z«z°z³z¶z ¹z;Åz{{}{„{–{«{È{Ü{ô{| ||x1|ª|#°|)Ô|þ|¡}£}¶©}]`~¾~"Ñ~ ô~&,u2c¨ -5&Nu<z·Î#æ% ‚0‚ M‚X‚i‚{‚ ’‚œ‚´‚ƂՂقð‚÷‚ ƒƒ ƒ,ƒAƒHVƒŸƒ#¥ƒɃ̓ Õƒ⃠óƒ„W„s„„©„Ƅ߄.û„*…3…B…Z… a… o…|…‘…¨…TÅ…††{=† ¹†ÆpÛ†rL‡¿‡ Ƈ ч Þ‡ ì‡ú‡ ˆ ˆ ˆ -ˆ7ˆ @ˆ Mˆ Zˆeˆ uˆ€ˆ ‰ˆ8”ˆ5͈8‰<‰B‰H‰ X‰žd‰ŠŠ"Š 4Š>Š]ŠsŠ‹Š”Š±Š ŠΊàŠïŠ øŠ‹"‹+‹4‹L‹S‹ g‹t‹ˆ‹ ‘‹ ‹!«‹Í‹à‹ø‹MŒ_ŒË|ŒHŽ`ŽuދޤޏŽÎŽ"éŽ 67P@ˆBÉ2 ?IRmˆ£¶Ñïøÿ ‘ ‘ ‘ &‘ 3‘=‘P‘a‘~‘ ‘‘ž‘¤‘s«‘’'’7’#R’v’/‡’·’ Í’Û’ê’“"“2“0A“-r“, “2Í“(”8)”b”y”!‘”$³”"Ø”û” •y•’•X™•jò•]–ß–ï– —›&——Ô—Û—à— ó—ÿ—˜'/˜W˜]˜ v˜„˜£˜»˜Ú˜ø˜™")™L™h™z™Š™£™Á™Ø™ö™šôšÿ›(œŽ9œ!Ȝꆞ¬ˆž˜5ŸëΟJº ‰¡ ¡ ›¡¨¡¯¡¾¡ ΡÛ¡ö¡ ¢¢,¢ <¢#G¢ k¢$u¢(š¢Lâp£K£ÁÍ£¤¢¤¹¤.ؤ7¥?¦+H¦t¦|¦Œ¦C¦á¦0÷¦J(§s§*…§°§çÓ§ä§4ø§+-¨Y¨ ^¨ i¨u¨ÙЍ d© p©|©…©•©¨©¬© ³©À©Þ©ã©Qud}5Ëlža€÷`‘ÌñœÓ{…Ø"ãXà|r°3GHI‡×F.Ïc剆_Æëdí)óÊðò‡Þá?@A‚Egqçˆ=•#¸¹º‰ Çý4nÔNËnL¡%Ú}ššú ;½ÍÀ§£]%꟠f÷ã˜ÂkÍ„ˆ+e È9Å «y¨cœ¢'8&ÎWÉ\RJ…ÿªÐ_ô¯B¿2E gæA<³Z@á] ré¾|ÜÕvÄC7ª&å èU Ìè(¯sPÖÿµþ‚ë ¿›Õç¾êû6#muØü¥ ­h1Ñ q›ƒ-[‹âÊøxÞ¢ÏÄ\D’[-ÚóÈ€‹Ü·iGO—άPäïÝðÒ+h?•!:é7VÀjÉàþ¦S;(<=>C“©ýwZ´I¤¥JKL¬ìäzK^vwxjíS,,./012345!9ò¼ÖDÁ¶»¼½$>YmbâæÐÑÒŽƒFŠ©—‘™ «î6H~±µüÅ Ó* ³b~VûÓp"Nö±Ão–W*²­Û^z¦ùŸ¶ßÙMÁõpM§¸–™ ´·ôByR’†°ñe”YT$ ÛŒ£¨TÆ¡˜oQù)aÂløì×¹žX®”¤® '„öÔúÙŽ8`Ofk{tõº:Ý Št/ß»Ui0sïÇ --display Use the designated X display. --no-toolbox Do not show the toolbox window. -h --help Output this help. -v --version Output version info. 4000 Hz (Low quality) 8000 Hz (Narrowband voice quality) 11025 Hz 16000 Hz (Wideband voice quality) 22050 Hz 32000 Hz (Ultra-wideband voice quality) 44100 Hz (CD quality) 48000 Hz (DAT quality) 96000 Hz (High quality)"Scrubby" the scrub tool%s has changed on disk. Are you sure you want to save?%s has changed on disk. Do you want to continue editing this buffer?%s does not exist.%s exists. Overwrite?%s has been modified. Close anyway?*192000 Hz (Studio quality)1:1A short text description of the contentsA short text indication of music genreA3A4A5AboutAbout MP3 export...About Sweep ...About...ActionAdd noiseAdd/Remove channelsAlbum:AllAlter the sample's amplitude to lie between 1.0 and -1.0An example filter region pluginApply a linear fade to the selection, fading in from silenceApply a linear fade to the selection, fading out to silenceApply an echo to selected regions of a sampleAre you sure you want to revert %s to %s? All changes and undo information will be lost.Area 1Area 10Area 2Area 3Area 4Area 5Area 6Area 7Area 8Area 9Artist:AutoAutomatically select best encoding options for this file.Automatically select the encoding mode based on the sampling rate of the file.Autoscroll: follow playback cursorAverage bitrateB3B4B5Bb3Bb4Bb5BeansBitrate management engineBlackwattleBluescreenBy extensionC#3C#4C#5C3C4C5CBR with VAD and Discontinuous Transmission (DTX)CBR with Voice Activity Detection (VAD)CancelCenterChanges to device settings will take effect on next playback.ChannelsChannels: ClearClipboardClipboard data has incompatible formatClipboard duration:Clipboard emptyCloseColor schemeConfigure audio device ...Constant bitrate (CBR)Constant bitrate (CBR) with no featuresContact information for the creators or distributors of the track. This could be a URL, an email address, the physical address of the producing label.Contact:Continue editingConversionConvert from %d to %d channelsConverterCoogee Bay BlueCopyCopy selection to clipboardCopyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'Copyright:CreateCreate new fileCreated %s/ mode %04o CropCrossfadeCurrent sample rate: %d HzCurrently: %d channelsCursor position (indicator)CustomCustom: CutCut selection to clipboardD#5D3D4D5DTX marks extended pauses with a minimum bitrate signalData memory:Data memory: Date the track was recordedDate:Decoder RedDecoding %s Encoded by: %s %sDefaultDefaultsDelayDeleteDescription:DestinationDetermine File Type:Device bufferingDevice nameDirectory does not existDon't closeDon't createDon't crossfadeDon't mixDon't overwriteDon't quitDon't resampleDon't revertDon't saveDoubleDouble selectionDuplicateDuplicate from %d to %d channelsDuplicate to %d channelsDuplicate to multichannelDuplicate to stereoDuration:Duration: E3E4E5Eb3Eb4EchoEditEdit PCM sample valuesEmptyEnable bitrate managementEnable bitrate management engineEncodingEncoding complexity:Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file) using variable bitrate mode (VBR).Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file).Encoding quality:Encoding:End gainEnergy level to detect [0.0 - 1.0]Error accessing ~/.sweepError creating ~/.sweepError on ~/.sweepError opening ~/.sweep/preferences.tdbError setting permissions on ~/.sweepExample Filter RegionExcellent!!!Export to MP3 format cannot legally be supported in free software due to patent licensing restrictions. Please use Ogg Vorbis format instead, which provides better quality and is free.ExtraF#3F#4F#5F3F4F5FALSEFade inFade outFast forwardFileFile existsFile modifiedFile properties ...File:Filename: Files playingFiles unsavedFlimFor non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For VBR encoding, this sets the average bitrate.FrigidG#3G#4G#5G3G4G5GainGain with which to mix in delayed signalGenerate a random serial number for the Ogg bitstream. The number will change while this button is held down.Genre:Go to beginningGo to end of fileGo to end of windowGo to start of fileGo to start of windowGo to the endHack the planet!HalveHalve selectionHello, my name is Scrubby. Welcome to Sweep! Would you like to create a new file or load an existing file?HelpHigh latency / Fewer dropoutsHow many pants should you wear per day?HzISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-content/online/isrc_intro.html) for more information on ISRC numbers.ISRC:Indicates the amount of data memory which will be allocated for the selected duration and format. All audio data is processed internally in 32 bit floating point format.Indicates the total duration of the clipboard, which is the maximum length that will be pasted.Insert selection [Invalid encoding optionsInvertInvert phaseInvert selectionLame YellowLeftLibsndfile is a C library by Erik de Castro Lopo for reading and writing files containing sampled sound.License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL to a license such as a Creative Commons license ("www.creativecommons.org/blahblah/license.html") or the EFF Open Audio License ('distributed under the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/eff_oal.html for details'), etc.License:Load existing fileLoading %sLocate sounds directlyLocation where track was recordedLocation:Longest length of sound above threshold to allow (s)Loop mode playback (toggle)Loop mode recording (toggle)Low latency / More dropoutsMP3 (Use Ogg Vorbis instead)MP3 export unsupportedMain device:Maximum bitrateMaximum bitrate:Maximum interruptionMetadataMethod of eating beansMinimum bitrate:Minimum durationMixMix down to monoMode:Monitor (toggle)Monitor output:MonoMoveMove regions in a sampleMuted playback (toggle)Name of the organization producing the track (i.e. the 'record label')Name:Narrowband ~8 kHz (telephone quality)NewNew ...New ViewNew sample rateNew selectionNo area remembered as %dNo files are unsaved, but some files are currently playing. Are you sure you want to quit?No selection to clearNo selection to copyNo selection to cutNo selection to deleteNo selection to processNo selection to record intoNoiseNoise toolNominal bitrate (ABR):NoneNormaliseNot stereoNothing to crop outNothing to redoNothing to undoNumber of Speex frames to pack into each Ogg packet. Higher values save space at low bitrates.OKOgg Vorbis encoding resultsOgg Vorbis is a high quality general purpose perceptual audio codec. It is free, open and unpatented.Ogg streamOgg stream serial number:Ogg, Speex, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.Ogg, Vorbis, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.OpenOpen ...OrangeboomOrganization:Original dataOutput channelsOverflowOverwritePants methodologyParametersPastePaste as NewPaste insertPaste mixPaste xfadePaste: CrossfadePaste: InsertPaste: MixPaste: fade clipboard in from cursor positionPaste: insert clipboard at cursor positionPaste: mix clipboard in from cursor positionPausePencilPencil toolPerformer:Place the play marker on a sample. Click anywhere in a view to instantly move the playback position to that part of the sample.Play notePlay samplePlay selectionPlaybackPlayback gain slider (volume)Powered by libsndfilePre-roll to CursorPreviewPreview Cut/CursorPrevious soundProcessProperties ...QuadraphonicQualityQuitRadarRandomise PCM valuesRandomize!Raw PCM (headerless)ReadyReady to recordRecord ...Record into selectionRecorded soundRedoRemember asRemember these encoding optionsRemember these optionsRemember this formatRemember this qualityRemember this sampling rate and channel configuration for creating new files.Remember this serial numberRemember this serial number for future re-use. USE OF THIS OPTION IS NOT RECOMMENDED. Each encoded file should have a different serial number; re-use of Ogg serial numbers in different files may create incompatabilities with streaming applications. This option is provided for bitstream engineering purposes only. If this option is not checked, new serial numbers will be randomly generated for each file encoded.Remembered as area %dRemove left channelRemove right channelReread from diskResampleResample ...Resample errorResample from %d Hz to %d HzResetReset to the last remembered device buffering.Reset to the last remembered device names.Reset to the last remembered encoding options.Reset to the last remembered format for new files.Reset to the last remembered quality.ResolutionReverseReverse mode (toggle)Reverse mode playback (toggle)Reverse selected regions of a sampleRevertRevert fileRevert to selected stateRewindRightSYNCSampleSampling rateSampling rate:Sampling rate: SaveSave As ...Save OptionsSave as %s cancelledSave as ...Saving %sScrubScrub!Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio by Erik de Castro Lopo SelectSelect allSelect by energySelect loud or quiet regionsSelect noneSelect regions above thresholdSelect regions of a sampleSelection leftSelection rightSelection: add/modify regionSelection: subtract regionSelector toolSet selection [Set the main device for playback and recordingSet to default device buffering.Set to default device names.Set to default encoding options.Set to default quality.Set to the default format for new files.Shift leftShift rightShortest region of selection to detect (s)Should you manage your flim?Show history ...Skip backSkip forwardSome files are unsaved. If you quit, all changes will be lost. Are you sure you want to quit?SourceSpecify a maximum bitrate, useful for streaming applications. (Optional)Specify a minimum bitrate, useful for encoding for a fixed-size channel. (Optional)Specify a nominal bitrate. Attempt to encode at a bitrate averaging this.Speex encodingSpeex encoding resultsSpeex frames per Ogg packet:Speex is a high quality speech codec designed for voice over IP (VoIP) and file-based compression. It is free, open and unpatented.Start gainStereoStopSubtract selection [SwapSwap channelsSwap left and rightSwap main and monitor devices.SweepSweep plugin API versionSweep versionSweep: Add/Remove channelsSweep: Duplicate channelSweep: File propertiesSweep: HistorySweep: Load Raw PCM optionsSweep: New fileSweep: Ogg Vorbis save optionsSweep: Paste crossfadeSweep: Paste mixSweep: RecordSweep: ResampleSweep: Save PCM optionsSweep: Save fileSweep: Speex save optionsSweep: audio device configurationTRUEThe artist generally considered responsible for the work. In popular music this is usually the performing band or singer. For classical music it would be the composer. For an audio book it would be the author of the original text.The artist(s) who performed the work. In classical music this would be the conductor, orchestra, soloists. In an audio book it would be the actor who did the reading. In popular music this is typically the same as the ARTIST and is omitted.The collection name to which this track belongsThe version field may be used to differentiate multiple versions of the same track title in a single collection. (e.g. remix info)This enables average bitrate mode (ABR). You must suggest a nominal average bitrate and may specify minimum and maximum bounds. For best results it is generally recommended that you use the variable bitrate 'encoding quality' control (above) instead.This is Sweep versionThis sets the encoding speed/quality tradeoff between 0 (faster encoding) and 10 (slower encoding)This slider allows you to mix the new recording in with the previous contents of the buffer. Set it to -inf dB to overwrite the previous sound.This slider allows you to reduce the level of the recorded sound. Set it to 0 dB to record without any reduction. Note that setting this to -inf dB will record silence.This tool allows you to select regions of a sample. You can then apply edits and effects to the: selected regions. Hold down shift whilst selecting to add discontinuous regions to the selection.This user interface by Conrad Parker, Copyright (C) 2002 CSIRO Australia. This user interface by Erik de Castro Lopo and Conrad Parker, Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO Australia. ThresholdTime to delay byTitle:Toggle loopingToggle monitoringToggle mutingToggle reverse playbackTrack/Work nameTransportUltra-wideband 32-48 kHzUnable to read %sUndoUnsupported encoding modeUntitledUsage: %s [option ...] [files ...] Use a different device for monitoringVAD generates low bitrate comfort noise to replace non-speechVBR allows the bitrate to adapt to the complexity of the speech, and handles pauses using VAD and DTXVBR allows the bitrate to adapt to the complexity of the speech.VBR allows the bitrate to adapt to the complexity of the speech; this selection uses VBR without DTX, which may improve performance compared to full VBR in the presence of background noise.Valid options are: Variable bitrate (VBR)Variable bitrate (VBR) with VADVariable bitrate (VBR) with all featuresVarying this slider controls the lag between cursor movements and playback. This is particularly noticeable when "scrubbing" during playback. Lower values improve responsiveness but may degrade audio quality on heavily-loaded systems.Version:Vertical zoom [Shift + Arrow Up/Down]ViewVisible lengthVorbis encodingWARNING: Build includes incomplete development code. Welcome to SweepWhen zoomed down to individual samples, click to editWhether to select those regions lying above a given threshold or below it.Wideband ~16 kHzWidth of energy detection window (s)With Nigel's bumWith a forkWith a spoonWith false teethWith this tool you can move selected regions of a sample.You are not allowed to write to %sZoomZoom allZoom inZoom in & outZoom in and out of a view. Click anywhere in a view to zoom in on that part of the sample. Hold down shift and click on the view to zoom out.Zoom normalZoom outZoom toZoom to selectionZoomed to area %dbpschannelshh:mm:ss.xxxhttp://sweep.sourceforge.net/kbpslibsamplerate errorProject-Id-Version: sweep-0.4.10 Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/ POT-Creation-Date: 2008-04-11 15:11+0100 PO-Revision-Date: 2003-04-29 18:24+1000 Last-Translator: Silvia Pfeiffer Language-Team: German MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit --display Ausgabe auf angegebenes X Display. --no-toolbox Das Werkzeugfenster nicht anzeigen. -h --help Ausgabe dieser Hilfe. -v --version Ausgabe der Versionsinformation. 4000 Hz (Niedrige Qualität) 8000 Hz (Engband Sprachqualität) 11025 Hz 16000 Hz (Weitband Sprachqualität) 22050 Hz 32000 Hz (Ultra-Weitband Sprachqualität) 44100 Hz (CD Qualität) 48000 Hz (DAT Qualität) 96000 Hz (Hohe Qualität)"Scrubby" das Scrubwerkzeug%s wurde auf der Festplatte verändert. Sind Sie sicher, daß Sie speichern möchten?%s wurde auf der Festplatte geändert. Soll der Puffer weiterhin editiert werden?%s existiert nicht.%s existiert. Überschreiben?%s wurde verändert. Trotzdem schließen?*192000 Hz (Studioqualität)1:1Eine kurze textuelle Beschreibung des Inhalts.Ein kurzer Text, der das Musik-Genre angibt.A3A4A5Über ...Über MP3 Unterstützung...Über SweepÜber sweep...AktionRauschen hinzufügenKanäle hinzufügen/löschenAlbum:AllesAmplitude auf Werte zwischen 1.0 und -1.0 anpassenPlugin Beispiel für Filter-RegionLineares Einblenden von Stille auf die Auswahl anwendenLineares Ausblenden auf Stille auf die Auswahl anwendenEcho auf das gewählte Segment anwendenSind Sie sicher, daß Sie von %s auf %s zurückgehen möchten? Alle Änderungen und Undo Informationen werden verloren gehen.Gebiet 1Gebiet 10Gebiet 2Gebiet 3Gebiet 4Gebiet 5Gebiet 6Gebiet 7Gebiet 8Gebiet 9Künstler:AutoAutomatisch die besten Kodierungseinstellungen für diese Datei wählen.Automatische Auswahl des Kodierungsmodus basierend auf der Abtastrate der Datei. Autoscroll: Abspielcursor verfolgen an/ausDurchschnittliche BitrateH3H4H5B3B4B5BohnenBitratenmanagementSchwarzwaldBluescreenNach DateiendungCis3Cis4Cis5C3C4C5CBR mit VAD und Diskontinuierlicher Übertragung (DTX)CBR mit Stimmaktivitätserkennung (VAD)AbbruchZentrierenÄnderungen der Geräte-Einstellungen werden bim nächsten Abspielen aktiviert.KanäleKanäle: AusradierenZwischenablageDaten im Zwischenspeicher haben kein kompatibles FormatClipboard Dauer:Zwischenspeicher leerSchließenFarbschemaAudiogerät konfigurieren...Konstante Bitrate (CBR)Konstante Bitrate (CBR) ohne EigenschaftenKontaktinformation für die Hersteller oder Verteiler des Stücks. Dies könnte eine URL, eine email Adresse, oder die physikalische Adresse der Plattenfirma sein.Kontakt:Weiterhin editierenKonvertierungVon %d auf %d Kanäle konvertierenKonvertiererAdriablauKopierenAuswahl in Zwischenspeicher kopierenCopyright Zuerkennung, z.B. '2001 Nobody's Band' oder '1999 Jack Moffitt'Copyright:ErzeugenNeue Datei anlegen%s/ mode %04o erzeugt ZuschneidenÜberblendeAktuelle Abtastrate: %d HzAktuell: %d KanäleCursorposition (Anzeige)Frei definiertFrei definiert:AusschneidenAuswahl in Zwischenspeicher ausschneidenDis5D3D4D5DTX markiert ausgedehnte Pausen mit einem Signal mit minimaler BitrateDatenspeicher:Datenspeicher: Datum, an dem das Stück aufgenommen wurde.Datum:Roter SturmDekodierung %s Kodierung durch" %s %sVoreinstellungVoreinstellungenZeitverzögerungLöschenBeschreibung:ZielDateityp bestimmen:GerätepufferGerätenameVerzeichnis existiert nicht.Nicht schließenNicht erzeugenNicht überblendenNicht mischenNicht überschreibenNicht abbrechenAbtastrate nicht ändernNicht verwerfenNicht speichernVerdoppelnAuswahl verdoppelnDuplizierenDuplizieren von %d auf %d KanäleDuplizieren auf %d KanäleAuf Multikanäle duplizierenAuf Stereo duplizierenDauer:Dauer: E3E4E5Es3Es4EchoBearbeitenPCM Werte verändernLeerBitratenmanagement aktivierenBitratenmanagement erlaubenKodierungKodierungskomplexität:Kodierqualität zwischen 0 (niedrigste Qualität, kleinste Date) und 10 (höchste Qualität, größte Datei) bei varibler Bitrate (VBR)Kodierungsqualität zwischen 0 (niedrigste Qualität, kleinste Datei) und 10 (höchste Qualität, größte Datei).Kodierungsqualität:Kodierung:And a nice dinnerZu erkennende Energiestärke [0.0 - 1.0]Fehler beim Zugriff auf ~/.sweepFehler beim Erzeugen von ~/.sweepFehler auf ~/.sweepFehler beim Öffnen von ~/.sweep/preferences.tdbFehler beim Setzen der Rechte auf ~/.sweepFilter-Region BeispielHervorragend!!!Export in MP3 Format kann aus Patentlizensrechtlichen Gründen nicht legal unterstützt werden in freier Software. Bitte benutzen Sie stattdessen das Ogg Vorbis Format, welches eine bessere Qualität bietet und frei ist.ExtraFis3Fis4Fis5F3F4F5FALSCHEinblendenAusblendenVorlaufDateiDatei existiert.Dabei modifiziertDateieigenschaften ...Datei:Datei: Dateien abspielenNicht gespeicherte DateienDideldidumFür nicht-VBR (konstante Bitrate) Kodierung setzt dies die maximale Bitrate. Für VBR Kodierung setzt dies die durchschnittliche Bitrate.EisblockGis3Gis4Gis5G3G4G5VerstärkungVerstärkung mit der das zeitverzögerte Signal gemischt wirdErzeuge eine zufällige Seriennummer für den Ogg Bitstrom. Die Nummer wird sich ändern während dieser Knopf gedruckt bleibt.Genre:Sprung zum AnfangSprung ans DateiendeSprung ans Ende des FenstersSprung an DateiendeSprung an FensteranfangSprung zum EndeHack the planet!HalbierenAuswahl halbierenHallo, ich heiße Scrubby. Willkommen bei Sweep! Möchten Sie eine neue Datei anlegen oder eine existierende Datei laden?HilfeHohe Verzögerung / Weniger AusfälleWieviele Hosen sollte man pro Tag tragen?HzISRC Nummer für das Stück; siehe die ISRC Einführungsseite (http://www.ifpi.org/site-content/online/isrc_intro.html) für weitere Informationen über ISRC Nummern.ISRC:Zeigt die Größe des Datenspeichers an, der für die gewählte Dauer- und Format-Kombination verwendet werden wird. Alle Audiodaten werden intern in 32 bit Fließkommaformat verarbeitet.Zeigt die komplette Länge der Zwischenablage an, welches die maximale Einzufügende Länge ist.Auswahl einfügen [Nicht zulässige KodierungsoptionenInvertierenPhase invertierenAuswahl invertierenBlondLinksLibsndfile ist eine C Bibliothek von Erik de Castro Lopo zum Lesen und Schreiben von Dateien mit abgetastetem Schall.Lizenzinformation, z.B. 'Alle Rechte Reserviert', 'Jegliche Benutzung Erlaubt' eine URL zu einer Lizenz wie der Creative Commons Lizenz ("www.creativecommons.org/blahblah/license.html") oder die EFF Open Audio Lizenz ('verteilt under den Bedingungen der Open Audio Lizenz. Für weitere Details siehe http://www.eff.org/IP/Open_licenses/eff_oal.html'), etc.Lizenz:Existierende Datei ladenLade %sDirektzugriff auf SoundsOrt an dem das Stück aufgenommen wurdeOrt:Längste erlaubte Unterbrechung oberhalb des Schwellwerts (s)Abspielschleife an/ausAufnahmeschleife an/ausGeringe Verzögerung / Mehr AusfälleMP3 (verwende Ogg Vorbis stattdessen)MP3 Export nicht unterstütztHauptgerätMaximale BitrateMaximale Bitrate:Maximale UnterbrechungMetadatenMethode zum BohnenessenMinimale Bitrate:Minimale DauerMixAuf Mono runtermischenModus:Vorhören (an/aus)Ausgabe vorhören:MonoVerschiebenSegmente verschiebenStummschalter an/ausName der Organisation, die das Stück herstellt (i.e. die 'Plattenfirma')Name:Schmalband -8 kHz (Telefonqualität)NeuNeu ...Neue AnsichtNeue Abtastrate:Neue AuswahlKein Gebiet %d gespeichertAlle Dateien sind gespeichert, aber einige werden noch abgespielt. Wirklich abbrechen?Keine Auswahl auszuradierenKeine Auswahl zu kopierenKeine Auswahl auszuschneidenKeine Auswahl zu löschenKeine Auswahl zu bearbeitenKeine Auswahl in die aufgenommen werden könnteRauschenRauschwerkzeugNominale Bitrate (ABR):NichtsNormalisierenNicht StereoNichts zuzuschneidenNichts zum WiederholenNichts zum Rückgängig machenAnzahl Speex Rahmen pro Ogg Paket. Höhere Werte sparen Platz bei niedrigen Bitraten.OKOgg Vorbis KodierungsergebnisseOgg Vorbis ist ein wahrnehmungsbasierter, genereller, hoch qualitativer Audio-Codec. Es ist frei, offen und ohne Patente.Ogg StromSeriennummer Ogg Strom:Ogg, Speex, Xiph,org Foundation und ihre Logos sind Trademarks (TM) der Xiph.org Foundation. Verwendung erlaubt.Ogg, Vorbis, Xiph.org Foundation und ihre Logos sind Trademarks (TM) der Xiph.org Foundation. Verwendung erlaubt.ÖffnenÖffnen ...OrangenblüteOrganisation:OriginaldatenAusgabe-KanäleÜberflußÜberschreibenHosenmethodeParameterEinfügenNeu einfügenNeu einfügenEinmischenKreuzeinblendenEinblendenEinfügenEinmischenEinfügen: Zwischenspeicher von Cursorposition einblendenEinfügen: Zwischenspeicher an Cursorposition einfügenEinfügen: Zwischenspeicher von Cursorposition einmischenPauseStiftZeichenwerkzeugDarsteller:Zum sofortigen Wechseln der Abspielposition eines Samples mit der Mausauf die gewünschte Aufnahme im entsprechenden Fenster an der gewählten Position klicken.Note abspielenDatei abspielenAuswahl abspielenAbspielenAbspielverstärker (Lautstärke)Powered by libsndfileZurückrollen bis CursorVorschauVorschau Ausschneiden/CursorVorheriger SoundVerarbeitenEigenschaften ...QuadrophonischQualitätVerlassenRadarPCM Werte auf Zufallszahlen setzenWürfeln!Rohes PCM (ohne Header)BereitBereit zur AufnahmeAufnahme ...Aufnahme in AuswahlAufnahmeWiederholenSpeichern alsSpeichere KodierungseinstellungenOptionen speichernDieses Format speichernDiese Qualität speichernDiese Abtastrate und Kanalkonfiguration zum Erzeugen neuer Dateien speichern.Diese Seriennummer speichernSpeichere diese Seriennummer für spätere Zwecke. EINSATZ DIESER OPTION WIRD NICHT EMPFOHLEN. Jede kodierte Datei sollte eine andere Seriennummer bekommen; di Wiederverwendung von Ogg Seriennummern in verschiedenen Dateien kann zu Inkompatibilitäten mit Streaming Anwendungen führend. Diese Option dient ausschließlich zum Anpassen des Bistroms. Falls diese Option nicht ausgewählt wird, wird für jede kodierte Datei eine neue Seriennummer zufällig ausgewählt.Als Gebiet %d speichernLinken Kanal löschenRechten Kanal löschenVon Festplatte nachladenAbtastrate änderungAbtastrate ändern ...AbtastratenänderungsfehlerResample zwischen %d Hz und %d Hz.ZurücksetzenAuf zuletzt gespeicherte Gerätepufferung zurücksetzen.Auf die zuletzt gespeicherten Gerätenamen zurücksetzen.Auf die zuletzt gespeicherte Kodierungseinstellung zurücksetzen.Auf das zuletzt gespeicherte Format für neue Dateien zurücksetzen.Auf die zuletzt gespeicherte Qulität zurücksetzen.AuflösungUmkehrenRückwärts abspielen an/ausRückwärts abspielen an/ausAusgewählte Werte umkehrenÄnderung verwerfenDatei-Änderungen verwerfenAusgewählte Aktionen umkehrenRücklaufRechtsSYNCAudiodateiAbtastrateAbtastrate:Abtastrate: SpeichernSpeichern unter...SpeicheroptionenSpeichern unter %s storniertSpeichern unter...Speichere %sScrubScrub!Secret Rabbit Code (auch libsamplerate genannt) ist ein Abtastraten-Konvertierer für Audio von Erik de Castro Lopo AuswahlAlles auswählenAuswahl anhand der EnergieLaute oder leise Segmente auswählenNichts auswählenAuswahl von Bereichen oberhalb des SchwellwertsAuswahl von SegmentenAuswahl linksAuswahl rechtsAuswahl: hinzufügen/verändernAuswahl: Auswahl abziehenAuswahlwerkzeugNeue Auswahl [Wähle das Hauptgerät für Abspielen und AufnehmenAuf voreingestellten Gerätepuffer einstellen.Auf voreingestellten Gerätenamen einstellen.Auf voreingestellte Kodierungsoptionen einstellen.Auf voreingestellte Qualität einstellen.Auf voreingestelltes Format für neue Dateien einstellen.Nach links verschiebenNach rechts verschiebenMinimale Dauer eines Segments (s)Sollte man sein Dideldidum meistern?Bearbeitungsgeschichte anzeigen...ZurückspringenVoranspringenEinige Dateien sind noch nicht gespeichert. Wenn Sie sweep abbrechen gehen alle Änderungen verloren. Wirklich abbrechen?QuelleGben Sie eine maximale Bitrate an, die für Streaminganwendungen geeignet ist. (Optional)Geben Sie eine minimale Bitrate an, die zum Kodieren für einen Kanal fester Größe geeignet ist. (Optional)Geben Sie eine nominale Bitrate an. Es wird versucht, mit einer Bitrate, die im Durchschnitt die nominale darstellt, zu kodieren.Speex KodierungSpeex KodierungsergebnisseSpeex Rahmen pro Ogg Paket:Speex ist ein qualitativ howertiger Sprachkodierer entwickelt für voice over IP (VoIP) und Datei-basierte Kompression. Er ist frei, offen und ohne Patente.Nochmals anfangenStereoStopAuswahl abziehen [AustauschenKanäle austauschenRechts und Links austauschenHauptgerät und Vorhörgerät austauschen.SweepSweep Plugin API VersionSweep VersionSweep: Kanäle addieren/löschenSweep: Kanal verdoppelnSweep: Eigenschaften der DateiSweep: BearbeitungsgeschichteSweep: Rohe PCM-Optionen ladenSweep: Neue DateiSweep: Ogg Vorbis SpeicheroptionenSweep: Speicher ÜberblendenSweep: EinmischenSweep: AufnahmeSweep: Abtastrate ändernSweep: PCM-Optionen speichernSweep: Datei speichernSweep: Speex SpeicheroptionenSweep: AudiogerätekonfigurationWAHRDer Künstler, der generell als verantwortlich für das Werk zeichnet. In Popmusik ist dies gewöhnlich die aufführende Band oder der Sänger. Bei klassischer Musik wäre dies der Komponist. Bei einem Audiobuch wäre es der Author des Originaltextes.Der/die Künstler, der das Werk aufführte. In klassischer Musik wäre das der Dirigent, das Orchester und die Solisten. In einem Audiobuch wäre es der Vorleser. In Popmusik ist es typischerweise dieselbe Person wie der Künstler und wird deshalb weggelassen.Die Sammlung, zu der dieses Stück gehörtDas Versionsfeld kann zum Unterscheiden mehrerer Versionen des gleichen Stücks in einer einzigen Sammlung eingesetzt werden. (e.g. remix info)Ermöglicht Durchschnittlichen Bitratenmodus (ABR). Eine nominale Durchschnittsbitrate wird benötigt und minimale und maximale Grenzen können wahlweise angegeben werden. Für gute Resultate wird stattdessen generell die Variable Bitrate Kodierungsqualität Einstellung (siehe oben) empfohlen.Dies ist Sweep VersionDies setzt die Kodierungsgeschwindigkeit in Bezug zur Qualitzet, Werte zwischen 0 (schnellere Kodierung) und 10 (langsamere Kodierung)Dieser Schieber erlaubt es, die neue Aufnahme mit der vorherigen, noch im Puffer gespeicherten zu mischen. Stelle ihn auf -inf dB, um den vorherigen Sound zu überschreiben.Dieser Schieber erlaubt es, den Aufnahmelevel zu reduzieren. Setze ihn auf 0 dB, um ohne Reduktion aufzunehmen. Übrigens, -inf dB wird Stille aufnehmen.Dieses Werkzeug erlaubt es, Segmente auszuwählen. Änderungen und Effekte können dann auf die gewählten Segmente angewandt werden. Durch Halten der Shift-Taste beim Auswählen können mehrere unzusammenhängende Segmente ausgewählt werden.Benutzerinterface von Conrad Parker, Copyright (C) 2002 CSIRO Australia. Benutzerinterface von Erik de Castro Lopo und Conrad Parker, Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO Australia. SchwellwertVerzögern umTitel:Looping an/ausVorhören an/ausStumm an/ausRückwärts abspielen an/ausStück/ArbeitsnameTransportUltra-Breitband 32-48 kHz%s nicht lesbarRückgängigNicht unterstützter Kodierungmodus.UnbenanntAufruf: %s [Option ...] [Datei ...] Ein anderes Gerät zum Vorhören einsetzenVAD generiert Grundrauschen mit niedriger Bitrate im Falle von Nicht-SpracheVBR erlaubt es, die Bitrate an die Komplexität der Sprachsignale anzupassen, und handhabt Pausen mit VAD und DTXVBR erlaubt die Anpassung der Bitrate an die Komplexität der Sprachsignale.VBR erlaubt es, die Bitrate an die Komplexität der Sprache anzupassen. Diese Auswahl verwendet VBR ohne DTX, was die Leistung im Vergleich zu voller VBR bei Hintergrundrauschen verbessern kann.Gültige Optionen: Variable Bitrate (VBR)Variable Bitrate (VBR) mit VADVariable Bitrate (VBR) mit allen EigenschaftenÄnderungen dieses Balkens kontrollieren die Verzögerung zwischen dem Bewegen des Cursors und dem Abspielen. Beim "scrubbing" während des Abspielens ist die Verzögerung am auffälligsten. Niedrigere Werte erhöhen die Empfindlichkeit, aber können auf stark belasteten Systemen auch die Tonqualität verschlechtern.Version:Vertikaler Zoom [Shift + Pfeil hoch/runter]AnsichtSichtbare LängeVorbis KodierungWARNUNG: Installation beinhaltet Quellcode im Entwicklungszustand. Willkommen bei Sweep.Bei Abtastwertauflösung zum Bearbeiten anklickenOb man den Bereich über- oder unterhalb des Schwellwerts auswählen möchte.Breitband -16 kHzBreite des Analysefensters für Energie (s)Mit Nigels HinternMit einer GabelMit einem LöffelMit flaschen ZähnenDieses Werkzeug erlaubt es, Segmente zu verschieben.Sie haben keine Rechte, auf %s zu schreibenZoomZoom allesZoom hineinZoom hinein & herausDieses Werkzeug erlaubt es, ine eine Ansicht hinein zu zoomen oder aus ihr heraus zu zoomen. Durch Mausklick wird die Stelle zum Hineinzoomen ausgewählt. Durch Halten der Shift-Taste beim Mausklick wird herausgezoomt.Zoom normalZoom herausZoom aufZoom in AuswahlZoom auf Gebiet %dbpsKanälehh:mm:ss.xxxhttp://sweep.sourceforge.net/kbpslibsamplerate anchoirsweep-0.9.3/po/ja.gmo0000644000175000017500000013641310777670600013122 0ustar useruserÞ•ÄÏl!¨,9©,úã,;Þ--.0H.y.$‘. ¶."À. ã.(í./-/E/^/8w/F°/÷/ 0# 0D0F0a0(e0&Ž0µ0¸0»0¾0Ä0Ø0è0ñ0 ø01118!1Z1<z1;·1-ó1Y!2{2‚2Š2‘2˜2Ÿ2¦2­2´2»2Â2Ê29Ï2N 3"X3{3‹3Ž3‘3”3˜3œ3 3¦3 À3 Ì3 ×3ä3è3ì3ð3ó3ö31ù3'+4S4Z4=a4Ÿ4 ¨4³4 ¹4&Ã4ê4þ45 5!5<5'S5–{566 ,676 V6`6p6u6H‘6 Ú6å6ì6ü67 7"7=7T7p7w7€7„7Ÿ7£7¦7©77¬7 ä7 ñ7ÿ78 !8-8L8T8]8c8 j8 w8ƒ8˜8 ©8µ8 Î8 Ú8ç8 ÷89 99 +9 89C9J9 [9 e9†9Ÿ9¹9 Í9 ×9â9å9è9ë9ï9ó9ø9ý9:: 4:U:^:„s:bø:[; m;w;"€;£;¼;Ô;&æ;% <3< I<¹V<===="=%=(=+=1=9= B=O= T= `=n=‚= ˆ= “= ¡=¯=w´=,>3>7>;>?>B>E>H>(M>mv>ä>ë>û> ?!?5? K?Y?j?p?k€?ì?ñ?'@7@’:@Í@©Ó@_}AÝAðA B BB .B:Bh?BL¨BõCþC DD!3D UD4_D”D°DÍDéDE E*E:EKE`EiE€E‘E¢E¦E·E½EÎEÞEãEèEFFF`F%fFŒFF˜F¡F ±F¿F[ØF4GJG_GsGŠG¢G¾G ÄGÏGæG ëG õGHH$H^4H“H–He²H I#Iu=Iv³I*J/J 8J CJ QJ_JoJ xJ‚J ”JŸJ ¥J ²J ¿J ÉJÕJ æJ ôJ-ÿJ*-K,XK…K‹K ’K žK©K )L 3L?LNLWLuL‹LžL¦L¹LÈLÐL ßLìLôLùLÿL MM4M:M JMUMkMzM M‹M«MÂM×MMíM;NWNõO PP4PEP NP[PjP‡P.P*¼P.çP2Q%IQ oQzQ‚Q˜Q$·QÜQ ãQïQRRRR !R/R>RNR SR _RlR R R—RRc¤RS SS+S HSTSsSŽSS­SÊS åSóS.T 2TST pT‘T(©T ÒT ÝT*éTU1U BU LU^YU¸UH¿USVI\V¦VµVÌVƒéV mWxWW„W™W žW¬WÀWßWåW þW X'X@XWXfX‚X’X±XÈX ÙXçX÷XY Y!:Y\YæaYðHZ/9[‚i[úì[ç\bý\`]¨ð]™^K\_‹¨_ 4`>`O`V`e` w`…`` ­`·`Ð`â`ç`a# a%.a=Tae’a@øa½9b÷b c"c(BcëkcWd%`d†d‹dšd5ªdàd6ñdJ(ese$„e©e ºe ÆeÓe9äe"fAfFfOf Wfef ófÿfgg"g4g8g AgNglgqga…gCçh;+iUgj7½j=õj3kIk ekok ‹k'•k½kÒkèk"þkQ!lbslÖl0ïl3 mTmVmum$ym$žmÃmÆmÉmÌm'âm nn5nEn[n{n ‹n7•n!ÍnZïnZJo3¥ogÙoAp Jp Xp cp np yp „p p šp ¥p°pÃpQÊpcq4€qµqÎqÑqÔq×qÛqßqãq$çq r"r;rKrOrSrWrZr]r'`r$ˆr­r½rHÄr ss 0s:sNPs-Ÿs!Ís ïsùs't!7t-Yt¨‡t 0u=uPu%Wu}uu ©u<³uSðu DvQvXvwvŽvžv'´vÜv*÷v "w/w ?w<Lw‰www“wZ–wñwxx 6x@x-Vx„x”x¤x«x²x ¹xÃx!âxy'yŒKŒjŒ6†Œ½Œ3M30µ0æ0Ž0HŽ yŽƒŽ$–Ž»Ž ÂŽÌŽ-ÜŽ' $2†WÞ áž¡(µ“Þ“r‘’ ’’ -’7’P’f’ |’†’™’ ©’¶’Ì’å’û’%“A“X“Ru“CÈ“L ” Y”f”m” }”ºŠ”E•U•k•‡•'Ž•¶•Ë•ê•(ú• #–-–4–G–Z–a– h–r–‘–ª– É–!Ö– ø–—— 1—;—'T—$|—'¡—É—iå—!O˜“q˜››;›!W›y›‰›œ›%µ› Û›Kè›64œBkœW®œ*1J!Q-s$¡ÆÍã ùž ž žž8žUžtž{ž—ž-°žÞžúž ŸŸ'Ÿ·Ÿ ¾ŸÈŸ'០ ' $A f ‚ ,ž +Ë ÷  ¡-+¡?Y¡'™¡6Á¡!ø¡Q¢l¢|¢:Œ¢%Ç¢í¢ý¢£•&£ ¼£„Æ£“K¤{ߤ[¥p¥,‹¥Ó¸¥Œ¦ œ¦©¦#°¦ Ô¦!ᦧ6§S§'Y§§&—§¾§"Þ§ ¨(¨8¨'R¨(z¨£¨ èѨ"è¨ ©!(©+J©v©z©ƒª0¡«ÒÒ«_¥¬®˜#®®¼®ík¯Y°pn±¯ß± ² œ²©²¹²!Ò²ô²³,³C³J³j³ ³6޳ų7̳*´o/´—Ÿ´W7µµ§¶!Ŷ*ç¶0·GC·‹¸,ž¸˸ Ò¸ܸIó¸=¹]R¹f°¹º+)ºUºtº„º ”ºN¡º4ðº %»/»B»$R»Õw»M¼]¼ p¼z¼™¼°¼´¼ ļѼï¼ô¼Ñ…Œ¸n¤¿ µö©/+&¥ ØÜ™$qÖzL5x_ì :‰ ÂeWÙÞN°< -à˜½ÅÊÿ ”!Tî—d€Ðj9ÛZPVŸ`ÐEwákÅ;ðq3h‘°‚JX£ã¨À0ïCv´ªÈ)ú‡Eaà˜÷ píŽåz’Ýv¶(rî`¶Pý£ ùÚƒ–›V>%%TlYñi®›æ1²~yÏ’®~"_Cb:ð„¤ss .ÇÆž;<¨±ˆ ”ÒïÊnß±mù{…O[IR-/23456•ÌZüÁ‘³\,ê#Q^ërÉöÿc¹\J7"}96ßÔoUÕo^ p­ƒú g]Ù“Î2¬=>?¯œä j}ºKLM¡ëªœ?N´=ÓwxyXÉfé¦YŠ)‚À|RžŸ MätÜ.Ƽ½¾ÃÛ Ô]G×ÑÒÓæò'õó‹Žóµ§øHDl|×8kýâiļ&‰³HIGO¿8hˬ—4{Œç  šFñ“@ABí©·ô¢@幺»ôS!û‹Î(¯²Ä¢ÕÞá§ ¡ÝâuØÖ¾Í馀¥7ÁF¸g*ò+Sf,ì[d„šãøe*ç m­è«$ˆþÌUQb‡÷'õut†•W·–†Ka«Ã™Í#cBŠÚ»01üÇDêèûÏþAËÈ --display Use the designated X display. --ignore-failed-lock Continue when attempt to lock the preferences file fails. For use when the users home directory is on an NFS file system. (possibly unsafe) --no-toolbox Do not show the toolbox window. -h --help Output this help. -v --version Output version info. 4000 Hz (Low quality) 8000 Hz (Narrowband voice quality) 11025 Hz 16000 Hz (Wideband voice quality) 22050 Hz 32000 Hz (Ultra-wideband voice quality) 44100 Hz (CD quality) 48000 Hz (DAT quality) 96000 Hz (High quality)"Scrubby" the scrub tool%s has changed on disk. Are you sure you want to save?%s has changed on disk. Do you want to continue editing this buffer?%s does not exist.%s exists. Overwrite?%s has been modified. Close anyway?*192000 Hz (Studio quality)1:1A short text description of the contentsA short text indication of music genreA3A4A5AboutAbout MP3 export...About Sweep ...About...ActionAdd noiseAdd/Remove channelsAlbum:AllAlter the sample's amplitude to lie between 1.0 and -1.0An example filter region pluginApply a linear fade to the selection, fading in from silenceApply a linear fade to the selection, fading out to silenceApply an echo to selected regions of a sampleAre you sure you want to revert %s to %s? All changes and undo information will be lost.Area 1Area 10Area 2Area 3Area 4Area 5Area 6Area 7Area 8Area 9Artist:AutoAutomatically select best encoding options for this file.Automatically select the encoding mode based on the sampling rate of the file.Autoscroll: follow playback cursorAverage bitrateB3B4B5Bb3Bb4Bb5BeansBitrate management engineBlackwattleBluescreenBy extensionC#3C#4C#5C3C4C5CBR with VAD and Discontinuous Transmission (DTX)CBR with Voice Activity Detection (VAD)CancelCenterChanges to device settings will take effect on next playback.ChannelsChannels: ClearClipboardClipboard data has incompatible formatClipboard duration:Clipboard emptyCloseColor schemeConfigure audio device ...Constant bitrate (CBR)Constant bitrate (CBR) with no featuresContact information for the creators or distributors of the track. This could be a URL, an email address, the physical address of the producing label.Contact:Continue editingConversionConvert from %d to %d channelsConverterCoogee Bay BlueCopyCopy selection to clipboardCopyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'Copyright:CreateCreate new fileCreated %s/ mode %04o CropCrossfadeCurrent sample rate: %d HzCurrently: %d channelsCursor position (indicator)CustomCustom: CutCut selection to clipboardD#5D3D4D5DTX marks extended pauses with a minimum bitrate signalData memory:Data memory: Date the track was recordedDate:Decoder RedDecoding %s Encoded by: %s %sDefaultDefaultsDelayDeleteDescription:DestinationDetermine File Type:Device bufferingDevice nameDirectory does not existDon't closeDon't createDon't crossfadeDon't mixDon't overwriteDon't quitDon't resampleDon't revertDon't saveDoubleDouble selectionDuplicateDuplicate from %d to %d channelsDuplicate to %d channelsDuplicate to multichannelDuplicate to stereoDuration:Duration: E3E4E5Eb3Eb4EchoEditEdit PCM sample valuesEmptyEnable bitrate managementEnable bitrate management engineEncodingEncoding complexity:Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file) using variable bitrate mode (VBR).Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file).Encoding quality:Encoding:End gainEnergy level to detect [0.0 - 1.0]Error accessing ~/.sweepError creating ~/.sweepError on ~/.sweepError opening ~/.sweep/preferences.tdbError setting permissions on ~/.sweepExample Filter RegionExcellent!!!Export to MP3 format cannot legally be supported in free software due to patent licensing restrictions. Please use Ogg Vorbis format instead, which provides better quality and is free.ExtraF#3F#4F#5F3F4F5FALSEFade inFade outFast forwardFileFile existsFile modifiedFile properties ...File:Filename: Files playingFiles unsavedFlimFor non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For VBR encoding, this sets the average bitrate.FrigidG#3G#4G#5G3G4G5GainGain with which to mix in delayed signalGenerate a random serial number for the Ogg bitstream. The number will change while this button is held down.Genre:Go to beginningGo to end of fileGo to end of windowGo to start of fileGo to start of windowGo to the endHack the planet!HalveHalve selectionHello, my name is Scrubby. Welcome to Sweep! Would you like to create a new file or load an existing file?HelpHigh latency / Fewer dropoutsHow many pants should you wear per day?HzISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-content/online/isrc_intro.html) for more information on ISRC numbers.ISRC:Indicates the amount of data memory which will be allocated for the selected duration and format. All audio data is processed internally in 32 bit floating point format.Indicates the total duration of the clipboard, which is the maximum length that will be pasted.Insert selection [Invalid encoding optionsInvertInvert phaseInvert selectionLame YellowLeftLibsndfile is a C library by Erik de Castro Lopo for reading and writing files containing sampled sound.License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL to a license such as a Creative Commons license ("www.creativecommons.org/blahblah/license.html") or the EFF Open Audio License ('distributed under the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/eff_oal.html for details'), etc.License:Load existing fileLoading %sLocate sounds directlyLocation where track was recordedLocation:Longest length of sound above threshold to allow (s)Loop mode playback (toggle)Loop mode recording (toggle)Low latency / More dropoutsMP3 (Use Ogg Vorbis instead)MP3 export unsupportedMain device:Maximum bitrateMaximum bitrate:Maximum interruptionMetadataMethod of eating beansMinimum bitrate:Minimum durationMixMix down to monoMode:Monitor (toggle)Monitor output:MonoMoveMove regions in a sampleMuted playback (toggle)Name of the organization producing the track (i.e. the 'record label')Name:Narrowband ~8 kHz (telephone quality)NewNew ...New ViewNew sample rateNew selectionNo area remembered as %dNo files are unsaved, but some files are currently playing. Are you sure you want to quit?No selection to clearNo selection to copyNo selection to cutNo selection to deleteNo selection to processNo selection to record intoNoiseNoise toolNominal bitrate (ABR):NoneNormaliseNot stereoNothing to crop outNothing to redoNothing to undoNumber of Speex frames to pack into each Ogg packet. Higher values save space at low bitrates.OKOgg Vorbis encoding resultsOgg Vorbis is a high quality general purpose perceptual audio codec. It is free, open and unpatented.Ogg streamOgg stream serial number:Ogg, Speex, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.Ogg, Vorbis, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.OpenOpen ...OrangeboomOrganization:Original dataOutput channelsOverflowOverwritePants methodologyParametersPastePaste as NewPaste insertPaste mixPaste xfadePaste: CrossfadePaste: InsertPaste: MixPaste: fade clipboard in from cursor positionPaste: insert clipboard at cursor positionPaste: mix clipboard in from cursor positionPausePencilPencil toolPerformer:Place the play marker on a sample. Click anywhere in a view to instantly move the playback position to that part of the sample.Play notePlay samplePlay selectionPlaybackPlayback gain slider (volume)Powered by libsndfilePre-roll to CursorPreviewPreview Cut/CursorPrevious soundProcessProperties ...QuadraphonicQualityQuitRadarRandomise PCM valuesRandomize!Raw PCM (headerless)ReadyReady to recordRecord ...Record into selectionRecorded soundRedoRemember asRemember these encoding optionsRemember these optionsRemember this formatRemember this qualityRemember this sampling rate and channel configuration for creating new files.Remember this serial numberRemember this serial number for future re-use. USE OF THIS OPTION IS NOT RECOMMENDED. Each encoded file should have a different serial number; re-use of Ogg serial numbers in different files may create incompatabilities with streaming applications. This option is provided for bitstream engineering purposes only. If this option is not checked, new serial numbers will be randomly generated for each file encoded.Remembered as area %dRemove left channelRemove right channelReread from diskResampleResample ...Resample errorResample from %d Hz to %d HzResetReset to the last remembered device buffering.Reset to the last remembered device names.Reset to the last remembered encoding options.Reset to the last remembered format for new files.Reset to the last remembered quality.ResolutionReverseReverse mode (toggle)Reverse mode playback (toggle)Reverse selected regions of a sampleRevertRevert fileRevert to selected stateRewindRightSYNCSampleSampling rateSampling rate:Sampling rate: SaveSave As ...Save OptionsSave as %s cancelledSave as ...Saving %sScrubScrub!Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio by Erik de Castro Lopo SelectSelect allSelect by energySelect loud or quiet regionsSelect noneSelect regions above thresholdSelect regions of a sampleSelection leftSelection rightSelection: add/modify regionSelection: subtract regionSelector toolSet selection [Set the main device for playback and recordingSet to default device buffering.Set to default device names.Set to default encoding options.Set to default quality.Set to the default format for new files.Shift leftShift rightShortest region of selection to detect (s)Should you manage your flim?Show history ...Skip backSkip forwardSome files are unsaved. If you quit, all changes will be lost. Are you sure you want to quit?SourceSpecify a maximum bitrate, useful for streaming applications. (Optional)Specify a minimum bitrate, useful for encoding for a fixed-size channel. (Optional)Specify a nominal bitrate. Attempt to encode at a bitrate averaging this.Speex encodingSpeex encoding resultsSpeex frames per Ogg packet:Speex is a high quality speech codec designed for voice over IP (VoIP) and file-based compression. It is free, open and unpatented.Start gainStereoStopSubtract selection [SwapSwap channelsSwap left and rightSwap main and monitor devices.SweepSweep plugin API versionSweep versionSweep: Add/Remove channelsSweep: Duplicate channelSweep: File propertiesSweep: HistorySweep: Load Raw PCM optionsSweep: New fileSweep: Ogg Vorbis save optionsSweep: Paste crossfadeSweep: Paste mixSweep: RecordSweep: ResampleSweep: Save PCM optionsSweep: Save fileSweep: Speex save optionsSweep: audio device configurationTRUEThe artist generally considered responsible for the work. In popular music this is usually the performing band or singer. For classical music it would be the composer. For an audio book it would be the author of the original text.The artist(s) who performed the work. In classical music this would be the conductor, orchestra, soloists. In an audio book it would be the actor who did the reading. In popular music this is typically the same as the ARTIST and is omitted.The collection name to which this track belongsThe version field may be used to differentiate multiple versions of the same track title in a single collection. (e.g. remix info)This enables average bitrate mode (ABR). You must suggest a nominal average bitrate and may specify minimum and maximum bounds. For best results it is generally recommended that you use the variable bitrate 'encoding quality' control (above) instead.This is Sweep versionThis sets the encoding speed/quality tradeoff between 0 (faster encoding) and 10 (slower encoding)This slider allows you to mix the new recording in with the previous contents of the buffer. Set it to -inf dB to overwrite the previous sound.This slider allows you to reduce the level of the recorded sound. Set it to 0 dB to record without any reduction. Note that setting this to -inf dB will record silence.This tool allows you to select regions of a sample. You can then apply edits and effects to the: selected regions. Hold down shift whilst selecting to add discontinuous regions to the selection.This user interface by Conrad Parker, Copyright (C) 2002 CSIRO Australia. This user interface by Erik de Castro Lopo and Conrad Parker, Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO Australia. ThresholdTime to delay byTitle:Toggle loopingToggle monitoringToggle mutingToggle reverse playbackTrack/Work nameTransportUltra-wideband 32-48 kHzUnable to read %sUndoUnsupported encoding modeUntitledUsage: %s [option ...] [files ...] Use a different device for monitoringVAD generates low bitrate comfort noise to replace non-speechVBR allows the bitrate to adapt to the complexity of the speech, and handles pauses using VAD and DTXVBR allows the bitrate to adapt to the complexity of the speech.VBR allows the bitrate to adapt to the complexity of the speech; this selection uses VBR without DTX, which may improve performance compared to full VBR in the presence of background noise.Valid options are: Variable bitrate (VBR)Variable bitrate (VBR) with VADVariable bitrate (VBR) with all featuresVarying this slider controls the lag between cursor movements and playback. This is particularly noticeable when "scrubbing" during playback. Lower values improve responsiveness but may degrade audio quality on heavily-loaded systems.Version:Vertical zoom [Shift + Arrow Up/Down]ViewVisible lengthVorbis encodingWARNING: Build includes incomplete development code. Welcome to SweepWhen zoomed down to individual samples, click to editWhether to select those regions lying above a given threshold or below it.Wideband ~16 kHzWidth of energy detection window (s)With Nigel's bumWith a forkWith a spoonWith false teethWith this tool you can move selected regions of a sample.You are not allowed to write to %sZoomZoom allZoom inZoom in & outZoom in and out of a view. Click anywhere in a view to zoom in on that part of the sample. Hold down shift and click on the view to zoom out.Zoom normalZoom outZoom toZoom to selectionZoomed to area %dbpschannelshh:mm:ss.xxxhttp://sweep.sourceforge.net/kbpslibsamplerate errorProject-Id-Version: sweep-0.8.2 Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/ POT-Creation-Date: 2008-04-11 15:11+0100 PO-Revision-Date: 2004-04-26 12:31+0200 Last-Translator: Norihiro YONEDA Language-Team: Puppy Linux Japanese MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --display <ディスプレイ> 指定ã®X表示を使ã†ã€‚ --ignore-failed-lock åˆæœŸè¨­å®šãƒ•ァイルã®ãƒ­ãƒƒã‚¯ã«å¤±æ•—ã™ã‚‹æ™‚ ç¶šã‘ã¦ä¸‹ã•ã„。ユーザーホームディレクトリ㌠NFSファイルシステム上ã«ã‚る時㫠使ã„ã¾ã™ã€‚(ãŸã¶ã‚“安全ã§ãªã„) --no-toolbox ツールボックスウィンドウを表示ã—ãªã„。 -h --help ã“ã®ãƒ˜ãƒ«ãƒ—を出力。 -v --version ãƒãƒ¼ã‚¸ãƒ§ãƒ³æƒ…報を出力。 4000 Hz (低音質) 8000 Hz (狭帯域音質) 11025 Hz 16000 Hz (広帯域音質) 22050 Hz 32000 Hz (ウルトラ広帯域音質) 44100 Hz (CD音質) 48000 Hz (DAT音質) 96000 Hz (高音質)「Scrubbyã€ã‚¹ã‚¯ãƒ©ãƒ–ツール%s ã¯ãƒ‡ã‚£ã‚¹ã‚¯ä¸Šã§å¤‰æ›´ã•れã¾ã—ãŸã€‚ 本当ã«ä¿å­˜ã—ã¾ã™ã‹ï¼Ÿ%s ã¯ãƒ‡ã‚£ã‚¹ã‚¯ä¸Šã§å¤‰æ›´ã•れã¾ã—ãŸã€‚ ã“ã®ãƒãƒƒãƒ•ã‚¡ã®ç·¨é›†ã‚’ç¶šã‘ã¾ã™ã‹ï¼Ÿ%s ã¯å­˜åœ¨ã—ã¾ã›ã‚“%s ã¯å­˜åœ¨ã—ã¾ã™ã€‚上書ãã—ã¾ã™ã‹ï¼Ÿ%s ã¯ä¿®æ­£ã•れã¾ã—ãŸã€‚終了ã—ã¾ã™ã‹ï¼Ÿ*192000 Hz (スタジオ音質)1:1内容ã«ã¤ã„ã¦ã®çŸ­ã„解説文音楽ジャンルã®çŸ­ã„表示文A3A4A5ãƒãƒ¼ã‚¸ãƒ§ãƒ³æƒ…å ±MP3ã®ã‚¨ã‚¯ã‚¹ãƒãƒ¼ãƒˆã«ã¤ã„ã¦...Sweepã«ã¤ã„ã¦ãƒãƒ¼ã‚¸ãƒ§ãƒ³æƒ…å ±...アクションノイズを加ãˆã‚‹ãƒãƒ£ãƒ³ãƒãƒ«ã‚’追加/削除アルãƒãƒ ï¼šã™ã¹ã¦ã‚µãƒ³ãƒ—ãƒ«ã®æŒ¯å¹…ã‚’1.0ã¨-1.0ã®é–“ã«å¤‰æ›´ã™ã‚‹ãƒ•ィルタ領域プラグイン線形フェードをセレクションã«é©ç”¨ã™ã‚‹ã€‚無音ã‹ã‚‰ãƒ•ェードイン。線形フェードをセレクションã«é©ç”¨ã™ã‚‹ã€‚無音ã¸ãƒ•ェードアウト。エコーをサンプルã®é¸æŠžé ˜åŸŸã«é©ç”¨ã€‚本当㫠%s ã‚’ %s ã«æˆ»ã—ã¾ã™ã‹ï¼Ÿ ã™ã¹ã¦ã®å¤‰æ›´ã¨ã‚¢ãƒ³ãƒ‰ã‚¥æƒ…å ±ã¯å¤±ã‚れã¾ã™ã€‚領域 1領域 1ï¼é ˜åŸŸ 2領域 3領域 4領域 5領域 6領域 7領域 8領域 9アーãƒã‚¹ãƒˆï¼šè‡ªå‹•ã“ã®ãƒ•ã‚¡ã‚¤ãƒ«ã«æœ€é©ãªã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã‚ªãƒ—ションを自動的ã«é¸æŠžãƒ•ァイルã®ã‚µãƒ³ãƒ—リングレートを元ã«ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ãƒ¢ãƒ¼ãƒ‰ã‚’自動的ã«é¸æŠžã€‚自動スクロール: å†ç”Ÿã‚«ãƒ¼ã‚½ãƒ«ã«è¿½å¾“å¹³å‡ãƒ“ットレートB3B4B5Bb3Bb4Bb5豆ビットレート管ç†ã‚¨ãƒ³ã‚¸ãƒ³ãƒ–ラックワトルブルースクリーン拡張å­ä»˜ãC#3C#4C#5C3C4C5VAD付ãCBRã¨ä¸é€£ç¶šé€ä¿¡ï¼ˆDTX)音声活動検出付ãCBR(VAD)キャンセル中央デãƒã‚¤ã‚¹è¨­å®šã®å¤‰æ›´ã¯æ¬¡ã®å†ç”Ÿã‹ã‚‰æœ‰åйã«ãªã‚Šã¾ã™ã€‚ãƒãƒ£ãƒ³ãƒãƒ«ãƒãƒ£ãƒ³ãƒãƒ«ï¼šã‚¯ãƒªã‚¢ã‚¯ãƒªãƒƒãƒ—ボードクリップボードデータã¯ã€éžäº’æ›ãƒ•ォーマットãŒã‚りã¾ã™æ¼”奿™‚時間をクリップボードã¸ï¼šã‚¯ãƒªãƒƒãƒ—ボードã¯ç©ºã§ã™é–‰ã˜ã‚‹ã‚«ãƒ©ãƒ¼ã‚¹ã‚­ãƒ¼ãƒ ã‚ªãƒ¼ãƒ‡ã‚£ã‚ªãƒ‡ãƒã‚¤ã‚¹ã®è¨­å®š...固定ビットレート(CBR)固定ビットレート(CBR)特性ãªã—トラックã®è£½ä½œè€…ã¾ãŸã¯è²©å£²è€…ã¸ã®é€£çµ¡å…ˆã€‚ã“れã¯URLã€é›»å­ãƒ¡ãƒ¼ãƒ«ã‚¢ãƒ‰ãƒ¬ã‚¹ã€ãƒ—ロデュースレーベルã®å®Ÿéš›ã®ä½æ‰€ãªã©ã§ã™ã€‚連絡先:編集を続ã‘る変æ›%d ã‹ã‚‰ %d ãƒãƒ£ãƒ³ãƒãƒ«ã«å¤‰æ›ã‚³ãƒ³ãƒãƒ¼ã‚¿ã‚¯ãƒ¼ã‚¸ãƒ¼ãƒ™ã‚¤ãƒ–ルーコピーセレクションをコピーã—ã¦ã‚¯ãƒªãƒƒãƒ—ボードã¸è‘—作権帰属ã€ä¾‹ãˆã°ã€Ž2001 Nobody's Bandã€ã¾ãŸã¯ã€Ž1999 Jack Moffittã€è‘—ä½œæ¨©ï¼šä½œæˆæ–°ã—ã„ファイルã®ä½œæˆCreated %s/ mode %04o トリミングクロスフェードç¾åœ¨ã®ã‚µãƒ³ãƒ—ルレート: %d Hzç¾åœ¨: %d ãƒãƒ£ãƒ³ãƒãƒ«ã‚«ãƒ¼ã‚½ãƒ«ä½ç½®ï¼ˆã‚¤ãƒ³ã‚¸ã‚±ãƒ¼ã‚¿ï¼‰ã‚«ã‚¹ã‚¿ãƒ ã‚«ã‚¹ã‚¿ãƒ ï¼šåˆ‡ã‚Šå–りセレクションを切りå–ã£ã¦ã‚¯ãƒªãƒƒãƒ—ボードã¸D#5D3D4D5DTXã¯ã€æœ€å°ãƒ“ットレート信å·ã§å»¶é•·ã—ãŸä¸€æ™‚åœæ­¢ã‚’マークã—ã¾ã™ã€‚データメモリ:データメモリ:トラックã®éŒ²éŸ³æ—¥æ—¥ä»˜ï¼šãƒ‡ã‚³ãƒ¼ãƒ€ãƒ¬ãƒƒãƒ‰%s をデコード中 エンコード: %s %sデフォルトデフォルトé…延削除解説行ã先ファイルタイプを決定デãƒã‚¤ã‚¹ãƒãƒƒãƒ•ァリングデãƒã‚¤ã‚¹åディレクトリã¯å­˜åœ¨ã—ã¾ã›ã‚“終了ã—ãªã„作æˆã—ãªã„クロスフェードã—ãªã„ミックスã—ãªã„上書ãã—ãªã„終了ã—ãªã„リサンプルã—ãªã„戻ã•ãªã„ä¿å­˜ã—ãªã„ï¼’å€ã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’2å€ã«ã™ã‚‹è¤‡è£½%d ã‹ã‚‰ %d ãƒãƒ£ãƒ³ãƒãƒ«ã«è¤‡å†™%d ãƒãƒ£ãƒ³ãƒãƒ«ã«è¤‡å†™ãƒžãƒ«ãƒãƒãƒ£ãƒ³ãƒãƒ«ã«è¤‡è£½ã‚¹ãƒ†ãƒ¬ã‚ªã«è¤‡è£½æ¼”奿™‚é–“ï¼šæ¼”å¥æ™‚間:E3E4E5Db3Eb4エコー編集PCMサンプル値を編集空ビットレート管ç†ã‚’有効ビットレート管ç†ã‚¨ãƒ³ã‚¸ãƒ³ã‚’有効ã«ã™ã‚‹ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã®è¤‡é›‘ã•å¯å¤‰ãƒ“ットレートモード(VBR)を使ã£ãŸã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰å“質㯠0(最低å“è³ªã€æœ€å°ãƒ•ァイル)㨠10(最高å“è³ªã€æœ€å¤§ãƒ•ァイル)ã®é–“ã§ã™ã€‚エンコードå“質㯠0(最低å“è³ªã€æœ€å°ãƒ•ァイル)㨠10(最高å“è³ªã€æœ€å¤§ãƒ•ァイル)ã®é–“ã§ã™ã€‚エンコードå“質エンコード:ゲイン終了検出ã™ã‚‹ã‚¨ãƒãƒ«ã‚®ãƒ¼ãƒ¬ãƒ™ãƒ« [0.0 - 1.0]~/.sweep ã«ã‚¢ã‚¯ã‚»ã‚¹ã‚¨ãƒ©ãƒ¼~/.sweepã®ä½œæˆã‚¨ãƒ©ãƒ¼~/.sweep ã§ã‚¨ãƒ©ãƒ¼~/.sweep/preferences.tdb ã®ã‚ªãƒ¼ãƒ—ンエラー~/.sweep ã§ãƒ‘ーミッションã®è¨­å®šã‚¨ãƒ©ãƒ¼ãƒ•ィルタ領域ã®ä¾‹ã™ã°ã‚‰ã—ã„ï¼ï¼ï¼MP3フォーマットã¸ã®ã‚¨ã‚¯ã‚¹ãƒãƒ¼ãƒˆã¯ã€ç‰¹è¨±ãƒ©ã‚¤ã‚»ãƒ³ã‚¹è¦åˆ¶ã®ãŸã‚ ç„¡æ–™ã‚½ãƒ•ãƒˆã§æ³•çš„ã«ã‚µãƒãƒ¼ãƒˆã§ãã¾ã›ã‚“。 ãã®ä»£ã‚りã«Ogg Vorbisフォーマットを使ã£ã¦ä¸‹ã•ã„。 より良ã„音質をæä¾›ã—ã€ãƒ•リーã§ã™ã€‚追加F#3F#4F#5F3F4F5å½ãƒ•ェードインフェードアウト早é€ã‚Šãƒ•ァイルファイルã¯å­˜åœ¨ã—ã¾ã™ãƒ•ァイルã¯å¤‰æ›´ã•れã¾ã—ãŸãƒ•ァイルプロパティ...ファイル:ファイルå:å†ç”Ÿãƒ•ァイル未ä¿å­˜ãƒ•ァイル5ãƒãƒ³ãƒ‰æœ­éžVBR(固定ビットレート)エンコード用ã«ã¯æœ€é«˜ãƒ“ットレートを設定ã—ã¾ã™ã€‚VBRエンコード用ã«ã¯å¹³å‡ãƒ“ットレートを設定ã—ã¾ã™ã€‚フリジッドG#3G#4G#5G3G4G5ゲインé…å»¶ä¿¡å·ã«ãƒŸãƒƒã‚¯ã‚¹ã™ã‚‹ã‚²ã‚¤ãƒ³Oggビットストリームã®ãŸã‚ã«ãƒ©ãƒ³ãƒ€ãƒ ãªã‚·ãƒªã‚¢ãƒ«ç•ªå·ã‚’作り出ã—ã¾ã™ã€‚ã“ã®ãƒœã‚¿ãƒ³ã‚’押ã—ã¦ã„ã‚‹é–“ã€æ•°ã¯å¤‰ã‚りã¾ã™ã€‚ジャンル:最åˆã«æˆ»ã‚‹ãƒ•ァイルã®çµ‚ã‚りã«è¡Œãウィンドウã®çµ‚ã‚りã«è¡Œãファイルã®å§‹ã‚ã«è¡Œãウィンドウã®å§‹ã‚ã«è¡Œã最後ã«é£›ã¶æƒ‘星ã«ãƒãƒƒã‚¯ï¼åŠåˆ†ã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’åŠåˆ†ã«åˆ‡ã‚‹ã‚„ã‚ã€ç§ã®åå‰ã¯ã‚¹ã‚¯ãƒ©ãƒ“ーã§ã™ã€‚Sweepã«ã‚ˆã†ã“ãï¼ æ–°ã—ã„ファイルを作りã¾ã™ã‹ï¼Ÿãれã¨ã‚‚ファイルをロードã—ã¾ã™ã‹ï¼Ÿãƒ˜ãƒ«ãƒ—高é…å»¶ / 低ドロップアウト1日ã«ä½•æžšã®ãƒ‘ンツをã¯ãã¾ã™ã‹ï¼ŸHzトラック用ã®ISRC番å·; ISRC番å·ã«é–¢ã™ã‚‹è©³ç´°ãªæƒ…å ±ã«ã¤ã„ã¦ã¯ã€ISRC紹介ページhttp://www.ifpi.org/site-content/online/isrc_intro.html ã‚’å‚ç…§ã—ã¦ä¸‹ã•ã„。ISRCï¼šé¸æŠžã•ã‚ŒãŸæ¼”奿™‚é–“ã¨ãƒ•ォーマットã«å‰²ã‚Šå½“ã¦ã‚‰ã‚Œã‚‹ãƒ‡ãƒ¼ã‚¿ãƒ¡ãƒ¢ãƒªã®é‡ã‚’示ã—ã¾ã™ã€‚ã™ã¹ã¦ã®ã‚ªãƒ¼ãƒ‡ã‚£ã‚ªãƒ‡ãƒ¼ã‚¿ã¯ã€32ãƒ“ãƒƒãƒˆã®æµ®å‹•å°æ•°ç‚¹ãƒ•ォーマットã§å†…部的ã«å‡¦ç†ã•れã¾ã™ã€‚貼り付ã‘る事ãŒã§ãる最大長クリップボードã®å…¨ä½“ã®æ¼”奿™‚間を示ã—ã¾ã™ã€‚セレクションを挿入 [無効ãªã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã‚ªãƒ—ションå転ä½ç›¸å転セレクションã®å転ライムイエロー左Libsndfileã¯ã€ã‚µãƒ³ãƒ—リングã•れãŸéŸ³ã‚’å«ã‚€ãƒ•ã‚¡ã‚¤ãƒ«ã‚’èª­ã¿æ›¸ãã™ã‚‹ãŸã‚ã® Erik de Castro Lopoã«ã‚ˆã‚‹Cライブラリã§ã™ã€‚ライセンス情報ã€ä¾‹ãˆã°ã€ã€Œè‘—作権所有ã€ã€Œã©ã‚“ãªä½¿ç”¨ã§ã‚‚許å¯ã€ã€ãƒ©ã‚¤ã‚»ãƒ³ã‚¹ã¸ã®URLã€ä¾‹ï¼›Creative Commons license("www.creativecommons.org/blahblah/license.html")ã¾ãŸã¯ã€EFF Open Audio License(Open Audio Licenseã®ä¸‹ã«é…布ã•れã¾ã™ã€‚詳細ã¯ã€http://www.eff.org/IP/Open_licenses/eff_oal.htmlã‚’ã”覧下ã•ã„)ãªã©ã€‚ライセンス:既存ã®ãƒ•ァイルをロードã™ã‚‹%s をロード中音æºã‚’直接示ã™ãƒˆãƒ©ãƒƒã‚¯ã®éŒ²éŸ³å ´æ‰€å ´æ‰€ï¼šä¸Šã®ã—ãã„値ã§è¨±ã•ã‚Œã‚‹éŸ³ã®æœ€é•·ã®é•·ã• (s)ループモードå†ç”Ÿï¼ˆåˆ‡ã‚Šæ›¿ãˆï¼‰ãƒ«ãƒ¼ãƒ—モード録音(切り替ãˆï¼‰ä½Žé…å»¶ / 高ドロップアウトMP3(代ã‚りã«Ogg Vorbisを使ã†ï¼‰MP3エクスãƒãƒ¼ãƒˆã¯ã‚µãƒãƒ¼ãƒˆã•れã¦ã„ã¾ã›ã‚“メインデãƒã‚¤ã‚¹æœ€å¤§ãƒ“ットレート最大ビットレート:最大割り込ã¿ãƒ¡ã‚¿ãƒ‡ãƒ¼ã‚¿è±†ã‚’食ã¹ã‚‹æ–¹æ³•最å°ãƒ“ãƒƒãƒˆãƒ¬ãƒ¼ãƒˆï¼šæœ€å°æ¼”奿™‚間ミックス混ãœã¦ãƒ¢ãƒŽãƒ©ãƒ«ã«ã™ã‚‹ãƒ¢ãƒ¼ãƒ‰:モニタ(切り替ãˆï¼‰ãƒ¢ãƒ‹ã‚¿å‡ºåŠ›ãƒ¢ãƒŽãƒ©ãƒ«ç§»å‹•ã‚µãƒ³ãƒ—ãƒªãƒ³ã‚°éŸ³ã«é ˜åŸŸã‚’移動ミュートå†ç”Ÿï¼ˆåˆ‡ã‚Šæ›¿ãˆï¼‰ãƒˆãƒ©ãƒƒã‚¯ã‚’製作ã—ãŸå›£ä½“åã€ä¾‹ãˆã°ã€Œãƒ¬ã‚³ãƒ¼ãƒ‰ãƒ©ãƒ™ãƒ«ã€åå‰ï¼šç‹­å¸¯åŸŸ ~8 kHzï¼ˆé›»è©±éŸ³è³ªï¼‰æ–°è¦æ–°è¦...æ–°è¦è¡¨ç¤ºæ–°ã—ã„サンプルレート新ã—ã„セレクション%d ã¨ã—ã¦é ˜åŸŸã¯ä½•も記憶ã•れã¦ã„ã¾ã›ã‚“未ä¿å­˜ã®ãƒ•ァイルã¯ã‚りã¾ã›ã‚“。ã—ã‹ã—ã€ã„ãã¤ã‹ã®ãƒ•ァイルã¯ç¾åœ¨å†ç”Ÿä¸­ã§ã™ã€‚ 本当ã«çµ‚了ã—ã¾ã™ã‹ï¼Ÿã‚¯ãƒªã‚¢ã™ã‚‹ã‚‚ã®ãŒé¸æŠžã•れã¦ã„ã¾ã›ã‚“コピーã™ã‚‹ã‚‚ã®ãŒé¸æŠžã•れã¦ã„ã¾ã›ã‚“切りå–ã‚‹ã‚‚ã®ãŒé¸æŠžã•れã¦ã„ã¾ã›ã‚“削除ã™ã‚‹ã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã¯ã‚りã¾ã›ã‚“加工ã™ã‚‹ã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã¯ã‚りã¾ã›ã‚“録音ã™ã‚‹ã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ãŒã‚りã¾ã›ã‚“ノイズノイズツール公称ビットレート(ABR):ãªã—標準化éžã‚¹ãƒ†ãƒ¬ã‚ªãƒˆãƒªãƒŸãƒ³ã‚°ã™ã‚‹ã‚‚ã®ã¯ã‚りã¾ã›ã‚“リドゥã™ã‚‹ã‚‚ã®ã¯ã‚りã¾ã›ã‚“å…ƒã«æˆ»ã™ã‚‚ã®ã¯ã‚りã¾ã›ã‚“å„々ã®Oggパケットã«å…¥ã‚Œã‚‹Speexフレーム数。より高ã„値ã¯ã€ä½Žã„ビットレートã§å®¹é‡ã‚’節約ã—ã¾ã™ã€‚OKOgg Vorbis ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰çµæžœOgg Vorbisã¯ã€é«˜å“質多目的知覚的ãªã‚ªãƒ¼ãƒ‡ã‚£ã‚ªã‚³ãƒ¼ãƒ‡ãƒƒã‚¯ã§ã™ã€‚ フリーã€ã‚ªãƒ¼ãƒ—ンã§ã€ç‰¹è¨±æ¨©ã‚’付与ã•れã¦ã„ã¾ã›ã‚“。Ogg ストリームOgg ストリームシリアル番å·ï¼šOgg, Speex, Xiph.org Foundation ã¨ãã®ãƒ­ã‚´ã¯ the Xiph.org Foundation ã®ç™»éŒ²å•†æ¨™ï¼ˆtm)ã§ã™ã€‚ 許å¯ã‚’å¾—ã¦ä½¿ç”¨ã—ã¦ã„ã¾ã™ã€‚Ogg, Speex, Xiph.org Foundation ã¨ãã®ãƒ­ã‚´ã¯ the Xiph.org Foundation ã®ç™»éŒ²å•†æ¨™ï¼ˆtm)ã§ã™ã€‚ 許å¯ã‚’å¾—ã¦ä½¿ç”¨ã—ã¦ã„ã¾ã™ã€‚é–‹ãé–‹ã...オレンジブーム団体:オリジナルデータ出力ãƒãƒ£ãƒ³ãƒãƒ«ã‚ªãƒ¼ãƒãƒ¼ãƒ•ロー上書ããƒ‘ãƒ³ãƒ„æ–¹æ³•è«–ãƒ‘ãƒ©ãƒ¡ãƒ¼ã‚¿è²¼ã‚Šä»˜ã‘æ–°è¦ã§è²¼ã‚Šä»˜ã‘挿入ã—ã¦è²¼ã‚Šä»˜ã‘æ··ãœã¦è²¼ã‚Šä»˜ã‘Xフェードã—ã¦è²¼ã‚Šä»˜ã‘貼り付ã‘: クロスフェード貼り付ã‘: 挿入貼り付ã‘: ミックス貼り付ã‘: カーソルä½ç½®ã‹ã‚‰ã‚¯ãƒªãƒƒãƒ—ボードをフェードイン貼り付ã‘: カーソルä½ç½®ã«ã‚¯ãƒªãƒƒãƒ—ボードを挿入貼り付ã‘: カーソルä½ç½®ã‹ã‚‰ã‚¯ãƒªãƒƒãƒ—ãƒœãƒ¼ãƒ‰ã‚’ãƒŸãƒƒã‚¯ã‚¹ä¸€æ™‚åœæ­¢é‰›ç­†é‰›ç­†ãƒ„ール演å¥è€…:å†ç”Ÿãƒžãƒ¼ã‚«ã‚’サンプリング音ã«ç½®ã„ã¦è¡¨ç¤ºã®å¥½ããªã¨ã“ã‚ã§ã‚¯ãƒªãƒƒã‚¯ã™ã‚‹ã¨ã€å†ç”Ÿä½ç½®ã¯ç°¡å˜ã«ã‚µãƒ³ãƒ—リング音ã®ãã®éƒ¨åˆ†ã«ç§»å‹•ã—ã¾ã™ã€‚音符をå†ç”Ÿã‚µãƒ³ãƒ—ルをå†ç”Ÿã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’å†ç”Ÿå†ç”Ÿå†ç”Ÿã‚²ã‚¤ãƒ³ã‚¹ãƒ©ã‚¤ãƒ€ï¼ˆéŸ³é‡ï¼‰libsndfile ã§ä½œå‹•カーソルã«ãƒ—リロールプレビュー切å–り/カーソルをプレビューå‰ã®éŸ³å‡¦ç†ãƒ—ロパティ...ï¼”ãƒãƒ£ãƒ³ãƒãƒ«éŸ³è³ªçµ‚了ラダーPCM値をランダム化ã™ã‚‹ãƒ©ãƒ³ãƒ€ãƒ åŒ–ã™ã‚‹ï¼ç”ŸPCM(ヘッダーãªã—ï¼‰æº–å‚™å®Œäº†éŒ²éŸ³ã®æº–å‚™ãŒã§ãã¾ã—ãŸéŒ²éŸ³...セレクションã«éŒ²éŸ³éŒ²éŸ³ã•れãŸéŸ³ãƒªãƒ‰ã‚¥åå‰ã‚’付ã‘ã¦è¨˜æ†¶ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã‚ªãƒ—ションを記憶ã“ã®ã‚ªãƒ—ションを記憶ã™ã‚‹ã“ã®ãƒ•ォーマットを記憶ã™ã‚‹ã“ã®éŸ³è³ªã‚’記憶ã™ã‚‹æ–°è¦ãƒ•ァイル作æˆç”¨ã«ã“ã®ã‚µãƒ³ãƒ—リングレートã¨ãƒãƒ£ãƒ³ãƒãƒ«è¨­å®šã‚’記憶ã™ã‚‹ã€‚ã“ã®ã‚·ãƒªã‚¢ãƒ«ç•ªå·ã‚’記憶ã“ã®ã‚·ãƒªã‚¢ãƒ«ç•ªå·ã‚’今後ã®å†åˆ©ç”¨ã®ãŸã‚ã«è¨˜æ†¶ã—ã¾ã™ã€‚ 「ã“ã®ã‚ªãƒ—ションã®ä½¿ç”¨ã¯æŽ¨å¥¨ã—ã¾ã›ã‚“〠エンコードã•れãŸå„ファイルã¯é•ã£ãŸã‚·ãƒªã‚¢ãƒ«ç•ªå·ã§ãªã‘れã°ã„ã‘ã¾ã›ã‚“;別ã®ãƒ•ァイルã§ã® Oggシリアル番å·ã®å†åˆ©ç”¨ã¯ã‚¹ãƒˆãƒªãƒ¼ãƒŸãƒ³ã‚°ã‚¢ãƒ—リケーションã§ä¸é©åˆã‚’生ãšã‚‹ã‹ã‚‚知れã¾ã›ã‚“。ã“ã®ã‚ªãƒ—ションã¯ãƒ“ットストリーム技術ã®ç›®çš„ã ã‘ã«è¦å®šã•れã¦ã„ã¾ã™ã€‚ ã“ã®ã‚ªãƒ—ションã«ãƒã‚§ãƒƒã‚¯ã‚’入れãªã„ã¨ã€ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã•れãŸå„ファイルã«ãƒ©ãƒ³ãƒ€ãƒ ã« æ–°ã—ã„シリアル番å·ãŒä½œã‚Šå‡ºã•れã¾ã™ã€‚領域 %d ã¨ã—ã¦è¨˜æ†¶å·¦ãƒãƒ£ãƒ³ãƒãƒ«ã‚’削除å³ãƒãƒ£ãƒ³ãƒãƒ«ã‚’削除ディスクã‹ã‚‰å†èª­ã¿è¾¼ã¿ãƒªã‚µãƒ³ãƒ—ルリサンプル...リサンプルエラー%d Hz ã‹ã‚‰ %d Hz ã«ãƒªã‚µãƒ³ãƒ—ルリセット最後ã«è¨˜æ†¶ã•れãŸãƒ‡ãƒã‚¤ã‚¹ãƒãƒƒãƒ•ァリングã«ãƒªã‚»ãƒƒãƒˆã€‚最後ã«è¨˜æ†¶ã•れãŸãƒ‡ãƒã‚¤ã‚¹åã«ãƒªã‚»ãƒƒãƒˆæœ€å¾Œã«è¨˜æ†¶ã—ãŸã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã‚ªãƒ—ションã«ãƒªã‚»ãƒƒãƒˆæ–°è¦ãƒ•ã‚¡ã‚¤ãƒ«ç”¨ã«æœ€å¾Œã«è¨˜æ†¶ã—ãŸãƒ•ォーマットã«ãƒªã‚»ãƒƒãƒˆã™ã‚‹ã€‚最後ã«è¨˜æ†¶ã—ãŸéŸ³è³ªã«ãƒªã‚»ãƒƒãƒˆãƒ¬ã‚¾ãƒªãƒ¥ãƒ¼ã‚·ãƒ§ãƒ³å転å転モード(切り替ãˆï¼‰ãƒªãƒãƒ¼ã‚¹ãƒ¢ãƒ¼ãƒ‰å†ç”Ÿï¼ˆåˆ‡ã‚Šæ›¿ãˆï¼‰ã‚µãƒ³ãƒ—ルã®é¸æŠžé ˜åŸŸã‚’å転戻ã™ãƒ•ァイルを戻ã™é¸æŠžçŠ¶æ…‹ã«æˆ»ã™å·»ã戻ã—å³SYNCサンプルサンプリングレートサンプリングレート:サンプリングレート:ä¿å­˜åå‰ã‚’付ã‘ã¦ä¿å­˜...オプションをä¿å­˜%s ã§ä¿å­˜ã¯ã‚­ãƒ£ãƒ³ã‚»ãƒ«ã•れã¾ã—ãŸåå‰ã‚’付ã‘ã¦ä¿å­˜...%s ã‚’ä¿å­˜ä¸­ã‚¹ã‚¯ãƒ©ãƒ–スクラブï¼Secret Rabbit Code (aka libsamplerate) 㯠Erik de Castro Lopo æ°ãŒ 作ã£ãŸã‚ªãƒ¼ãƒ‡ã‚£ã‚ªç”¨ã‚µãƒ³ãƒ—ルレートコンãƒãƒ¼ã‚¿ã§ã™ã€‚ é¸æŠžå…¨é¸æŠžã‚¨ãƒãƒ«ã‚®ãƒ¼ã§é¸æŠžå¤§ããªéŸ³ã‹é™ã‹ãªé ˜åŸŸã‚’é¸æŠžé¸æŠžã—ãªã„ã—ãã„値より上ã«é ˜åŸŸã‚’é¸æŠžã‚µãƒ³ãƒ—ãƒªãƒ³ã‚°éŸ³ã®é ˜åŸŸé¸æŠžã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’å·¦ã¸ã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’å³ã¸ã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ï¼š 領域ã®è¿½åŠ /変更セレクション: å–り去ã£ãŸé ˜åŸŸã‚»ãƒ¬ã‚¯ã‚¿ãƒ„ールセレクションを設定 [å†ç”ŸéŒ²éŸ³ç”¨ãƒ¡ã‚¤ãƒ³ãƒ‡ãƒã‚¤ã‚¹ã‚’設定デフォルトã®ãƒ‡ãƒã‚¤ã‚¹ãƒãƒƒãƒ•ァリングã«è¨­å®šã€‚デフォルトデãƒã‚¤ã‚¹åã«è¨­å®šãƒ‡ãƒ•ォルトエンコードオプションã«è¨­å®šãƒ‡ãƒ•ォルトã®éŸ³è³ªã«è¨­å®šæ–°è¦ãƒ•ァイル用ã«ãƒ‡ãƒ•ォルトフォーマットã«ãƒªã‚»ãƒƒãƒˆã™ã‚‹ã€‚å·¦ã«ã‚·ãƒ•トå³ã«ã‚·ãƒ•トセレクションã®ä¸€ç•ªçŸ­ã„領域を見ã¤ã‘ã‚‹ (s)5ãƒãƒ³ãƒ‰æœ­ã‚’管ç†ã—ã¾ã™ã‹ï¼Ÿå±¥æ­´ã‚’表示後ã‚ã«ã‚¹ã‚­ãƒƒãƒ—å‰ã«ã‚¹ã‚­ãƒƒãƒ—ã„ãã¤ã‹ã®ãƒ•ァイルã¯ä¿å­˜ã•れã¦ã„ã¾ã›ã‚“。終了ã™ã‚‹ã¨ã€ã™ã¹ã¦ã®å¤‰æ›´ã¯å¤±ã‚れã¾ã™ã€‚ 本当ã«çµ‚了ã—ã¾ã™ã‹ï¼Ÿã‚½ãƒ¼ã‚¹æœ€å¤§ãƒ“ットレートを指定ã—ã¾ã™ã€‚ストリーミングアプリケーションã«å½¹ç«‹ã¡ã¾ã™ã€‚(オプション)最å°ãƒ“ットレートを指定ã—ã¾ã™ã€‚固定サイズãƒãƒ£ãƒ³ãƒãƒ«ã«ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã™ã‚‹æ™‚ã«å½¹ã«ç«‹ã¡ã¾ã™ã€‚(オプション)公称ビットレートを指定ã—ã¾ã™ã€‚ã“れã¯ãƒ“ットレートを平å‡åŒ–ã—ã¦ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã‚’試ã¿ã¾ã™ã€‚SpeexエンコードSpeexã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰çµæžœOggパケット当ãŸã‚Šã®SpeexフレームSpeexã¯IP(VoIP)ã¨ãƒ•ァイルã«åŸºã¥ã圧縮ã«ã¤ã„ã¦éŸ³å£°ç”¨ã« 設計ã•れãŸé«˜éŸ³è³ªã‚¹ãƒ”ーãƒã‚³ãƒ¼ãƒ‡ãƒƒã‚¯ã§ã™ã€‚ フリーã§ã€ã‚ªãƒ¼ãƒ—ンã§ç‰¹è¨±æ¨©ã‚’付与ã•れã¦ã„ã¾ã›ã‚“ã€‚ã‚²ã‚¤ãƒ³é–‹å§‹ã‚¹ãƒ†ãƒ¬ã‚ªåœæ­¢ã‚»ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã‚’å–り去る [入れæ›ãˆãƒãƒ£ãƒ³ãƒãƒ«ã‚’入れæ›ãˆã‚‹å·¦å³ã‚’入れæ›ãˆã‚‹ãƒ¡ã‚¤ãƒ³ã¨ãƒ¢ãƒ‹ã‚¿ã®ãƒ‡ãƒã‚¤ã‚¹ã‚’入れæ›ãˆã‚‹SweepSweep プラグインAPIãƒãƒ¼ã‚¸ãƒ§ãƒ³Sweep ãƒãƒ¼ã‚¸ãƒ§ãƒ³Sweep: ãƒãƒ£ãƒ³ãƒãƒ«ã‚’追加/削除Sweep: ãƒãƒ£ãƒ³ãƒãƒ«ã‚’複写Sweep: ファイルプロパティSweep: 履歴Sweep: 生PCMオプションをロードSweep: æ–°è¦ãƒ•ァイルSweep: Ogg Vorbis ä¿å­˜ã‚ªãƒ—ションSweep: クロスフェード貼り付ã‘Sweep: ミックス貼り付ã‘Sweep: 録音Sweep: リサンプルSweep: PCMオプションをä¿å­˜Sweep: ファイルをä¿å­˜Sweep: Speexä¿å­˜ã‚ªãƒ—ションSweep: オーディオデãƒã‚¤ã‚¹ã®è¨­å®šçœŸé€šå¸¸ã€ä½œå“ã«å¯¾ã—ã¦è²¬ä»»ãŒã‚ã‚‹ã¨æ€ã‚れるアーティスト。ãƒãƒ”ュラー音楽ã®ä¸­ã§ã€ã“れã¯é€šå¸¸æ¼”å¥ãƒãƒ³ãƒ‰ã¾ãŸã¯æ­Œæ‰‹ã§ã™ã€‚クラシック音楽ã§ã¯ä½œæ›²å®¶ã§ã™ã€‚オーディオブックã§ã¯åŽŸæ–‡ã®è‘—者ã§ã™ã€‚作å“ã‚’æ¼”å¥ã—ãŸã‚¢ãƒ¼ãƒ†ã‚£ã‚¹ãƒˆï¼ˆãŸã¡ï¼‰ã€‚クラシック音楽ã§ã¯æŒ‡æ®è€…ã€ã‚ªãƒ¼ã‚±ã‚¹ãƒˆãƒ©ã€ã‚½ãƒªã‚¹ãƒˆã§ã™ã€‚オーディオブックã§ã¯æœ—読ã—ãŸä¿³å„ªã§ã™ã€‚ãƒãƒ”ュラー音楽ã§ã¯ã€Œã‚¢ãƒ¼ãƒã‚¹ãƒˆã€ã¨å…¸åž‹çš„ã«åŒã˜ã§çœç•¥ã•れã¾ã™ã€‚ã“ã®ãƒˆãƒ©ãƒƒã‚¯ãŒå±žã™ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³åãƒãƒ¼ã‚¸ãƒ§ãƒ³ãƒ•ィールドã¯ã€ã‚·ãƒ³ã‚°ãƒ«ã‚³ãƒ¬ã‚¯ã‚·ãƒ§ãƒ³ã®ä¸­ã§åŒã˜ãƒˆãƒ©ãƒƒã‚¯ã‚¿ã‚¤ãƒˆãƒ«ã®è¤‡æ•°ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’区別ã™ã‚‹ã®ã«ç”¨ã„られã¾ã™ã€‚(例ãˆã°ã€ãƒªãƒŸãƒƒã‚¯ã‚¹æƒ…報)ã“れã¯å¹³å‡ãƒ“ットレートモード(ABR)を有効ã«ã—ã¾ã™ã€‚公称平å‡ãƒ“ットレートをæç¤ºã— æœ€å°æœ€å¤§ç¯„囲を指定ã—ãªã‘れã°ãªã‚Šã¾ã›ã‚“。 最高ã®çµæžœã«ã™ã‚‹ã«ã¯ã€ä¸€èˆ¬çš„ã«ï¼ˆä¸Šã®ï¼‰å¯å¤‰ãƒ“ットレート「エンコードå“質〠コントロールを代ã‚りã«ä½¿ã†äº‹ã‚’推奨ã—ã¾ã™ã€‚Sweepã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã§ã™ã“れã¯ã€0(より速ã„エンコード)ã¨10(よりé…ã„エンコード)ã®é–“㧠エンコード速度/音質妥å”点を設定ã—ã¾ã™ã€‚ã“ã®ã‚¹ãƒ©ã‚¤ãƒ€ãƒ¼ã¯ã€æ–°ã—ã„録音をãƒãƒƒãƒ•ã‚¡ã®å‰ã®å†…容ã«ãƒŸãƒƒã‚¯ã‚¹ã•ã›ã‚‹äº‹ãŒã§ãã¾ã™ã€‚å‰ã®éŸ³ã«ä¸Šæ›¸ãã™ã‚‹ -inf dB ã«è¨­å®šã—ã¾ã™ã€‚ã“ã®ã‚¹ãƒ©ã‚¤ãƒ€ãƒ¼ã¯ã€éŒ²éŸ³ã•れãŸéŸ³ã®ãƒ¬ãƒ™ãƒ«ã‚’減らã™ã“ã¨ãŒã§ãã¾ã™ã€‚æŒç¶šæ™‚é–“ãªã—ã§éŒ²éŸ³ã™ã‚‹ã«ã¯0dBã«è¨­å®šã—ã¦ä¸‹ã•ã„。注æ„ã€ã“れを設定ã™ã‚‹ã¨ -inf dB ã¯ã€ç„¡éŸ³ã‚’録音ã—ã¾ã™ã€‚ã“ã®ãƒ„ールã«ã‚ˆã£ã¦ã€ã‚µãƒ³ãƒ—リング音ã®é ˜åŸŸã‚’é¸æŠžã§ãã¾ã™ã€‚ãã—ã¦é¸æŠžé ˜åŸŸã‚’編集ã—ã¦åŠ¹æžœã‚’é©ç”¨ã§ãã¾ã™ã€‚ä¸é€£ç¶šãªé ˜åŸŸã‚’セレクションã«è¿½åŠ ã™ã‚‹ã«ã¯é¸æŠžã™ã‚‹é–“ã€ã‚·ãƒ•トキーを押ã•ãˆã¦ã„ã¦ä¸‹ã•ã„。ã“ã®ãƒ¦ãƒ¼ã‚¶ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ェース㯠Conrad Parker ã«ã‚ˆã‚Šã¾ã™ã€ Copyright (C) 2002 CSIRO Australia. ã“ã®ãƒ¦ãƒ¼ã‚¶ã‚¤ãƒ³ã‚¿ãƒ¼ãƒ•ェース㯠Erik de Castro Lopo 㨠Conrad Parker ã«ã‚ˆã‚Šã¾ã™ã€‚ Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO Australia. ã—ãã„値é…延時間タイトル:ループを切り替ãˆãƒ¢ãƒ‹ã‚¿ãƒªãƒ³ã‚°ã®åˆ‡ã‚Šæ›¿ãˆãƒŸãƒ¥ãƒ¼ãƒˆã‚’切り替ãˆå転å†ç”Ÿã‚’切り替ãˆãƒˆãƒ©ãƒƒã‚¯/作å“åç§»é€ã‚¦ãƒ«ãƒˆãƒ©åºƒå¸¯åŸŸ 32-48 kHz%s を読ã‚ã¾ã›ã‚“å…ƒã«æˆ»ã™ã‚µãƒãƒ¼ãƒˆã•れã¦ã„ãªã„ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ãƒ¢ãƒ¼ãƒ‰ç„¡é¡Œä½¿ã„æ–¹: %s [オプション ...] [ファイル ...] モニタ用ã«åˆ¥ã®ãƒ‡ãƒã‚¤ã‚¹ã‚’使ã†VADã¯ã€éžã‚¹ãƒ”ーãƒã«ç½®ãæ›ãˆã‚‹ãŸã‚ã«ä½Žãƒ“ットレートã®å¿«é©ãªéŸ³ã‚’生ã¿å‡ºã—ã¾ã™ã€‚VBRã¯ãƒ“ットレートをスピーãƒã®è¤‡é›‘ã•ã«åˆã‚ã›ã‚‹äº‹ãŒã§ãã¾ã™ã€‚ ãã—ã¦VADã¨DTXを使ã£ã¦ä¸€æ™‚åœæ­¢ã‚’æ“作ã—ã¾ã™ã€‚VBRã¯ãƒ“ットレートをスピーãƒã®è¤‡é›‘ã•ã«åˆã‚ã›ã‚‹äº‹ãŒã§ãã¾ã™ã€‚VBRã¯ãƒ“ットレートをスピーãƒã®è¤‡é›‘ã•ã«åˆã‚ã›ã‚‹äº‹ãŒã§ãã¾ã™; ã“ã®é¸æŠžã¯DTXãªã—ã§VBRを使ã„ã¾ã™ã€‚ãã—ã¦ãƒãƒƒã‚¯ã‚°ãƒ©ã‚¦ãƒ³ãƒ‰ãƒŽã‚¤ã‚ºãŒã‚ã‚‹å ´åˆ å®Œå…¨VBRã¨æ¯”較ã—ã¦ãƒ‘フォーマンスをå‘上ã•ã›ã‚‹ã‹ã‚‚知れã¾ã›ã‚“。有効ãªã‚ªãƒ—ションã¯: å¯å¤‰ãƒ“ットレート(VBR)VAD付ãå¯å¤‰ãƒ“ットレート(VBR)å¯å¤‰ãƒ“ットレート(VBR)全特性ã‚りã“ã®ã‚¹ãƒ©ã‚¤ãƒ€ã‚’変ãˆã‚‹äº‹ã§ã‚«ãƒ¼ã‚½ãƒ«ã®å‹•ãã¨å†ç”Ÿã®é–“ã®é…れをæ“作ã—ã¾ã™ã€‚ã“れã¯å†ç”Ÿä¸­ã« "スクラブ" (scrubbing)を発生ã—ãŸæ™‚ã«ç‰¹ã«ç›®ç«‹ã¡ã¾ã™ã€‚ 低ã„値ã¯å応を改善ã—ã¾ã™ãŒã€é‡ã„è² è·ã®ã‚·ã‚¹ãƒ†ãƒ ä¸Šã§ã¯éŸ³è³ªã‚’低下ã•ã›ã‚‹ã‹ã‚‚知れã¾ã›ã‚“。ãƒãƒ¼ã‚¸ãƒ§ãƒ³ï¼šåž‚直ズーム [Shift + 上下矢å°ã‚­ãƒ¼]表示å¯è¦–é•·Vorbis エンコード警告:ビルドã¯ä¸å®Œå…¨ãªé–‹ç™ºã‚³ãƒ¼ãƒ‰ã‚’å«ã‚“ã§ã„ã¾ã™ã€‚ Sweepã«ã‚ˆã†ã“ã個々ã®ã‚µãƒ³ãƒ—ルã«ã‚ºãƒ¼ãƒ ã—ãŸæ™‚ã€ç·¨é›†ã™ã‚‹ã«ã¯ã‚¯ãƒªãƒƒã‚¯ã—ã¦ä¸‹ã•ã„。ãã®é ˜åŸŸã‚’所定ã®ã—ãã„値以上ã‹ã€ãれ以下ã«é–¢ä¿‚ãªãé¸æŠžã™ã‚‹ã‹ã©ã†ã‹ã€‚広帯域 ~16 kHzエãƒãƒ«ã‚®ãƒ¼æ¤œå‡ºã‚¦ã‚£ãƒ³ãƒ‰ã®å¹… (s)ãƒŠã‚¤ã‚¸ã‚§ãƒ«ã®æ”¾æµªè€…ã§ãƒ•ォークã§ã‚¹ãƒ—ーンã§å…¥ã‚Œæ­¯ã§ã“ã®ãƒ„ールã§ã‚µãƒ³ãƒ—リング音ã®é¸æŠžé ˜åŸŸã‚’移動ã§ãã¾ã™ã€‚%s ã¸ã®æ›¸ãè¾¼ã¿ã¯ 許å¯ã•れã¦ã„ã¾ã›ã‚“ズームã™ã¹ã¦ã‚ºãƒ¼ãƒ ã‚ºãƒ¼ãƒ ã‚¤ãƒ³ã‚ºãƒ¼ãƒ ã‚¤ãƒ³ã¨ã‚ºãƒ¼ãƒ ã‚¢ã‚¦ãƒˆè¡¨ç¤ºã®ã‚ºãƒ¼ãƒ ã‚¤ãƒ³ã€ã‚¢ã‚¦ãƒˆã€‚サンプリング音ã®ä¸€éƒ¨åˆ†ã‚’拡大ã™ã‚‹ã«ã¯ã€è¡¨ç¤ºã®ã©ã“ã‹ã‚’クリックã—ã¦ä¸‹ã•ã„。シフトキーを押ã—ã¦ã‚¯ãƒªãƒƒã‚¯ã™ã‚‹ã¨ç¸®å°ã—ã¾ã™ã€‚標準ズームズームアウトズームセレクションã«ã‚ºãƒ¼ãƒ é ˜åŸŸ %d ã«ã‚ºãƒ¼ãƒ bpsãƒãƒ£ãƒ³ãƒãƒ«hh:mm:ss.xxxhttp://sweep.sourceforge.net/kbpslibsamplerateエラーsweep-0.9.3/po/de.po0000644000175000017500000016644310777670576012776 0ustar useruser# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Free Software Foundation, Inc. # FIRST AUTHOR , YEAR. # #: src/sample-display.c:222 msgid "" msgstr "" "Project-Id-Version: sweep-0.4.10\n" "Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/\n" "POT-Creation-Date: 2008-04-11 15:11+0100\n" "PO-Revision-Date: 2003-04-29 18:24+1000\n" "Last-Translator: Silvia Pfeiffer \n" "Language-Team: German \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: src/main.c:89 msgid "Welcome to Sweep" msgstr "Willkommen bei Sweep." #: src/main.c:90 msgid "" "Hello, my name is Scrubby. Welcome to Sweep!\n" "\n" "Would you like to create a new file or load an existing file?" msgstr "" "Hallo, ich heiße Scrubby. Willkommen bei Sweep!\n" "\n" "Möchten Sie eine neue Datei anlegen oder eine existierende Datei laden?" #: src/main.c:94 msgid "Create new file" msgstr "Neue Datei anlegen" #: src/main.c:94 msgid "Load existing file" msgstr "Existierende Datei laden" #: src/main.c:129 msgid "WARNING: Build includes incomplete development code.\n" msgstr "WARNUNG: Installation beinhaltet Quellcode im Entwicklungszustand.\n" #: src/main.c:188 msgid "Sweep version" msgstr "Sweep Version" #: src/main.c:189 msgid "Sweep plugin API version" msgstr "Sweep Plugin API Version" #: src/main.c:195 #, c-format msgid "Usage: %s [option ...] [files ...]\n" msgstr "Aufruf: %s [Option ...] [Datei ...]\n" #: src/main.c:196 msgid "Valid options are:\n" msgstr "Gültige Optionen:\n" #: src/main.c:197 msgid " -h --help Output this help.\n" msgstr " -h --help Ausgabe dieser Hilfe.\n" #: src/main.c:198 msgid " -v --version Output version info.\n" msgstr " -v --version Ausgabe der Versionsinformation.\n" #: src/main.c:199 msgid " --display Use the designated X display.\n" msgstr " --display Ausgabe auf angegebenes X Display.\n" #: src/main.c:200 msgid "" " --ignore-failed-lock Continue when attempt to lock the\n" " preferences file fails. For use when\n" " the users home directory is on an NFS\n" " file system. (possibly unsafe) \n" msgstr "" #: src/main.c:206 msgid " --no-toolbox Do not show the toolbox window.\n" msgstr " --no-toolbox Das Werkzeugfenster nicht anzeigen.\n" #: src/about_dialog.c:99 msgid "This is Sweep version" msgstr "Dies ist Sweep Version" #: src/about_dialog.c:119 msgid "http://sweep.sourceforge.net/" msgstr "http://sweep.sourceforge.net/" #: src/callbacks.c:926 src/callbacks.c:939 src/edit.c:1568 src/edit.c:1642 #: src/edit.c:1726 msgid "Clipboard empty" msgstr "Zwischenspeicher leer" #: src/channelops.c:146 #, c-format msgid "Duplicate to %d channels" msgstr "Duplizieren auf %d Kanäle" #: src/channelops.c:148 #, c-format msgid "Duplicate from %d to %d channels" msgstr "Duplizieren von %d auf %d Kanäle" #: src/channelops.c:207 msgid "Sweep: Duplicate channel" msgstr "Sweep: Kanal verdoppeln" #: src/channelops.c:214 src/channelops.c:698 #, c-format msgid "Currently: %d channels" msgstr "Aktuell: %d Kanäle" #: src/channelops.c:221 src/channelops.c:704 msgid "Output channels" msgstr "Ausgabe-Kanäle" #: src/channelops.c:231 src/channelops.c:714 src/driver.c:374 #: src/file_sndfile1.c:285 src/param.c:779 src/question_dialogs.c:144 #: src/question_dialogs.c:204 src/question_dialogs.c:253 #: src/sweep_sample.c:1918 src/undo_dialog.c:440 msgid "OK" msgstr "OK" #: src/channelops.c:242 src/channelops.c:725 src/driver.c:387 #: src/file_sndfile1.c:295 src/param.c:788 src/question_dialogs.c:158 #: src/view.c:543 src/view.c:2650 msgid "Cancel" msgstr "Abbruch" #: src/channelops.c:347 src/view.c:361 msgid "Mix down to mono" msgstr "Auf Mono runtermischen" #: src/channelops.c:445 src/view.c:340 msgid "Remove left channel" msgstr "Linken Kanal löschen" #: src/channelops.c:455 src/view.c:349 msgid "Remove right channel" msgstr "Rechten Kanal löschen" #: src/channelops.c:539 msgid "Swap channels" msgstr "Kanäle austauschen" #: src/channelops.c:541 msgid "Not stereo" msgstr "Nicht Stereo" #: src/channelops.c:643 #, c-format msgid "Convert from %d to %d channels" msgstr "Von %d auf %d Kanäle konvertieren" #: src/channelops.c:692 msgid "Sweep: Add/Remove channels" msgstr "Sweep: Kanäle addieren/löschen" #: src/driver.c:369 msgid "Sweep: audio device configuration" msgstr "Sweep: Audiogerätekonfiguration" #: src/driver.c:410 msgid "Changes to device settings will take effect on next playback." msgstr "" "Änderungen der Geräte-Einstellungen werden bim nächsten Abspielen aktiviert." #: src/driver.c:424 msgid "Device name" msgstr "Gerätename" #: src/driver.c:430 msgid "Set the main device for playback and recording" msgstr "Wähle das Hauptgerät für Abspielen und Aufnehmen" #: src/driver.c:440 msgid "Main device:" msgstr "Hauptgerät" #: src/driver.c:454 src/driver.c:636 src/samplerate.c:570 msgid "Default" msgstr "Voreinstellung" #: src/driver.c:467 msgid "Use a different device for monitoring" msgstr "Ein anderes Gerät zum Vorhören einsetzen" #: src/driver.c:479 msgid "Monitor output:" msgstr "Ausgabe vorhören:" #: src/driver.c:504 msgid "Swap" msgstr "Austauschen" #: src/driver.c:512 msgid "Swap main and monitor devices." msgstr "Hauptgerät und Vorhörgerät austauschen." #: src/driver.c:521 src/driver.c:622 src/file_speex.c:1957 #: src/file_vorbis.c:1348 src/samplerate.c:556 src/sweep_sample.c:532 msgid "Reset" msgstr "Zurücksetzen" #: src/driver.c:529 msgid "Reset to the last remembered device names." msgstr "Auf die zuletzt gespeicherten Gerätenamen zurücksetzen." #: src/driver.c:535 src/file_speex.c:1971 src/file_vorbis.c:1362 #: src/param.c:747 src/sweep_sample.c:543 msgid "Defaults" msgstr "Voreinstellungen" #: src/driver.c:543 msgid "Set to default device names." msgstr "Auf voreingestellten Gerätenamen einstellen." #: src/driver.c:554 msgid "Device buffering" msgstr "Gerätepuffer" #: src/driver.c:564 msgid "" "Low latency /\n" "More dropouts" msgstr "" "Geringe Verzögerung /\n" "Mehr Ausfälle" #: src/driver.c:586 msgid "" "High latency /\n" "Fewer dropouts" msgstr "" "Hohe Verzögerung /\n" "Weniger Ausfälle" #: src/driver.c:590 msgid "" "Varying this slider controls the lag between cursor movements and playback. " "This is particularly noticeable when \"scrubbing\" during playback.\n" "\n" "Lower values improve responsiveness but may degrade audio quality on heavily-" "loaded systems." msgstr "" "Änderungen dieses Balkens kontrollieren die Verzögerung zwischen dem Bewegen " "des Cursors und dem Abspielen.\n" "Beim \"scrubbing\" während des Abspielens ist die Verzögerung am " "auffälligsten.\n" "\n" "Niedrigere Werte erhöhen die Empfindlichkeit, aber können auf stark " "belasteten Systemen auch die Tonqualität verschlechtern." #: src/driver.c:609 msgid "Remember these options" msgstr "Optionen speichern" #: src/driver.c:630 msgid "Reset to the last remembered device buffering." msgstr "Auf zuletzt gespeicherte Gerätepufferung zurücksetzen." #: src/driver.c:644 msgid "Set to default device buffering." msgstr "Auf voreingestellten Gerätepuffer einstellen." #: src/edit.c:1291 msgid "No selection to copy" msgstr "Keine Auswahl zu kopieren" #: src/edit.c:1308 src/view.c:572 src/view.c:1150 msgid "Copy" msgstr "Kopieren" #: src/edit.c:1342 msgid "No selection to cut" msgstr "Keine Auswahl auszuschneiden" #: src/edit.c:1358 src/view.c:568 src/view.c:1144 msgid "Cut" msgstr "Ausschneiden" #: src/edit.c:1388 msgid "No selection to clear" msgstr "Keine Auswahl auszuradieren" #: src/edit.c:1404 src/view.c:576 src/view.c:1156 msgid "Clear" msgstr "Ausradieren" #: src/edit.c:1430 msgid "No selection to delete" msgstr "Keine Auswahl zu löschen" #: src/edit.c:1447 src/view.c:564 msgid "Delete" msgstr "Löschen" #: src/edit.c:1482 msgid "Nothing to crop out" msgstr "Nichts zuzuschneiden" #: src/edit.c:1498 src/view.c:580 src/view.c:1162 src/view.c:1868 msgid "Crop" msgstr "Zuschneiden" #: src/edit.c:1572 src/edit.c:1646 src/edit.c:1730 msgid "Clipboard data has incompatible format" msgstr "Daten im Zwischenspeicher haben kein kompatibles Format" #: src/edit.c:1590 msgid "Paste insert" msgstr "Neu einfügen" #: src/edit.c:1669 msgid "Paste mix" msgstr "Einmischen" #: src/edit.c:1757 msgid "Paste xfade" msgstr "Kreuzeinblenden" #: src/file_dialogs.c:73 msgid "MP3 export unsupported" msgstr "MP3 Export nicht unterstützt" #: src/file_dialogs.c:74 msgid "" "Export to MP3 format cannot legally be supported in free software\n" "due to patent licensing restrictions.\n" "\n" "Please use Ogg Vorbis format instead, which\n" "provides better quality and is free." msgstr "" "Export in MP3 Format kann aus Patentlizensrechtlichen \n" "Gründen nicht legal unterstützt werden in freier \n" "Software.\n" "\n" "Bitte benutzen Sie stattdessen das Ogg Vorbis Format,\n" "welches eine bessere Qualität bietet und frei ist." #: src/file_dialogs.c:99 msgid "Raw PCM (headerless)" msgstr "Rohes PCM (ohne Header)" #: src/file_dialogs.c:157 #, c-format msgid "%s does not exist." msgstr "%s existiert nicht." #: src/file_dialogs.c:158 msgid "Directory does not exist" msgstr "Verzeichnis existiert nicht." #: src/file_dialogs.c:262 #, c-format msgid "" "Unable to read\n" "%s" msgstr "" "%s\n" "nicht lesbar" #: src/file_dialogs.c:289 #, fuzzy msgid "Sweep: Open Files" msgstr "Sweep: Neue Datei" #: src/file_dialogs.c:370 #, c-format msgid "" "Are you sure you want to revert %s to\n" "%s?\n" "\n" "All changes and undo information will be lost." msgstr "" "Sind Sie sicher, daß Sie von %s auf \n" "%s zurückgehen möchten?\n" "\n" "Alle Änderungen und Undo Informationen werden verloren gehen." #: src/file_dialogs.c:374 msgid "Revert file" msgstr "Datei-Änderungen verwerfen" #: src/file_dialogs.c:375 src/view.c:509 msgid "Revert" msgstr "Änderung verwerfen" #: src/file_dialogs.c:375 msgid "Don't revert" msgstr "Nicht verwerfen" #: src/file_dialogs.c:545 src/file_dialogs.c:824 #, c-format msgid "Save as %s cancelled" msgstr "Speichern unter %s storniert" #: src/file_dialogs.c:582 msgid "By extension" msgstr "Nach Dateiendung" #: src/file_dialogs.c:640 msgid "MP3 (Use Ogg Vorbis instead)" msgstr "MP3 (verwende Ogg Vorbis stattdessen)" #: src/file_dialogs.c:707 msgid "Sweep: Save file" msgstr "Sweep: Datei speichern" #: src/file_dialogs.c:721 msgid "Save Options" msgstr "Speicheroptionen" #: src/file_dialogs.c:730 msgid "Determine File Type:" msgstr "Dateityp bestimmen:" #: src/file_dialogs.c:810 #, c-format msgid "" "You are not allowed to write to\n" "%s" msgstr "" "Sie haben keine Rechte, auf\n" "%s zu schreiben" #: src/file_dialogs.c:812 #, c-format msgid "%s exists. Overwrite?" msgstr "%s existiert. Überschreiben?" #: src/file_dialogs.c:814 msgid "File exists" msgstr "Datei existiert." #: src/file_dialogs.c:815 msgid "Overwrite" msgstr "Überschreiben" #: src/file_dialogs.c:815 msgid "Don't overwrite" msgstr "Nicht überschreiben" #: src/file_dialogs.c:887 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Are you sure you want to save?" msgstr "" "%s\n" "wurde auf der Festplatte verändert.\n" "\n" "Sind Sie sicher, daß Sie speichern möchten?" #: src/file_dialogs.c:891 src/sweep_undo.c:331 src/view.c:3401 msgid "File modified" msgstr "Dabei modifiziert" #: src/file_dialogs.c:892 src/file_speex.c:2127 src/file_vorbis.c:1611 #: src/view.c:501 src/view.c:1782 msgid "Save" msgstr "Speichern" #: src/file_dialogs.c:892 src/file_speex.c:2138 src/file_vorbis.c:1622 msgid "Don't save" msgstr "Nicht speichern" #: src/file_sndfile1.c:327 msgid "Powered by libsndfile" msgstr "Powered by libsndfile" #: src/file_sndfile1.c:354 msgid "Encoding" msgstr "Kodierung" #: src/file_sndfile1.c:375 msgid "Encoding:" msgstr "Kodierung:" #: src/file_sndfile1.c:447 msgid "Sampling rate:" msgstr "Abtastrate:" #: src/file_sndfile1.c:480 src/file_speex.c:2078 src/file_vorbis.c:1562 #: src/samplerate.c:584 msgid "About" msgstr "Über ..." #: src/file_sndfile1.c:496 msgid "" "Libsndfile is a C library by Erik de Castro Lopo\n" "for reading and writing files containing sampled sound." msgstr "" "Libsndfile ist eine C Bibliothek von Erik de Castro Lopo\n" "zum Lesen und Schreiben von Dateien mit abgetastetem Schall." #: src/file_sndfile1.c:507 msgid "" "This user interface by Erik de Castro Lopo\n" " and Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "Benutzerinterface von Erik de Castro Lopo\n" "und Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" #: src/file_sndfile1.c:550 msgid "Sweep: Save PCM options" msgstr "Sweep: PCM-Optionen speichern" #: src/file_sndfile1.c:719 msgid "Sweep: Load Raw PCM options" msgstr "Sweep: Rohe PCM-Optionen laden" #: src/file_sndfile1.c:771 src/file_mad.c:435 src/file_speex.c:577 #: src/file_vorbis.c:324 #, c-format msgid "Loading %s" msgstr "Lade %s" #: src/file_sndfile1.c:998 src/file_speex.c:1074 src/file_vorbis.c:702 #, c-format msgid "Saving %s" msgstr "Speichere %s" #: src/file_speex.c:1016 src/file_speex.c:1036 msgid "Speex encoding results" msgstr "Speex Kodierungsergebnisse" #: src/file_speex.c:1208 msgid "Narrowband ~8 kHz (telephone quality)" msgstr "Schmalband -8 kHz (Telefonqualität)" #: src/file_speex.c:1209 msgid "Wideband ~16 kHz" msgstr "Breitband -16 kHz" #: src/file_speex.c:1211 msgid "Ultra-wideband 32-48 kHz" msgstr "Ultra-Breitband 32-48 kHz" #: src/file_speex.c:1218 msgid "Constant bitrate (CBR) with no features" msgstr "Konstante Bitrate (CBR) ohne Eigenschaften" #: src/file_speex.c:1221 msgid "CBR with Voice Activity Detection (VAD)" msgstr "CBR mit Stimmaktivitätserkennung (VAD)" #: src/file_speex.c:1222 msgid "VAD generates low bitrate comfort noise to replace non-speech" msgstr "" "VAD generiert Grundrauschen mit niedriger Bitrate im Falle von Nicht-Sprache" #: src/file_speex.c:1225 msgid "CBR with VAD and Discontinuous Transmission (DTX)" msgstr "CBR mit VAD und Diskontinuierlicher Übertragung (DTX)" #: src/file_speex.c:1226 msgid "DTX marks extended pauses with a minimum bitrate signal" msgstr "DTX markiert ausgedehnte Pausen mit einem Signal mit minimaler Bitrate" #: src/file_speex.c:1229 msgid "Variable bitrate (VBR) with VAD" msgstr "Variable Bitrate (VBR) mit VAD" #: src/file_speex.c:1230 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech; this " "selection uses VBR without DTX, which may improve performance compared to " "full VBR in the presence of background noise." msgstr "" "VBR erlaubt es, die Bitrate an die Komplexität der Sprache anzupassen. Diese " "Auswahl verwendet VBR ohne DTX, was die Leistung im Vergleich zu voller VBR " "bei Hintergrundrauschen verbessern kann." #: src/file_speex.c:1235 msgid "Variable bitrate (VBR) with all features" msgstr "Variable Bitrate (VBR) mit allen Eigenschaften" #: src/file_speex.c:1236 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech, and handles " "pauses using VAD and DTX" msgstr "" "VBR erlaubt es, die Bitrate an die Komplexität der Sprachsignale anzupassen, " "und handhabt Pausen mit VAD und DTX" #: src/file_speex.c:1240 msgid "Constant bitrate (CBR)" msgstr "Konstante Bitrate (CBR)" #: src/file_speex.c:1242 msgid "Variable bitrate (VBR)" msgstr "Variable Bitrate (VBR)" #: src/file_speex.c:1243 msgid "VBR allows the bitrate to adapt to the complexity of the speech." msgstr "" "VBR erlaubt die Anpassung der Bitrate an die Komplexität der Sprachsignale." #: src/file_speex.c:1298 src/file_speex.c:1803 msgid "Average bitrate" msgstr "Durchschnittliche Bitrate" #: src/file_speex.c:1301 msgid "Maximum bitrate" msgstr "Maximale Bitrate" #: src/file_speex.c:1494 src/file_vorbis.c:1013 msgid "Hack the planet!" msgstr "Hack the planet!" #: src/file_speex.c:1580 msgid "Sweep: Speex save options" msgstr "Sweep: Speex Speicheroptionen" #: src/file_speex.c:1631 msgid "Speex encoding" msgstr "Speex Kodierung" #: src/file_speex.c:1644 msgid "Mode:" msgstr "Modus:" #: src/file_speex.c:1670 msgid "Auto" msgstr "Auto" #: src/file_speex.c:1679 msgid "" "Automatically select the encoding mode based on the sampling rate of the " "file." msgstr "" "Automatische Auswahl des Kodierungsmodus basierend auf der Abtastrate der " "Datei. " #: src/file_speex.c:1732 src/file_vorbis.c:1160 msgid "Encoding quality:" msgstr "Kodierungsqualität:" #: src/file_speex.c:1775 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file)." msgstr "" "Kodierungsqualität zwischen 0 (niedrigste Qualität, kleinste Datei) und 10 " "(höchste Qualität, größte Datei)." #: src/file_speex.c:1785 msgid "Enable bitrate management" msgstr "Bitratenmanagement aktivieren" #: src/file_speex.c:1798 msgid "" "For non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For " "VBR encoding, this sets the average bitrate." msgstr "" "Für nicht-VBR (konstante Bitrate) Kodierung setzt dies die maximale Bitrate. " "Für VBR Kodierung setzt dies die durchschnittliche Bitrate." #: src/file_speex.c:1821 msgid "bps" msgstr "bps" #: src/file_speex.c:1827 msgid "Extra" msgstr "Extra" #: src/file_speex.c:1849 msgid "Encoding complexity:" msgstr "Kodierungskomplexität:" #: src/file_speex.c:1888 msgid "" "This sets the encoding speed/quality tradeoff between 0 (faster encoding) " "and 10 (slower encoding)" msgstr "" "Dies setzt die Kodierungsgeschwindigkeit in Bezug zur Qualitzet, Werte " "zwischen 0 (schnellere Kodierung) und 10 (langsamere Kodierung)" #: src/file_speex.c:1904 msgid "Speex frames per Ogg packet:" msgstr "Speex Rahmen pro Ogg Paket:" #: src/file_speex.c:1930 msgid "" "Number of Speex frames to pack into each Ogg packet. Higher values save " "space at low bitrates." msgstr "" "Anzahl Speex Rahmen pro Ogg Paket. Höhere Werte sparen Platz bei niedrigen " "Bitraten." #: src/file_speex.c:1945 src/file_vorbis.c:1336 msgid "Remember these encoding options" msgstr "Speichere Kodierungseinstellungen" #: src/file_speex.c:1965 src/file_vorbis.c:1356 msgid "Reset to the last remembered encoding options." msgstr "Auf die zuletzt gespeicherte Kodierungseinstellung zurücksetzen." #: src/file_speex.c:1980 msgid "Automatically select best encoding options for this file." msgstr "Automatisch die besten Kodierungseinstellungen für diese Datei wählen." #: src/file_speex.c:1985 src/file_vorbis.c:1469 msgid "Ogg stream" msgstr "Ogg Strom" #: src/file_speex.c:1998 src/file_vorbis.c:1482 msgid "Ogg stream serial number:" msgstr "Seriennummer Ogg Strom:" #: src/file_speex.c:2019 src/file_vorbis.c:1503 msgid "Remember this serial number" msgstr "Diese Seriennummer speichern" #: src/file_speex.c:2029 src/file_vorbis.c:1513 msgid "" "Remember this serial number for future re-use.\n" "USE OF THIS OPTION IS NOT RECOMMENDED.\n" "Each encoded file should have a different serial number; re-use of Ogg " "serial numbers in different files may create incompatabilities with " "streaming applications. This option is provided for bitstream engineering " "purposes only.\n" "If this option is not checked, new serial numbers will be randomly generated " "for each file encoded." msgstr "" "Speichere diese Seriennummer für spätere Zwecke.\n" "EINSATZ DIESER OPTION WIRD NICHT EMPFOHLEN.\n" "Jede kodierte Datei sollte eine andere Seriennummer bekommen; di " "Wiederverwendung von Ogg Seriennummern in verschiedenen Dateien kann zu " "Inkompatibilitäten mit Streaming Anwendungen führend. Diese Option dient " "ausschließlich zum Anpassen des Bistroms.\n" "Falls diese Option nicht ausgewählt wird, wird für jede kodierte Datei eine " "neue Seriennummer zufällig ausgewählt." #: src/file_speex.c:2056 src/file_vorbis.c:1540 msgid "Randomize!" msgstr "Würfeln!" #: src/file_speex.c:2063 src/file_vorbis.c:1547 msgid "" "Generate a random serial number for the Ogg bitstream. The number will " "change while this button is held down." msgstr "" "Erzeuge eine zufällige Seriennummer für den Ogg Bitstrom. Die Nummer wird " "sich ändern während dieser Knopf gedruckt bleibt." #: src/file_speex.c:2094 msgid "" "Speex is a high quality speech codec designed for\n" "voice over IP (VoIP) and file-based compression.\n" "It is free, open and unpatented." msgstr "" "Speex ist ein qualitativ howertiger Sprachkodierer entwickelt für\n" "voice over IP (VoIP) und Datei-basierte Kompression.\n" "Er ist frei, offen und ohne Patente." #: src/file_speex.c:2105 msgid "" "Ogg, Speex, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ogg, Speex, Xiph,org Foundation und ihre Logos\n" "sind Trademarks (TM) der Xiph.org Foundation.\n" "Verwendung erlaubt." #: src/file_speex.c:2120 src/file_vorbis.c:1604 src/samplerate.c:611 msgid "" "This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "Benutzerinterface von Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" #: src/file_vorbis.c:356 #, c-format msgid "" "Decoding %s\n" "Encoded by: %s\n" "\n" "%s" msgstr "" "Dekodierung %s\n" "Kodierung durch\" %s\n" "\n" "%s" #: src/file_vorbis.c:470 msgid "Unsupported encoding mode" msgstr "Nicht unterstützter Kodierungmodus." #: src/file_vorbis.c:473 msgid "Invalid encoding options" msgstr "Nicht zulässige Kodierungsoptionen" #: src/file_vorbis.c:643 src/file_vorbis.c:663 msgid "Ogg Vorbis encoding results" msgstr "Ogg Vorbis Kodierungsergebnisse" #: src/file_vorbis.c:1089 msgid "Sweep: Ogg Vorbis save options" msgstr "Sweep: Ogg Vorbis Speicheroptionen" #: src/file_vorbis.c:1148 msgid "Vorbis encoding" msgstr "Vorbis Kodierung" #: src/file_vorbis.c:1195 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file) using variable bitrate mode (VBR)." msgstr "" "Kodierqualität zwischen 0 (niedrigste Qualität, kleinste Date) und 10 " "(höchste Qualität, größte Datei) bei varibler Bitrate (VBR)" #: src/file_vorbis.c:1205 msgid "Enable bitrate management engine" msgstr "Bitratenmanagement erlauben" #: src/file_vorbis.c:1211 msgid "" "This enables average bitrate mode (ABR). You must suggest a nominal average " "bitrate and may specify minimum and maximum bounds.\n" "For best results it is generally recommended that you use the variable " "bitrate 'encoding quality' control (above) instead." msgstr "" "Ermöglicht Durchschnittlichen Bitratenmodus (ABR). Eine nominale " "Durchschnittsbitrate wird benötigt und minimale und maximale Grenzen können " "wahlweise angegeben werden.\n" "Für gute Resultate wird stattdessen generell die Variable Bitrate " "Kodierungsqualität Einstellung (siehe oben) empfohlen." #: src/file_vorbis.c:1221 msgid "Bitrate management engine" msgstr "Bitratenmanagement" #: src/file_vorbis.c:1247 msgid "Nominal bitrate (ABR):" msgstr "Nominale Bitrate (ABR):" #: src/file_vorbis.c:1260 msgid "" "Specify a nominal bitrate. Attempt to encode at a bitrate averaging this." msgstr "" "Geben Sie eine nominale Bitrate an. Es wird versucht, mit einer Bitrate, die " "im Durchschnitt die nominale darstellt, zu kodieren." #: src/file_vorbis.c:1264 src/file_vorbis.c:1293 src/file_vorbis.c:1323 msgid "kbps" msgstr "kbps" #: src/file_vorbis.c:1276 msgid "Minimum bitrate:" msgstr "Minimale Bitrate:" #: src/file_vorbis.c:1289 msgid "" "Specify a minimum bitrate, useful for encoding for a fixed-size channel. " "(Optional)" msgstr "" "Geben Sie eine minimale Bitrate an, die zum Kodieren für einen Kanal fester " "Größe geeignet ist. (Optional)" #: src/file_vorbis.c:1306 msgid "Maximum bitrate:" msgstr "Maximale Bitrate:" #: src/file_vorbis.c:1319 msgid "" "Specify a maximum bitrate, useful for streaming applications. (Optional)" msgstr "" "Gben Sie eine maximale Bitrate an, die für Streaminganwendungen geeignet " "ist. (Optional)" #: src/file_vorbis.c:1370 msgid "Set to default encoding options." msgstr "Auf voreingestellte Kodierungsoptionen einstellen." #: src/file_vorbis.c:1377 msgid "Metadata" msgstr "Metadaten" #: src/file_vorbis.c:1399 msgid "Title:" msgstr "Titel:" #: src/file_vorbis.c:1399 msgid "Track/Work name" msgstr "Stück/Arbeitsname" #: src/file_vorbis.c:1401 msgid "Version:" msgstr "Version:" #: src/file_vorbis.c:1402 msgid "" "The version field may be used to differentiate multiple versions of the same " "track title in a single collection. (e.g. remix info)" msgstr "" "Das Versionsfeld kann zum Unterscheiden mehrerer Versionen des gleichen " "Stücks in einer einzigen Sammlung eingesetzt werden. (e.g. remix info)" #: src/file_vorbis.c:1406 msgid "Album:" msgstr "Album:" #: src/file_vorbis.c:1407 msgid "The collection name to which this track belongs" msgstr "Die Sammlung, zu der dieses Stück gehört" #: src/file_vorbis.c:1409 msgid "Artist:" msgstr "Künstler:" #: src/file_vorbis.c:1410 msgid "" "The artist generally considered responsible for the work. In popular music " "this is usually the performing band or singer. For classical music it would " "be the composer. For an audio book it would be the author of the original " "text." msgstr "" "Der Künstler, der generell als verantwortlich für das Werk zeichnet. In " "Popmusik ist dies gewöhnlich die aufführende Band oder der Sänger. Bei " "klassischer Musik wäre dies der Komponist. Bei einem Audiobuch wäre es der " "Author des Originaltextes." #: src/file_vorbis.c:1416 msgid "Performer:" msgstr "Darsteller:" #: src/file_vorbis.c:1417 msgid "" "The artist(s) who performed the work. In classical music this would be the " "conductor, orchestra, soloists. In an audio book it would be the actor who " "did the reading. In popular music this is typically the same as the ARTIST " "and is omitted." msgstr "" "Der/die Künstler, der das Werk aufführte. In klassischer Musik wäre das der " "Dirigent, das Orchester und die Solisten. In einem Audiobuch wäre es der " "Vorleser. In Popmusik ist es typischerweise dieselbe Person wie der Künstler " "und wird deshalb weggelassen." #: src/file_vorbis.c:1424 msgid "Copyright:" msgstr "Copyright:" #: src/file_vorbis.c:1425 msgid "" "Copyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'" msgstr "" "Copyright Zuerkennung, z.B. '2001 Nobody's Band' oder '1999 Jack Moffitt'" #: src/file_vorbis.c:1428 msgid "License:" msgstr "Lizenz:" #: src/file_vorbis.c:1429 msgid "" "License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL " "to a license such as a Creative Commons license (\"www.creativecommons.org/" "blahblah/license.html\") or the EFF Open Audio License ('distributed under " "the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/" "eff_oal.html for details'), etc." msgstr "" "Lizenzinformation, z.B. 'Alle Rechte Reserviert', 'Jegliche Benutzung " "Erlaubt' eine URL zu einer Lizenz wie der Creative Commons Lizenz (\"www." "creativecommons.org/blahblah/license.html\") oder die EFF Open Audio Lizenz " "('verteilt under den Bedingungen der Open Audio Lizenz. Für weitere Details " "siehe http://www.eff.org/IP/Open_licenses/eff_oal.html'), etc." #: src/file_vorbis.c:1438 msgid "Organization:" msgstr "Organisation:" #: src/file_vorbis.c:1439 msgid "Name of the organization producing the track (i.e. the 'record label')" msgstr "" "Name der Organisation, die das Stück herstellt (i.e. die 'Plattenfirma')" #: src/file_vorbis.c:1442 msgid "Description:" msgstr "Beschreibung:" #: src/file_vorbis.c:1443 msgid "A short text description of the contents" msgstr "Eine kurze textuelle Beschreibung des Inhalts." #: src/file_vorbis.c:1445 msgid "Genre:" msgstr "Genre:" #: src/file_vorbis.c:1446 msgid "A short text indication of music genre" msgstr "Ein kurzer Text, der das Musik-Genre angibt." #: src/file_vorbis.c:1448 msgid "Date:" msgstr "Datum:" #: src/file_vorbis.c:1449 msgid "Date the track was recorded" msgstr "Datum, an dem das Stück aufgenommen wurde." #: src/file_vorbis.c:1451 msgid "Location:" msgstr "Ort:" #: src/file_vorbis.c:1452 msgid "Location where track was recorded" msgstr "Ort an dem das Stück aufgenommen wurde" #: src/file_vorbis.c:1454 msgid "Contact:" msgstr "Kontakt:" #: src/file_vorbis.c:1455 msgid "" "Contact information for the creators or distributors of the track. This " "could be a URL, an email address, the physical address of the producing " "label." msgstr "" "Kontaktinformation für die Hersteller oder Verteiler des Stücks. Dies könnte " "eine URL, eine email Adresse, oder die physikalische Adresse der " "Plattenfirma sein." #: src/file_vorbis.c:1460 msgid "ISRC:" msgstr "ISRC:" #: src/file_vorbis.c:1461 msgid "" "ISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-" "content/online/isrc_intro.html) for more information on ISRC numbers." msgstr "" "ISRC Nummer für das Stück; siehe die ISRC Einführungsseite (http://www.ifpi." "org/site-content/online/isrc_intro.html) für weitere Informationen über ISRC " "Nummern." #: src/file_vorbis.c:1578 msgid "" "Ogg Vorbis is a high quality general purpose\n" "perceptual audio codec. It is free, open and\n" "unpatented." msgstr "" "Ogg Vorbis ist ein wahrnehmungsbasierter, genereller, \n" "hoch qualitativer Audio-Codec. Es ist frei, offen \n" "und ohne Patente." #: src/file_vorbis.c:1589 msgid "" "Ogg, Vorbis, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ogg, Vorbis, Xiph.org Foundation und ihre Logos \n" "sind Trademarks (TM) der Xiph.org Foundation.\n" "Verwendung erlaubt." #: src/head.c:408 src/view.c:2324 msgid "Cursor position (indicator)" msgstr "Cursorposition (Anzeige)" #: src/head.c:449 msgid "Reverse mode (toggle)" msgstr "Rückwärts abspielen an/aus" #: src/head.c:467 msgid "Loop mode recording (toggle)" msgstr "Aufnahmeschleife an/aus" #: src/head.c:486 msgid "Record into selection" msgstr "Aufnahme in Auswahl" #: src/head.c:503 src/view.c:1068 msgid "Stop" msgstr "Stop" #: src/head.c:516 src/view.c:2469 msgid "Go to beginning" msgstr "Sprung zum Anfang" #: src/head.c:527 src/view.c:2480 msgid "Rewind" msgstr "Rücklauf" #: src/head.c:540 src/view.c:2492 msgid "Fast forward" msgstr "Vorlauf" #: src/head.c:555 src/view.c:2505 msgid "Go to the end" msgstr "Sprung zum Ende" #: src/interface.c:327 msgid "Sweep" msgstr "Sweep" #: src/interface.c:352 src/view.c:446 msgid "File" msgstr "Datei" #: src/interface.c:357 msgid "New" msgstr "Neu" #: src/interface.c:366 msgid "Open" msgstr "Öffnen" #: src/interface.c:375 src/sweep_sample.c:800 src/sweep_sample.c:808 #: src/view.c:529 msgid "Quit" msgstr "Verlassen" #: src/interface.c:386 src/view.c:1073 msgid "Help" msgstr "Hilfe" #: src/interface.c:391 msgid "About..." msgstr "Über sweep..." #: src/interface.c:414 src/view.c:618 msgid "Select" msgstr "Auswahl" #: src/interface.c:415 msgid "Select regions of a sample" msgstr "Auswahl von Segmenten" #: src/interface.c:416 msgid "" "This tool allows you to select regions of a sample. You can then apply edits " "and effects to the: selected regions. Hold down shift whilst selecting to " "add discontinuous regions to the selection." msgstr "" "Dieses Werkzeug erlaubt es, Segmente auszuwählen. Änderungen und Effekte " "können dann auf die gewählten Segmente angewandt werden. Durch Halten der " "Shift-Taste beim Auswählen können mehrere unzusammenhängende Segmente " "ausgewählt werden." #: src/interface.c:433 msgid "Move" msgstr "Verschieben" #: src/interface.c:434 msgid "Move regions in a sample" msgstr "Segmente verschieben" #: src/interface.c:435 msgid "With this tool you can move selected regions of a sample." msgstr "Dieses Werkzeug erlaubt es, Segmente zu verschieben." #: src/interface.c:447 msgid "Scrub" msgstr "Scrub" #: src/interface.c:448 msgid "Locate sounds directly" msgstr "Direktzugriff auf Sounds" #: src/interface.c:449 msgid "" "Place the play marker on a sample. Click anywhere in a view to instantly " "move the playback position to that part of the sample." msgstr "" "Zum sofortigen Wechseln der Abspielposition eines Samples mit der Mausauf " "die gewünschte Aufnahme im entsprechenden Fenster an der gewählten Position " "klicken." #: src/interface.c:466 msgid "Zoom" msgstr "Zoom" #: src/interface.c:467 msgid "Zoom in & out" msgstr "Zoom hinein & heraus" #: src/interface.c:468 msgid "" "Zoom in and out of a view. Click anywhere in a view to zoom in on that part " "of the sample. Hold down shift and click on the view to zoom out." msgstr "" "Dieses Werkzeug erlaubt es, ine eine Ansicht hinein zu zoomen oder aus ihr " "heraus zu zoomen. Durch Mausklick wird die Stelle zum Hineinzoomen " "ausgewählt. Durch Halten der Shift-Taste beim Mausklick wird herausgezoomt." #: src/interface.c:484 msgid "Pencil" msgstr "Stift" #: src/interface.c:485 msgid "Edit PCM sample values" msgstr "PCM Werte verändern" #: src/interface.c:486 msgid "When zoomed down to individual samples, click to edit" msgstr "Bei Abtastwertauflösung zum Bearbeiten anklicken" #: src/interface.c:497 msgid "Noise" msgstr "Rauschen" #: src/interface.c:498 msgid "Add noise" msgstr "Rauschen hinzufügen" #: src/interface.c:499 msgid "Randomise PCM values" msgstr "PCM Werte auf Zufallszahlen setzen" #: src/notes.c:61 msgid "C3" msgstr "C3" #: src/notes.c:62 msgid "C#3" msgstr "Cis3" #: src/notes.c:63 msgid "D3" msgstr "D3" #: src/notes.c:64 msgid "Eb3" msgstr "Es3" #: src/notes.c:65 msgid "E3" msgstr "E3" #: src/notes.c:66 msgid "F3" msgstr "F3" #: src/notes.c:67 msgid "F#3" msgstr "Fis3" #: src/notes.c:68 msgid "G3" msgstr "G3" #: src/notes.c:69 msgid "G#3" msgstr "Gis3" #: src/notes.c:70 msgid "A3" msgstr "A3" #: src/notes.c:71 msgid "Bb3" msgstr "B3" #: src/notes.c:72 msgid "B3" msgstr "H3" #: src/notes.c:74 msgid "C4" msgstr "C4" #: src/notes.c:76 msgid "C#4" msgstr "Cis4" #: src/notes.c:77 msgid "D4" msgstr "D4" #: src/notes.c:78 msgid "Eb4" msgstr "Es4" #: src/notes.c:79 msgid "E4" msgstr "E4" #: src/notes.c:80 msgid "F4" msgstr "F4" #: src/notes.c:81 msgid "F#4" msgstr "Fis4" #: src/notes.c:82 msgid "G4" msgstr "G4" #: src/notes.c:83 msgid "G#4" msgstr "Gis4" #: src/notes.c:84 msgid "A4" msgstr "A4" #: src/notes.c:85 msgid "Bb4" msgstr "B4" #: src/notes.c:86 msgid "B4" msgstr "H4" #: src/notes.c:88 msgid "C5" msgstr "C5" #: src/notes.c:89 msgid "C#5" msgstr "Cis5" #: src/notes.c:90 msgid "D5" msgstr "D5" #: src/notes.c:91 msgid "D#5" msgstr "Dis5" #: src/notes.c:92 msgid "E5" msgstr "E5" #: src/notes.c:94 msgid "F5" msgstr "F5" #: src/notes.c:95 msgid "F#5" msgstr "Fis5" #: src/notes.c:96 msgid "G5" msgstr "G5" #: src/notes.c:97 msgid "G#5" msgstr "Gis5" #: src/notes.c:98 msgid "A5" msgstr "A5" #: src/notes.c:99 msgid "Bb5" msgstr "B5" #: src/notes.c:100 msgid "B5" msgstr "H5" #: src/param.c:117 #, c-format msgid "TRUE" msgstr "WAHR" #: src/param.c:118 #, c-format msgid "FALSE" msgstr "FALSCH" #: src/param.c:738 msgid "Parameters" msgstr "Parameter" #: src/param.c:769 msgid "Preview" msgstr "Vorschau" #: src/paste_dialogs.c:221 msgid "Start gain" msgstr "Nochmals anfangen" #: src/paste_dialogs.c:223 src/record.c:489 src/record.c:507 #: plugins/echo/echo.c:61 msgid "Gain" msgstr "Verstärkung" #: src/paste_dialogs.c:230 msgid "Sweep: Paste crossfade" msgstr "Sweep: Speicher Überblenden" #: src/paste_dialogs.c:232 msgid "Sweep: Paste mix" msgstr "Sweep: Einmischen" #: src/paste_dialogs.c:257 msgid "Source" msgstr "Quelle" #: src/paste_dialogs.c:257 msgid "Clipboard" msgstr "Zwischenablage" #: src/paste_dialogs.c:279 src/paste_dialogs.c:318 msgid "End gain" msgstr "And a nice dinner" #: src/paste_dialogs.c:287 src/paste_dialogs.c:326 msgid "Invert phase" msgstr "Phase invertieren" #: src/paste_dialogs.c:295 msgid "Destination" msgstr "Ziel" #: src/paste_dialogs.c:345 msgid "" "Indicates the total duration of the clipboard, which is the maximum length " "that will be pasted." msgstr "" "Zeigt die komplette Länge der Zwischenablage an, welches die maximale " "Einzufügende Länge ist." #: src/paste_dialogs.c:362 msgid "Clipboard duration:" msgstr "Clipboard Dauer:" #: src/paste_dialogs.c:375 msgid "Crossfade" msgstr "Überblende" #: src/paste_dialogs.c:375 msgid "Mix" msgstr "Mix" #: src/paste_dialogs.c:394 msgid "Don't crossfade" msgstr "Nicht überblenden" #: src/paste_dialogs.c:394 msgid "Don't mix" msgstr "Nicht mischen" #: src/preferences.c:62 msgid "Error creating ~/.sweep" msgstr "Fehler beim Erzeugen von ~/.sweep" #: src/preferences.c:66 #, c-format msgid "Created %s/ mode %04o\n" msgstr "%s/ mode %04o erzeugt\n" #: src/preferences.c:73 msgid "Error on ~/.sweep" msgstr "Fehler auf ~/.sweep" #: src/preferences.c:82 msgid "Error setting permissions on ~/.sweep" msgstr "Fehler beim Setzen der Rechte auf ~/.sweep" #: src/preferences.c:89 msgid "Error accessing ~/.sweep" msgstr "Fehler beim Zugriff auf ~/.sweep" #: src/preferences.c:124 msgid "Error opening ~/.sweep/preferences.tdb" msgstr "Fehler beim Öffnen von ~/.sweep/preferences.tdb" #: src/record.c:94 src/record.c:544 msgid "Ready to record" msgstr "Bereit zur Aufnahme" #: src/record.c:308 msgid "No selection to record into" msgstr "Keine Auswahl in die aufgenommen werden könnte" #: src/record.c:446 msgid "Sweep: Record" msgstr "Sweep: Aufnahme" #: src/record.c:459 src/undo_dialog.c:376 msgid "File:" msgstr "Datei:" #: src/record.c:482 msgid "Previous sound" msgstr "Vorheriger Sound" #: src/record.c:496 msgid "" "This slider allows you to mix the new recording in with the previous " "contents of the buffer. Set it to -inf dB to overwrite the previous sound." msgstr "" "Dieser Schieber erlaubt es, die neue Aufnahme mit der vorherigen, noch im " "Puffer gespeicherten zu mischen. Stelle ihn auf -inf dB, um den vorherigen " "Sound zu überschreiben." #: src/record.c:502 msgid "Recorded sound" msgstr "Aufnahme" #: src/record.c:514 msgid "" "This slider allows you to reduce the level of the recorded sound. Set it to " "0 dB to record without any reduction. Note that setting this to -inf dB will " "record silence." msgstr "" "Dieser Schieber erlaubt es, den Aufnahmelevel zu reduzieren. Setze ihn auf 0 " "dB, um ohne Reduktion aufzunehmen. Übrigens, -inf dB wird Stille aufnehmen." #: src/sample-display.c:223 msgid "New selection" msgstr "Neue Auswahl" #: src/sample-display.c:224 msgid "Selection: add/modify region" msgstr "Auswahl: hinzufügen/verändern" #: src/sample-display.c:225 msgid "Selection: subtract region" msgstr "Auswahl: Auswahl abziehen" #: src/samplerate.c:103 src/samplerate.c:167 msgid "Resample error" msgstr "Abtastratenänderungsfehler" #: src/samplerate.c:104 src/samplerate.c:168 msgid "libsamplerate error" msgstr "libsamplerate anchoir" #: src/samplerate.c:234 #, c-format msgid "Resample from %d Hz to %d Hz" msgstr "Resample zwischen %d Hz und %d Hz." #: src/samplerate.c:445 msgid "Sweep: Resample" msgstr "Sweep: Abtastrate ändern" #: src/samplerate.c:467 msgid "Conversion" msgstr "Konvertierung" #: src/samplerate.c:474 #, c-format msgid "Current sample rate: %d Hz" msgstr "Aktuelle Abtastrate: %d Hz" #: src/samplerate.c:483 msgid "New sample rate" msgstr "Neue Abtastrate:" #: src/samplerate.c:494 msgid "Quality" msgstr "Qualität" #: src/samplerate.c:501 msgid "Converter" msgstr "Konvertierer" #: src/samplerate.c:544 msgid "Remember this quality" msgstr "Diese Qualität speichern" #: src/samplerate.c:564 msgid "Reset to the last remembered quality." msgstr "Auf die zuletzt gespeicherte Qulität zurücksetzen." #: src/samplerate.c:578 msgid "Set to default quality." msgstr "Auf voreingestellte Qualität einstellen." #: src/samplerate.c:600 msgid "" "Secret Rabbit Code (aka libsamplerate) is a\n" "Sample Rate Converter for audio by Erik de Castro Lopo\n" msgstr "" "Secret Rabbit Code (auch libsamplerate genannt) ist ein\n" "Abtastraten-Konvertierer für Audio von Erik de Castro Lopo\n" #: src/samplerate.c:620 msgid "Resample" msgstr "Abtastrate änderung" #: src/samplerate.c:633 msgid "Don't resample" msgstr "Abtastrate nicht ändern" #: src/sw_chooser.c:51 src/sw_chooser.c:66 msgid "Custom" msgstr "Frei definiert" #: src/sw_chooser.c:52 msgid "192000 Hz (Studio quality)" msgstr "192000 Hz (Studioqualität)" #: src/sw_chooser.c:53 msgid " 96000 Hz (High quality)" msgstr " 96000 Hz (Hohe Qualität)" #: src/sw_chooser.c:54 msgid " 48000 Hz (DAT quality)" msgstr " 48000 Hz (DAT Qualität)" #: src/sw_chooser.c:55 msgid " 44100 Hz (CD quality)" msgstr " 44100 Hz (CD Qualität)" #: src/sw_chooser.c:56 msgid " 32000 Hz (Ultra-wideband voice quality)" msgstr " 32000 Hz (Ultra-Weitband Sprachqualität)" #: src/sw_chooser.c:57 msgid " 22050 Hz" msgstr " 22050 Hz" #: src/sw_chooser.c:58 msgid " 16000 Hz (Wideband voice quality)" msgstr " 16000 Hz (Weitband Sprachqualität)" #: src/sw_chooser.c:59 msgid " 11025 Hz" msgstr " 11025 Hz" #: src/sw_chooser.c:60 msgid " 8000 Hz (Narrowband voice quality)" msgstr " 8000 Hz (Engband Sprachqualität)" #: src/sw_chooser.c:61 msgid " 4000 Hz (Low quality)" msgstr " 4000 Hz (Niedrige Qualität)" #: src/sw_chooser.c:67 src/view.c:3446 src/view.c:3459 src/view.c:3498 #, c-format msgid "Mono" msgstr "Mono" #: src/sw_chooser.c:68 src/view.c:3446 src/view.c:3459 src/view.c:3501 #, c-format msgid "Stereo" msgstr "Stereo" #: src/sw_chooser.c:69 msgid "Quadraphonic" msgstr "Quadrophonisch" #: src/sw_chooser.c:306 msgid "Custom: " msgstr "Frei definiert:" #: src/sw_chooser.c:341 msgid "Sampling rate" msgstr "Abtastrate" #: src/sw_chooser.c:343 msgid "Hz" msgstr "Hz" #: src/sw_chooser.c:367 src/view.c:884 msgid "Channels" msgstr "Kanäle" #: src/sw_chooser.c:369 src/view.c:3505 msgid "channels" msgstr "Kanäle" #: src/sweep_filter.c:125 msgid "No selection to process" msgstr "Keine Auswahl zu bearbeiten" #: src/sweep_sample.c:119 src/view.c:3444 src/view.c:3450 src/view.c:3457 #: src/view.c:3463 msgid "Untitled" msgstr "Unbenannt" #: src/sweep_sample.c:324 msgid "Overflow" msgstr "Überfluß" #: src/sweep_sample.c:407 msgid "Sweep: New file" msgstr "Sweep: Neue Datei" #: src/sweep_sample.c:435 msgid "Name:" msgstr "Name:" #: src/sweep_sample.c:455 msgid "Duration:" msgstr "Dauer:" #: src/sweep_sample.c:471 msgid "hh:mm:ss.xxx" msgstr "hh:mm:ss.xxx" #: src/sweep_sample.c:514 msgid "Remember this format" msgstr "Dieses Format speichern" #: src/sweep_sample.c:520 msgid "" "Remember this sampling rate and channel configuration for creating new files." msgstr "" "Diese Abtastrate und Kanalkonfiguration zum Erzeugen neuer Dateien speichern." #: src/sweep_sample.c:540 msgid "Reset to the last remembered format for new files." msgstr "Auf das zuletzt gespeicherte Format für neue Dateien zurücksetzen." #: src/sweep_sample.c:551 msgid "Set to the default format for new files." msgstr "Auf voreingestelltes Format für neue Dateien einstellen." #: src/sweep_sample.c:567 msgid "" "Indicates the amount of data memory which will be allocated for the selected " "duration and format. All audio data is processed internally in 32 bit " "floating point format." msgstr "" "Zeigt die Größe des Datenspeichers an, der für die gewählte Dauer- und " "Format-Kombination verwendet werden wird. Alle Audiodaten werden intern in " "32 bit Fließkommaformat verarbeitet." #: src/sweep_sample.c:582 msgid "Data memory:" msgstr "Datenspeicher:" #: src/sweep_sample.c:594 msgid "Create" msgstr "Erzeugen" #: src/sweep_sample.c:606 msgid "Don't create" msgstr "Nicht erzeugen" #: src/sweep_sample.c:774 msgid "Excellent!!!" msgstr "Hervorragend!!!" #: src/sweep_sample.c:796 msgid "Files unsaved" msgstr "Nicht gespeicherte Dateien" #: src/sweep_sample.c:797 msgid "" "Some files are unsaved. If you quit, all changes will be lost.\n" "\n" "Are you sure you want to quit?" msgstr "" "Einige Dateien sind noch nicht gespeichert. Wenn Sie sweep abbrechen gehen\n" "alle Änderungen verloren.\n" "\n" "Wirklich abbrechen?" #: src/sweep_sample.c:800 src/sweep_sample.c:808 msgid "Don't quit" msgstr "Nicht abbrechen" #: src/sweep_sample.c:804 msgid "Files playing" msgstr "Dateien abspielen" #: src/sweep_sample.c:805 msgid "" "No files are unsaved, but some files are currently playing.\n" "\n" "Are you sure you want to quit?" msgstr "" "Alle Dateien sind gespeichert, aber einige werden noch abgespielt.\n" "\n" "Wirklich abbrechen?" #: src/sweep_sample.c:1465 src/view.c:1206 msgid "Invert selection" msgstr "Auswahl invertieren" #: src/sweep_sample.c:1485 src/view.c:1214 src/view.c:1308 msgid "Select all" msgstr "Alles auswählen" #: src/sweep_sample.c:1505 src/view.c:1222 msgid "Select none" msgstr "Nichts auswählen" #: src/sweep_sample.c:1525 msgid "Halve selection" msgstr "Auswahl halbieren" #: src/sweep_sample.c:1545 msgid "Double selection" msgstr "Auswahl verdoppeln" #: src/sweep_sample.c:1568 msgid "Selection left" msgstr "Auswahl links" #: src/sweep_sample.c:1590 msgid "Selection right" msgstr "Auswahl rechts" #: src/sweep_sample.c:1678 #, c-format msgid "Insert selection [" msgstr "Auswahl einfügen [" #: src/sweep_sample.c:1731 #, c-format msgid "Subtract selection [" msgstr "Auswahl abziehen [" #: src/sweep_sample.c:1776 #, c-format msgid "Set selection [" msgstr "Neue Auswahl [" #: src/sweep_sample.c:1875 msgid "Sweep: File properties" msgstr "Sweep: Eigenschaften der Datei" #: src/sweep_sample.c:1899 msgid "Filename: " msgstr "Datei: " #: src/sweep_sample.c:1901 msgid "Sampling rate: " msgstr "Abtastrate: " #: src/sweep_sample.c:1903 msgid "Channels: " msgstr "Kanäle: " #: src/sweep_sample.c:1905 msgid "Data memory: " msgstr "Datenspeicher: " #: src/sweep_sample.c:1907 msgid "Duration: " msgstr "Dauer: " #: src/sweep_undo.c:327 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Do you want to continue editing this buffer?" msgstr "" "%s\n" " wurde auf der Festplatte geändert.\n" "\n" "Soll der Puffer weiterhin editiert werden?" #: src/sweep_undo.c:332 msgid "Continue editing" msgstr "Weiterhin editieren" #: src/sweep_undo.c:332 msgid "Reread from disk" msgstr "Von Festplatte nachladen" #: src/sweep_undo.c:430 src/sweep_undo.c:488 msgid "Nothing to undo" msgstr "Nichts zum Rückgängig machen" #: src/sweep_undo.c:511 src/sweep_undo.c:567 msgid "Nothing to redo" msgstr "Nichts zum Wiederholen" #: src/undo_dialog.c:159 msgid "Original data" msgstr "Originaldaten" #: src/undo_dialog.c:344 msgid "Action" msgstr "Aktion" #: src/undo_dialog.c:351 msgid "Sweep: History" msgstr "Sweep: Bearbeitungsgeschichte" #: src/undo_dialog.c:393 src/view.c:548 src/view.c:1887 msgid "Undo" msgstr "Rückgängig" #: src/undo_dialog.c:401 src/view.c:552 src/view.c:1896 msgid "Redo" msgstr "Wiederholen" #: src/undo_dialog.c:426 msgid "Revert to selected state" msgstr "Ausgewählte Aktionen umkehren" #: src/undo_dialog.c:452 src/view.c:525 src/view.c:3402 msgid "Close" msgstr "Schließen" #: src/view.c:311 msgid "Duplicate to stereo" msgstr "Auf Stereo duplizieren" #: src/view.c:319 msgid "Duplicate to multichannel" msgstr "Auf Multikanäle duplizieren" #: src/view.c:331 msgid "Swap left and right" msgstr "Rechts und Links austauschen" #: src/view.c:371 msgid "Add/Remove channels" msgstr "Kanäle hinzufügen/löschen" #: src/view.c:454 src/view.c:1768 msgid "New ..." msgstr "Neu ..." #: src/view.c:458 src/view.c:1775 msgid "Open ..." msgstr "Öffnen ..." #: src/view.c:488 msgid "Open Recent" msgstr "" #: src/view.c:505 msgid "Save As ..." msgstr "Speichern unter..." #: src/view.c:517 msgid "Properties ..." msgstr "Eigenschaften ..." #: src/view.c:535 src/view.c:1136 msgid "Edit" msgstr "Bearbeiten" #: src/view.c:556 msgid "Show history ..." msgstr "Bearbeitungsgeschichte anzeigen..." #: src/view.c:588 src/view.c:1172 msgid "Paste: Insert" msgstr "Einfügen" #: src/view.c:592 src/view.c:1178 msgid "Paste: Mix" msgstr "Einmischen" #: src/view.c:596 src/view.c:1184 msgid "Paste: Crossfade" msgstr "Einblenden" #: src/view.c:600 msgid "Paste as New" msgstr "Neu einfügen" #: src/view.c:608 msgid "Preview Cut/Cursor" msgstr "Vorschau Ausschneiden/Cursor" #: src/view.c:612 msgid "Pre-roll to Cursor" msgstr "Zurückrollen bis Cursor" #: src/view.c:626 msgid "Invert" msgstr "Invertieren" #: src/view.c:630 msgid "All" msgstr "Alles" #: src/view.c:634 msgid "None" msgstr "Nichts" #: src/view.c:642 msgid "Halve" msgstr "Halbieren" #: src/view.c:646 msgid "Double" msgstr "Verdoppeln" #: src/view.c:650 msgid "Shift left" msgstr "Nach links verschieben" #: src/view.c:654 msgid "Shift right" msgstr "Nach rechts verschieben" #: src/view.c:659 msgid "View" msgstr "Ansicht" #: src/view.c:666 src/view.c:2061 msgid "Autoscroll: follow playback cursor" msgstr "Autoscroll: Abspielcursor verfolgen an/aus" #: src/view.c:684 msgid "Center" msgstr "Zentrieren" #: src/view.c:692 src/view.c:1996 msgid "Zoom in" msgstr "Zoom hinein" #: src/view.c:696 src/view.c:2005 msgid "Zoom out" msgstr "Zoom heraus" #: src/view.c:700 src/view.c:1111 msgid "Zoom to selection" msgstr "Zoom in Auswahl" #: src/view.c:706 msgid "Left" msgstr "Links" #: src/view.c:710 msgid "Right" msgstr "Rechts" #: src/view.c:715 src/view.c:1117 src/view.c:1276 msgid "Zoom normal" msgstr "Zoom normal" #: src/view.c:719 src/view.c:1123 src/view.c:1282 src/view.c:1987 msgid "Zoom all" msgstr "Zoom alles" #: src/view.c:723 msgid "1:1" msgstr "1:1" #: src/view.c:733 msgid "Remember as" msgstr "Speichern als" #: src/view.c:752 src/view.c:783 msgid "Area 1" msgstr "Gebiet 1" #: src/view.c:753 src/view.c:784 msgid "Area 2" msgstr "Gebiet 2" #: src/view.c:754 src/view.c:785 msgid "Area 3" msgstr "Gebiet 3" #: src/view.c:755 src/view.c:786 msgid "Area 4" msgstr "Gebiet 4" #: src/view.c:756 src/view.c:787 msgid "Area 5" msgstr "Gebiet 5" #: src/view.c:757 src/view.c:788 msgid "Area 6" msgstr "Gebiet 6" #: src/view.c:758 src/view.c:789 msgid "Area 7" msgstr "Gebiet 7" #: src/view.c:759 src/view.c:790 msgid "Area 8" msgstr "Gebiet 8" #: src/view.c:760 src/view.c:791 msgid "Area 9" msgstr "Gebiet 9" #: src/view.c:761 src/view.c:792 msgid "Area 10" msgstr "Gebiet 10" #: src/view.c:765 msgid "Zoom to" msgstr "Zoom auf" #: src/view.c:798 msgid "Color scheme" msgstr "Farbschema" #: src/view.c:804 msgid "Decoder Red" msgstr "Roter Sturm" #: src/view.c:812 msgid "Orangeboom" msgstr "Orangenblüte" #: src/view.c:820 msgid "Lame Yellow" msgstr "Blond" #: src/view.c:828 msgid "Coogee Bay Blue" msgstr "Adriablau" #: src/view.c:836 msgid "Blackwattle" msgstr "Schwarzwald" #: src/view.c:844 msgid "Frigid" msgstr "Eisblock" #: src/view.c:852 msgid "Radar" msgstr "Radar" #: src/view.c:860 msgid "Bluescreen" msgstr "Bluescreen" #: src/view.c:872 src/view.c:1236 src/view.c:1322 msgid "New View" msgstr "Neue Ansicht" #: src/view.c:877 msgid "Sample" msgstr "Audiodatei" #: src/view.c:894 msgid "Resample ..." msgstr "Abtastrate ändern ..." #: src/view.c:903 msgid "Duplicate" msgstr "Duplizieren" #: src/view.c:908 src/view.c:1192 msgid "Process" msgstr "Verarbeiten" #: src/view.c:917 msgid "Playback" msgstr "Abspielen" #: src/view.c:924 msgid "Configure audio device ..." msgstr "Audiogerät konfigurieren..." #: src/view.c:934 msgid "Transport" msgstr "Transport" #: src/view.c:943 msgid "Go to start of file" msgstr "Sprung an Dateiende" #: src/view.c:949 msgid "Go to start of window" msgstr "Sprung an Fensteranfang" #: src/view.c:954 msgid "Skip back" msgstr "Zurückspringen" #: src/view.c:959 msgid "Skip forward" msgstr "Voranspringen" #: src/view.c:964 msgid "Go to end of window" msgstr "Sprung ans Ende des Fensters" #: src/view.c:969 msgid "Go to end of file" msgstr "Sprung ans Dateiende" #: src/view.c:978 msgid "Play selection" msgstr "Auswahl abspielen" #: src/view.c:984 msgid "Play sample" msgstr "Datei abspielen" #: src/view.c:990 msgid "Play note" msgstr "Note abspielen" #: src/view.c:1009 msgid "Toggle monitoring" msgstr "Vorhören an/aus" #: src/view.c:1022 msgid "Toggle looping" msgstr "Looping an/aus" #: src/view.c:1034 msgid "Toggle muting" msgstr "Stumm an/aus" #: src/view.c:1045 msgid "Toggle reverse playback" msgstr "Rückwärts abspielen an/aus" #: src/view.c:1063 msgid "Pause" msgstr "Pause" #: src/view.c:1079 msgid "About MP3 export..." msgstr "Über MP3 Unterstützung..." #: src/view.c:1085 msgid "About Sweep ..." msgstr "Über Sweep" #: src/view.c:1249 src/view.c:1335 msgid "File properties ..." msgstr "Dateieigenschaften ..." #: src/view.c:1294 msgid "Paste" msgstr "Einfügen" #: src/view.c:1791 msgid "Save as ..." msgstr "Speichern unter..." #: src/view.c:1811 msgid "Cut selection to clipboard" msgstr "Auswahl in Zwischenspeicher ausschneiden" #: src/view.c:1821 msgid "Copy selection to clipboard" msgstr "Auswahl in Zwischenspeicher kopieren" #: src/view.c:1832 msgid "Paste: insert clipboard at cursor position" msgstr "Einfügen: Zwischenspeicher an Cursorposition einfügen" #: src/view.c:1843 msgid "Paste: mix clipboard in from cursor position" msgstr "Einfügen: Zwischenspeicher von Cursorposition einmischen" #: src/view.c:1854 msgid "Paste: fade clipboard in from cursor position" msgstr "Einfügen: Zwischenspeicher von Cursorposition einblenden" #: src/view.c:1924 #, fuzzy msgid "Hand tool" msgstr "Zeichenwerkzeug" #: src/view.c:1932 msgid "Selector tool" msgstr "Auswahlwerkzeug" #: src/view.c:1944 msgid "\"Scrubby\" the scrub tool" msgstr "\"Scrubby\" das Scrubwerkzeug" #: src/view.c:1954 msgid "Pencil tool" msgstr "Zeichenwerkzeug" #: src/view.c:1962 msgid "Noise tool" msgstr "Rauschwerkzeug" #: src/view.c:2052 msgid "Visible length" msgstr "Sichtbare Länge" #: src/view.c:2171 msgid "Vertical zoom [Shift + Arrow Up/Down]" msgstr "Vertikaler Zoom [Shift + Pfeil hoch/runter]" #: src/view.c:2301 msgid "Record ..." msgstr "Aufnahme ..." #: src/view.c:2377 msgid "Reverse mode playback (toggle)" msgstr "Rückwärts abspielen an/aus" #: src/view.c:2395 msgid "Loop mode playback (toggle)" msgstr "Abspielschleife an/aus" #: src/view.c:2419 #, fuzzy msgid "Play all / Pause" msgstr "Alles abspielen / Pause [Strg+Leer]" #: src/view.c:2436 #, fuzzy msgid "Play selection / Pause" msgstr "Auswahl abspielen / Pause [Leer]" #: src/view.c:2452 #, fuzzy msgid "Stop playback" msgstr "Abspielstop [Enter]" #: src/view.c:2519 msgid "Muted playback (toggle)" msgstr "Stummschalter an/aus" #: src/view.c:2539 src/view.c:2557 msgid "Playback gain slider (volume)" msgstr "Abspielverstärker (Lautstärke)" #: src/view.c:2569 msgid "Monitor (toggle)" msgstr "Vorhören (an/aus)" #: src/view.c:2587 msgid "SYNC" msgstr "SYNC" #: src/view.c:3144 #, c-format msgid "Remembered as area %d" msgstr "Als Gebiet %d speichern" #: src/view.c:3162 #, c-format msgid "No area remembered as %d" msgstr "Kein Gebiet %d gespeichert" #: src/view.c:3165 #, c-format msgid "Zoomed to area %d" msgstr "Zoom auf Gebiet %d" #: src/view.c:3347 src/view.c:3351 msgid "Scrub!" msgstr "Scrub!" #: src/view.c:3347 src/view.c:3353 msgid "Ready" msgstr "Bereit" #: src/view.c:3399 #, c-format msgid "%s has been modified. Close anyway?" msgstr "%s wurde verändert. Trotzdem schließen?" #: src/view.c:3402 msgid "Don't close" msgstr "Nicht schließen" #: src/view.c:3449 src/view.c:3462 msgid "*" msgstr "*" #: src/view.c:3465 msgid "Empty" msgstr "Leer" #: plugins/byenergy/byenergy.c:58 msgid "Select regions above threshold" msgstr "Auswahl von Bereichen oberhalb des Schwellwerts" # #: plugins/byenergy/byenergy.c:59 msgid "" "Whether to select those regions lying above a given threshold or below it." msgstr "" "Ob man den Bereich über- oder unterhalb des Schwellwerts auswählen möchte." #: plugins/byenergy/byenergy.c:66 msgid "Resolution" msgstr "Auflösung" #: plugins/byenergy/byenergy.c:67 msgid "Width of energy detection window (s)" msgstr "Breite des Analysefensters für Energie (s)" #: plugins/byenergy/byenergy.c:73 msgid "Threshold" msgstr "Schwellwert" #: plugins/byenergy/byenergy.c:74 msgid "Energy level to detect [0.0 - 1.0]" msgstr "Zu erkennende Energiestärke [0.0 - 1.0]" #: plugins/byenergy/byenergy.c:80 msgid "Minimum duration" msgstr "Minimale Dauer" #: plugins/byenergy/byenergy.c:81 msgid "Shortest region of selection to detect (s)" msgstr "Minimale Dauer eines Segments (s)" #: plugins/byenergy/byenergy.c:87 msgid "Maximum interruption" msgstr "Maximale Unterbrechung" #: plugins/byenergy/byenergy.c:88 msgid "Longest length of sound above threshold to allow (s)" msgstr "Längste erlaubte Unterbrechung oberhalb des Schwellwerts (s)" #: plugins/byenergy/byenergy.c:227 plugins/byenergy/byenergy.c:232 msgid "Select by energy" msgstr "Auswahl anhand der Energie" #: plugins/byenergy/byenergy.c:233 msgid "Select loud or quiet regions" msgstr "Laute oder leise Segmente auswählen" #: plugins/echo/echo.c:53 msgid "Delay" msgstr "Zeitverzögerung" #: plugins/echo/echo.c:54 msgid "Time to delay by" msgstr "Verzögern um" #: plugins/echo/echo.c:62 msgid "Gain with which to mix in delayed signal" msgstr "Verstärkung mit der das zeitverzögerte Signal gemischt wird" #: plugins/echo/echo.c:107 plugins/echo/echo.c:113 msgid "Echo" msgstr "Echo" #: plugins/echo/echo.c:114 msgid "Apply an echo to selected regions of a sample" msgstr "Echo auf das gewählte Segment anwenden" #: plugins/normalise/normalise.c:128 plugins/normalise/normalise.c:133 msgid "Normalise" msgstr "Normalisieren" #: plugins/normalise/normalise.c:134 msgid "Alter the sample's amplitude to lie between 1.0 and -1.0" msgstr "Amplitude auf Werte zwischen 1.0 und -1.0 anpassen" #: plugins/reverse/reverse.c:129 plugins/reverse/reverse.c:134 #: plugins/reverse/reverse.c:140 msgid "Reverse" msgstr "Umkehren" #: plugins/reverse/reverse.c:141 msgid "Reverse selected regions of a sample" msgstr "Ausgewählte Werte umkehren" #: plugins/example/example.c:37 plugins/example/example.c:86 msgid "With a fork" msgstr "Mit einer Gabel" #: plugins/example/example.c:38 msgid "With a spoon" msgstr "Mit einem Löffel" #: plugins/example/example.c:39 msgid "With false teeth" msgstr "Mit flaschen Zähnen" #: plugins/example/example.c:40 msgid "With Nigel's bum" msgstr "Mit Nigels Hintern" #: plugins/example/example.c:56 msgid "Flim" msgstr "Dideldidum" #: plugins/example/example.c:57 msgid "Should you manage your flim?" msgstr "Sollte man sein Dideldidum meistern?" #: plugins/example/example.c:64 msgid "Beans" msgstr "Bohnen" #: plugins/example/example.c:65 msgid "Method of eating beans" msgstr "Methode zum Bohnenessen" #: plugins/example/example.c:72 msgid "Pants methodology" msgstr "Hosenmethode" #: plugins/example/example.c:73 msgid "How many pants should you wear per day?" msgstr "Wieviele Hosen sollte man pro Tag tragen?" #: plugins/example/example.c:122 plugins/example/example.c:129 msgid "Example Filter Region" msgstr "Filter-Region Beispiel" #: plugins/example/example.c:130 msgid "An example filter region plugin" msgstr "Plugin Beispiel für Filter-Region" #: plugins/fade/fade.c:148 plugins/fade/fade.c:161 msgid "Fade in" msgstr "Einblenden" #: plugins/fade/fade.c:156 plugins/fade/fade.c:177 msgid "Fade out" msgstr "Ausblenden" #: plugins/fade/fade.c:162 msgid "Apply a linear fade to the selection, fading in from silence" msgstr "Lineares Einblenden von Stille auf die Auswahl anwenden" #: plugins/fade/fade.c:178 msgid "Apply a linear fade to the selection, fading out to silence" msgstr "Lineares Ausblenden auf Stille auf die Auswahl anwenden" #~ msgid "Sweep: Load file" #~ msgstr "Sweep: Datei laden" #~ msgid "Go to beginning [Ctrl+Home]" #~ msgstr "Sprung zum Anfang [Strg+Pos1]" #~ msgid "Go to the end [Ctrl+End]" #~ msgstr "Sprung zum Ende [Strg+Ende]" #~ msgid "About Sweep" #~ msgstr "Über Sweep" #~ msgid "Channels:" #~ msgstr "Kanäle:" #~ msgid "Mono (mixdown)" #~ msgstr "Mono (mixdown)" #~ msgid "Stereo (duplicate)" #~ msgstr "Stereo (dupliziert)" #~ msgid "Bitwidth:" #~ msgstr "Bitbreite:" #~ msgid "8 bit" #~ msgstr "8 bit" #~ msgid "16 bit" #~ msgstr "16 bit" #~ msgid "24 bit" #~ msgstr "24 bit" #~ msgid "32 bit" #~ msgstr "32 bit" #~ msgid "Filename:" #~ msgstr "Datei:" #~ msgid "Main output:" #~ msgstr "Hauptausgabe:" #~ msgid "Sample:" #~ msgstr "Audiodatei" #~ msgid "Open..." #~ msgstr "Öffnen..." #~ msgid "Loop selection" #~ msgstr "Auswahl endlos" #~ msgid "Autoscroll: follow playback (toggle)" #~ msgstr "Autoscroll: Abspielen verfolgen an/aus" #~ msgid "Trim / Crop" #~ msgstr "Zurechtstutzen" #~ msgid "Prepare" #~ msgstr "Aufnahme vorbereiten" #~ msgid "Scrub tool" #~ msgstr "Scrubwerkzeug" sweep-0.9.3/po/pl.gmo0000644000175000017500000012267210777670600013145 0ustar useruserÞ•à (9!(;[(-—(0Å(ö($) 3)"=) `)(j)“)ª)Â)Û)8ô)F-*t*‡*#*Á*Ã*Þ*(â*& +2+8+L+\+e+ l+v+Š+‘+8•+Î+<î+;+,-g,Y•,ï,ö,þ,- ---!-(-/-6->-9C-N}-"Ì-ï-ÿ-. .1,.'^.†..=”.Ò. Û.æ. ì.&ö./1/A/ G/T/o/'†/–®/E0N0 _0j0 ‰0“0˜0H´0 ý011161 ;1E1`1w1“1—17²1 ê1 ÷12!2'2F2N2W2]2 d2 q2}2’2 £2¯2 È2 Ô2á2 ñ2û2 33 %3 23=3D3 U3 _3€3™3³3 Ç3 Ñ3Ü3á3æ3ý34 4>4G4„\4bá4D5 V5`5"i5Œ5¥5½5&Ï5%ö56 26¹?6ù6ÿ67 7 7#7 (7 47B7V7 \7 g7 u7ƒ7wˆ78(8m.8œ8£8³8Å8Ù8í8 99"9(9k89¤9©9'Ç9’ï9‚:©ˆ:_2;’;¥;¾; Å;Ò;ã;hè;LQ<ž=§= º=Å=!Ü= þ=4>=>Y>v>’>¯> Æ>Ó>ã>ô> ??)?:?K?O?`?f?w?‡?Œ?‘?ª?FÂ? @%@5@9@A@J@ Z@h@[@Ý@ó@AA3AKAgA mAxAA ”A žA©A^½ABBe;B ¡B¬BuÆBv^Ju^À^$Ñ^ö^ _ _ _91_"k_Ž_“_œ_ ¤_²_ @`L`U`]`o``…` Ž`›`¹`¾`oÒ`4Bb<wb-´b<âbc+:c fc,pc c2§cÚcòc d"'dGJdM’dàdñd, e6e8eVe!Ze-|e ªe¶eÔeåeôe úeff fJ)f#tfF˜f@ßf. gfOg¶g ¿gÉgÒgÛgägígögÿghhh>hT^h-³háhi-i6i*Fi(qiši ¡iT¯ij j jj+&jRjhj{jƒj"™j"¼j8ßjukŽk—k ªk´k ÓkÝkäkWl Zlelmllœl ¤l-¯lÝlõlmmM6m„m•m'§mÏm%Õm ûm n nn#n)n-n>nVnhn }n ‰n ”n ¡n¬n ¼n Én ×n än ðnúnoo3oJoho qo oo’o™o¶o.¼o5ëo !p-p«Fpvòpiq }qŠq#qÁqàqýq*r-:rhr ƒrôr…sŒs “s ¡s¬s¿s ÅsÓsæsÿst t!t3t¦8t ßt0ët‚uŸu¨uºuÏuãuûuv!v 2v>vyVvÐv1Öv.w›7wÓw¼Ùwh–xÿxy/y 8yFy[yˆ`y€éy j{t{ Ž{!œ{-¾{ ì{'ù{-!|-O|2}|#°|!Ô|ö| }"-}P}f}o}!†}¨}¿}Æ}Õ}Û}ð}~ ~~"1~@T~•~0œ~Í~Ò~ Û~"æ~ #s>!²Ôô€1€&N€u€z€%‹€±€ ¶€ À΀ƒß€cf‡… ‚‚z9‚z´‚/ƒ 7ƒ CƒPƒ`ƒsƒ ‚ƒŒƒ Ÿƒ©ƒ¯ƒ¿ƒу áƒíƒ„„6#„4Z„4„Ąʄӄ ç„’ò„……”…¦… »…,Ç…ô… ††%†,† ?†K†T†]† q†|†˜†Ÿ† °†º†ΆÞ†ã†ô†‡%‡<‡aU‡·‡çч¹‰Õ‰ç‰ú‰ Š Š,Š?Š^Š;fŠ4¢Š4׊> ‹,K‹x‹ ˆ‹”‹+¯‹"Û‹þ‹ ŒŒ3Œ<ŒBŒJŒhŒ‡Œ¦Œ­Œ ½ŒÊŒãŒóŒ ¡­¾"ÑôüŽ3ŽBŽRŽgŽ|Ž•Ž8©Ž-âŽ! 2S*n™®.Ä-ó!6Hx[ ÔgÞxF‘o¿‘/’?’Y’¡t’“,“ 3“=“R“Z“j“+€“¬“²“˓ړõ“ ”&”6”P”a””š” ±”¾”Ó”ë”þ”%•>•óE•ø9–)2—’\—Tï—D™e[™ŠÁ™±LšÙþš^Ø›“7œËœÑœìœôœ1K akФ© Å&Ï*öT!žxvžLïžË<Ÿ #! *E :p &« Ò¡-Ú¡¢¢"¢=3¢q¢=‰¢QÇ¢£%/£U£ i£ t££@•£Ö£ ò£¤ ¤#¤­A¤ï¤ ¥¥%¥B¥^¥b¥ j¥w¥•¥š¥#.PÃ[æ¡p}  Ð…CÔÅE™É|žÔ®b)LJ(Ó\B˜·:YŠŠžÿÐüh0¡eV jϹ6W·5A¯+þ’4$l<Ým {á‘Ö^é”43‹'~túzÞ¬ÍbßFÖÎrªATÈdƒ<¨¦ˆ׫5ŸJr |w’Äì)+,-./012XÓ “ÞS¶´Ø g‰QxNÂsg±t^¤J`D›ÛÍÛ8!z3¯³Üj n¨»‹²§£ Œ¬ yKÚoLƒº¿Â]ËxÏe_R¼S-•ˆÒôߤ:i†ÕðPCÕöIk= q‡f˽7V¢*p“[Àm”nÙ‘ªàÎU£vUT‰°O!1ñ#;êHÇ$¾2Ìclù\Ÿ«œZv­½ÝG"˜ Ã(°‚ „=fõyXÉïo;œä¥Ò§a´QZÑDíšÆ™GÁ¦‚9ãûN@ý}ç…ØŽ?µ¸•q²u%–kI&¼{î?×È ›*¸@³M„u¶Æ¾K8µ"M]cWø—€­,'Rš±å_Ê–º©»âYa`¢FÙÊÜÀ6ކó&9®¿LÁ%wdëB7>èH©¹ÌàE¥hÅŒ—Úi÷>/ÑOsò€~Ä --display Use the designated X display. --no-toolbox Do not show the toolbox window. -h --help Output this help. -v --version Output version info. 4000 Hz (Low quality) 8000 Hz (Narrowband voice quality) 11025 Hz 16000 Hz (Wideband voice quality) 22050 Hz 32000 Hz (Ultra-wideband voice quality) 44100 Hz (CD quality) 48000 Hz (DAT quality) 96000 Hz (High quality)"Scrubby" the scrub tool%s has changed on disk. Are you sure you want to save?%s has changed on disk. Do you want to continue editing this buffer?%s does not exist.%s exists. Overwrite?%s has been modified. Close anyway?*192000 Hz (Studio quality)1:1A short text description of the contentsA short text indication of music genreAboutAbout MP3 export...About Sweep ...About...ActionAdd noiseAdd/Remove channelsAlbum:AllAlter the sample's amplitude to lie between 1.0 and -1.0An example filter region pluginApply a linear fade to the selection, fading in from silenceApply a linear fade to the selection, fading out to silenceApply an echo to selected regions of a sampleAre you sure you want to revert %s to %s? All changes and undo information will be lost.Area 1Area 10Area 2Area 3Area 4Area 5Area 6Area 7Area 8Area 9Artist:AutoAutomatically select best encoding options for this file.Automatically select the encoding mode based on the sampling rate of the file.Autoscroll: follow playback cursorAverage bitrateBeansBitrate management engineBy extensionCBR with VAD and Discontinuous Transmission (DTX)CBR with Voice Activity Detection (VAD)CancelCenterChanges to device settings will take effect on next playback.ChannelsChannels: ClearClipboardClipboard data has incompatible formatClipboard duration:Clipboard emptyCloseColor schemeConfigure audio device ...Constant bitrate (CBR)Constant bitrate (CBR) with no featuresContact information for the creators or distributors of the track. This could be a URL, an email address, the physical address of the producing label.Contact:Continue editingConversionConvert from %d to %d channelsConverterCopyCopy selection to clipboardCopyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'Copyright:CreateCreate new fileCreated %s/ mode %04o CropCrossfadeCurrent sample rate: %d HzCurrently: %d channelsCursor position (indicator)CutCut selection to clipboardDTX marks extended pauses with a minimum bitrate signalData memory:Data memory: Date the track was recordedDate:Decoding %s Encoded by: %s %sDefaultDefaultsDelayDeleteDescription:DestinationDetermine File Type:Device bufferingDevice nameDirectory does not existDon't closeDon't createDon't crossfadeDon't mixDon't overwriteDon't quitDon't resampleDon't revertDon't saveDoubleDouble selectionDuplicateDuplicate from %d to %d channelsDuplicate to %d channelsDuplicate to multichannelDuplicate to stereoDuration:Duration: EchoEditEdit PCM sample valuesEmptyEnable bitrate managementEnable bitrate management engineEncodingEncoding complexity:Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file) using variable bitrate mode (VBR).Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file).Encoding quality:Encoding:End gainEnergy level to detect [0.0 - 1.0]Error accessing ~/.sweepError creating ~/.sweepError on ~/.sweepError opening ~/.sweep/preferences.tdbError setting permissions on ~/.sweepExample Filter RegionExcellent!!!Export to MP3 format cannot legally be supported in free software due to patent licensing restrictions. Please use Ogg Vorbis format instead, which provides better quality and is free.ExtraFALSEFade inFade outFast forwardFileFile existsFile modifiedFile properties ...File:Filename: Files playingFiles unsavedFlimFor non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For VBR encoding, this sets the average bitrate.GainGain with which to mix in delayed signalGenerate a random serial number for the Ogg bitstream. The number will change while this button is held down.Genre:Go to beginningGo to end of fileGo to end of windowGo to start of fileGo to start of windowGo to the endHack the planet!HalveHalve selectionHello, my name is Scrubby. Welcome to Sweep! Would you like to create a new file or load an existing file?HelpHigh latency / Fewer dropoutsHow many pants should you wear per day?ISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-content/online/isrc_intro.html) for more information on ISRC numbers.ISRC:Indicates the amount of data memory which will be allocated for the selected duration and format. All audio data is processed internally in 32 bit floating point format.Indicates the total duration of the clipboard, which is the maximum length that will be pasted.Insert selection [Invalid encoding optionsInvertInvert phaseInvert selectionLeftLibsndfile is a C library by Erik de Castro Lopo for reading and writing files containing sampled sound.License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL to a license such as a Creative Commons license ("www.creativecommons.org/blahblah/license.html") or the EFF Open Audio License ('distributed under the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/eff_oal.html for details'), etc.License:Load existing fileLoading %sLocate sounds directlyLocation where track was recordedLocation:Longest length of sound above threshold to allow (s)Loop mode playback (toggle)Loop mode recording (toggle)Low latency / More dropoutsMP3 (Use Ogg Vorbis instead)MP3 export unsupportedMain device:Maximum bitrateMaximum bitrate:Maximum interruptionMetadataMethod of eating beansMinimum bitrate:Minimum durationMixMix down to monoMode:Monitor (toggle)Monitor output:MonoMoveMove regions in a sampleMuted playback (toggle)Name of the organization producing the track (i.e. the 'record label')Name:Narrowband ~8 kHz (telephone quality)NewNew ...New ViewNew sample rateNew selectionNo area remembered as %dNo files are unsaved, but some files are currently playing. Are you sure you want to quit?No selection to clearNo selection to copyNo selection to cutNo selection to deleteNo selection to processNo selection to record intoNoiseNoise toolNominal bitrate (ABR):NoneNormaliseNot stereoNothing to crop outNumber of Speex frames to pack into each Ogg packet. Higher values save space at low bitrates.OKOgg Vorbis encoding resultsOgg Vorbis is a high quality general purpose perceptual audio codec. It is free, open and unpatented.Ogg streamOgg stream serial number:Ogg, Speex, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.Ogg, Vorbis, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.OpenOpen ...Organization:Original dataOutput channelsOverflowOverwritePants methodologyParametersPastePaste as NewPaste insertPaste mixPaste xfadePaste: CrossfadePaste: InsertPaste: MixPaste: fade clipboard in from cursor positionPaste: insert clipboard at cursor positionPaste: mix clipboard in from cursor positionPausePencilPencil toolPerformer:Place the play marker on a sample. Click anywhere in a view to instantly move the playback position to that part of the sample.Play notePlay samplePlay selectionPlaybackPlayback gain slider (volume)Powered by libsndfilePreviewPrevious soundProcessProperties ...QuadraphonicQualityQuitRandomise PCM valuesRandomize!Raw PCM (headerless)ReadyReady to recordRecord ...Record into selectionRecorded soundRedoRemember asRemember these encoding optionsRemember these optionsRemember this formatRemember this qualityRemember this sampling rate and channel configuration for creating new files.Remember this serial numberRemember this serial number for future re-use. USE OF THIS OPTION IS NOT RECOMMENDED. Each encoded file should have a different serial number; re-use of Ogg serial numbers in different files may create incompatabilities with streaming applications. This option is provided for bitstream engineering purposes only. If this option is not checked, new serial numbers will be randomly generated for each file encoded.Remembered as area %dRemove left channelRemove right channelReread from diskResampleResample ...Resample errorResample from %d Hz to %d HzResetReset to the last remembered device buffering.Reset to the last remembered device names.Reset to the last remembered encoding options.Reset to the last remembered format for new files.Reset to the last remembered quality.ResolutionReverseReverse mode (toggle)Reverse mode playback (toggle)Reverse selected regions of a sampleRevertRevert fileRevert to selected stateRewindRightSampleSampling rateSampling rate:Sampling rate: SaveSave As ...Save OptionsSave as %s cancelledSave as ...Saving %sScrubScrub!Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio by Erik de Castro Lopo SelectSelect allSelect by energySelect loud or quiet regionsSelect noneSelect regions above thresholdSelect regions of a sampleSelection leftSelection rightSelection: add/modify regionSelection: subtract regionSelector toolSet selection [Set the main device for playback and recordingSet to default device buffering.Set to default device names.Set to default encoding options.Set to default quality.Set to the default format for new files.Shift leftShift rightShortest region of selection to detect (s)Should you manage your flim?Show history ...Skip backSkip forwardSome files are unsaved. If you quit, all changes will be lost. Are you sure you want to quit?SourceSpecify a maximum bitrate, useful for streaming applications. (Optional)Specify a minimum bitrate, useful for encoding for a fixed-size channel. (Optional)Specify a nominal bitrate. Attempt to encode at a bitrate averaging this.Speex encodingSpeex encoding resultsSpeex frames per Ogg packet:Speex is a high quality speech codec designed for voice over IP (VoIP) and file-based compression. It is free, open and unpatented.Start gainStereoStopSubtract selection [SwapSwap channelsSwap left and rightSwap main and monitor devices.SweepSweep plugin API versionSweep versionSweep: Add/Remove channelsSweep: Duplicate channelSweep: File propertiesSweep: HistorySweep: Load Raw PCM optionsSweep: New fileSweep: Ogg Vorbis save optionsSweep: Paste crossfadeSweep: Paste mixSweep: RecordSweep: ResampleSweep: Save PCM optionsSweep: Save fileSweep: Speex save optionsSweep: audio device configurationTRUEThe artist generally considered responsible for the work. In popular music this is usually the performing band or singer. For classical music it would be the composer. For an audio book it would be the author of the original text.The artist(s) who performed the work. In classical music this would be the conductor, orchestra, soloists. In an audio book it would be the actor who did the reading. In popular music this is typically the same as the ARTIST and is omitted.The collection name to which this track belongsThe version field may be used to differentiate multiple versions of the same track title in a single collection. (e.g. remix info)This enables average bitrate mode (ABR). You must suggest a nominal average bitrate and may specify minimum and maximum bounds. For best results it is generally recommended that you use the variable bitrate 'encoding quality' control (above) instead.This is Sweep versionThis sets the encoding speed/quality tradeoff between 0 (faster encoding) and 10 (slower encoding)This slider allows you to mix the new recording in with the previous contents of the buffer. Set it to -inf dB to overwrite the previous sound.This slider allows you to reduce the level of the recorded sound. Set it to 0 dB to record without any reduction. Note that setting this to -inf dB will record silence.This tool allows you to select regions of a sample. You can then apply edits and effects to the: selected regions. Hold down shift whilst selecting to add discontinuous regions to the selection.This user interface by Conrad Parker, Copyright (C) 2002 CSIRO Australia. This user interface by Erik de Castro Lopo and Conrad Parker, Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO Australia. ThresholdTime to delay byTitle:Toggle loopingToggle monitoringToggle mutingToggle reverse playbackTrack/Work nameTransportUltra-wideband 32-48 kHzUnable to read %sUndoUnsupported encoding modeUntitledUsage: %s [option ...] [files ...] Use a different device for monitoringVAD generates low bitrate comfort noise to replace non-speechVBR allows the bitrate to adapt to the complexity of the speech, and handles pauses using VAD and DTXVBR allows the bitrate to adapt to the complexity of the speech.VBR allows the bitrate to adapt to the complexity of the speech; this selection uses VBR without DTX, which may improve performance compared to full VBR in the presence of background noise.Valid options are: Variable bitrate (VBR)Variable bitrate (VBR) with VADVariable bitrate (VBR) with all featuresVarying this slider controls the lag between cursor movements and playback. This is particularly noticeable when "scrubbing" during playback. Lower values improve responsiveness but may degrade audio quality on heavily-loaded systems.Version:Vertical zoom [Shift + Arrow Up/Down]ViewVisible lengthVorbis encodingWARNING: Build includes incomplete development code. Welcome to SweepWhen zoomed down to individual samples, click to editWhether to select those regions lying above a given threshold or below it.Wideband ~16 kHzWidth of energy detection window (s)With Nigel's bumWith a forkWith a spoonWith false teethWith this tool you can move selected regions of a sample.You are not allowed to write to %sZoomZoom allZoom inZoom in & outZoom in and out of a view. Click anywhere in a view to zoom in on that part of the sample. Hold down shift and click on the view to zoom out.Zoom normalZoom outZoom toZoom to selectionZoomed to area %dbpschannelshh:mm:ss.xxxhttp://sweep.sourceforge.net/kbpslibsamplerate errorProject-Id-Version: sweep-0.8.3 Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/ POT-Creation-Date: 2008-04-11 15:11+0100 PO-Revision-Date: 2001-04-08 22:23+0200 Last-Translator: Radoslaw Korzeniewski Language-Team: Poland MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --display Użyj podanego ekranu X. --no-toolbox Nie pokazuj okna narzÄ™dziowego. -h --help WyÅ›wietla pomoc. -v --version WyÅ›wietla informacjÄ™ o wersji. 4000 Hz (Niska jakość) 8000 Hz (WÄ…skopasmowa jakość gÅ‚osowa) 11025 Hz 16000 Hz (Szerokopasmowa jakość gÅ‚osowa) 22050 Hz 32000 Hz (Ultra-szerokopasmowa jakość gÅ‚osowa) 44100 Hz (Jakość CD) 48000 Hz (Jakość DAT) 96000 Hz (Wysoka jakość)"Scrubby" narzÄ™dzie do szorowania%s zostaÅ‚ zmieniony na dysku. Czy jesteÅ› pewny że chcesz zapisać?%s zostaÅ‚ zmieniony na dysku. Czy chcesz kontynuować edycjÄ™ tego bufora?%s nie istnieje.%s istnieje. Nadpisać?%s zostaÅ‚ zmodyfikowany. Zamknąć mimo to?*192000 Hz (Jakość studyjna)1:1Krótki tekstowy opis zawartoÅ›ciKrótki tekst wskazujÄ…cy na gatunek muzycznyO ProgramieO eksporcie do formatu MP3...Sweep InformacjeO Programie...AkcjaDodaj szumDodaj/UsuÅ„ kanaÅ‚yAlbum:WszystkoZmodyfikuj amplitudÄ™ próbki tak aby mieÅ›ciÅ‚a siÄ™ pomiÄ™dzy 1.0 a -1.0PrzykÅ‚adowa wtyczka filtru regionuZastosuj liniowe zgÅ‚aÅ›nianie do zaznaczenia, zgÅ‚aÅ›niajÄ…c od ciszyZastosuj liniowe wyciszenie do zaznaczenia, wyciszajÄ…c do ciszyZastosuj echo do zaznaczonego obszaru próbki.Czy jesteÅ› pewny że chcesz odwrócić %s do %s? Wszystkie zmiany i informacje undo bÄ™dÄ… stracone.Obszar 1Obszar 10Obszar 2Obszar 3Obszar 4Obszar 5Obszar 6Obszar 7Obszar 8Obszar 9Artysta:AutoAutomatycznie wskaż najlepsze opcje kodowania dla tego pliku.Automatycznie wskaż tryb kodowania bazujÄ…c na czÄ™stotliwoÅ›ci próbkowania pliku.Autoscroll: podążaj za kursorem odtwarzaniaÅšrednia przepÅ‚ywność bitowaFasolaSilnik zarzÄ…dzania przepÅ‚ywnoÅ›ciÄ… bitowÄ…Po rozszerzeniuCBR z VAD i NieciÄ…głą TransmisjÄ… (DTX)CBR z DetekcjÄ… AktywnoÅ›ci GÅ‚osu (VAD)AnulujWycentrowanieZmiany w ustawieniach urzÄ…dzenia audio bÄ™dÄ… aktualne przy nastÄ™pnym odtwarzaniu.KanaÅ‚yKanaÅ‚yWyczyśćSchowekDane w schowku majÄ… niekompatybilny formatCzas trwania schowka:Schowek jest pustyZamknijSchemat kolorystycznyKonfiguracja urzÄ…dzenia audio ...StaÅ‚a przepÅ‚ywnoÅ›c bitowa (CBR)StaÅ‚a przepÅ‚ywność bitowa (CBR) bez dodatkowych cechInformacja o kontakcie do twórców lub dystrybutorów nagrania. To może być URL, adres email lub addres producentaKontakt:Kontynuacja edycjiKonwersjaKonwertuj z %d do %d kanałówKonwerterKopiujKopiuj zaznaczenie do schowkaAtrybut Copyright, np., '2001 CzerwonoZielonoNiebieskoCzarni' lub '1999 Jacek Kowalski'Copyright:StwórzStwórz nowy plikStworzono %s/ z trybem %04o ObetnijWyciszanieAktualna czÄ™stotliwość próbkowania: %d HzAktualnie: %d kanałówPozycja kursora (wskaźnik)WytnijWytnij zaznaczenie do schowkaDTX zaznacza rozszerzone pauzy z minimalnym sygnaÅ‚em przepÅ‚ywnoÅ›ci bitowejPamięć danych:Pamięć danych: Data kiedy nazgranie zostaÅ‚o utrwaloneData:Dekodowanie %s Kodowane przez: %s %sDomyÅ›lnieDomyÅ›lneOpóźnienieKasujOpis:CelUstal Typ Pliku:Buforowanie urzÄ…dzeniaNazwa urzÄ…dzeniaKatalog nie istniejeNie zamykajNie twórzNie wyciszajNie miksujNie nadpisywaćNie wychodźNie resamplujNie odwracajNie zapisujPodwójnePodwójne zaznaczeniePowielPowiel z %d do %d kanałówPowiel do %d kanałówZduplikuj do wielokanaÅ‚owegoDuplikujCzas trwania:Czas trwania:EchoEdycjaEdytuj wartoÅ›ci próbki PCMPustyWłącz zarzÄ…dzanie przepÅ‚ywnoÅ›ciÄ… bitowÄ…Włącz silnik zarzÄ…dzania przepÅ‚ywnoÅ›ciÄ… bitowÄ…ZakodowanieZÅ‚ożoność kodowania:JakoÅ›c kodowania pomiÄ™dzy 0 (najniższa jakość, najmniejszy plik) i 10 (najwyższa jakość, najwiÄ™kszy plik) używajÄ…c trybu zmiennej przepÅ‚ywnoÅ›ci bitowej (VBR).Jakość kodowania pomiÄ™dzy 0 (najniższa jakość, najmniejszy plik) and 10 (najwyższa jakość, najwiÄ™kszy plik).Jakość kodowania:Zakodowanie:Koniec wzmocnieniaPoziom detekcji energii [0.0 - 1.0]Błąd w dostÄ™pie do ~/.sweepBłąd w stworzeniu ~/.sweepBłąd w ~/.sweepBłąd w otwarciu ~/.sweep/preferences.tdbBłąd w ustawianiu praw dostÄ™pu do ~/.sweepPrzykÅ‚adowy Filtr RegionuWspaniale!!!Eksport do formatu MP3 nie może być legalnie wspierany w wolnym oprogramowaniu ze wzglÄ™du na restrykcje w licencjonowaniu patentu. Zamiast tego proszÄ™ użyć formatu Ogg Vorbis, który udostÄ™pnia lepszÄ… jakość i jest za wolnodostÄ™pny.EkstraFAÅSZZgÅ‚aÅ›nianieWyciszaniePrzewiÅ„ do przoduPlikiPlik istniejePlik zmodyfikowanyWÅ‚aÅ›ciwoÅ›ci pliku ...Plik:Plik: Pliki sÄ… odtwarzanePliki niezapisaneFilmDla kodowania nie-VBR (staÅ‚a przepÅ‚ywność bitowa), to ustawia maksymalnÄ… przepÅ‚ywność bitowÄ…. Dla kodowania VBR, to ustawia Å›redniÄ… przepÅ‚ywnoÅ›c bitowÄ….WzmocnienieWzmonienie z jakim miksować opóźniony sygnaÅ‚Generuj losowy numer seryjny dla strumienia bitowego Ogg. Numer bÄ™dzie siÄ™ zmieniaÅ‚ w trakcie kiedy przycisk jest przytrzymany.Gatunek:Idź do poczÄ…tkuIdź do koÅ„ca plikuIdź do koÅ„ca oknaIdź do poczÄ…tku plikuIdź do poczÄ…tku oknaIdź do koÅ„caHack the planet!PoÅ‚owicznePoÅ‚owiczne zaznaczenieCześć, nazywam siÄ™ Scrubby. Witaj w programie Sweep! Czy chciaÅ‚byÅ› stworzyć nowy plik czy zaÅ‚adować istniejÄ…cy?PomocWysokie opóźnienie / Mniej przeskoków dzwiÄ™kuJak dużo spodni powinieneÅ› nosić na dzieÅ„?Numer ISRC nagrania; zobacz stronÄ™ ISRC (http://www.ifpi.org/site-content/online/isrc_intro.html) aby dowiedzieć siÄ™ wiÄ™cej informacji o numerach ISRC.ISRC:Oznacza sumÄ™ pamiÄ™ci danych która bÄ™dzie zaalokowana dla zaznaczonego okresu czasu i formatu. Wszystkie dane audio sÄ… przetwarzane wewnÄ™trznie w 32bitowym formacie zmiennopozycyjnym.Wskazuje caÅ‚kowity czas trwania schowka, która jest maksymalnÄ… dÅ‚ugoÅ›ciÄ… jaka może być wklejona.Wstaw zaznaczenie [Niepoprawne opcje kodowaniaOdwróćOdwróc fazÄ™Odwróć zaznaczenieLewyLibsndfile jest bibliotekÄ… C napisanÄ… przez Erik de Castro Lopo do czytania i zapisywania plików zawierajÄ…cych próbkowany dziwiÄ™k.Informacja licencyjna, np., 'Wszystkie prawa zastrzeżone (All Rights Reserved)', 'Dowolne użycie dozwolone (Any Use Permitted)', URL do licencji taki jak Creative Commons license ("www.creativecommons.org/blahblah/license.html") lub EFF Open Audio License ('rozpowszechnianie pod warunkami licencji Open Audio License. zobacz http://www.eff.org/IP/Open_licenses/eff_oal.html'), itp.Licencja:ZaÅ‚aduj istniejÄ…cy plikÅadowanie %sZlokalizuj dzwiÄ™ki bezpoÅ›rednioLokalizacja gdzie nagranie zostaÅ‚o utrwaloneLokalizacja:NajdÅ‚uższy dzwiÄ™k powyżej progu (s)Odtwarzanie w trybie zapÄ™tlenia (włącznik)Zapisywanie w trybie zapÄ™tlenia (włącznik)Niskie opóźnienie / WiÄ™cej przeskoków dzwiÄ™kuMP3 (zamiast tego użyj Ogg Vorbis)Eksportowanie do MP3 niewspieraneGłówne urzÄ…dzenie:Maksymalna przepÅ‚ywnoÅ›c bitowaMaksymalna przepÅ‚ywność bitowa:Maksymalne przerwanieMetadaneMetoda zjadania fasoliMinimalna przepÅ‚ywność bitowa:Minimalny czas trwaniaMiksujMiksuj do monoTryb:Monitor (włącznik)WyjÅ›cie monitorowania:MonoPrzesuÅ„PrzesuÅ„ obszary w próbceOdtwarzanie wyciszone (włącznik)Nazwa organizacji produkujÄ…cej nagranie (np. 'nazwa wytwórni')Nazwa:Ograniczone pasmo ~8 kHz (jakość telefoniczna)NowyNowy ...Nowy WidokNowa czÄ™stotliwość próbkowaniaNowe zaznaczenieBrak obszaru zapamiÄ™tanego jako %dWszystkie pliki sÄ… zapisane lecz niektóre z nich sÄ… wÅ‚aÅ›nie odtwarzane. Czy jesteÅ› pewny że chcesz wyjść?Brak zaznaczenia do wyczyszczeniaBrak zaznaczenia do skopiowaniaBrak zaznaczenia do wyciÄ™ciaBrak zaznaczenia do skasowaniaBrak zaznaczenia do obróbkiBrak zaznaczenia aby do niego zapisaćSzumNarzÄ™dzie szumuNominalna przepÅ‚ywnoÅ›c bitowa (ABR)BrakNormalizacjaNie stereoNic do obciÄ™ciaLiczba ramek Speex zapakowana w każdy pakiet Ogg. Wyższe wartoÅ›ci oszczÄ™dzajÄ…miejsce przy niskich przepÅ‚ywnoÅ›ciach bitowych.OKRezultaty kodowania Ogg VorbisOgg Vorbis jest wysoko jakoÅ›ciowym percepcyjnym kodekiem audio ogólnego przeznaczenia. Jest wolny/otwarty, darmowy i nieopatentowany.StrumieÅ„ OggNumer seryjny strumienia Ogg:Ogg, Speex, Xiph.org Foundation i ich loga sÄ… znakami towarowymi (tm) Xiph.org Foundation. Wykorzystanymi za pozwoleniem.Ogg, Vorbis, Xiph.org Foundation ich loga sÄ… znakami towarowymi (tm) Xiph.org Foundation. Wykorzystanymi za pozwoleniem.OtwórzOtwórz ...Organizacja:Oryginalne daneKanaÅ‚y wyjÅ›ciowePrzepeÅ‚nienieNadpisaćMetodologia spodniParametryWklejWklej jako NowyWklej wstawiajÄ…cWklej miksujÄ…cWklej xfadeWklej: WyciszajÄ…cWklej WstawiajÄ…cWklej: MiksujÄ…cWstaw: wyciszaj zawartość schowka od pozycji kursoraWklej: wstaw zawartość schowka na pozycjÄ™ kursoraWklej: miksuj zawartość schowka od pozycji kursoraPauzaOłówekNarzÄ™dzie ołówekWykonawca:Ustaw wskażnik odtwarzania na próbce. Kliknik gdziekolwiek w widoku aby natychmiastowo przesunąć pozycjÄ™ odtwarzania do tej części próbki.Odtwórz nutÄ™Odtwórz próbkÄ™Odtwórz zaznaczenieOdtwarzanieSuwak wzmocnienia odtwarzania (gÅ‚oÅ›ność)Powered by libsndfilePodglÄ…dPoprzedni dzwiÄ™kProcesWÅ‚aÅ›ciwoÅ›ci ...KwadrofoniaJakośćZakoÅ„czLosuj wartoÅ›ci PCMLosowanie!Surowe PCM (beznagłókowe)GotowyGotowy do zapisuZapis ...Zapis w zaznaczeniuZapisany dziÄ™kRedoZapamiÄ™taj jakoZapamiÄ™taj opcje kodowaniaZapamiÄ™taj te opcjeZapamiÄ™taj ten formatZapamiÄ™taj tÄ… jakośćZapamiÄ™taj konfiguracjÄ™ czÄ™stotliwoÅ›ci próbkowania i kanałów dla tworzenia nowych plików.ZapamiÄ™taj numer seryjnyZapamiÄ™taj numer seryjny dla przyszÅ‚ego ponownego użycia. UÅ»YWANIE TEJ OPCJI JEST NIEWSKAZANE. Każdy zakodowany plik powinien posiadać inny numer seryjny; ponowne użycie numeru seryjnego Ogg w różnych plikach może stworzyć niekompatybilność z aplikacjami strumieniowymi. Ta opcja jest udostÄ™pniana tylko z przeznaczeniem dla inżynierii strumieni bitowych. JeÅ›li ta opcja nie jest zaznaczona, nowe numery seryjne bÄ™dÄ… losowo generowane dla każdego z kodowanych plików.ZapamiÄ™tany jako obszar %dUsuÅ„ lewy kanaÅ‚UsuÅ„ prawy kanaÅ‚Ponowne odczytanie z dyskuResamplujResample ...Błąd resamplinguResamplowanie z %d Hz do %d HzResetujPrzestaw do ostatnio zapamiÄ™tanego buforowania urzÄ…dzeniaPrzestaw do ostatnio zapamiÄ™tanych nazw urzÄ…dzeÅ„.Przestaw do ostatnio zapamiÄ™tanych opcji kodowania.Powróć do ostatnio zapamiÄ™tanego formatu dla nowych plikówPowróć do ostatnio zapamiÄ™tanej jakoÅ›ci.RozdzielczośćOdwrócenieTryb odwrotny (włącznik)Odtwarzanie w trybie odwrotnym (włącznik)Odwróć zaznaczony obszar próbkiOdwrócOdwróć plikPrzywróć do wskazanego stanuPrzewiÅ„PrawyPróbkiCzÄ™stotliwość próbkowaniaCzÄ™stotliwość próbkowania:CzÄ™stotliwość próbkowania:ZapiszZapisz jako ...Zapisz OpcjeZapisz jako %s anulowanoZapisz jako ...Zapisywanie %sScrubSzoruj!Secret Rabbit Code (aka libsamplerate) jest Konwerterem CzÄ™stotliwoÅ›ci Próbkowania dla sygnałów audio napisanego przez Erik de Castro Lopo ZaznaczenieZaznacz wszystkoZaznacz po energiiZaznacz gÅ‚oÅ›ne lub ciche obszaryOdznaczZaznacz obszary powyżej proguZaznacz obszary próbkiZaznacz z lewaZaznacz z prawaZaznacz obszar prbkiZaznacz obszar prbkiNarzÄ™dzie do wybieraniaUstaw zaznaczenie [Ustaw główne urzÄ…dzenie dla odtwarzania i zapisywaniaUstaw do domyÅ›lnego buforowania urzÄ…dzenia.Ustaw domyÅ›lne nazwy urzÄ…dzeÅ„.Ustaw domyÅ›lne opcje kodowania.Ustaw domyÅ›lnÄ… jakość.Ustaw domyÅ›lny format dla nowych plików.PrzesuniÄ™cie w lewoPrzesuniÄ™cie w prawoNajkrótszy obszar zaznaczenia do detekcji (s)Czy nie powinieneÅ› zarzÄ…dzać swoim filmem?Pokaż historiÄ™ ...Przeskok do tyÅ‚uPrzeskok do przoduPewne pliki sÄ… niezapisane. JeÅ›li wyjdziesz wszystkie zmiany zostanÄ… stracone. Czy jesteÅ› pewny że chcesz wyjść?ŹródÅ‚oWyspecyfikuj maksymalnÄ… przepÅ‚ywność bitowÄ…, użyteczne dla aplikacji strumieniowych. (Opcjonalne)Wyspecyfikuj minimalnÄ… przepÅ‚ywność bitowÄ…, użyteczne dla kodowania z kanaÅ‚em o ustalonym rozmiarze. (Opcjonalne)Wyspecyfikuj nominalnÄ… przepÅ‚ywnoÅ›c bitowÄ…. SpróbujÄ™ zakodować uÅ›redniajÄ…c tÄ… przepÅ‚ywnoÅ›c bitowÄ….Kodowanie SpeexRezultaty kodowania SpeexRamek Speex na pakiet Ogg:Speex jest wysoko jakoÅ›ciowym kodekiem mowy zaprojektowanym dla gÅ‚osu po IP (VoIP) i kompresji opartej o pliki. Jest wolnny/otwarty, darmowy i nieopatentowany.PoczÄ…tek wzmocnieniaStereoZatrzymajWytnij zaznaczenie [ZamieÅ„ZamieÅ„ kanaÅ‚yZamieÅ„ lewy z prawymZamieÅ„ urzÄ…dzenie główne i monitorowaneSweepWersja API wtyczek SweepSweep w wersjiSweep: Dodaj/UsuÅ„ kanaÅ‚ySweep: Powiel kanaÅ‚Sweep: WÅ‚aÅ›ciwoÅ›ci plikuSweep: HistoriaSweep: ZaÅ‚aduj opcje PCMSweep: Nowy plikSweep: Zapis opcji Ogg VorbisSweep: Wklej z wyciszeniemSweep: Wklej miksujÄ…cSweep: ZapisSweep: ResamplowanieSweep: Zapisz opcje PCMSweep: Zapisz plikSweep: Zapisz opcje SpeexSweep: konfiguracja urzÄ…dzenia audioPRAWDAArtysta najczęściej jest odpowiedzialny za swojÄ… pracÄ™. W muzyce popularnej jest to zazwyczaj zespół lub piosenkarz. Dla muzyki klasycznej to mógÅ‚by być kompozytor. Dla książki dzwiÄ™kowej to mógÅ‚by być autor oryginalnego tekstu.Artysta(ci) który wykonaÅ‚ pracÄ™. W muzyce klasycznej to mógÅ‚by być dyrygent, orkiestra, soliÅ›ci. W książce dzwiÄ™kowej to mógÅ‚by być aktor który odczytaÅ‚ tekst. W muzyce popularnej to jest zazwyczaj to samo co ARTYSTA i jest pomijane.Nazwa zbioru do którego należy nagraniePole z wersjÄ… może być wykorzystane do rozróżnienia wielu wersji tego samego tytuÅ‚u nagrania w pojedynym zbiorze. (np. informacja remiksowa)To włącza tryb Å›redniej przepÅ‚ywnoÅ›ci bitowej (ABR). Musisz zasugerować nominalnÄ… Å›redniÄ… przepÅ‚ywność bitowÄ… i możesz wyspecifikować minimalnÄ… i maksymalnÄ… granicÄ™. Dla najlepszych rezultatów generalnie wskazane jest żebyÅ› zamiast tego użyÅ‚ zmiennej przepÅ‚ywnoÅ›ci bitowej kontrolka 'jakoÅ›ci kodowania' (powyżej).To jest SWEEP w wersjiTo ustawia prÄ™dkość/jakość kodowania pomiÄ™dzy 0 (szybsze kodowanie) i 10 (wolniejsze kodowanie)Ten suwak pozwala zmiksować nowo zapisywany dzwiÄ™k z poprzedniÄ… zawartoÅ›ciÄ… bufora. Ustaw na -inf dB aby nadpisać poprzedni dzwiÄ™k.Ten suwak pozwala zredukować poziom zapisywanego dzwiÄ™ku. Ustaw na 0 dB aby zapisać bez jakiejkolwiek redukcji. Zauważ że ustawienie na -inf dB poskutkuje zapisaniem ciszy.To narzÄ™dzie pozwala Ci zaznaczyć obszary próbki. Możesz wtedy zastosować edycjÄ™ lub efekty do zaznaczonych obszarów. Przytrzymaj klawisz shift podczas zaznaczania aby dodać nieciÄ…gÅ‚e obszary do zaznaczenia.Ten interfejs użytkownika napisany przez Conrad Parker, Copyright (C) 2002 CSIRO Australia. Interfejs użytkownika autorstwa Erik de Castro Lopo i Conrad Parker, Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO Australia. PrógCzas do opóźnienia przezTytuÅ‚:Włącz zapÄ™tlenieWłącz monitorowanieWłącz wyciszenieWłącz odtwarzanie wspakÅšcieżka/Nazwa pracyTransportUltra-szerokie pasmo 32-48 kHzNie można przeczytać %sUndoNiewspierany tryb kodowaniaBez_NazwyWywoÅ‚anie: %s [opcja ...] [plik ...] Użyj innego urzÄ…dzenia dla monitorowaniaVAD generuje niskÄ… przepÅ‚ywność bitowÄ… o komfortowym szumie do zamiany nie-mowyVBR pozwala przepÅ‚ywnoÅ›ci bitowej zaadoptować siÄ™ do zÅ‚ożonoÅ›ci mowy, i obsÅ‚uguje pauzy wykorzystujÄ…c VAD i DTXVBR pozwala przepÅ‚ywnoÅ›ci bitowej zaadoptować siÄ™ do zÅ‚ożonoÅ›ci mowy.VBR pozwala przepÅ‚ywnoÅ›ci bitowej zaadoptować siÄ™ do zÅ‚ożonoÅ›ci mowy; to zaznaczenie używa VBR bez DTX, które może zwiÄ™kszyć wydajność w porównaniu do peÅ‚nego VBR w obecnoÅ›ci szumu tÅ‚a.Poprawnymi opcjami sÄ…: Zmienna przepÅ‚ywnoÅ›c bitowa (VBR)Zmienna przepÅ‚ywność bitowa (VBR) z VADZmienna przepÅ‚ywność bitowa (VBR) ze wszystkimi cechamiUstawiajÄ…c ten suwak kontrolujesz opóźnienie pomiÄ™dzy poruszeniami kursora a odtwarzaniem. Jest to w szczególnoÅ›ci zauważalne podczas "scrubbing'u" w czasie odtwarzania. Zmniejszenie wartoÅ›ci zwiÄ™ksza reakcjÄ™ lecz może zmniejszyć jakość dzwiÄ™ku na mocno obciążonych systemach.Wersja:PowiÄ™kszenie pionowe [Shift + Arrow Up/Down]WidokWidoczna dÅ‚ugośćKodowanie VorbisOSTRZEÅ»ENIE: Program zawiera niekompletny deweloperski kod. Witaj w programie SweepKiedy powiÄ™kszone do pojedynczych próbek, klinkij do edycjiCzy zaznaczyć tamte obszary leżące powyżej podanego progu lub poniżej niego.Szerokie pasmo ~16kHzSzerokość okna detekcji energii (s)Z uderzeniem NigelaZ widelcemZ Å‚yżkÄ…Z faÅ‚szywymi zÄ™bamiZ tym narzÄ™dziem możesz przesuwać zaznaczone obszary próbki.Nie masz prawa pisać do %sPowiÄ™kszeniePowiÄ™kszenie peÅ‚nePowiÄ™kszeniePowiÄ™kszanie i PomniejszaniePowiÄ™kszanie i pomniejszanie widoku. Kliknij gdziekolwiek w widoku aby powiÄ™kszyć na tej części próbki. Przytrzymaj klawisz shift i kliknij na widoku aby pomniejszyć.PowiÄ™kszenie normalnePomniejszeniePomniejszenie doPowiÄ™kszenie do zaznaczeniaPowiÄ™kszenie do obszaru %dbpskanaÅ‚ygg:mm:ss.xxxhttp://sweep.sourceforge.net/kbpsbłąd biblioteki libsampleratesweep-0.9.3/po/ru.gmo0000644000175000017500000010535010777670600013152 0ustar useruserÞ•ÆL_|ø%9ù%;3&-o&0&Î&$æ& '"' 8'(B'k'‚'š'³'8Ì'F(L(_(#u(™(›(¶((º(&ã( ) ))))-)=)F) M)W)k)r)8v)-¯)YÝ)7*>*F*M*T*[*b*i*p*w*~*†*9‹*NÅ*"+7+G+J+M+P+T+X+\+b+ |+‰++‘+•+˜+›+1ž+'Ð+ø+ÿ+=,D,M, S,&],„,˜,¨, ®,»,Ö,'í,–-¬-µ- Æ-Ñ- ð-ú-ÿ-H. d.o.v.†.‹.¦.½.Ù.à.é.í./ /// /"/>/D/c/k/t/z/ / Ž/š/¯/ À/Ì/ å/ ñ/ þ/0 0#0 20 ?0J0Q0 b0 l00¦0À0 Ô0Þ0á0ä0ç0ë0ï0ô0ù011 01Q1Z1„o1bô1W2 i2s2 |2‰22“2—2›2ž2¡2 ¤2±2 ¶2 Â2Ð2ä2 ê2 ø2w3~3‚3†3Š333“3m˜34 44/4C4W4 m4{44k‘4ý45' 5H5’K5Þ5_ä5D6]6 d6q6‚6h‡6Lð6=8F8 Y8!d8 †88¬8É8å8 ü8 99*9?9H9_9p99…9‹9œ9¬9±9¶9Ï9Fç9.:%4:Z:^:f:o: :[:é:ÿ:;(;?;W;s;y;; •; Ÿ;ª;¾;Î;^Þ;=<@<e\< Â<Í<uç<v]=Ô=Ù= â= ð=þ=> >!>3> 9> F> S>*]>,ˆ>µ>»> Â> Î> Ù> ã>ï>þ>?%?;?J?R? a?n?v?{? ?›?¡? ±?¼?Ò?á? æ?ò?@)@>@MT@¢@¾@Ò@ç@ø@ AAA:A*@A.kA2šA%ÍA óAþAB$%BJB QB]BvB}BƒB ŠB˜B§B ¬B ¸BÅB ÚB æBcðBTC [CfC ƒCC®CÉCØCèCD D..D ]D~D ›D¼D(ÔD ýD EE %E /E^OXO#aO%…O=«OeéO@OPP¤P(»PäP%íPQQ5(Q^QJoQºQËQ ÜQ èQõQ9R"@RcRhRqR yR ‡R“RœR¤R¶RºR ÃRÐRîRóRwSOT?ÏT3UECU‰U-¥U ÓU.ÝU V4VKVcVƒV  VBªVJíV8WIW'hWW’W±WµW#ÒWöWûWX XX'X[*h[“[œ[M¢[ð[÷[ \* \ 8\Y\k\s\‚\ Ÿ\(À\“é\ }]‡]¡]"²]Õ] ç]$ó]V^o^€^ˆ^›^$­^Ò^å^ ___!(_ J_T_Y_^_ c_q_…_1‹_ ½_Ê_à_é_ ñ_û_ `"`:`I` `` m` z`‡` ™`¥`¸` É`Ö`Þ`ð`!ÿ`!a'=aea}aa•aša Ÿa «a·a»a!Âaäaëa+ b 6bBb»Xb˜c­c ÃcÐcãc òc d d dd#d(d-d?dDdcdrd„dŠd dX³d e e $e0e7e>e EefOe¶e¼eÍeãeøef%f 5f?fhSf¼f&Äf#ëfgog‚gnˆg"÷g h&h6hLhqRhQÄh j j-j)>jhj+xj¤j&Ájèjkk:kXk pk{k‘k®kÌkÔkÛkñkl ll*8l7cl›l) lÊlÐlÙlîl m_mzm“m­mÇmàmþmn"n@n Gn Un"_n‚n“n…£n)o#,o}Po ÎoØo}óošqp q q q,qBq Rq _q lqzqƒq™q©q0ÃqFôq ;rIr Rr ]rjr}r‘r©r#¹rÝrórs s s#s,s#2sVssszs ‰s•sªs ºs Äs#Òsöst$t^;tšt¸tÌtát ôt!u&$u,Ku xu0†u8·u8ðu,)v Vv av-mv'›v ÃvÎvÞvývwww1w HwRwcw#zwžw¯wtÀw5x >x$Kxpxƒx¢x¼xËx%Ûxyy82y+ky#—y,»yèy4z=zLz\z zzˆzr—z {³{‡Ç{[O|«|'¿|ç|…}}¡} ¨}³}Ä}&Ü}5~9~ ?~`~q~~¬~Â~'Û~(> Y%g%³#ÉÇíáµ€5—kÍ79‚qƒsƒƒË÷ƒ\Ä› …¼…Â… Ñ…#Û…ÿ…†$-†R† i†s†’†ª†"³† Ö†-á†.‡/>‡mn‡C܇" ˆ Cˆ dˆ…ˆ4ˆˆƈ6Ûˆ‰7+‰c‰z‰Œ‰“‰š‰Nª‰ù‰Š !Š .Š9Š QŠ]Š fŠtŠŽŠ–Š žŠ«Š ÉŠÓŠÀp¥²ª÷Ÿ¾þ ÁEP&—WøZœ¸XN±A >½"Â[^ aÏ%#êU0]UÌÆ¶ Ä<3>BbÈ›½ú(RA¯èwRŽŸ¤ jÃìe¸†Ãý=°4®Jîh˜ Xûü_4— H³švÞq¤»¿TBCD•9@„gµò“{‡¨‰d`„ ‡ÒÛÎOˆL!Íù?·y’QJ)+,-/012Ä»…r(6'«}ð†K_Š51GàÑzxwßOš›ö%TÆ|f* Ic\ã"Á®^iïæ:F*d“= «P!m~z$¢£7­áMM±­n`§2…ÉHˆñÝ¡ô¦–eÙSœr™)Üoåb‹vYlƒ<ÂV €ƒ¹]Å6+©Åx/·iŒD@‚õçsÀ?lºt|”s~;˜ë{[¢¬L3䪙”–.5t,í©kj  ‘’‰¿²$Ç}ŠCfIQ‚ºq´9:;¹£'Ú-Õʾ¬EFG¨аahg Kmno‘&uÖVcžŽuÓNÿ×¼Z88YW¥¦§pSËž¡Œ\³´µ¶¯7Ø•ó€#yÔk¼é.‹â --display Use the designated X display. --no-toolbox Do not show the toolbox window. -h --help Output this help. -v --version Output version info. 4000 Hz (Low quality) 8000 Hz (Narrowband voice quality) 11025 Hz 16000 Hz (Wideband voice quality) 22050 Hz 32000 Hz (Ultra-wideband voice quality) 44100 Hz (CD quality) 48000 Hz (DAT quality) 96000 Hz (High quality)"Scrubby" the scrub tool%s has changed on disk. Are you sure you want to save?%s has changed on disk. Do you want to continue editing this buffer?%s does not exist.%s exists. Overwrite?%s has been modified. Close anyway?*192000 Hz (Studio quality)1:1A short text description of the contentsA short text indication of music genreA3A4A5AboutAbout MP3 export...About Sweep ...About...ActionAdd noiseAdd/Remove channelsAlbum:AllAlter the sample's amplitude to lie between 1.0 and -1.0Apply an echo to selected regions of a sampleAre you sure you want to revert %s to %s? All changes and undo information will be lost.Area 1Area 10Area 2Area 3Area 4Area 5Area 6Area 7Area 8Area 9Artist:AutoAutomatically select best encoding options for this file.Automatically select the encoding mode based on the sampling rate of the file.Autoscroll: follow playback cursorAverage bitrateB3B4B5Bb3Bb4Bb5BeansBitrate management engineBy extensionC#3C#4C#5C3C4C5CBR with VAD and Discontinuous Transmission (DTX)CBR with Voice Activity Detection (VAD)CancelCenterChanges to device settings will take effect on next playback.ChannelsClearClipboardClipboard data has incompatible formatClipboard duration:Clipboard emptyCloseColor schemeConfigure audio device ...Constant bitrate (CBR)Constant bitrate (CBR) with no featuresContact information for the creators or distributors of the track. This could be a URL, an email address, the physical address of the producing label.Contact:Continue editingConversionConvert from %d to %d channelsConverterCopyCopy selection to clipboardCopyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'Copyright:CreateCreate new fileCropCurrent sample rate: %d HzCurrently: %d channelsCursor position (indicator)CustomCustom: CutCut selection to clipboardD#5D3D4D5Data memory:Date the track was recordedDate:Decoding %s Encoded by: %s %sDefaultDefaultsDelayDeleteDescription:DestinationDetermine File Type:Device bufferingDevice nameDirectory does not existDon't closeDon't createDon't mixDon't overwriteDon't quitDon't resampleDon't revertDon't saveDoubleDouble selectionDuplicateDuplicate from %d to %d channelsDuplicate to %d channelsDuplicate to multichannelDuplicate to stereoDuration:E3E4E5Eb3Eb4EchoEditEdit PCM sample valuesEmptyEnable bitrate managementEnable bitrate management engineEncodingEncoding complexity:Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file) using variable bitrate mode (VBR).Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file).Encoding quality:Encoding:End gainExcellent!!!ExtraF#3F#4F#5F3F4F5Fast forwardFileFile existsFile modifiedFile properties ...File:Files playingFiles unsavedFor non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For VBR encoding, this sets the average bitrate.G#3G#4G#5G3G4G5GainGenerate a random serial number for the Ogg bitstream. The number will change while this button is held down.Genre:Go to beginningGo to end of fileGo to end of windowGo to start of fileGo to start of windowGo to the endHalveHalve selectionHello, my name is Scrubby. Welcome to Sweep! Would you like to create a new file or load an existing file?HelpHigh latency / Fewer dropoutsHow many pants should you wear per day?HzISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-content/online/isrc_intro.html) for more information on ISRC numbers.ISRC:Indicates the total duration of the clipboard, which is the maximum length that will be pasted.Invalid encoding optionsInvertInvert phaseInvert selectionLeftLibsndfile is a C library by Erik de Castro Lopo for reading and writing files containing sampled sound.License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL to a license such as a Creative Commons license ("www.creativecommons.org/blahblah/license.html") or the EFF Open Audio License ('distributed under the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/eff_oal.html for details'), etc.License:Load existing fileLoading %sLocation where track was recordedLocation:Loop mode playback (toggle)Loop mode recording (toggle)Low latency / More dropoutsMP3 export unsupportedMain device:Maximum bitrateMaximum bitrate:Maximum interruptionMetadataMethod of eating beansMinimum bitrate:Minimum durationMixMode:Monitor (toggle)Monitor output:MonoMoveMove regions in a sampleMuted playback (toggle)Name of the organization producing the track (i.e. the 'record label')Name:Narrowband ~8 kHz (telephone quality)NewNew ...New ViewNew sample rateNew selectionNo files are unsaved, but some files are currently playing. Are you sure you want to quit?No selection to clearNo selection to copyNo selection to cutNo selection to deleteNo selection to processNo selection to record intoNoiseNominal bitrate (ABR):NoneNormaliseNot stereoNothing to crop outNothing to redoNothing to undoNumber of Speex frames to pack into each Ogg packet. Higher values save space at low bitrates.OKOgg Vorbis encoding resultsOgg Vorbis is a high quality general purpose perceptual audio codec. It is free, open and unpatented.Ogg streamOgg stream serial number:Ogg, Speex, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.Ogg, Vorbis, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.OpenOpen ...Organization:Original dataOutput channelsOverflowOverwritePants methodologyPastePaste as NewPaste insertPaste mixPaste: insert clipboard at cursor positionPaste: mix clipboard in from cursor positionPausePencilPencil toolPerformer:Play notePlay samplePlay selectionPlaybackPlayback gain slider (volume)Powered by libsndfilePrevious soundProcessProperties ...QuadraphonicQualityQuitRandomise PCM valuesRandomize!ReadyReady to recordRecord ...Record into selectionRecorded soundRedoRemember asRemember these encoding optionsRemember these optionsRemember this formatRemember this qualityRemember this sampling rate and channel configuration for creating new files.Remember this serial numberRemove left channelRemove right channelReread from diskResampleResample ...Resample errorResample from %d Hz to %d HzResetReset to the last remembered device names.Reset to the last remembered encoding options.Reset to the last remembered format for new files.Reset to the last remembered quality.ResolutionReverseReverse mode playback (toggle)Reverse selected regions of a sampleRevertRevert fileRevert to selected stateRewindRightSampleSampling rateSampling rate:SaveSave As ...Save OptionsSave as %s cancelledSave as ...Saving %sSecret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio by Erik de Castro Lopo SelectSelect allSelect loud or quiet regionsSelect noneSelect regions above thresholdSelect regions of a sampleSelection leftSelection rightSelection: add/modify regionSelection: subtract regionSelector toolSet the main device for playback and recordingSet to default device buffering.Set to default device names.Set to default encoding options.Set to default quality.Set to the default format for new files.Shift leftShift rightShow history ...Skip backSkip forwardSome files are unsaved. If you quit, all changes will be lost. Are you sure you want to quit?SourceSpecify a maximum bitrate, useful for streaming applications. (Optional)Specify a minimum bitrate, useful for encoding for a fixed-size channel. (Optional)Specify a nominal bitrate. Attempt to encode at a bitrate averaging this.Speex encodingSpeex encoding resultsSpeex frames per Ogg packet:Speex is a high quality speech codec designed for voice over IP (VoIP) and file-based compression. It is free, open and unpatented.Start gainStereoStopSwapSwap channelsSwap left and rightSwap main and monitor devices.SweepSweep plugin API versionSweep versionSweep: Add/Remove channelsSweep: Duplicate channelSweep: File propertiesSweep: HistorySweep: Load Raw PCM optionsSweep: New fileSweep: Ogg Vorbis save optionsSweep: Paste mixSweep: RecordSweep: ResampleSweep: Save PCM optionsSweep: Save fileSweep: Speex save optionsThe artist generally considered responsible for the work. In popular music this is usually the performing band or singer. For classical music it would be the composer. For an audio book it would be the author of the original text.The artist(s) who performed the work. In classical music this would be the conductor, orchestra, soloists. In an audio book it would be the actor who did the reading. In popular music this is typically the same as the ARTIST and is omitted.The collection name to which this track belongsThe version field may be used to differentiate multiple versions of the same track title in a single collection. (e.g. remix info)This enables average bitrate mode (ABR). You must suggest a nominal average bitrate and may specify minimum and maximum bounds. For best results it is generally recommended that you use the variable bitrate 'encoding quality' control (above) instead.This is Sweep versionThis sets the encoding speed/quality tradeoff between 0 (faster encoding) and 10 (slower encoding)This tool allows you to select regions of a sample. You can then apply edits and effects to the: selected regions. Hold down shift whilst selecting to add discontinuous regions to the selection.This user interface by Conrad Parker, Copyright (C) 2002 CSIRO Australia. This user interface by Erik de Castro Lopo and Conrad Parker, Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO Australia. ThresholdTime to delay byTitle:Toggle loopingToggle monitoringToggle mutingToggle reverse playbackTrack/Work nameTransportUltra-wideband 32-48 kHzUnable to read %sUndoUnsupported encoding modeUntitledUsage: %s [option ...] [files ...] Use a different device for monitoringVAD generates low bitrate comfort noise to replace non-speechVBR allows the bitrate to adapt to the complexity of the speech, and handles pauses using VAD and DTXVBR allows the bitrate to adapt to the complexity of the speech.Valid options are: Variable bitrate (VBR)Variable bitrate (VBR) with all featuresVersion:Vertical zoom [Shift + Arrow Up/Down]ViewVorbis encodingWARNING: Build includes incomplete development code. Welcome to SweepWhether to select those regions lying above a given threshold or below it.Wideband ~16 kHzWith Nigel's bumWith a forkWith a spoonWith false teethWith this tool you can move selected regions of a sample.You are not allowed to write to %sZoomZoom allZoom inZoom in & outZoom normalZoom outZoom toZoom to selectionbpschannelshh:mm:ss.xxxhttp://sweep.sourceforge.net/kbpslibsamplerate errorProject-Id-Version: ru Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/ POT-Creation-Date: 2008-04-11 15:11+0100 PO-Revision-Date: 2003-04-17 16:06+0400 Last-Translator: Alexandre Prokoudine Language-Team: Russian MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-Generator: KBabel 1.0.1 --display éÓÐÏÌØÚÏ×ÁÔØ ÐÅÒÅÄÁ×ÁÅÍÙÊ ÐÁÒÁÍÅÔÒÕ ÎÏÍÅÒ X-ÓÅÓÓÉÉ. --no-toolbox îÅ ÐÏËÁÚÙ×ÁÔØ ÏËÎÏ Ó ÉÎÓÔÒÕÍÅÎÔÁÍÉ. -h --help ðÏËÁÚÙ×ÁÅÔ ÜÔÕ ÓÐÒÁ×ËÕ. -v --version ðÏËÁÚÙ×ÁÅÔ ÉÎÆÏÒÍÁÃÉÀ Ï ×ÅÒÓÉÉ ÐÒÏÇÒÁÍÍÙ. 4000 çà (ÎÉÚËÏÅ ËÁÞÅÓÔ×Ï) 8000 çà (ÎÉÚËÏÅ ËÁÞÅÓÔ×Ï ÄÌÑ ÚÁÐÉÓÉ ÇÏÌÏÓÁ) 11025 çà 16000 çà (×ÙÓÏËÏÅ ËÁÞÅÓÔ×Ï ÄÌÑ ÚÁÐÉÓÉ ÇÏÌÏÓÁ) 22050 çà 32000 çà (ÏÞÅÎØ ×ÙÓÏËÏÅ ËÁÞÅÓÔ×Ï ÄÌÑ ÚÁÐÉÓÉ ÇÏÌÏÓÁ) 44100 çà (ËÁÞÅÓÔ×Ï CD) 48000 çà (ËÁÞÅÓÔ×Ï DAT-ÚÁÐÉÓÉ) 96000 çà (×ÙÓÏËÏÅ ËÁÞÅÓÔ×Ï)"óËÒÅÂÙÛ"æÁÊÌ "%s" ÉÚÍÅÎÉÌÓÑ ÎÁ ÄÉÓËÅ. ÷Ù ÄÅÊÓÔ×ÉÔÅÌØÎÏ ÈÏÔÉÔÅ ÓÏÈÒÁÎÉÔØ?%s ÉÚÍÅÎÉÌÍÑ ÎÁ ÄÉÓËÅ. ÷Ù ÈÏÔÉÔÅ ÐÒÏÄÏÌÖÉÔØ ÒÅÄÁËÔÉÒÏ×ÁÎÉÅ ÜÔÏÇÏ ÂÕÆÅÒÁ?%s ÎÅ ÓÕÝÅÓÔ×ÕÅÔ"%s" ÓÕÝÅÓÔ×ÕÅÔ. ðÅÒÅÚÁÐÉÓÁÔØ?æÁÊÌ "%s" ÉÚÍÅÎÉÌÓÑ. ÷Ó£ ÒÁ×ÎÏ ÚÁËÒÙÔØ?*192000 çà (ÓÔÕÄÉÊÎÏÅ ËÁÞÅÓÔ×Ï)1:1ëÏÒÏÔËÏÅ ÏÐÉÓÁÎÉÅ ÓÏÄÅÒÖÁÎÉÑëÏÒÏÔËÏÅ ÏÐÉÓÁÎÉÅ, ÉÍÅÎÏ×ÁÎÉÅ ÖÁÎÒÁìÑ 3ìÑ 4ìÑ 5ï ÂÉÂÌÉÏÔÅËÅï ÜËÓÐÏÒÔÅ × MP3...ï ÐÒÏÇÒÁÍÍÅ Sweep...ï ÐÒÏÇÒÁÍÍÅ...äÅÊÓÔ×ÉÅäÏÂÁ×ÉÔØ ÛÕÍäÏÂÁ×ÉÔØ/ÕÄÁÌÉÔØ ËÁÎÁÌÙáÌØÂÏÍ:÷Ó£ðÏÍÅÓÔÉÔØ ÁÍÐÌÉÔÕÄÕ ÓÅÍÐÌÁ × ÐÒÅÄÅÌÙ 1.0 É -1.0ðÒÉÍÅÎÉÔØ ÜÆÆÅËÔ ÜÈÁ Ë ×ÙÄÅÌÅÎÎÙÍ ÆÒÁÇÍÅÎÔÁÍ ÓÅÍÐÌÁ÷Ù Õ×ÅÒÅÎÙ, ÞÔÏ ÈÏÔÉÔÅ ÒÁÚ×ÅÒÎÕÔØ %s ÎÁ %s? óÏÇÌÁÓÉ×ÛÉÓØ, ×Ù ÎÅ ÓÍÏÖÅÔÅ ÏÔÍÅÎÉÔØ ÐÒÅÄÙÄÕÝÉÅ ÉÚÍÅÎÅÎÉÑ.ïÂÌÁÓÔØ 1ïÂÌÁÓÔØ 10ïÂÌÁÓÔØ 2ïÂÌÁÓÔØ 3ïÂÌÁÓÔØ 4ïÂÌÁÓÔØ 5ïÂÌÁÓÔØ 6ïÂÌÁÓÔØ 7ïÂÌÁÓÔØ 8ïÂÌÁÓÔØ 9á×ÔÏÒ:á×ÔÏá×ÔÏÍÁÔÉÞÅÓËÉ ×ÙÂÒÁÔØ ÌÕÞÛÉÅ ÐÁÒÁÍÅÔÒÙ ËÏÄÉÒÏ×ÁÎÉÑ ÄÌÑ ÜÔÏÇÏ ÆÁÊÌÁ.á×ÔÏÍÁÔÉÞÅÓËÉ ×ÙÂÒÁÔØ ÒÅÖÉÍ ËÏÄÉÒÏ×ÁÎÉÑ ÎÁ ÏÓÎÏ×Å ÞÁÓÔÏÔÙ ÄÉÓËÒÅÔÉÚÁÃÉÉ ÆÁÊÌÁá×ÔÏÐÒÏËÒÕÔËÁ: ÓÌÅÄÏ×ÁÔØ ÚÁ ËÕÒÓÏÒÏÍ ÐÒÉ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÉóÒÅÄÎÑÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁóÉ 3óÉ 4óÉ 5óÉ ÂÅÍÏÌØ 3óÉ ÂÅÍÏÌØ 4óÉ ÂÅÍÏÌØ 5âÏÂÙ òÕÞÎÏÅ ÕÐÒÁ×ÌÅÎÉÅ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÏÊ ðÏ ÒÁÓÛÉÒÅÎÉÀäÏ ÄÉÅÚ 3äÏ ÄÉÅÚ 4äÏ ÄÉÅÚ 5äÏ 3äÏ 4äÏ 5CBR Ó VAD É ÄÉÓËÒÅÔÎÏÊ ÔÒÁÎÓÍÉÓÓÉÅÊ (DTX)CBR Ó ÏÐÒÅÄÅÌÅÎÉÅÍ ÁËÔÉ×ÎÏÓÔÉ ÇÏÌÏÓÁ (VAD)ïÔÍÅÎÉÔØãÅÎÔÒéÚÍÅÎÅÎÉÑ × ÎÁÓÔÒÏÊËÁÈ ÕÓÔÒÏÊÓÔ×Á ÂÕÄÕÔ ÕÞÔÅÎÙ ÐÒÉ ÓÌÅÄÕÀÝÅÍ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÉ.ëÁÎÁÌÙïÞÉÓÔÉÔØâÕÆÅÒ ÏÂÍÅÎÁâÕÆÅÒ ÓÏÄÅÒÖÉÔ ÎÅÐÏÄÄÅÒÖÉ×ÁÅÍÙÊ ÔÉÐ ÄÁÎÎÙÈðÒÏÄÏÌÖÉÔÅÌØÎÏÓÔØ ÂÕÆÅÒÁ ÏÂÍÅÎÁ:âÕÆÅÒ ÏÂÍÅÎÁ ÐÕÓÔúÁËÒÙÔØã×ÅÔÏ×ÁÑ ÓÈÅÍÁîÁÓÔÒÏÉÔØ ÁÕÄÉÏÕÓÔÒÏÊÓÔ×Ï...ðÏÓÔÏÑÎÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ (CBR)ïÂÙÞÎÁÑ ÐÏÓÔÏÑÎÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ (CBR)ëÏÎÔÁËÔÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÏÚÄÁÔÅÌÑÈ É ÄÉÓÔÒÉÂØÀÔÏÒÁÈ ÄÏÒÏÖËÉ. üÔÏ ÍÏÖÅÔ ÂÙÔØ URL, -email, ÆÉÚÉÞÅÓËÉÊ ÉÌÉ ÀÒÉÄÉÞÅÓËÉÊ ÁÄÒÅÓ ÐÏÒÄÀÓÅÒÓËÏÊ ÏÒÇÁÎÉÚÁÃÉÉ.ëÏÎÔÁËÔÙ:ðÒÏÄÏÌÖÉÔØ ÒÅÄÁËÔÉÒÏ×ÁÎÉÅ ðÒÅÏÂÒÁÚÏ×ÁÎÉÅ óËÏÎ×ÅÒÔÉÒÏ×ÁÔØ ÉÚ %d × %d ËÁÎÁÌÏ× ðÒÅÏÂÒÁÚÏ×ÁÔÅÌØ óËÏÐÉÒÏ×ÁÔØóËÏÐÉÒÏ×ÁÔØ ×ÙÄÅÌÅÎÉÅ × ÂÕÆÅÒ ÏÂÍÅÎÁëÒÁÔËÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï Á×ÔÏÒÓËÏÍ ÐÒÁ×Å, ÎÁÐÒÉÍÅÒ, '2003 îÁÛÁ ÇÒÕÐÐÁ' ÉÌÉ '2003 íÏ£ ÉÍÑ'á×ÔÏÒÓËÏÅ ÐÒÁ×Ï:óÏÚÄÁÔØóÏÚÄÁÔØ ÎÏ×ÙÊ ÆÁÊÌïÂÒÅÚÁÔØ ÐÏ ËÒÁÑÍôÅËÕÝÁÑ ÞÁÓÔÏÔÁ ÄÉÓËÒÅÔÉÚÁÃÉÉ: %d çÃóÅÊÞÁÓ: %d ËÁÎÁÌÏ×ðÏÚÉÃÉÑ ËÕÒÓÏÒÁ (ÉÎÄÉËÁÔÏÒ)ó×Ï£ ÚÎÁÞÅÎÉÅó×Ï£ ÚÎÁÞÅÎÉÅ: ÷ÙÒÅÚÁÔØ÷ÙÒÅÚÁÔØ ×ÙÄÅÌÅÎÉÅ × ÂÕÆÅÒ ÏÂÍÅÎÁòÅ ÄÉÅÚ 5òÅ 3òÅ 4òÅ 5ïÂß£Í ÄÁÎÎÙÈ:äÁÔÁ ÚÁÐÉÓÉ ÄÏÒÏÖËÉäÁÔÁ:äÅËÏÄÉÒÏ×ÁÎÉÅ %s ëÏÄÉÒÏ×ÁÎÉÅ ÐÒÏÉÚ×ÅÌ(Á): %s %sðÏ ÕÍÏÌÞÁÎÉÀóÔÁÎÄÁÒÔÎÙÅ ÕÓÔÁÎÏ×ËÉúÁÄÅÒÖËÁõÄÁÌÉÔØïÐÉÓÁÎÉÅ:íÅÓÔÏ ÎÁÚÎÁÞÅÎÉÑïÐÒÅÄÅÌÉÔØ ÔÉÐ ÆÁÊÌÁ:âÕÆÆÅÒÉÚÁÃÉÑ ÕÓÔÒÏÊÓÔ×ÁéÍÑ ÕÓÔÒÏÊÓÔ×ÁëÁÔÁÌÏÇÁ ÎÅ ÓÕÝÅÓÔ×ÕÅÔîÅ ÚÁËÒÙ×ÁÔØîÅ ÓÏÚÄÁ×ÁÔØîÅ ÓÍÅÛÉ×ÁÔØîÅ ÐÅÒÅÚÁÐÉÓÙ×ÁÔØîÅ ×ÙÈÏÄÉÔØîÅ ÐÒÅÏÂÒÁÚÏ×Ù×ÁÔØîÅ ÒÁÚ×ÏÒÁÞÉ×ÁÔØîÅ ÓÏÈÒÁÎÑÔØõÄ×ÏÉÔØõÄ×ÏÉÔØ ×ÙÄÅÌÅÎÉÅðÒÏÄÕÂÌÉÒÏ×ÁÔØðÒÏÄÕÂÌÉÒÏ×ÁÔØ ÉÚ %d × %d ËÁÎÁÌÏ×ðÒÏÄÕÂÌÉÒÏ×ÁÔØ × %d ËÁÎÁÌÏ×ðÒÏÄÕÂÌÉÒÏ×ÁÔØ × ÍÎÏÇÏËÁÎÁÌØÎÕÀ ÄÏÒÏÖËÕðÒÏÄÕÂÌÉÒÏ×ÁÔØ × ÓÔÅÒÅÏðÒÏÄÏÌÖÉÔÅÌØÎÏÓÔØ:íÉ 3íÉ 4íÉ 5íÉ ÂÅÍÏÌØ 3íÉ ÂÅÍÏÌØ 4üÈÏðÒÁ×ËÁòÅÄÁËÔÉÒÏ×ÁÔØ ÚÎÁÞÅÎÉÑ PCM-ÓÅÍÐÌÁðÕÓÔÏÊ÷ÒÕÞÎÕÀ ÚÁÄÁÔØ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ÷ËÌÀÞÉÔØ ÒÕÞÎÏÅ ÕÐÒÁ×ÌÅÎÉÅ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÏÊëÏÄÉÒÏ×ÁÎÉÅëÁÞÅÓÔ×Ï ËÏÄÉÒÏ×ÁÎÉÑ:ëÁÞÅÓÔ×Ï ËÏÄÉÒÏ×ÁÎÉÑ ÚÁÄÁ£ÔÓÑ ÞÉÓÌÏÍ ÍÅÖÄÕ 0 (ÎÁÉÈÕÄÛÅÅ ËÁÞÅÓÔ×Ï, ÎÁÉÍÅÎØÛÉÊ ÒÁÚÍÅÒ ÆÁÊÌÁ) É 10 (ÎÁÉ×ÙÓÛÅÅ ËÁÞÅÓÔ×Ï, ÎÁÉÂÏÌØÛÉÊ ÒÁÚÍÅÒ ÆÁÊÌÁ) ÐÒÉ ÐÏÍÏÝÉ ÐÅÒÅÍÅÎÎÏÊ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÙ (VBR).ëÁÞÅÓÔ×Ï ËÏÄÉÒÏ×ÁÎÉÑ ÚÁÄÁ£ÔÓÑ ÞÉÓÌÏÍ × ÐÒÏÍÅÖÕÔËÅ ÏÔ 0 (ÎÁÉÈÕÄÛÅÅ ËÁÞÅÓÔ×Ï, ÎÁÉÍÅÎØÛÉÊ ÒÁÚÍÅÒ ÆÁÊÌÁ) É 10 (ÎÁÉ×ÙÓÛÅÅ ËÁÞÅÓÔ×Ï, ÎÁÉÂÏÌØÛÉÊ ÒÁÚÍÅÒ ÆÁÊÌÁ).ëÁÞÅÓÔ×Ï ËÏÄÉÒÏ×ÁÎÉÑ:ëÏÄÉÒÏ×ÁÎÉÅ:ëÏÎÅÞÎÁÑ ÇÒÏÍËÏÓÔØ÷ÅÌÉËÏÌÅÐÎÏ!!!äÏÐÏÌÎÉÔÅÌØÎÏæÁ ÄÉÅÚ 3æÁ ÄÉÅÚ 4æÁ ÄÉÅÚ 5æÁ 3æÁ 4æÁ 5ðÅÒÅÍÏÔÁÔØ ×ÐÅ񣀾ÁÊÌæÁÊÌ Ó ÔÁËÉÍ ÉÍÅÎÅÍ ÓÕÝÅÓÔ×ÕÅÔæÁÊÌ ÉÚÍÅÎÉÌÓÑó×ÏÊÓÔ×Á ÆÁÊÌÁ...æÁÊÌ:÷ÏÓÐÒÏÉÚ×ÏÄÉÍÙÅ ÆÁÊÌÙæÁÊÌÙ ÎÅ ÓÏÈÒÁÎÅÎÙðÏÚ×ÏÌÑÅÔ ÚÁÄÁÔØ ÍÁËÓÉÍÁÌØÎÕÀ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ ÄÌÑ CBR É ÓÒÅÄÎÀÀ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ ÄÌÑ VBR.óÏÌØ ÄÉÅÚ 3óÏÌØ ÄÉÅÚ 4óÏÌØ ÄÉÅÚ 5óÏÌØ 3óÏÌØ 4óÏÌØ 5çÒÏÍËÏÓÔØóÏÚÄÁ£Ô ÓÌÕÞÁÊÎÙÊ ÓÅÒÉÊÎÙÊ ÎÏÍÅÒ ÄÌÑ Ogg-ÐÏÔÏËÁ. îÏÍÅÒ ÂÕÄÅÔ ÂÅÓÐÒÅÒÙ×ÎÏ ÍÅÎÑÔØÓÑ, ÐÏËÁ ËÎÏÐËÁ ÎÁÖÁÔÁ.öÁÎÒ:ðÅÒÅÊÔÉ Ë ÎÁÞÁÌÕðÅÒÅÊÔÉ Ë ËÏÎÃÕ ÆÁÊÌÁðÅÒÅÊÔÉ Ë ËÏÎÃÕ ÏËÎÁðÅÒÅÊÔÉ Ë ÎÁÞÁÌÕ ÆÁÊÌÁðÅÒÅÊÔÉ Ë ÎÁÞÁÌÕ ÏËÎÁðÅÒÅÊÔÉ Ë ËÏÎÃÕõÍÅÎØÛÉÔØõÍÅÎØÛÉÔØ ×ÙÄÅÌÅÎÉÅðÒÉ×ÅÔ, ÍÅÎÑ ÚÏ×ÕÔ óËÒÅÂÙÛ. äÏÂÒÏ ÐÏÖÁÌÏ×ÁÔØ × Sweep! ÷Ù ÈÏÔÉÔÅ ÓÏÚÄÁÔØ ÎÏ×ÙÊ ÆÁÊÌ ÉÌÉ ÏÔËÒÙÔØ ÇÏÔÏ×ÙÊ?óÐÒÁ×ËÁ÷ÙÓÏËÁ ÌÁÔÅÎÔÎÏÓÔØ / íÅÎØÛÅ ÏÔÐÕÓËÁÎÉÊóËÏÌØËÏ ÛÔÁÎÏ× ×Ù ÏÄÅ×ÁÅÔÅ ÚÁ ÄÅÎØ?çÃISRC-ÎÏÍÅÒ ÄÏÒÏÖËÉ. ðÏÄÒÏÂÎÅÅ Ï ISRC ÞÉÔÁÊÔÅ ÐÏ ÁÄÒÅÓÕ http://www.ifpi.org/site-content/online/isrc_intro.htmlISRC:ðÏËÁÚÙ×ÁÅÔ ÏÂÝÕÀ ÐÒÏÄÏÌÖÉÔÅÌØÎÏÓÔØ ÂÕÆÅÒÁ ÏÂÍÅÎÁ, ËÏÔÏÒÁÑ ÓÏ×ÐÁÄÁÅÔ Ó ÍÁËÓÉÍÁÌØÎÏÊ ÐÒÏÄÏÌÖÉÔÅÌØÎÏÓÔØÀ ×ÓÔÁ×ËÉ.îÅËÏÒÒÅËÔÎÙÅ ÐÁÒÁÍÅÔÒÙ ËÏÄÉÒÏ×ÁÎÉÑðÅÒÅ×ÅÒÎÕÔØæÁÚÁ ÉÎ×ÅÒÔÁÃÉÉðÅÒÅ×ÅÒÎÕÔØ ×ÙÄÅÌÅÎÉÅìÅ×ÙÊLibsndfile - ÜÔÏ ÂÉÂÌÉÏÔÅËÁ ÎÁ ÑÚÙËÅ C (Erik de Castro Lopo), ÐÒÅÄÎÁÚÁÞÅÎÎÁÑ ÄÌÑ ÞÔÅÎÉÑ É ÚÁÐÉÓÉ Ú×ÕËÏ×ÙÈ ÆÁÊÌÏ×.éÎÆÏÒÍÁÃÉÑ Ï ÌÉÃÅÎÚÉÉ, ÎÁÐÒÉÍÅÒ, "÷ÓÅ ÐÒÁ×Á ÚÁÝÉÝÅÎÙ", URL ÎÁ ÔÅËÓÔ ÌÉÃÅÎÚÉÉ - ÎÁÐÒÉÍÅÒ, ÷ÓÅÏÂÝÁÑ ÍÕÚÙËÁÌØÎÁÑ ÌÉÃÅÎÚÉÑ ("www.ÇÄÅ-ÔÏ.ÔÁÍ") ÉÌÉ ïÔËÒÙÔÁÑ ÌÉÃÅÎÚÉÑ ÎÁ Ú×ÕËÏ×ÙÅ ÄÁÎÎÙÅ ("ÒÁÓÐÒÏÓÔÒÁÎÑÅÔÓÑ ÎÁ ÕÓÌÏ×ÉÑÈ ïÔËÒÙÔÏÊ ÌÉÃÅÎÚÉÉ ÎÁ Ú×ÕËÏ×ÙÅ ÄÁÎÎÙÅ, ÔÅËÓÔ ËÏÔÏÒÏÊ ÞÉÔÁÊÔÅ ÐÏ ÁÄÒÅÓÕ http://www.eff.org/IP/Open_licenses/eff_oal.html") É Ô.Ä.ìÉÃÅÎÚÉÑ:ïÔËÒÙÔØ ÆÁÊÌúÁÇÒÕÖÁÅÔÓÑ "%s"ïÐÉÓÁÎÉÅ, ÉÍÅÎÏ×ÁÎÉÅ ÍÅÓÔÁ ÚÁÐÉÓÉ ÄÏÒÏÖËÉíÅÓÔÏÐÏÌÏÖÅÎÉÅ:òÅÖÉÍ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÑ × ÃÉËÌÅ (ÐÅÒÅËÌÀÞÉÔØ)úÁÐÉÓØ × ÃÉËÌÅ (ÐÅÒÅËÌÀÞÉÔØ)îÉÚËÁÑ ÌÁÔÅÎÔÎÏÓÔØ / âÏÌØÛÅ ÏÔÐÕÓËÁÎÉÊüËÓÐÏÒÔ × MP3 ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑïÓÎÏ×ÎÏÅ ÕÓÔÒÏÊÓÔ×Ï:íÁËÓÉÍÁÌØÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁíÁËÓÉÍÁÌØÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ:íÁËÓÉÍÁÌØÎÏÅ ÐÒÅÒÙ×ÁÎÉÅíÅÔÁÄÁÎÎÙÅóÐÏÓÏ ÐÏÅÄÁÎÉÑ ÂÏÂÏ×íÉÎÉÍÁÌØÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ:íÉÎÉÍÁÌØÎÁÑ ÐÒÏÄÏÌÖÉÔÅÌØÎÏÓÔØóÍÅÛÁÔØòÅÖÉÍ:íÏÎÉÔÏÒ (ÐÅÒÅËÌÀÞÉÔØ)õÓÔÒÏÊÓÔ×Ï ÍÏÎÉÔÏÒÉÎÇÁíÏÎÏðÅÒÅÍÅÓÔÉÔØðÅÒÅÍÅÓÔÉÔØ ÆÒÁÇÍÅÎÔÙ × ÓÅÍÐÌÅðÒÉÇÌÕÛ£ÎÎÏÅ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÅ (ÐÅÒÅËÌÀÞÉÔØ)éÍÑ ÏÒÇÁÎÉÚÁÃÉÉ, ÓÐÒÏÄÀÓÉÒÏ×Á×ÛÅÊ ÚÁÐÉÓØ (Ô.Î. "ÌÅÊÂÌ")éÍÑ:õÚËÏÐÏÌÏÓÎÙÊ ~8 ëçà (ÔÅÌÅÆÏÎÎÏÅ ËÁÞÅÓÔ×Ï)îÏ×ÙÊîÏ×ÙÊ...ïÔËÒÙÔØ × ÎÏ×ÏÍ ÏËÎÅîÏ×ÁÑ ÞÁÓÔÏÔÁ ÄÉÓËÒÅÔÉÚÁÃÉÉîÏ×ÏÅ ×ÙÄÅÌÅÎÉÅ÷ÓÅ ÆÁÊÌÙ ÓÏÈÒÁÎÅÎÙ, ÎÏ ÎÅËÏÔÏÒÙÅ ÉÚ ÎÉÈ ÓÅÊÞÁÓ ×ÏÓÐÒÏÉÚ×ÏÄÑÔÓÑ. ÷Ù ÄÅÊÓÔ×ÉÔÅÌØÎÏ ÈÏÔÉÔÅ ×ÙÊÔÉ?îÅÔ ÏÞÉÝÁÅÍÏÇÏ ×ÙÄÅÌÅÎÉÑîÅÔ ËÏÐÉÒÕÅÍÏÇÏ ×ÙÄÅÌÅÎÉÑîÅÔ ×ÙÒÅÚÁÅÍÏÇÏ ×ÙÄÅÌÅÎÉÑîÅÔ ÕÄÁÌÑÅÍÏÇÏ ×ÙÄÅÌÅÎÉÑîÅÔ ÏÂÒÁÂÁÔÙ×ÁÅÍÏÇÏ ×ÙÄÅÌÅÎÉÑîÅ ÚÁÐÉÓÙ×ÁÅÍÏÇÏ ×ÙÄÅÌÅÎÉÑûÕÍîÏÍÉÎÁÌØÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ (ABR):îÉÞÅÇÏîÏÒÍÁÌÉÚÏ×ÁÔØîÅ ÓÔÅÒÅÏîÅÔ ÏÂÒÅÚÁÅÍÏÇÏ ÐÏ ËÒÁÑÍ ×ÙÄÅÌÅÎÉÑîÅÞÅÇÏ ÐÏ×ÔÏÒÉÔØîÅÞÅÇÏ ÏÔÍÅÎÉÔØëÏÌÉÞÅÓÔ×Ï Speex-ËÁÄÒÏ×, ÐÏÍÅÝÁÅÍÙÈ × ÏÄÉÎ Ogg-ÐÁËÅÔ. þÅÍ ÂÏÌØÛÅ ÚÎÁÞÅÎÉÅ, ÔÅÍ ÍÅÎØÛÅ ÍÅÓÔÁ ÚÁÎÉÍÁÅÔ ÆÁÊÌ ÐÒÉ ÎÉÚËÏÊ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÅ.ïëòÅÚÕÌØÔÁÔÙ ËÏÄÉÒÏ×ÁÎÉÑ × Ogg VorbisOgg Vorbis - ÜÔÏ ÏÂÝÅÃÅÌÅ×ÏÊ ×ÙÓÏËÏËÁÞÅÓÔ×ÅÎÎÙÊ ÁÌÇÏÒÉÔÍ ÓÖÁÔÉÑ. åÇÏ ÉÓÈÏÄÎÙÊ ËÏÄ Ó×ÏÂÏÄÅÎ, ÂÅÓÐÌÁÔÅÎ É ÎÅÚÁÝÉݣΠÐÁÔÅÎÔÁÍÉ.Ogg-ÐÏÔÏËóÅÒÉÊÎÙÊ ÎÏÍÅÒ Ogg-ÐÏÔÏËÁ:Ogg, Speex, Xiph.org Foundation É ÉÈ ÌÏÇÏÔÉÐÙ Ñ×ÌÑÀÔÓÑ ÔÏÒÇÏ×ÙÍÉ ÍÁÒËÁÍÉ (tm) æÏÎÄÁ Xiph.org É ÉÓÐÏÌØÚÕÀÔÓÑ Ó ÅÇÏ ÒÁÚÒÅÛÅÎÉÑ.Ogg, Vorbis, Xiph.org Foundation É ÉÈ ÌÏÇÏÔÉÐÙ Ñ×ÌÑÀÔÓÑ ÔÏÒÇÏ×ÙÍÉ ÍÁÒËÁÍÉ (tm) æÏÎÄÁ Xiph.org. ÷ ÄÁÎÎÏÍ ÐÒÏÇÒÁÍÍÎÏÍ ÐÒÏÄÕËÔÅ ÉÓÐÏÌØÚÕÀÔÓÑ Ó ÉÈ ÒÁÚÒÅÛÅÎÉÑ.ïÔËÒÙÔØïÔËÒÙÔØ...ïÒÇÁÎÉÚÁÃÉÑ:ðÅÒ×ÏÎÁÞÁÌØÎÙÅ ÄÁÎÎÙÅ÷ÙÈÏÄÎÙÅ ËÁÎÁÌÙðÅÒÅÐÏÌÎÅÎÉÅðÅÒÅÚÁÐÉÓÁÔØóÐÏÓÏ ÛÔÁÎÏ×÷ÓÔÁ×ÉÔØ÷ÓÔÁ×ÉÔØ × ÎÏ×ÙÊ ÆÁÊÌïÂÙÞÎÁÑ ×ÓÔÁ×ËÁ÷ÓÔÁ×ÉÔØ ÏÂÙÞÎÙÍ ÓÐÏÓÏÂÏÍ÷ÓÔÁ×ËÁ: ×ÓÔÁ×ÉÔØ ÂÕÆÅÒ ÏÂÍÅÎÁ × ÐÏÚÉÃÉÀ ËÕÒÓÏÒÁ÷ÓÔÁ×ËÁ: ÓÍÅÛÁÔØ ÓÉÇÎÁÌ ÉÚ ÂÕÆÅÒÁ ÏÂÍÅÎÁ Ó ÓÉÇÎÁÌÏÍ ÐÏ ÐÏÚÉÃÉÉ ËÕÒÓÏÒÁðÒÉÏÓÔÁÎÏ×ÉÔØëÁÒÁÎÄÁÛ"ëÁÒÁÎÄÁÛ"éÓÐÏÌÎÉÔÅÌØ:÷ÏÓÐÒÏÉÚ×ÅÓÔÉ ÎÏÔÕ÷ÏÓÐÒÏÉÚ×ÅÓÔÉ ÓÅÍÐÌ÷ÏÓÐÒÏÉÚ×ÅÓÔÉ ×ÙÄÅÌÅÎÉÅ÷ÏÓÐÒÏÉÚ×ÅÄÅÎÉÅòÅÇÕÌÑÔÏÒ ÇÒÏÍËÏÓÔÉ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÑðÒÉ ÐÏÍÏÝÉ libsndfileðÒÅÄÙÄÕÝÉÊ Ú×ÕËüÆÆÅËÔÙó×ÏÊÓÔ×Á...ë×ÁÄÒÏÆÏÎÉÑëÁÞÅÓÔ×Ï÷ÙÊÔÉðÏÌÕÞÉÔØ ÓÌÕÞÁÊÎÙÅ ÚÎÁÞÅÎÉÑ ÄÌÑ PCMðÏÌÕÞÉÔØ ÓÌÕÞÁÊÎÏÅ ÚÎÁÞÅÎÉÅ!çÏÔÏ×ÏçÏÔÏ× Ë ÚÁÐÉÓÉúÁÐÉÓÁÔØ...úÁÐÉÓÁÔØ × ×ÙÄÅÌÅÎÉÅúÁÐÉÓÁÎÎÙÊ Ú×ÕËðÏ×ÔÏÒÉÔØúÁÐÏÍÎÉÔØ ËÁËúÁÐÏÍÎÉÔØ ÜÔÉ ÐÁÒÁÍÅÔÒÙ ËÏÄÉÒÏ×ÁÎÉÑúÁÐÏÍÎÉÔØ ÜÔÉ ÐÁÒÁÍÅÔÒÙúÁÐÏÍÎÉÔØ ÜÔÏÔ ÆÏÒÍÁÔúÁÐÏÍÎÉÔØ ÜÔÏ ÚÎÁÞÅÎÉÅúÁÐÏÍÎÉØÔ ÜÔÏ ÚÎÁÞÅÎÉÅ ÞÁÓÔÏÔÙ ÄÉÓËÒÅÔÉÚÁÃÉÉ É ËÏÎÆÉÇÕÒÁÃÉÀ ËÁÎÁÌÏ× ÄÌÑ ÓÏÚÄÁÎÉÑ ÎÏ×ÙÈ ÆÁÊÌÏ×úÁÐÏÍÎÉÔØ ÜÔÏÔ ÓÅÒÉÊÎÙÊ ÎÏÍÅÒõÄÁÌÉÔØ ÌÅ×ÙÊ ËÁÎÁÌõÄÁÌÉÔØ ÐÒÁ×ÙÊ ËÁÎÁÌðÅÒÅÞÉÔÁÔØ Ó ÄÉÓËÁðÒÅÏÂÒÁÚÏ×ÁÔØéÚÍÅÎÉÔØ ÞÁÓÔÏÔÕ ÄÉÓËÒÅÔÉÚÁÃÉÉ...ïÛÉÂËÁ ÐÒÉ ÓÍÅÎÅ ÞÁÓÔÏÔÙ ÄÉÓËÒÅÔÉÚÁÃÉÉóÍÅÎÁ ÞÁÓÔÏÔÙ ÄÉÓËÒÅÔÉÚÁÃÉÉ Ó %d çà ÎÁ %d çÃðÅÒÅÚÁÇÒÕÚÉÔØõÓÔÁÎÏ×ÉÔØ ÐÏÓÌÅÄÎÉÅ ÚÁÐÏÍÎÅÎÎÙÅ ÉÍÅÎÁ ÕÓÔÒÏÊÓÔ×õÓÔÁÎÏ×ÉÔØ ÐÒÅÄÙÄÕÝÉÅ ÚÁÐÏÍÎÅÎÎÙÅ ÐÁÒÁÍÅÔÒÙ ËÏÄÉÒÏ×ÁÎÉÑ.÷ÅÒÎÕÔØÓÑ Ë ÐÏÓÌÅÄÎÅÍÕ ÚÁÐÏÍÎÅÎÎÏÍÕ ÆÏÒÍÁÔÕ ÎÏ×ÙÈ ÆÁÊÌÏ×÷ÅÒÎÕÔØÓÑ Ë ÐÏÓÌÅÄÎÅÍÕ ÚÁÐÏÍÎÅÎÎÏÍÕ ÚÎÁÞÅÎÉÀòÁÚÒÅÛÅÎÉÅðÅÒÅ×ÅÒÎÕÔØòÅÖÉÍ ÏÂÒÁÔÎÏÇÏ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÑ (ÐÅÒÅËÌÀÞÉÔØ)ðÅÒÅ×ÅÒÎÕÔØ ×ÙÄÅÌÅÎÎÙÅ ÆÒÁÇÍÅÎÔÙ ÓÅÍÐÌÁòÁÚ×ÅÒÎÕÔØòÁÚ×ÅÒÎÕÔØ ÆÁÊÌ÷ÅÒÎÕÔØÓÑ Ë ÏÔÍÅÞÅÎÎÏÍÕ ÕÒÏ×ÎÀðÅÒÅÍÏÔÁÔØ ÎÁÚÁÄðÒÁ×ÙÊóÅÍÐÌþÁÓÔÏÔÁ ÄÉÓËÒÅÔÉÚÁÃÉÉþÁÓÔÏÔÁ ÄÉÓËÒÅÔÉÚÁÃÉÉ:óÏÈÒÁÎÉÔØóÏÈÒÁÎÉÔØ ËÁË... ðÁÒÁÍÅÔÒÙ ÓÏÈÒÁÎÅÎÉÑ óÏÈÒÁÎÅÎÉÅ ÐÏÄ ÉÍÅÎÅÍ "%s" ÏÔÍÅÎÅÎÏóÏÈÒÁÎÉÔØ ËÁË...óÏÈÒÁÎÑÅÔÓÑ "%s"Secret Rabbit Code (ÉÚ×ÅÓÔÎÙÊ ËÁË libsamplerate) - ÜÔÏ ðÒÅÏÂÒÁÚÏ×ÁÔÅÌØ ÞÁÓÔÏÔÙ ÄÉÓËÒÅÔÉÚÁÃÉÉ üÒÉËÁ ÄÅ ëÁÓÔÒÏ ìÏÐÏ ÷ÙÄÅÌÉÔØ÷ÙÄÅÌÉÔØ ×Ó£÷ÙÄÅÌÉÔØ ÇÒÏÍËÉÅ ÉÌÉ ÔÉÈÉÅ ÆÒÁÇÍÅÎÔÙîÉÞÅÇÏ ÎÅ ×ÙÄÅÌÑÔØ÷ÙÄÅÌÉÔØ ÆÒÁÇÍÅÎÔÙ ×ÙÛÅ ÐÏÒÏÇÁ÷ÙÄÅÌÉÔØ ÆÒÁÇÍÅÎÔÙ ÓÅÍÐÌÁ÷ÙÄÅÌÉÔØ ×ÌÅ×Ï÷ÙÄÅÌÉÔØ ×ÐÒÁ×Ï÷ÙÄÅÌÅÎÉÅ: ÄÏÂÁ×ÉÔØ/ÉÚÍÅÎÉÔØ ÆÒÁÇÍÅÎÔ÷ÙÄÅÌÅÎÉÅ: ×ÙÞÅÓÔØ ÆÒÁÇÍÅÎÔéÎÓÔÒÕÍÅÎÔ ×ÙÄÅÌÅÎÉÑõËÁÚÁÔØ ÏÓÎÏ×ÎÏÅ ÕÓÔÒÏÊÓÔ×Ï ÄÌÑ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÑ É ÚÁÐÉÓÉõËÁÚÁÔØ ÓÔÁÎÄÁÒÔÎÕÀ ÂÕÆÆÅÒÉÚÁÃÉÀ ÕÓÔÒÏÊÓÔ×ÁõËÁÚÁÔØ ÓÔÁÎÄÁÒÔÎÙÅ ÉÍÅÎÁ ÕÓÔÒÏÊÓÔ×õÓÔÁÎÏ×ÉÔØ ÓÔÁÎÄÁÒÔÎÙÅ ÐÁÒÁÍÅÔÒÙ ËÏÄÉÒÏ×ÁÎÉÑõÓÔÁÎÏ×ÉÔØ ÓÔÁÎÄÁÒÔÎÏÅ ÚÎÁÞÅÎÉÅõÓÔÁÎÏ×ÉÔØ ÓÔÁÎÄÁÒÔÎÏÅ ÚÎÁÞÅÎÉÅ ÆÏÒÍÁÔÁ ÎÏ×ÙÈ ÆÁÊÌÏ×óÄ×ÉÎÕÔØ ×ÌÅ×ÏóÄ×ÉÎÕÔØ ×ÐÒÁ×ÏðÏËÁÚÁÔØ ÉÓÔÏÒÉÀ ÉÚÍÅÎÅÎÉÊ...ðÅÒÅÊÔÉ ÎÁÚÁÄðÅÒÅÊÔÉ ×ÐÅÒ£ÄîÅËÏÔÏÒÙÅ ÆÁÊÌÙ ÎÅ ÓÏÈÒÁÎÅÎÙ. ðÒÉ ×ÙÈÏÄÅ ×ÓÅ ÉÚÍÅÎÅÎÉÑ ÂÕÄÕÔ ÐÏÔÅÒÑÎÙ. ÷Ù Õ×ÅÒÅÎÙ, ÞÔÏ ÈÏÔÉÔÅ ×ÙÊÔÉ ÉÚ ÐÒÏÇÒÁÍÍÙ?éÓÔÏÞÎÉËõËÁÖÉÔÅ ÍÉÎÉÍÁÌØÎÕÀ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ. üÔÏÔ ÎÅÏÂÑÚÁÔÅÌØÎÙÊ ÐÁÒÁÍÅÔÒ ÐÏÌÅÚÅÎ × ÔÏÍ ÓÌÕÞÁÅ, ÅÓÌÉ ÒÅÚÕÌØÔÁÔ ËÏÄÉÒÏ×ÁÎÉÑ ÂÕÄÅÔ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ × ÐÒÉÌÏÖÅÎÉÑÈ ÄÌÑ ÒÁÂÏÔÙ Ó ÐÏÔÏÞÎÙÍ Ú×ÕËÏÍ.õËÁÖÉÔÅ ÍÉÎÉÍÁÌØÎÕÀ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ. üÔÏÔ ÎÅÏÂÑÚÁÔÅÌØÎÙÊ ÐÁÒÁÍÅÔÒ ÐÏÌÅÚÅÎ × ÔÏÍ ÓÌÕÞÁÅ, ÅÓÌÉ ÒÅÞØ ÉÄ£Ô Ï ËÁÎÁÌÅ ÆÉËÓÉÒÏ×ÁÎÎÏÇÏ ÒÁÚÍÅÒÁ.õËÁÖÉÔÅ ÎÏÍÉÎÁÌØÎÕÀ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ, ÚÎÁÞÅÎÉÅ ËÏÔÏÒÏÊ ÂÕÄÅÔ ×ÚÑÔÏ ÚÁ ÏÓÎÏ×Õ ÄÌÑ ËÏÄÉÒÏ×ÁÎÉÑëÏÄÉÒÏ×ÁÎÉÅ × SpeexòÅÚÕÌØÔÁÔÙ ËÏÄÉÒÏ×ÁÎÉÑ ÐÒÉ ÐÏÍÏÝÉ SpeexSpeex-ËÁÄÒÏ× ÎÁ ÏÄÉÎ Ogg-ÐÁËÅÔ:Speex -- ÜÔÏ ×ÙÓÏËÏËÁÞÅÓÔ×ÅÎÎÙÊ ÁÌÇÏÒÉÔÍ ËÏÄÉÒÏ×ÁÎÉÑ ÒÅÞÉ, ÐÒÅÄÎÁÚÎÁÞÅÎÎÙÊ ÄÌÑ ÐÅÒÅÄÁÞÉ ÇÏÌÏÓÁ ÐÏ ÓÅÔÉ (VoIP) É ÓÖÁÔÉÑ Ú×ÕËÏ×ÙÈ ÆÁÊÌ.îÁÞÁÌØÎÁÑ ÇÒÏÍËÏÓÔØóÔÅÒÅÏïÓÔÁÎÏ×ÉÔØðÏÍÅÎÑÔØ ÍÅÓÔÁÍÉðÏÍÅÎÑÔØ ËÁÎÁÌÙ ÍÅÓÔÁÍÉðÏÍÅÎÑÔØ ÍÅÓÔÁÍÉ ÌÅ×ÙÊ É ÐÒÁ×ÙÊ ËÁÎÁÌÙðÏÍÅÎÑÔØ ÍÅÓÔÁÍÉ ÏÓÎÏ×ÎÏÅ É ÍÏÎÉÔÏÒÉÎÇÏ×ÏÅ ÕÓÔÒÏÊÓÔ×ÁSweep÷ÅÒÓÉÑ API ÄÌÑ ÍÏÄÕÌÅÊ Sweep -- ÷ÅÒÓÉÑ Sweep -- Sweep: äÏÂÁ×ÉÔØ/ÕÄÁÌÉÔØ ËÁÎÁÌÙSweep: ÐÒÏÄÕÂÌÉÒÏ×ÁÔØ ËÁÎÁÌSweep: ó×ÏÊÓÔ×Á ÆÁÊÌÁSweep: éÓÔÏÒÉÑ ÉÚÍÅÎÅÎÉÊSweep: ðÁÒÁÍÅÔÒÙ ÚÁÇÒÕÚËÉ Raw PCM ÆÁÊÌÁSweep: îÏ×ÙÊ ÆÁÊÌSweep: ðÁÒÁÍÅÔÒÙ ÓÏÈÒÁÎÅÎÉÑ × Ogg VorbisSweep: ÷ÓÔÁ×ËÁ ÓÍÅÛÉ×ÁÎÉÅÍSweep: úÁÐÉÓØSweep: éÚÍÅÎÉÔØ ÞÁÓÔÏÔÕ ÄÉÓËÒÅÔÉÚÁÃÉÉSweep: ðÁÒÁÍÅÔÒÙ ÓÏÈÒÁÎÅÎÉÑ PCM ÆÁÊÌÁSweep: ÓÏÈÒÁÎÉÔØ ÆÁÊÌSweep: ÐÁÒÁÍÅÔÒÙ ÓÏÈÒÁÎÅÎÉÑ × Speex÷ ÐÏÌÅ "á×ÔÏÒ" ÏÂÙÞÎÏ ÚÁÐÉÓÙ×ÁÁÅÔÓÑ ÏÄÉÎ ÉÌÉ ÎÅÓËÏÌØËÏ ÞÅÌÏ×ÅË, "ÏÔ×ÅÔÓÔ×ÅÎÎÙÈ" ÚÁ ÅÇÏ ÓÏÚÄÁÎÉÅ, ÎÁÐÒÉÍÅÒ, ÐÅ×Åà ÉÌÉ ÇÒÕÐÐÁ; × ÓÌÕÞÁÅ Ó ËÌÁÓÓÉÞÅÓËÏÊ ÍÕÚÙËÏÊ ÔÁËÉÍ ÞÅÌÏ×ÅËÏÍ Ñ×ÌÑÅÔÓÑ ËÏÍÐÏÚÉÔÏÒ É Ô.Ä.þÅÌÏ×ÅË ÉÌÉ ÇÒÕÐÐÁ ÌÉÃ, ×ÏÐÌÏÔÉ×ÛÉÈ ÍÕÚÙËÁÌØÎÕÀ ÉÄÅÀ. ÷ ÓÌÕÞÁÅ Ó ËÌÁÓÓÉÞÅÓËÏÊ ÍÕÚÙËÏÊ ÜÔÏ ÍÏÇÕÔ ÂÙÔØ ÄÉÒÉÖ£Ò, ÏÒËÅÓÔÒ, ÓÏÌÉÓÔÙ. ÷ ÓÏ×ÒÅÍÅÎÎÏÊ ÍÕÚÙËÅ "á×ÔÏÒ" É "éÓÐÏÌÎÉÔÅÌØ" ÍÏÇÕÔ ÂÙÔØ ÏÄÎÉÍ É ÔÅÍ ÖÅ ÞÅÌÏ×ÅËÏÍ ÉÌÉ ÇÒÕÐÐÏÊ ÌÉÃ.éÍÑ ÓÂÏÒÎÉËÁ, × ÓÏÓÔÁ× ËÏÔÏÒÏÇÏ ×ÈÏÄÉÔ ÄÁÎÎÁÑ ÄÏÒÏÖËÁðÏÌÅ "÷ÅÒÓÉÑ" ÍÏÖÅÔ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ ÄÌÑ ÚÁÄÁÎÉÑ ×ÅÒÓÉÊ ×ÁÒÉÁÎÔÏ× ÏÄÎÏÊ É ÔÏÊ ÖÅ ÄÏÒÏÖËÉ (ÎÁÐÒÉÍÅÒ, ÒÅÍÉËÓÏ×)÷ËÌÀÞÁÅÔÓÑ ÒÅÖÉÍ ÎÏÍÉÎÁÌØÎÏÊ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÙ (ABR). ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ××ÅÓÔÉ ÎÏÍÉÎÁÌØÎÏÅ ÚÎÁÞÅÎÉÅ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÙ É ÕËÁÚÁÔØ ÍÉÎÉÍÁÌØÎÏÅ É ÍÁËÓÉÍÁÌØÎÏÅ ÏÔ ÎÅ£ ÏÔËÌÏÎÅÎÉÅ. äÌÑ ÄÏÓÔÉÖÅÎÉÑ ÎÁÉÌÕÞÛÅÇÏ ÒÅÚÕÌØÔÁÔÁ ÒÅËÏÍÅÎÄÕÅÔÓÑ ÉÓÐÏÌØÚÏ×ÁÔØ ÒÅÇÕÌÑÔÏÒ ËÁÞÅÓÔ×Á ËÏÄÉÒÏ×ÁÎÉÑ ÄÌÑ ÐÅÒÅÍÅÎÎÏÊ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÙ, ÎÁÈÏÄÑÝÉÊÓÑ ×ÙÛÅ.üÔÏ Sweep ×ÅÒÓÉÉ úÄÅÓØ ÍÏÖÎÏ ÕÓÔÁÎÏ×ÉÔØ ÓÏÏÔÎÏÛÅÎÉÅ ÓËÏÒÏÓÔÉ É ËÁÞÅÓÔ×Á ËÏÄÉÒÏ×ÁÎÉÑ ÏÔ 0 (×ÙÓÏËÁÑ ÓËÏÒÏÓÔØ) ÄÏ 10 (ÎÉÚËÁÑ ÓËÏÒÏÓÔØ).üÔÏÔ ÉÎÓÔÒÕÍÅÎÔ ÐÏÚ×ÏÌÑÅÔ ×ÙÄÅÌÑÔØ ÆÒÁÇÍÅÎÔÙ ÓÅÍÐÌÁ. ÷ÐÏÓÌÅÄÓÔ×ÉÉ ×Ù ÍÏÖÅÔÅ ÏÔÒÅÄÁËÔÉÒÏ×ÁÔØ ÜÔÉ ÆÒÁÇÍÅÎÔÙ, ÐÒÉÍÅÎÉÔØ Ë ÎÉÍ ÜÆÆÅËÔÙ. õÄÅÒÖÉ×ÁÊÔÅ ÎÁÖÁÔÏÊ ËÌÁ×ÉÛÕ Shift ÄÌÑ ÒÁÓÛÉÒÅÎÉÑ ×ÙÄÅÌÅÎÎÏÇÏ ÆÒÁÇÍÅÎÔÁ.ðÏÌØÚÏ×ÁÔÅÌØÓËÉÊ ÉÎÔÅÒÆÅÊÓ ÐÒÉÄÕÍÁÎ ëÏÎÒÁÄÏÍ ðÁÒËÅÒÏÍ, Copyright (C) 2002 CSIRO á×ÓÔÒÁÌÉÑ. ðÏÌØÚÏ×ÁÔÅÌØÓËÉÊ ÉÎÔÅÒÆÅÊÓ ÐÒÉÄÕÍÁÎ üÒÉËÏÍ ÄÅ ëÁÓÔÒÏ ìÏÐÏ É ëÏÎÒÁÄÏÍ ðÁÒËÅÒÏÍ, Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO á×ÓÔÒÁÌÉÑ. ðÏÒÏÇ÷ÒÅÍÑ ÚÁÄÅÒÖËÉîÁÚ×ÁÎÉÅ:ðÅÒÅËÌÀÞÉÔØ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÅ × ÃÉËÌÅðÅÒÅËÌÀÞÉÔØ ÍÏÎÉÔÏÒÉÎÇðÅÒÅËÌÀÞÉÔØ ÚÁÇÌÕÛÅÎÉÅðÅÒÅËÌÀÞÉÔØ ÏÂÒÁÔÎÏÅ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÅéÍÑ ÄÏÒÏÖËÉ/ËÏÍÐÏÚÉÃÉÉôÒÁÎÓÐÏÒÔõÌØÔÒÁÛÉÒÏËÏÐÏÌÏÓÎÙÊ 32-48 ëÇÃîÅ×ÏÚÍÏÖÎÏ ÐÒÏÞÉÔÁÔØ %sïÔÍÅÎÉÔØîÅÐÏÄÄÅÒÖÉ×ÁÅÍÙÊ ÒÅÖÉÍ ËÏÄÉÒÏ×ÁÎÉÑâÅÚÙÍÑÎÎÙÊéÓÐÏÌØÚÏ×ÁÎÉÅ: %s [ÐÁÒÁÍÅÔÒ ...] [ÆÁÊÌÙ ...] éÓÐÏÌØÚÏ×ÁÔØ ÄÒÕÇÏÅ ÕÓÔÒÏÊÓÔ×Ï ÄÌÑ ÍÏÎÉÔÏÒÉÎÇÁVAD ÚÁÍÅÎÑÅÔ ÎÅÇÏÌÏÓÏ×ÙÅ ÆÒÁÇÍÅÎÔÙ ÍÑÇËÉÍ ÛÕÍÏÍVBR ÐÏÚ×ÏÌÑÅÔ ÁÄÁÐÔÉÒÏ×ÁÔØ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ Ë ÈÁÒÁËÔÅÒÉÓÔÉËÁÍ ÇÏÌÏÓÁ É ÕÐÒÁ×ÌÑÅÔ ÐÁÕÚÁÍÉ ÐÒÉ ÐÏÍÏÝÉ VAD É DTX.VBR ÐÏÚ×ÏÌÑÅÔ ÁÄÁÐÔÉÒÏ×ÁÔØ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ Ë ÈÁÒÁËÔÅÒÉÓÔÉËÁÍ ÇÏÌÏÓÁëÏÒÒÅËÔÎÙÍÉ ÐÁÒÁÍÅÔÒÁÍÉ Ñ×ÌÑÀÔÓÑ: ðÅÒÅÍÅÎÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ (VBR)ðÅÒÅÍÅÎÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ (VBR)÷ÅÒÓÉÑ:÷ÅÒÔÉËÁÌØÎÏÅ ÍÁÓÛÔÁÂÉÒÏ×ÁÎÉÅ [Shift + Arrow Up/Down]÷ÉÄëÏÄÉÒÏ×ÁÎÉÅ × Vorbisðòåäõðòåöäåîéå: üÔÁ ×ÅÒÓÉÑ ×ËÌÀÞÁÅÔ ÎÅÓÔÁÂÉÌØÎÙÊ ËÏÄ. äÏÂÒÏ ÐÏÖÁÌÏ×ÁÔØ × Sweep÷ÙÄÅÌÑÔØ ÌÉ ÆÒÁÇÍÅÎÔÙ ×ÙÛÅ, ÌÉÂÏ ÎÉÖÅ ÕËÁÚÁÎÎÏÇÏ ÐÏÒÏÇÁûÉÒÏËÏÐÏÌÏÓÎÙÊ ~16 ëçÃúÁÄÎÉÃÅÊ îÁÊÄÖÅÌÁ÷ÉÌËÏÊìÏÖËÏÊæÁÌØÛÉ×ÙÍ ÚÕÂÏÍðÒÉ ÐÏÍÏÝÉ ÜÔÏÇÏ ÉÎÓÔÒÕÍÅÎÔÁ ×Ù ÍÏÖÅÔÅ ÐÅÒÅÍÅÝÁÔØ ×ÙÄÅÌÅÎÎÙÅ ÆÒÁÇÍÅÎÔÙ ÓÅÍÐÌÁ.÷Ù ÎÅ ÉÍÅÅÔÅ ÐÒÁ×Á ÎÁ ÚÁÐÉÓØ %síÁÓÛÔÁÂðÏËÁÚÁÔØ ×Ó£ðÒÉÂÌÉÚÉÔØðÒÉÂÌÉÚÉÔØ ÉÌÉ ÏÔÄÁÌÉÔØïÂÙÞÎÙÊ ×ÉÄïÔÄÁÌÉÔØðÒÉÂÌÉÚÉÔØ ÄÏõÍÅÓÔÉÔØ ×ÙÄÅÌÅÎÉÅ × ÏËÎÅÂÉÔ/ÓÅËËÁÎÁÌÏ×ÞÞ:ÍÍ:ÓÓ:xxxhttp://sweep.sourceforge.net/ëâÁÊÔ/ÓÅËÏÛÉÂËÁ libsampleratesweep-0.9.3/po/ChangeLog0000644000175000017500000000123110777660173013567 0ustar useruser2005-07-27 gettextize * Makefile.in.in: Upgrade to gettext-0.14.5. * boldquot.sed: New file, from gettext-0.14.5. * en@boldquot.header: New file, from gettext-0.14.5. * en@quot.header: New file, from gettext-0.14.5. * insert-header.sin: New file, from gettext-0.14.5. * quot.sed: New file, from gettext-0.14.5. * remove-potcdate.sin: New file, from gettext-0.14.5. * Rules-quot: New file, from gettext-0.14.5. * cat-id-tbl.c: Remove file. * stamp-cat-id: Remove file. 2002-04-22 gettextize * Makefile.in.in: Upgrade to gettext-0.10.40. * cat-id-tbl.c: Remove file. * stamp-cat-id: Remove file. sweep-0.9.3/po/insert-header.sin0000644000175000017500000000124010777660173015262 0ustar useruser# Sed script that inserts the file called HEADER before the header entry. # # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following # occurrences, do nothing. The distinction between the first and the following # occurrences is achieved by looking at the hold space. /^msgid /{ x # Test if the hold space is empty. s/m/m/ ta # Yes it was empty. First occurrence. Read the file. r HEADER # Output the file's contents by reading the next line. But don't lose the # current line while doing this. g N bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } sweep-0.9.3/po/ru.po0000644000175000017500000016025210777670577013025 0ustar useruser# translation of ru.po to Russian # translation of sweep.po to Russian # This file is distributed under the same license as the PACKAGE package. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # Alexandre Prokoudine , 2003 #: src/sample-display.c:222 msgid "" msgstr "" "Project-Id-Version: ru\n" "Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/\n" "POT-Creation-Date: 2008-04-11 15:11+0100\n" "PO-Revision-Date: 2003-04-17 16:06+0400\n" "Last-Translator: Alexandre Prokoudine \n" "Language-Team: Russian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=KOI8-R\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: KBabel 1.0.1\n" #: src/main.c:89 msgid "Welcome to Sweep" msgstr "äÏÂÒÏ ÐÏÖÁÌÏ×ÁÔØ × Sweep" #: src/main.c:90 msgid "" "Hello, my name is Scrubby. Welcome to Sweep!\n" "\n" "Would you like to create a new file or load an existing file?" msgstr "" "ðÒÉ×ÅÔ, ÍÅÎÑ ÚÏ×ÕÔ óËÒÅÂÙÛ. äÏÂÒÏ ÐÏÖÁÌÏ×ÁÔØ × Sweep!\n" "\n" "÷Ù ÈÏÔÉÔÅ ÓÏÚÄÁÔØ ÎÏ×ÙÊ ÆÁÊÌ ÉÌÉ ÏÔËÒÙÔØ ÇÏÔÏ×ÙÊ?" #: src/main.c:94 msgid "Create new file" msgstr "óÏÚÄÁÔØ ÎÏ×ÙÊ ÆÁÊÌ" #: src/main.c:94 msgid "Load existing file" msgstr "ïÔËÒÙÔØ ÆÁÊÌ" #: src/main.c:129 msgid "WARNING: Build includes incomplete development code.\n" msgstr "ðòåäõðòåöäåîéå: üÔÁ ×ÅÒÓÉÑ ×ËÌÀÞÁÅÔ ÎÅÓÔÁÂÉÌØÎÙÊ ËÏÄ.\n" #: src/main.c:188 msgid "Sweep version" msgstr "÷ÅÒÓÉÑ Sweep -- " #: src/main.c:189 msgid "Sweep plugin API version" msgstr "÷ÅÒÓÉÑ API ÄÌÑ ÍÏÄÕÌÅÊ Sweep -- " #: src/main.c:195 #, c-format msgid "Usage: %s [option ...] [files ...]\n" msgstr "éÓÐÏÌØÚÏ×ÁÎÉÅ: %s [ÐÁÒÁÍÅÔÒ ...] [ÆÁÊÌÙ ...]\n" #: src/main.c:196 msgid "Valid options are:\n" msgstr "ëÏÒÒÅËÔÎÙÍÉ ÐÁÒÁÍÅÔÒÁÍÉ Ñ×ÌÑÀÔÓÑ:\n" #: src/main.c:197 msgid " -h --help Output this help.\n" msgstr " -h --help ðÏËÁÚÙ×ÁÅÔ ÜÔÕ ÓÐÒÁ×ËÕ.\n" #: src/main.c:198 msgid " -v --version Output version info.\n" msgstr " -v --version ðÏËÁÚÙ×ÁÅÔ ÉÎÆÏÒÍÁÃÉÀ Ï ×ÅÒÓÉÉ ÐÒÏÇÒÁÍÍÙ.\n" #: src/main.c:199 msgid " --display Use the designated X display.\n" msgstr "" " --display éÓÐÏÌØÚÏ×ÁÔØ ÐÅÒÅÄÁ×ÁÅÍÙÊ ÐÁÒÁÍÅÔÒÕ ÎÏÍÅÒ X-" "ÓÅÓÓÉÉ.\n" #: src/main.c:200 msgid "" " --ignore-failed-lock Continue when attempt to lock the\n" " preferences file fails. For use when\n" " the users home directory is on an NFS\n" " file system. (possibly unsafe) \n" msgstr "" #: src/main.c:206 msgid " --no-toolbox Do not show the toolbox window.\n" msgstr " --no-toolbox îÅ ÐÏËÁÚÙ×ÁÔØ ÏËÎÏ Ó ÉÎÓÔÒÕÍÅÎÔÁÍÉ.\n" #: src/about_dialog.c:99 msgid "This is Sweep version" msgstr "üÔÏ Sweep ×ÅÒÓÉÉ " #: src/about_dialog.c:119 msgid "http://sweep.sourceforge.net/" msgstr "http://sweep.sourceforge.net/" #: src/callbacks.c:926 src/callbacks.c:939 src/edit.c:1568 src/edit.c:1642 #: src/edit.c:1726 msgid "Clipboard empty" msgstr "âÕÆÅÒ ÏÂÍÅÎÁ ÐÕÓÔ" #: src/channelops.c:146 #, c-format msgid "Duplicate to %d channels" msgstr "ðÒÏÄÕÂÌÉÒÏ×ÁÔØ × %d ËÁÎÁÌÏ×" #: src/channelops.c:148 #, c-format msgid "Duplicate from %d to %d channels" msgstr "ðÒÏÄÕÂÌÉÒÏ×ÁÔØ ÉÚ %d × %d ËÁÎÁÌÏ×" #: src/channelops.c:207 msgid "Sweep: Duplicate channel" msgstr "Sweep: ÐÒÏÄÕÂÌÉÒÏ×ÁÔØ ËÁÎÁÌ" #: src/channelops.c:214 src/channelops.c:698 #, c-format msgid "Currently: %d channels" msgstr "óÅÊÞÁÓ: %d ËÁÎÁÌÏ×" #: src/channelops.c:221 src/channelops.c:704 msgid "Output channels" msgstr "÷ÙÈÏÄÎÙÅ ËÁÎÁÌÙ" #: src/channelops.c:231 src/channelops.c:714 src/driver.c:374 #: src/file_sndfile1.c:285 src/param.c:779 src/question_dialogs.c:144 #: src/question_dialogs.c:204 src/question_dialogs.c:253 #: src/sweep_sample.c:1918 src/undo_dialog.c:440 msgid "OK" msgstr "ïë" #: src/channelops.c:242 src/channelops.c:725 src/driver.c:387 #: src/file_sndfile1.c:295 src/param.c:788 src/question_dialogs.c:158 #: src/view.c:543 src/view.c:2650 msgid "Cancel" msgstr "ïÔÍÅÎÉÔØ" #: src/channelops.c:347 src/view.c:361 msgid "Mix down to mono" msgstr "" #: src/channelops.c:445 src/view.c:340 msgid "Remove left channel" msgstr "õÄÁÌÉÔØ ÌÅ×ÙÊ ËÁÎÁÌ" #: src/channelops.c:455 src/view.c:349 msgid "Remove right channel" msgstr "õÄÁÌÉÔØ ÐÒÁ×ÙÊ ËÁÎÁÌ" #: src/channelops.c:539 msgid "Swap channels" msgstr "ðÏÍÅÎÑÔØ ËÁÎÁÌÙ ÍÅÓÔÁÍÉ" #: src/channelops.c:541 msgid "Not stereo" msgstr "îÅ ÓÔÅÒÅÏ" #: src/channelops.c:643 #, c-format msgid "Convert from %d to %d channels" msgstr "óËÏÎ×ÅÒÔÉÒÏ×ÁÔØ ÉÚ %d × %d ËÁÎÁÌÏ×" #: src/channelops.c:692 msgid "Sweep: Add/Remove channels" msgstr "Sweep: äÏÂÁ×ÉÔØ/ÕÄÁÌÉÔØ ËÁÎÁÌÙ" #: src/driver.c:369 msgid "Sweep: audio device configuration" msgstr "" #: src/driver.c:410 msgid "Changes to device settings will take effect on next playback." msgstr "" "éÚÍÅÎÅÎÉÑ × ÎÁÓÔÒÏÊËÁÈ ÕÓÔÒÏÊÓÔ×Á ÂÕÄÕÔ ÕÞÔÅÎÙ ÐÒÉ ÓÌÅÄÕÀÝÅÍ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÉ." #: src/driver.c:424 msgid "Device name" msgstr "éÍÑ ÕÓÔÒÏÊÓÔ×Á" #: src/driver.c:430 msgid "Set the main device for playback and recording" msgstr "õËÁÚÁÔØ ÏÓÎÏ×ÎÏÅ ÕÓÔÒÏÊÓÔ×Ï ÄÌÑ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÑ É ÚÁÐÉÓÉ" #: src/driver.c:440 msgid "Main device:" msgstr "ïÓÎÏ×ÎÏÅ ÕÓÔÒÏÊÓÔ×Ï:" #: src/driver.c:454 src/driver.c:636 src/samplerate.c:570 msgid "Default" msgstr "ðÏ ÕÍÏÌÞÁÎÉÀ" #: src/driver.c:467 msgid "Use a different device for monitoring" msgstr "éÓÐÏÌØÚÏ×ÁÔØ ÄÒÕÇÏÅ ÕÓÔÒÏÊÓÔ×Ï ÄÌÑ ÍÏÎÉÔÏÒÉÎÇÁ" #: src/driver.c:479 msgid "Monitor output:" msgstr "õÓÔÒÏÊÓÔ×Ï ÍÏÎÉÔÏÒÉÎÇÁ" #: src/driver.c:504 msgid "Swap" msgstr "ðÏÍÅÎÑÔØ ÍÅÓÔÁÍÉ" #: src/driver.c:512 msgid "Swap main and monitor devices." msgstr "ðÏÍÅÎÑÔØ ÍÅÓÔÁÍÉ ÏÓÎÏ×ÎÏÅ É ÍÏÎÉÔÏÒÉÎÇÏ×ÏÅ ÕÓÔÒÏÊÓÔ×Á" #: src/driver.c:521 src/driver.c:622 src/file_speex.c:1957 #: src/file_vorbis.c:1348 src/samplerate.c:556 src/sweep_sample.c:532 msgid "Reset" msgstr "ðÅÒÅÚÁÇÒÕÚÉÔØ" #: src/driver.c:529 msgid "Reset to the last remembered device names." msgstr "õÓÔÁÎÏ×ÉÔØ ÐÏÓÌÅÄÎÉÅ ÚÁÐÏÍÎÅÎÎÙÅ ÉÍÅÎÁ ÕÓÔÒÏÊÓÔ×" #: src/driver.c:535 src/file_speex.c:1971 src/file_vorbis.c:1362 #: src/param.c:747 src/sweep_sample.c:543 msgid "Defaults" msgstr "óÔÁÎÄÁÒÔÎÙÅ ÕÓÔÁÎÏ×ËÉ" #: src/driver.c:543 msgid "Set to default device names." msgstr "õËÁÚÁÔØ ÓÔÁÎÄÁÒÔÎÙÅ ÉÍÅÎÁ ÕÓÔÒÏÊÓÔ×" #: src/driver.c:554 msgid "Device buffering" msgstr "âÕÆÆÅÒÉÚÁÃÉÑ ÕÓÔÒÏÊÓÔ×Á" #: src/driver.c:564 msgid "" "Low latency /\n" "More dropouts" msgstr "" "îÉÚËÁÑ ÌÁÔÅÎÔÎÏÓÔØ /\n" "âÏÌØÛÅ ÏÔÐÕÓËÁÎÉÊ" #: src/driver.c:586 msgid "" "High latency /\n" "Fewer dropouts" msgstr "" "÷ÙÓÏËÁ ÌÁÔÅÎÔÎÏÓÔØ /\n" "íÅÎØÛÅ ÏÔÐÕÓËÁÎÉÊ" #: src/driver.c:590 msgid "" "Varying this slider controls the lag between cursor movements and playback. " "This is particularly noticeable when \"scrubbing\" during playback.\n" "\n" "Lower values improve responsiveness but may degrade audio quality on heavily-" "loaded systems." msgstr "" #: src/driver.c:609 msgid "Remember these options" msgstr "úÁÐÏÍÎÉÔØ ÜÔÉ ÐÁÒÁÍÅÔÒÙ" #: src/driver.c:630 msgid "Reset to the last remembered device buffering." msgstr "" #: src/driver.c:644 msgid "Set to default device buffering." msgstr "õËÁÚÁÔØ ÓÔÁÎÄÁÒÔÎÕÀ ÂÕÆÆÅÒÉÚÁÃÉÀ ÕÓÔÒÏÊÓÔ×Á" #: src/edit.c:1291 msgid "No selection to copy" msgstr "îÅÔ ËÏÐÉÒÕÅÍÏÇÏ ×ÙÄÅÌÅÎÉÑ" #: src/edit.c:1308 src/view.c:572 src/view.c:1150 msgid "Copy" msgstr "óËÏÐÉÒÏ×ÁÔØ" #: src/edit.c:1342 msgid "No selection to cut" msgstr "îÅÔ ×ÙÒÅÚÁÅÍÏÇÏ ×ÙÄÅÌÅÎÉÑ" #: src/edit.c:1358 src/view.c:568 src/view.c:1144 msgid "Cut" msgstr "÷ÙÒÅÚÁÔØ" #: src/edit.c:1388 msgid "No selection to clear" msgstr "îÅÔ ÏÞÉÝÁÅÍÏÇÏ ×ÙÄÅÌÅÎÉÑ" #: src/edit.c:1404 src/view.c:576 src/view.c:1156 msgid "Clear" msgstr "ïÞÉÓÔÉÔØ" #: src/edit.c:1430 msgid "No selection to delete" msgstr "îÅÔ ÕÄÁÌÑÅÍÏÇÏ ×ÙÄÅÌÅÎÉÑ" #: src/edit.c:1447 src/view.c:564 msgid "Delete" msgstr "õÄÁÌÉÔØ" #: src/edit.c:1482 msgid "Nothing to crop out" msgstr "îÅÔ ÏÂÒÅÚÁÅÍÏÇÏ ÐÏ ËÒÁÑÍ ×ÙÄÅÌÅÎÉÑ" #: src/edit.c:1498 src/view.c:580 src/view.c:1162 src/view.c:1868 msgid "Crop" msgstr "ïÂÒÅÚÁÔØ ÐÏ ËÒÁÑÍ" #: src/edit.c:1572 src/edit.c:1646 src/edit.c:1730 msgid "Clipboard data has incompatible format" msgstr "âÕÆÅÒ ÓÏÄÅÒÖÉÔ ÎÅÐÏÄÄÅÒÖÉ×ÁÅÍÙÊ ÔÉÐ ÄÁÎÎÙÈ" #: src/edit.c:1590 msgid "Paste insert" msgstr "ïÂÙÞÎÁÑ ×ÓÔÁ×ËÁ" #: src/edit.c:1669 msgid "Paste mix" msgstr "÷ÓÔÁ×ÉÔØ ÏÂÙÞÎÙÍ ÓÐÏÓÏÂÏÍ" #: src/edit.c:1757 msgid "Paste xfade" msgstr "" #: src/file_dialogs.c:73 msgid "MP3 export unsupported" msgstr "üËÓÐÏÒÔ × MP3 ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ" #: src/file_dialogs.c:74 msgid "" "Export to MP3 format cannot legally be supported in free software\n" "due to patent licensing restrictions.\n" "\n" "Please use Ogg Vorbis format instead, which\n" "provides better quality and is free." msgstr "" #: src/file_dialogs.c:99 msgid "Raw PCM (headerless)" msgstr "" #: src/file_dialogs.c:157 #, c-format msgid "%s does not exist." msgstr "%s ÎÅ ÓÕÝÅÓÔ×ÕÅÔ" #: src/file_dialogs.c:158 msgid "Directory does not exist" msgstr "ëÁÔÁÌÏÇÁ ÎÅ ÓÕÝÅÓÔ×ÕÅÔ" #: src/file_dialogs.c:262 #, c-format msgid "" "Unable to read\n" "%s" msgstr "" "îÅ×ÏÚÍÏÖÎÏ ÐÒÏÞÉÔÁÔØ\n" "%s" #: src/file_dialogs.c:289 #, fuzzy msgid "Sweep: Open Files" msgstr "Sweep: îÏ×ÙÊ ÆÁÊÌ" #: src/file_dialogs.c:370 #, c-format msgid "" "Are you sure you want to revert %s to\n" "%s?\n" "\n" "All changes and undo information will be lost." msgstr "" "÷Ù Õ×ÅÒÅÎÙ, ÞÔÏ ÈÏÔÉÔÅ ÒÁÚ×ÅÒÎÕÔØ %s ÎÁ\n" " %s?\n" "\n" "óÏÇÌÁÓÉ×ÛÉÓØ, ×Ù ÎÅ ÓÍÏÖÅÔÅ ÏÔÍÅÎÉÔØ ÐÒÅÄÙÄÕÝÉÅ ÉÚÍÅÎÅÎÉÑ." #: src/file_dialogs.c:374 msgid "Revert file" msgstr "òÁÚ×ÅÒÎÕÔØ ÆÁÊÌ" #: src/file_dialogs.c:375 src/view.c:509 msgid "Revert" msgstr "òÁÚ×ÅÒÎÕÔØ" #: src/file_dialogs.c:375 msgid "Don't revert" msgstr "îÅ ÒÁÚ×ÏÒÁÞÉ×ÁÔØ" #: src/file_dialogs.c:545 src/file_dialogs.c:824 #, c-format msgid "Save as %s cancelled" msgstr "óÏÈÒÁÎÅÎÉÅ ÐÏÄ ÉÍÅÎÅÍ \"%s\" ÏÔÍÅÎÅÎÏ" #: src/file_dialogs.c:582 msgid "By extension" msgstr "ðÏ ÒÁÓÛÉÒÅÎÉÀ" #: src/file_dialogs.c:640 msgid "MP3 (Use Ogg Vorbis instead)" msgstr "" #: src/file_dialogs.c:707 msgid "Sweep: Save file" msgstr "Sweep: ÓÏÈÒÁÎÉÔØ ÆÁÊÌ" #: src/file_dialogs.c:721 msgid "Save Options" msgstr " ðÁÒÁÍÅÔÒÙ ÓÏÈÒÁÎÅÎÉÑ " #: src/file_dialogs.c:730 msgid "Determine File Type:" msgstr "ïÐÒÅÄÅÌÉÔØ ÔÉÐ ÆÁÊÌÁ:" #: src/file_dialogs.c:810 #, c-format msgid "" "You are not allowed to write to\n" "%s" msgstr "" "÷Ù ÎÅ ÉÍÅÅÔÅ ÐÒÁ×Á ÎÁ ÚÁÐÉÓØ\n" "%s" #: src/file_dialogs.c:812 #, c-format msgid "%s exists. Overwrite?" msgstr "\"%s\" ÓÕÝÅÓÔ×ÕÅÔ. ðÅÒÅÚÁÐÉÓÁÔØ?" #: src/file_dialogs.c:814 msgid "File exists" msgstr "æÁÊÌ Ó ÔÁËÉÍ ÉÍÅÎÅÍ ÓÕÝÅÓÔ×ÕÅÔ" #: src/file_dialogs.c:815 msgid "Overwrite" msgstr "ðÅÒÅÚÁÐÉÓÁÔØ" #: src/file_dialogs.c:815 msgid "Don't overwrite" msgstr "îÅ ÐÅÒÅÚÁÐÉÓÙ×ÁÔØ" #: src/file_dialogs.c:887 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Are you sure you want to save?" msgstr "" "æÁÊÌ \"%s\"\n" " ÉÚÍÅÎÉÌÓÑ ÎÁ ÄÉÓËÅ.\n" "\n" "÷Ù ÄÅÊÓÔ×ÉÔÅÌØÎÏ ÈÏÔÉÔÅ ÓÏÈÒÁÎÉÔØ?" #: src/file_dialogs.c:891 src/sweep_undo.c:331 src/view.c:3401 msgid "File modified" msgstr "æÁÊÌ ÉÚÍÅÎÉÌÓÑ" #: src/file_dialogs.c:892 src/file_speex.c:2127 src/file_vorbis.c:1611 #: src/view.c:501 src/view.c:1782 msgid "Save" msgstr "óÏÈÒÁÎÉÔØ" #: src/file_dialogs.c:892 src/file_speex.c:2138 src/file_vorbis.c:1622 msgid "Don't save" msgstr "îÅ ÓÏÈÒÁÎÑÔØ" #: src/file_sndfile1.c:327 msgid "Powered by libsndfile" msgstr "ðÒÉ ÐÏÍÏÝÉ libsndfile" #: src/file_sndfile1.c:354 msgid "Encoding" msgstr "ëÏÄÉÒÏ×ÁÎÉÅ" #: src/file_sndfile1.c:375 msgid "Encoding:" msgstr "ëÏÄÉÒÏ×ÁÎÉÅ:" #: src/file_sndfile1.c:447 msgid "Sampling rate:" msgstr "þÁÓÔÏÔÁ ÄÉÓËÒÅÔÉÚÁÃÉÉ:" #: src/file_sndfile1.c:480 src/file_speex.c:2078 src/file_vorbis.c:1562 #: src/samplerate.c:584 msgid "About" msgstr "ï ÂÉÂÌÉÏÔÅËÅ" #: src/file_sndfile1.c:496 msgid "" "Libsndfile is a C library by Erik de Castro Lopo\n" "for reading and writing files containing sampled sound." msgstr "" "Libsndfile - ÜÔÏ ÂÉÂÌÉÏÔÅËÁ ÎÁ ÑÚÙËÅ C (Erik de Castro Lopo),\n" "ÐÒÅÄÎÁÚÁÞÅÎÎÁÑ ÄÌÑ ÞÔÅÎÉÑ É ÚÁÐÉÓÉ Ú×ÕËÏ×ÙÈ ÆÁÊÌÏ×." #: src/file_sndfile1.c:507 msgid "" "This user interface by Erik de Castro Lopo\n" " and Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "ðÏÌØÚÏ×ÁÔÅÌØÓËÉÊ ÉÎÔÅÒÆÅÊÓ ÐÒÉÄÕÍÁÎ\n" "üÒÉËÏÍ ÄÅ ëÁÓÔÒÏ ìÏÐÏ É ëÏÎÒÁÄÏÍ ðÁÒËÅÒÏÍ,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO á×ÓÔÒÁÌÉÑ.\n" "\n" #: src/file_sndfile1.c:550 msgid "Sweep: Save PCM options" msgstr "Sweep: ðÁÒÁÍÅÔÒÙ ÓÏÈÒÁÎÅÎÉÑ PCM ÆÁÊÌÁ" #: src/file_sndfile1.c:719 msgid "Sweep: Load Raw PCM options" msgstr "Sweep: ðÁÒÁÍÅÔÒÙ ÚÁÇÒÕÚËÉ Raw PCM ÆÁÊÌÁ" #: src/file_sndfile1.c:771 src/file_mad.c:435 src/file_speex.c:577 #: src/file_vorbis.c:324 #, c-format msgid "Loading %s" msgstr "úÁÇÒÕÖÁÅÔÓÑ \"%s\"" #: src/file_sndfile1.c:998 src/file_speex.c:1074 src/file_vorbis.c:702 #, c-format msgid "Saving %s" msgstr "óÏÈÒÁÎÑÅÔÓÑ \"%s\"" #: src/file_speex.c:1016 src/file_speex.c:1036 msgid "Speex encoding results" msgstr "òÅÚÕÌØÔÁÔÙ ËÏÄÉÒÏ×ÁÎÉÑ ÐÒÉ ÐÏÍÏÝÉ Speex" #: src/file_speex.c:1208 msgid "Narrowband ~8 kHz (telephone quality)" msgstr "õÚËÏÐÏÌÏÓÎÙÊ ~8 ëçà (ÔÅÌÅÆÏÎÎÏÅ ËÁÞÅÓÔ×Ï)" #: src/file_speex.c:1209 msgid "Wideband ~16 kHz" msgstr "ûÉÒÏËÏÐÏÌÏÓÎÙÊ ~16 ëçÃ" #: src/file_speex.c:1211 msgid "Ultra-wideband 32-48 kHz" msgstr "õÌØÔÒÁÛÉÒÏËÏÐÏÌÏÓÎÙÊ 32-48 ëÇÃ" #: src/file_speex.c:1218 msgid "Constant bitrate (CBR) with no features" msgstr "ïÂÙÞÎÁÑ ÐÏÓÔÏÑÎÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ (CBR)" #: src/file_speex.c:1221 msgid "CBR with Voice Activity Detection (VAD)" msgstr "CBR Ó ÏÐÒÅÄÅÌÅÎÉÅÍ ÁËÔÉ×ÎÏÓÔÉ ÇÏÌÏÓÁ (VAD)" #: src/file_speex.c:1222 msgid "VAD generates low bitrate comfort noise to replace non-speech" msgstr "VAD ÚÁÍÅÎÑÅÔ ÎÅÇÏÌÏÓÏ×ÙÅ ÆÒÁÇÍÅÎÔÙ ÍÑÇËÉÍ ÛÕÍÏÍ" #: src/file_speex.c:1225 msgid "CBR with VAD and Discontinuous Transmission (DTX)" msgstr "CBR Ó VAD É ÄÉÓËÒÅÔÎÏÊ ÔÒÁÎÓÍÉÓÓÉÅÊ (DTX)" #: src/file_speex.c:1226 msgid "DTX marks extended pauses with a minimum bitrate signal" msgstr "" #: src/file_speex.c:1229 #, fuzzy msgid "Variable bitrate (VBR) with VAD" msgstr "ðÅÒÅÍÅÎÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ (VBR)" #: src/file_speex.c:1230 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech; this " "selection uses VBR without DTX, which may improve performance compared to " "full VBR in the presence of background noise." msgstr "" #: src/file_speex.c:1235 msgid "Variable bitrate (VBR) with all features" msgstr "ðÅÒÅÍÅÎÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ (VBR)" #: src/file_speex.c:1236 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech, and handles " "pauses using VAD and DTX" msgstr "" "VBR ÐÏÚ×ÏÌÑÅÔ ÁÄÁÐÔÉÒÏ×ÁÔØ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ Ë ÈÁÒÁËÔÅÒÉÓÔÉËÁÍ ÇÏÌÏÓÁ É " "ÕÐÒÁ×ÌÑÅÔ ÐÁÕÚÁÍÉ ÐÒÉ ÐÏÍÏÝÉ VAD É DTX." #: src/file_speex.c:1240 msgid "Constant bitrate (CBR)" msgstr "ðÏÓÔÏÑÎÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ (CBR)" #: src/file_speex.c:1242 msgid "Variable bitrate (VBR)" msgstr "ðÅÒÅÍÅÎÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ (VBR)" #: src/file_speex.c:1243 msgid "VBR allows the bitrate to adapt to the complexity of the speech." msgstr "VBR ÐÏÚ×ÏÌÑÅÔ ÁÄÁÐÔÉÒÏ×ÁÔØ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ Ë ÈÁÒÁËÔÅÒÉÓÔÉËÁÍ ÇÏÌÏÓÁ" #: src/file_speex.c:1298 src/file_speex.c:1803 msgid "Average bitrate" msgstr "óÒÅÄÎÑÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ" #: src/file_speex.c:1301 msgid "Maximum bitrate" msgstr "íÁËÓÉÍÁÌØÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ" #: src/file_speex.c:1494 src/file_vorbis.c:1013 msgid "Hack the planet!" msgstr "" #: src/file_speex.c:1580 msgid "Sweep: Speex save options" msgstr "Sweep: ÐÁÒÁÍÅÔÒÙ ÓÏÈÒÁÎÅÎÉÑ × Speex" #: src/file_speex.c:1631 msgid "Speex encoding" msgstr "ëÏÄÉÒÏ×ÁÎÉÅ × Speex" #: src/file_speex.c:1644 msgid "Mode:" msgstr "òÅÖÉÍ:" #: src/file_speex.c:1670 msgid "Auto" msgstr "á×ÔÏ" #: src/file_speex.c:1679 msgid "" "Automatically select the encoding mode based on the sampling rate of the " "file." msgstr "" "á×ÔÏÍÁÔÉÞÅÓËÉ ×ÙÂÒÁÔØ ÒÅÖÉÍ ËÏÄÉÒÏ×ÁÎÉÑ ÎÁ ÏÓÎÏ×Å ÞÁÓÔÏÔÙ ÄÉÓËÒÅÔÉÚÁÃÉÉ ÆÁÊÌÁ" #: src/file_speex.c:1732 src/file_vorbis.c:1160 msgid "Encoding quality:" msgstr "ëÁÞÅÓÔ×Ï ËÏÄÉÒÏ×ÁÎÉÑ:" #: src/file_speex.c:1775 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file)." msgstr "" "ëÁÞÅÓÔ×Ï ËÏÄÉÒÏ×ÁÎÉÑ ÚÁÄÁ£ÔÓÑ ÞÉÓÌÏÍ × ÐÒÏÍÅÖÕÔËÅ ÏÔ 0 (ÎÁÉÈÕÄÛÅÅ ËÁÞÅÓÔ×Ï, " "ÎÁÉÍÅÎØÛÉÊ ÒÁÚÍÅÒ ÆÁÊÌÁ) É 10 (ÎÁÉ×ÙÓÛÅÅ ËÁÞÅÓÔ×Ï, ÎÁÉÂÏÌØÛÉÊ ÒÁÚÍÅÒ ÆÁÊÌÁ)." #: src/file_speex.c:1785 msgid "Enable bitrate management" msgstr "÷ÒÕÞÎÕÀ ÚÁÄÁÔØ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ" #: src/file_speex.c:1798 msgid "" "For non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For " "VBR encoding, this sets the average bitrate." msgstr "" "ðÏÚ×ÏÌÑÅÔ ÚÁÄÁÔØ ÍÁËÓÉÍÁÌØÎÕÀ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ ÄÌÑ CBR É ÓÒÅÄÎÀÀ ÂÉÔÏ×ÕÀ " "ÞÁÓÔÏÔÕ ÄÌÑ VBR." #: src/file_speex.c:1821 msgid "bps" msgstr "ÂÉÔ/ÓÅË" #: src/file_speex.c:1827 msgid "Extra" msgstr "äÏÐÏÌÎÉÔÅÌØÎÏ" #: src/file_speex.c:1849 msgid "Encoding complexity:" msgstr "ëÁÞÅÓÔ×Ï ËÏÄÉÒÏ×ÁÎÉÑ:" #: src/file_speex.c:1888 msgid "" "This sets the encoding speed/quality tradeoff between 0 (faster encoding) " "and 10 (slower encoding)" msgstr "" "úÄÅÓØ ÍÏÖÎÏ ÕÓÔÁÎÏ×ÉÔØ ÓÏÏÔÎÏÛÅÎÉÅ ÓËÏÒÏÓÔÉ É ËÁÞÅÓÔ×Á ËÏÄÉÒÏ×ÁÎÉÑ ÏÔ 0 " "(×ÙÓÏËÁÑ ÓËÏÒÏÓÔØ) ÄÏ 10 (ÎÉÚËÁÑ ÓËÏÒÏÓÔØ)." #: src/file_speex.c:1904 msgid "Speex frames per Ogg packet:" msgstr "Speex-ËÁÄÒÏ× ÎÁ ÏÄÉÎ Ogg-ÐÁËÅÔ:" #: src/file_speex.c:1930 msgid "" "Number of Speex frames to pack into each Ogg packet. Higher values save " "space at low bitrates." msgstr "" "ëÏÌÉÞÅÓÔ×Ï Speex-ËÁÄÒÏ×, ÐÏÍÅÝÁÅÍÙÈ × ÏÄÉÎ Ogg-ÐÁËÅÔ. þÅÍ ÂÏÌØÛÅ ÚÎÁÞÅÎÉÅ, " "ÔÅÍ ÍÅÎØÛÅ ÍÅÓÔÁ ÚÁÎÉÍÁÅÔ ÆÁÊÌ ÐÒÉ ÎÉÚËÏÊ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÅ." #: src/file_speex.c:1945 src/file_vorbis.c:1336 msgid "Remember these encoding options" msgstr "úÁÐÏÍÎÉÔØ ÜÔÉ ÐÁÒÁÍÅÔÒÙ ËÏÄÉÒÏ×ÁÎÉÑ" #: src/file_speex.c:1965 src/file_vorbis.c:1356 msgid "Reset to the last remembered encoding options." msgstr "õÓÔÁÎÏ×ÉÔØ ÐÒÅÄÙÄÕÝÉÅ ÚÁÐÏÍÎÅÎÎÙÅ ÐÁÒÁÍÅÔÒÙ ËÏÄÉÒÏ×ÁÎÉÑ." #: src/file_speex.c:1980 msgid "Automatically select best encoding options for this file." msgstr "á×ÔÏÍÁÔÉÞÅÓËÉ ×ÙÂÒÁÔØ ÌÕÞÛÉÅ ÐÁÒÁÍÅÔÒÙ ËÏÄÉÒÏ×ÁÎÉÑ ÄÌÑ ÜÔÏÇÏ ÆÁÊÌÁ." #: src/file_speex.c:1985 src/file_vorbis.c:1469 msgid "Ogg stream" msgstr "Ogg-ÐÏÔÏË" #: src/file_speex.c:1998 src/file_vorbis.c:1482 msgid "Ogg stream serial number:" msgstr "óÅÒÉÊÎÙÊ ÎÏÍÅÒ Ogg-ÐÏÔÏËÁ:" #: src/file_speex.c:2019 src/file_vorbis.c:1503 msgid "Remember this serial number" msgstr "úÁÐÏÍÎÉÔØ ÜÔÏÔ ÓÅÒÉÊÎÙÊ ÎÏÍÅÒ" #: src/file_speex.c:2029 src/file_vorbis.c:1513 msgid "" "Remember this serial number for future re-use.\n" "USE OF THIS OPTION IS NOT RECOMMENDED.\n" "Each encoded file should have a different serial number; re-use of Ogg " "serial numbers in different files may create incompatabilities with " "streaming applications. This option is provided for bitstream engineering " "purposes only.\n" "If this option is not checked, new serial numbers will be randomly generated " "for each file encoded." msgstr "" #: src/file_speex.c:2056 src/file_vorbis.c:1540 msgid "Randomize!" msgstr "ðÏÌÕÞÉÔØ ÓÌÕÞÁÊÎÏÅ ÚÎÁÞÅÎÉÅ!" #: src/file_speex.c:2063 src/file_vorbis.c:1547 msgid "" "Generate a random serial number for the Ogg bitstream. The number will " "change while this button is held down." msgstr "" "óÏÚÄÁ£Ô ÓÌÕÞÁÊÎÙÊ ÓÅÒÉÊÎÙÊ ÎÏÍÅÒ ÄÌÑ Ogg-ÐÏÔÏËÁ. îÏÍÅÒ ÂÕÄÅÔ ÂÅÓÐÒÅÒÙ×ÎÏ " "ÍÅÎÑÔØÓÑ, ÐÏËÁ ËÎÏÐËÁ ÎÁÖÁÔÁ." #: src/file_speex.c:2094 msgid "" "Speex is a high quality speech codec designed for\n" "voice over IP (VoIP) and file-based compression.\n" "It is free, open and unpatented." msgstr "" "Speex -- ÜÔÏ ×ÙÓÏËÏËÁÞÅÓÔ×ÅÎÎÙÊ ÁÌÇÏÒÉÔÍ ËÏÄÉÒÏ×ÁÎÉÑ\n" "ÒÅÞÉ, ÐÒÅÄÎÁÚÎÁÞÅÎÎÙÊ ÄÌÑ ÐÅÒÅÄÁÞÉ ÇÏÌÏÓÁ ÐÏ ÓÅÔÉ (VoIP)\n" "É ÓÖÁÔÉÑ Ú×ÕËÏ×ÙÈ ÆÁÊÌ." #: src/file_speex.c:2105 msgid "" "Ogg, Speex, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ogg, Speex, Xiph.org Foundation É ÉÈ ÌÏÇÏÔÉÐÙ\n" "Ñ×ÌÑÀÔÓÑ ÔÏÒÇÏ×ÙÍÉ ÍÁÒËÁÍÉ (tm) æÏÎÄÁ Xiph.org\n" "É ÉÓÐÏÌØÚÕÀÔÓÑ Ó ÅÇÏ ÒÁÚÒÅÛÅÎÉÑ." #: src/file_speex.c:2120 src/file_vorbis.c:1604 src/samplerate.c:611 msgid "" "This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "ðÏÌØÚÏ×ÁÔÅÌØÓËÉÊ ÉÎÔÅÒÆÅÊÓ ÐÒÉÄÕÍÁÎ\n" "ëÏÎÒÁÄÏÍ ðÁÒËÅÒÏÍ,\n" "Copyright (C) 2002 CSIRO á×ÓÔÒÁÌÉÑ.\n" "\n" #: src/file_vorbis.c:356 #, c-format msgid "" "Decoding %s\n" "Encoded by: %s\n" "\n" "%s" msgstr "" "äÅËÏÄÉÒÏ×ÁÎÉÅ %s\n" "ëÏÄÉÒÏ×ÁÎÉÅ ÐÒÏÉÚ×ÅÌ(Á): %s\n" " \n" "%s" #: src/file_vorbis.c:470 msgid "Unsupported encoding mode" msgstr "îÅÐÏÄÄÅÒÖÉ×ÁÅÍÙÊ ÒÅÖÉÍ ËÏÄÉÒÏ×ÁÎÉÑ" #: src/file_vorbis.c:473 msgid "Invalid encoding options" msgstr "îÅËÏÒÒÅËÔÎÙÅ ÐÁÒÁÍÅÔÒÙ ËÏÄÉÒÏ×ÁÎÉÑ" #: src/file_vorbis.c:643 src/file_vorbis.c:663 msgid "Ogg Vorbis encoding results" msgstr "òÅÚÕÌØÔÁÔÙ ËÏÄÉÒÏ×ÁÎÉÑ × Ogg Vorbis" #: src/file_vorbis.c:1089 msgid "Sweep: Ogg Vorbis save options" msgstr "Sweep: ðÁÒÁÍÅÔÒÙ ÓÏÈÒÁÎÅÎÉÑ × Ogg Vorbis" #: src/file_vorbis.c:1148 msgid "Vorbis encoding" msgstr "ëÏÄÉÒÏ×ÁÎÉÅ × Vorbis" #: src/file_vorbis.c:1195 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file) using variable bitrate mode (VBR)." msgstr "" "ëÁÞÅÓÔ×Ï ËÏÄÉÒÏ×ÁÎÉÑ ÚÁÄÁ£ÔÓÑ ÞÉÓÌÏÍ ÍÅÖÄÕ 0 (ÎÁÉÈÕÄÛÅÅ ËÁÞÅÓÔ×Ï, " "ÎÁÉÍÅÎØÛÉÊ ÒÁÚÍÅÒ ÆÁÊÌÁ) É 10 (ÎÁÉ×ÙÓÛÅÅ ËÁÞÅÓÔ×Ï, ÎÁÉÂÏÌØÛÉÊ ÒÁÚÍÅÒ ÆÁÊÌÁ) " "ÐÒÉ ÐÏÍÏÝÉ ÐÅÒÅÍÅÎÎÏÊ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÙ (VBR)." #: src/file_vorbis.c:1205 msgid "Enable bitrate management engine" msgstr "÷ËÌÀÞÉÔØ ÒÕÞÎÏÅ ÕÐÒÁ×ÌÅÎÉÅ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÏÊ" #: src/file_vorbis.c:1211 msgid "" "This enables average bitrate mode (ABR). You must suggest a nominal average " "bitrate and may specify minimum and maximum bounds.\n" "For best results it is generally recommended that you use the variable " "bitrate 'encoding quality' control (above) instead." msgstr "" "÷ËÌÀÞÁÅÔÓÑ ÒÅÖÉÍ ÎÏÍÉÎÁÌØÎÏÊ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÙ (ABR). ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ××ÅÓÔÉ " "ÎÏÍÉÎÁÌØÎÏÅ ÚÎÁÞÅÎÉÅ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÙ É ÕËÁÚÁÔØ ÍÉÎÉÍÁÌØÎÏÅ É ÍÁËÓÉÍÁÌØÎÏÅ ÏÔ " "ÎÅ£ ÏÔËÌÏÎÅÎÉÅ.\n" "äÌÑ ÄÏÓÔÉÖÅÎÉÑ ÎÁÉÌÕÞÛÅÇÏ ÒÅÚÕÌØÔÁÔÁ ÒÅËÏÍÅÎÄÕÅÔÓÑ ÉÓÐÏÌØÚÏ×ÁÔØ ÒÅÇÕÌÑÔÏÒ " "ËÁÞÅÓÔ×Á ËÏÄÉÒÏ×ÁÎÉÑ ÄÌÑ ÐÅÒÅÍÅÎÎÏÊ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÙ, ÎÁÈÏÄÑÝÉÊÓÑ ×ÙÛÅ." #: src/file_vorbis.c:1221 msgid "Bitrate management engine" msgstr " òÕÞÎÏÅ ÕÐÒÁ×ÌÅÎÉÅ ÂÉÔÏ×ÏÊ ÞÁÓÔÏÔÏÊ " #: src/file_vorbis.c:1247 msgid "Nominal bitrate (ABR):" msgstr "îÏÍÉÎÁÌØÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ (ABR):" #: src/file_vorbis.c:1260 msgid "" "Specify a nominal bitrate. Attempt to encode at a bitrate averaging this." msgstr "" "õËÁÖÉÔÅ ÎÏÍÉÎÁÌØÎÕÀ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ, ÚÎÁÞÅÎÉÅ ËÏÔÏÒÏÊ ÂÕÄÅÔ ×ÚÑÔÏ ÚÁ ÏÓÎÏ×Õ " "ÄÌÑ ËÏÄÉÒÏ×ÁÎÉÑ" #: src/file_vorbis.c:1264 src/file_vorbis.c:1293 src/file_vorbis.c:1323 msgid "kbps" msgstr "ëâÁÊÔ/ÓÅË" #: src/file_vorbis.c:1276 msgid "Minimum bitrate:" msgstr "íÉÎÉÍÁÌØÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ:" #: src/file_vorbis.c:1289 msgid "" "Specify a minimum bitrate, useful for encoding for a fixed-size channel. " "(Optional)" msgstr "" "õËÁÖÉÔÅ ÍÉÎÉÍÁÌØÎÕÀ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ. üÔÏÔ ÎÅÏÂÑÚÁÔÅÌØÎÙÊ ÐÁÒÁÍÅÔÒ ÐÏÌÅÚÅÎ × " "ÔÏÍ ÓÌÕÞÁÅ, ÅÓÌÉ ÒÅÞØ ÉÄ£Ô Ï ËÁÎÁÌÅ ÆÉËÓÉÒÏ×ÁÎÎÏÇÏ ÒÁÚÍÅÒÁ." #: src/file_vorbis.c:1306 msgid "Maximum bitrate:" msgstr "íÁËÓÉÍÁÌØÎÁÑ ÂÉÔÏ×ÁÑ ÞÁÓÔÏÔÁ:" #: src/file_vorbis.c:1319 msgid "" "Specify a maximum bitrate, useful for streaming applications. (Optional)" msgstr "" "õËÁÖÉÔÅ ÍÉÎÉÍÁÌØÎÕÀ ÂÉÔÏ×ÕÀ ÞÁÓÔÏÔÕ. üÔÏÔ ÎÅÏÂÑÚÁÔÅÌØÎÙÊ ÐÁÒÁÍÅÔÒ ÐÏÌÅÚÅÎ × " "ÔÏÍ ÓÌÕÞÁÅ, ÅÓÌÉ ÒÅÚÕÌØÔÁÔ ËÏÄÉÒÏ×ÁÎÉÑ ÂÕÄÅÔ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ × ÐÒÉÌÏÖÅÎÉÑÈ " "ÄÌÑ ÒÁÂÏÔÙ Ó ÐÏÔÏÞÎÙÍ Ú×ÕËÏÍ." #: src/file_vorbis.c:1370 msgid "Set to default encoding options." msgstr "õÓÔÁÎÏ×ÉÔØ ÓÔÁÎÄÁÒÔÎÙÅ ÐÁÒÁÍÅÔÒÙ ËÏÄÉÒÏ×ÁÎÉÑ" #: src/file_vorbis.c:1377 msgid "Metadata" msgstr "íÅÔÁÄÁÎÎÙÅ" #: src/file_vorbis.c:1399 msgid "Title:" msgstr "îÁÚ×ÁÎÉÅ:" #: src/file_vorbis.c:1399 msgid "Track/Work name" msgstr "éÍÑ ÄÏÒÏÖËÉ/ËÏÍÐÏÚÉÃÉÉ" #: src/file_vorbis.c:1401 msgid "Version:" msgstr "÷ÅÒÓÉÑ:" #: src/file_vorbis.c:1402 msgid "" "The version field may be used to differentiate multiple versions of the same " "track title in a single collection. (e.g. remix info)" msgstr "" "ðÏÌÅ \"÷ÅÒÓÉÑ\" ÍÏÖÅÔ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ ÄÌÑ ÚÁÄÁÎÉÑ ×ÅÒÓÉÊ ×ÁÒÉÁÎÔÏ× ÏÄÎÏÊ É " "ÔÏÊ ÖÅ ÄÏÒÏÖËÉ (ÎÁÐÒÉÍÅÒ, ÒÅÍÉËÓÏ×)" #: src/file_vorbis.c:1406 msgid "Album:" msgstr "áÌØÂÏÍ:" #: src/file_vorbis.c:1407 msgid "The collection name to which this track belongs" msgstr "éÍÑ ÓÂÏÒÎÉËÁ, × ÓÏÓÔÁ× ËÏÔÏÒÏÇÏ ×ÈÏÄÉÔ ÄÁÎÎÁÑ ÄÏÒÏÖËÁ" #: src/file_vorbis.c:1409 msgid "Artist:" msgstr "á×ÔÏÒ:" #: src/file_vorbis.c:1410 msgid "" "The artist generally considered responsible for the work. In popular music " "this is usually the performing band or singer. For classical music it would " "be the composer. For an audio book it would be the author of the original " "text." msgstr "" "÷ ÐÏÌÅ \"á×ÔÏÒ\" ÏÂÙÞÎÏ ÚÁÐÉÓÙ×ÁÁÅÔÓÑ ÏÄÉÎ ÉÌÉ ÎÅÓËÏÌØËÏ ÞÅÌÏ×ÅË, " "\"ÏÔ×ÅÔÓÔ×ÅÎÎÙÈ\" ÚÁ ÅÇÏ ÓÏÚÄÁÎÉÅ, ÎÁÐÒÉÍÅÒ, ÐÅ×Åà ÉÌÉ ÇÒÕÐÐÁ; × ÓÌÕÞÁÅ Ó " "ËÌÁÓÓÉÞÅÓËÏÊ ÍÕÚÙËÏÊ ÔÁËÉÍ ÞÅÌÏ×ÅËÏÍ Ñ×ÌÑÅÔÓÑ ËÏÍÐÏÚÉÔÏÒ É Ô.Ä." #: src/file_vorbis.c:1416 msgid "Performer:" msgstr "éÓÐÏÌÎÉÔÅÌØ:" #: src/file_vorbis.c:1417 msgid "" "The artist(s) who performed the work. In classical music this would be the " "conductor, orchestra, soloists. In an audio book it would be the actor who " "did the reading. In popular music this is typically the same as the ARTIST " "and is omitted." msgstr "" "þÅÌÏ×ÅË ÉÌÉ ÇÒÕÐÐÁ ÌÉÃ, ×ÏÐÌÏÔÉ×ÛÉÈ ÍÕÚÙËÁÌØÎÕÀ ÉÄÅÀ. ÷ ÓÌÕÞÁÅ Ó " "ËÌÁÓÓÉÞÅÓËÏÊ ÍÕÚÙËÏÊ ÜÔÏ ÍÏÇÕÔ ÂÙÔØ ÄÉÒÉÖ£Ò, ÏÒËÅÓÔÒ, ÓÏÌÉÓÔÙ. ÷ ÓÏ×ÒÅÍÅÎÎÏÊ " "ÍÕÚÙËÅ \"á×ÔÏÒ\" É \"éÓÐÏÌÎÉÔÅÌØ\" ÍÏÇÕÔ ÂÙÔØ ÏÄÎÉÍ É ÔÅÍ ÖÅ ÞÅÌÏ×ÅËÏÍ ÉÌÉ " "ÇÒÕÐÐÏÊ ÌÉÃ." #: src/file_vorbis.c:1424 msgid "Copyright:" msgstr "á×ÔÏÒÓËÏÅ ÐÒÁ×Ï:" #: src/file_vorbis.c:1425 msgid "" "Copyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'" msgstr "" "ëÒÁÔËÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï Á×ÔÏÒÓËÏÍ ÐÒÁ×Å, ÎÁÐÒÉÍÅÒ, '2003 îÁÛÁ ÇÒÕÐÐÁ' ÉÌÉ " "'2003 íÏ£ ÉÍÑ'" #: src/file_vorbis.c:1428 msgid "License:" msgstr "ìÉÃÅÎÚÉÑ:" #: src/file_vorbis.c:1429 msgid "" "License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL " "to a license such as a Creative Commons license (\"www.creativecommons.org/" "blahblah/license.html\") or the EFF Open Audio License ('distributed under " "the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/" "eff_oal.html for details'), etc." msgstr "" "éÎÆÏÒÍÁÃÉÑ Ï ÌÉÃÅÎÚÉÉ, ÎÁÐÒÉÍÅÒ, \"÷ÓÅ ÐÒÁ×Á ÚÁÝÉÝÅÎÙ\", URL ÎÁ ÔÅËÓÔ " "ÌÉÃÅÎÚÉÉ - ÎÁÐÒÉÍÅÒ, ÷ÓÅÏÂÝÁÑ ÍÕÚÙËÁÌØÎÁÑ ÌÉÃÅÎÚÉÑ (\"www.ÇÄÅ-ÔÏ.ÔÁÍ\") ÉÌÉ " "ïÔËÒÙÔÁÑ ÌÉÃÅÎÚÉÑ ÎÁ Ú×ÕËÏ×ÙÅ ÄÁÎÎÙÅ (\"ÒÁÓÐÒÏÓÔÒÁÎÑÅÔÓÑ ÎÁ ÕÓÌÏ×ÉÑÈ " "ïÔËÒÙÔÏÊ ÌÉÃÅÎÚÉÉ ÎÁ Ú×ÕËÏ×ÙÅ ÄÁÎÎÙÅ, ÔÅËÓÔ ËÏÔÏÒÏÊ ÞÉÔÁÊÔÅ ÐÏ ÁÄÒÅÓÕ http://" "www.eff.org/IP/Open_licenses/eff_oal.html\") É Ô.Ä." #: src/file_vorbis.c:1438 msgid "Organization:" msgstr "ïÒÇÁÎÉÚÁÃÉÑ:" #: src/file_vorbis.c:1439 msgid "Name of the organization producing the track (i.e. the 'record label')" msgstr "éÍÑ ÏÒÇÁÎÉÚÁÃÉÉ, ÓÐÒÏÄÀÓÉÒÏ×Á×ÛÅÊ ÚÁÐÉÓØ (Ô.Î. \"ÌÅÊÂÌ\")" #: src/file_vorbis.c:1442 msgid "Description:" msgstr "ïÐÉÓÁÎÉÅ:" #: src/file_vorbis.c:1443 msgid "A short text description of the contents" msgstr "ëÏÒÏÔËÏÅ ÏÐÉÓÁÎÉÅ ÓÏÄÅÒÖÁÎÉÑ" #: src/file_vorbis.c:1445 msgid "Genre:" msgstr "öÁÎÒ:" #: src/file_vorbis.c:1446 msgid "A short text indication of music genre" msgstr "ëÏÒÏÔËÏÅ ÏÐÉÓÁÎÉÅ, ÉÍÅÎÏ×ÁÎÉÅ ÖÁÎÒÁ" #: src/file_vorbis.c:1448 msgid "Date:" msgstr "äÁÔÁ:" #: src/file_vorbis.c:1449 msgid "Date the track was recorded" msgstr "äÁÔÁ ÚÁÐÉÓÉ ÄÏÒÏÖËÉ" #: src/file_vorbis.c:1451 msgid "Location:" msgstr "íÅÓÔÏÐÏÌÏÖÅÎÉÅ:" #: src/file_vorbis.c:1452 msgid "Location where track was recorded" msgstr "ïÐÉÓÁÎÉÅ, ÉÍÅÎÏ×ÁÎÉÅ ÍÅÓÔÁ ÚÁÐÉÓÉ ÄÏÒÏÖËÉ" #: src/file_vorbis.c:1454 msgid "Contact:" msgstr "ëÏÎÔÁËÔÙ:" #: src/file_vorbis.c:1455 msgid "" "Contact information for the creators or distributors of the track. This " "could be a URL, an email address, the physical address of the producing " "label." msgstr "" "ëÏÎÔÁËÔÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÏÚÄÁÔÅÌÑÈ É ÄÉÓÔÒÉÂØÀÔÏÒÁÈ ÄÏÒÏÖËÉ. üÔÏ ÍÏÖÅÔ ÂÙÔØ " "URL, -email, ÆÉÚÉÞÅÓËÉÊ ÉÌÉ ÀÒÉÄÉÞÅÓËÉÊ ÁÄÒÅÓ ÐÏÒÄÀÓÅÒÓËÏÊ ÏÒÇÁÎÉÚÁÃÉÉ." #: src/file_vorbis.c:1460 msgid "ISRC:" msgstr "ISRC:" #: src/file_vorbis.c:1461 msgid "" "ISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-" "content/online/isrc_intro.html) for more information on ISRC numbers." msgstr "" "ISRC-ÎÏÍÅÒ ÄÏÒÏÖËÉ. ðÏÄÒÏÂÎÅÅ Ï ISRC ÞÉÔÁÊÔÅ ÐÏ ÁÄÒÅÓÕ http://www.ifpi.org/" "site-content/online/isrc_intro.html" #: src/file_vorbis.c:1578 msgid "" "Ogg Vorbis is a high quality general purpose\n" "perceptual audio codec. It is free, open and\n" "unpatented." msgstr "" "Ogg Vorbis - ÜÔÏ ÏÂÝÅÃÅÌÅ×ÏÊ ×ÙÓÏËÏËÁÞÅÓÔ×ÅÎÎÙÊ\n" "ÁÌÇÏÒÉÔÍ ÓÖÁÔÉÑ. åÇÏ ÉÓÈÏÄÎÙÊ ËÏÄ Ó×ÏÂÏÄÅÎ, \n" "ÂÅÓÐÌÁÔÅÎ É ÎÅÚÁÝÉݣΠÐÁÔÅÎÔÁÍÉ." #: src/file_vorbis.c:1589 msgid "" "Ogg, Vorbis, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ogg, Vorbis, Xiph.org Foundation É ÉÈ ÌÏÇÏÔÉÐÙ\n" "Ñ×ÌÑÀÔÓÑ ÔÏÒÇÏ×ÙÍÉ ÍÁÒËÁÍÉ (tm) æÏÎÄÁ Xiph.org.\n" "÷ ÄÁÎÎÏÍ ÐÒÏÇÒÁÍÍÎÏÍ ÐÒÏÄÕËÔÅ ÉÓÐÏÌØÚÕÀÔÓÑ\n" "Ó ÉÈ ÒÁÚÒÅÛÅÎÉÑ." #: src/head.c:408 src/view.c:2324 msgid "Cursor position (indicator)" msgstr "ðÏÚÉÃÉÑ ËÕÒÓÏÒÁ (ÉÎÄÉËÁÔÏÒ)" #: src/head.c:449 #, fuzzy msgid "Reverse mode (toggle)" msgstr "òÅÖÉÍ ÏÂÒÁÔÎÏÇÏ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÑ (ÐÅÒÅËÌÀÞÉÔØ)" #: src/head.c:467 msgid "Loop mode recording (toggle)" msgstr "úÁÐÉÓØ × ÃÉËÌÅ (ÐÅÒÅËÌÀÞÉÔØ)" #: src/head.c:486 msgid "Record into selection" msgstr "úÁÐÉÓÁÔØ × ×ÙÄÅÌÅÎÉÅ" #: src/head.c:503 src/view.c:1068 msgid "Stop" msgstr "ïÓÔÁÎÏ×ÉÔØ" #: src/head.c:516 src/view.c:2469 msgid "Go to beginning" msgstr "ðÅÒÅÊÔÉ Ë ÎÁÞÁÌÕ" #: src/head.c:527 src/view.c:2480 msgid "Rewind" msgstr "ðÅÒÅÍÏÔÁÔØ ÎÁÚÁÄ" #: src/head.c:540 src/view.c:2492 msgid "Fast forward" msgstr "ðÅÒÅÍÏÔÁÔØ ×ÐÅÒ£Ä" #: src/head.c:555 src/view.c:2505 msgid "Go to the end" msgstr "ðÅÒÅÊÔÉ Ë ËÏÎÃÕ" #: src/interface.c:327 msgid "Sweep" msgstr "Sweep" #: src/interface.c:352 src/view.c:446 msgid "File" msgstr "æÁÊÌ" #: src/interface.c:357 msgid "New" msgstr "îÏ×ÙÊ" #: src/interface.c:366 msgid "Open" msgstr "ïÔËÒÙÔØ" #: src/interface.c:375 src/sweep_sample.c:800 src/sweep_sample.c:808 #: src/view.c:529 msgid "Quit" msgstr "÷ÙÊÔÉ" #: src/interface.c:386 src/view.c:1073 msgid "Help" msgstr "óÐÒÁ×ËÁ" #: src/interface.c:391 msgid "About..." msgstr "ï ÐÒÏÇÒÁÍÍÅ..." #: src/interface.c:414 src/view.c:618 msgid "Select" msgstr "÷ÙÄÅÌÉÔØ" #: src/interface.c:415 msgid "Select regions of a sample" msgstr "÷ÙÄÅÌÉÔØ ÆÒÁÇÍÅÎÔÙ ÓÅÍÐÌÁ" #: src/interface.c:416 msgid "" "This tool allows you to select regions of a sample. You can then apply edits " "and effects to the: selected regions. Hold down shift whilst selecting to " "add discontinuous regions to the selection." msgstr "" "üÔÏÔ ÉÎÓÔÒÕÍÅÎÔ ÐÏÚ×ÏÌÑÅÔ ×ÙÄÅÌÑÔØ ÆÒÁÇÍÅÎÔÙ ÓÅÍÐÌÁ. ÷ÐÏÓÌÅÄÓÔ×ÉÉ ×Ù ÍÏÖÅÔÅ " "ÏÔÒÅÄÁËÔÉÒÏ×ÁÔØ ÜÔÉ ÆÒÁÇÍÅÎÔÙ, ÐÒÉÍÅÎÉÔØ Ë ÎÉÍ ÜÆÆÅËÔÙ. õÄÅÒÖÉ×ÁÊÔÅ ÎÁÖÁÔÏÊ " "ËÌÁ×ÉÛÕ Shift ÄÌÑ ÒÁÓÛÉÒÅÎÉÑ ×ÙÄÅÌÅÎÎÏÇÏ ÆÒÁÇÍÅÎÔÁ." #: src/interface.c:433 msgid "Move" msgstr "ðÅÒÅÍÅÓÔÉÔØ" #: src/interface.c:434 msgid "Move regions in a sample" msgstr "ðÅÒÅÍÅÓÔÉÔØ ÆÒÁÇÍÅÎÔÙ × ÓÅÍÐÌÅ" #: src/interface.c:435 msgid "With this tool you can move selected regions of a sample." msgstr "" "ðÒÉ ÐÏÍÏÝÉ ÜÔÏÇÏ ÉÎÓÔÒÕÍÅÎÔÁ ×Ù ÍÏÖÅÔÅ ÐÅÒÅÍÅÝÁÔØ ×ÙÄÅÌÅÎÎÙÅ ÆÒÁÇÍÅÎÔÙ " "ÓÅÍÐÌÁ." #: src/interface.c:447 msgid "Scrub" msgstr "" #: src/interface.c:448 msgid "Locate sounds directly" msgstr "" #: src/interface.c:449 msgid "" "Place the play marker on a sample. Click anywhere in a view to instantly " "move the playback position to that part of the sample." msgstr "" #: src/interface.c:466 msgid "Zoom" msgstr "íÁÓÛÔÁÂ" #: src/interface.c:467 msgid "Zoom in & out" msgstr "ðÒÉÂÌÉÚÉÔØ ÉÌÉ ÏÔÄÁÌÉÔØ" #: src/interface.c:468 msgid "" "Zoom in and out of a view. Click anywhere in a view to zoom in on that part " "of the sample. Hold down shift and click on the view to zoom out." msgstr "" #: src/interface.c:484 msgid "Pencil" msgstr "ëÁÒÁÎÄÁÛ" #: src/interface.c:485 msgid "Edit PCM sample values" msgstr "òÅÄÁËÔÉÒÏ×ÁÔØ ÚÎÁÞÅÎÉÑ PCM-ÓÅÍÐÌÁ" #: src/interface.c:486 msgid "When zoomed down to individual samples, click to edit" msgstr "" #: src/interface.c:497 msgid "Noise" msgstr "ûÕÍ" #: src/interface.c:498 msgid "Add noise" msgstr "äÏÂÁ×ÉÔØ ÛÕÍ" #: src/interface.c:499 msgid "Randomise PCM values" msgstr "ðÏÌÕÞÉÔØ ÓÌÕÞÁÊÎÙÅ ÚÎÁÞÅÎÉÑ ÄÌÑ PCM" #: src/notes.c:61 msgid "C3" msgstr "äÏ 3" #: src/notes.c:62 msgid "C#3" msgstr "äÏ ÄÉÅÚ 3" #: src/notes.c:63 msgid "D3" msgstr "òÅ 3" #: src/notes.c:64 msgid "Eb3" msgstr "íÉ ÂÅÍÏÌØ 3" #: src/notes.c:65 msgid "E3" msgstr "íÉ 3" #: src/notes.c:66 msgid "F3" msgstr "æÁ 3" #: src/notes.c:67 msgid "F#3" msgstr "æÁ ÄÉÅÚ 3" #: src/notes.c:68 msgid "G3" msgstr "óÏÌØ 3" #: src/notes.c:69 msgid "G#3" msgstr "óÏÌØ ÄÉÅÚ 3" #: src/notes.c:70 msgid "A3" msgstr "ìÑ 3" #: src/notes.c:71 msgid "Bb3" msgstr "óÉ ÂÅÍÏÌØ 3" #: src/notes.c:72 msgid "B3" msgstr "óÉ 3" #: src/notes.c:74 msgid "C4" msgstr "äÏ 4" #: src/notes.c:76 msgid "C#4" msgstr "äÏ ÄÉÅÚ 4" #: src/notes.c:77 msgid "D4" msgstr "òÅ 4" #: src/notes.c:78 msgid "Eb4" msgstr "íÉ ÂÅÍÏÌØ 4" #: src/notes.c:79 msgid "E4" msgstr "íÉ 4" #: src/notes.c:80 msgid "F4" msgstr "æÁ 4" #: src/notes.c:81 msgid "F#4" msgstr "æÁ ÄÉÅÚ 4" #: src/notes.c:82 msgid "G4" msgstr "óÏÌØ 4" #: src/notes.c:83 msgid "G#4" msgstr "óÏÌØ ÄÉÅÚ 4" #: src/notes.c:84 msgid "A4" msgstr "ìÑ 4" #: src/notes.c:85 msgid "Bb4" msgstr "óÉ ÂÅÍÏÌØ 4" #: src/notes.c:86 msgid "B4" msgstr "óÉ 4" #: src/notes.c:88 msgid "C5" msgstr "äÏ 5" #: src/notes.c:89 msgid "C#5" msgstr "äÏ ÄÉÅÚ 5" #: src/notes.c:90 msgid "D5" msgstr "òÅ 5" #: src/notes.c:91 msgid "D#5" msgstr "òÅ ÄÉÅÚ 5" #: src/notes.c:92 msgid "E5" msgstr "íÉ 5" #: src/notes.c:94 msgid "F5" msgstr "æÁ 5" #: src/notes.c:95 msgid "F#5" msgstr "æÁ ÄÉÅÚ 5" #: src/notes.c:96 msgid "G5" msgstr "óÏÌØ 5" #: src/notes.c:97 msgid "G#5" msgstr "óÏÌØ ÄÉÅÚ 5" #: src/notes.c:98 msgid "A5" msgstr "ìÑ 5" #: src/notes.c:99 msgid "Bb5" msgstr "óÉ ÂÅÍÏÌØ 5" #: src/notes.c:100 msgid "B5" msgstr "óÉ 5" #: src/param.c:117 #, c-format msgid "TRUE" msgstr "" #: src/param.c:118 #, c-format msgid "FALSE" msgstr "" #: src/param.c:738 msgid "Parameters" msgstr "" #: src/param.c:769 msgid "Preview" msgstr "" #: src/paste_dialogs.c:221 msgid "Start gain" msgstr "îÁÞÁÌØÎÁÑ ÇÒÏÍËÏÓÔØ" #: src/paste_dialogs.c:223 src/record.c:489 src/record.c:507 #: plugins/echo/echo.c:61 msgid "Gain" msgstr "çÒÏÍËÏÓÔØ" #: src/paste_dialogs.c:230 msgid "Sweep: Paste crossfade" msgstr "" #: src/paste_dialogs.c:232 msgid "Sweep: Paste mix" msgstr "Sweep: ÷ÓÔÁ×ËÁ ÓÍÅÛÉ×ÁÎÉÅÍ" #: src/paste_dialogs.c:257 msgid "Source" msgstr "éÓÔÏÞÎÉË" #: src/paste_dialogs.c:257 msgid "Clipboard" msgstr "âÕÆÅÒ ÏÂÍÅÎÁ" #: src/paste_dialogs.c:279 src/paste_dialogs.c:318 msgid "End gain" msgstr "ëÏÎÅÞÎÁÑ ÇÒÏÍËÏÓÔØ" #: src/paste_dialogs.c:287 src/paste_dialogs.c:326 msgid "Invert phase" msgstr "æÁÚÁ ÉÎ×ÅÒÔÁÃÉÉ" #: src/paste_dialogs.c:295 msgid "Destination" msgstr "íÅÓÔÏ ÎÁÚÎÁÞÅÎÉÑ" #: src/paste_dialogs.c:345 msgid "" "Indicates the total duration of the clipboard, which is the maximum length " "that will be pasted." msgstr "" "ðÏËÁÚÙ×ÁÅÔ ÏÂÝÕÀ ÐÒÏÄÏÌÖÉÔÅÌØÎÏÓÔØ ÂÕÆÅÒÁ ÏÂÍÅÎÁ, ËÏÔÏÒÁÑ ÓÏ×ÐÁÄÁÅÔ Ó " "ÍÁËÓÉÍÁÌØÎÏÊ ÐÒÏÄÏÌÖÉÔÅÌØÎÏÓÔØÀ ×ÓÔÁ×ËÉ." #: src/paste_dialogs.c:362 msgid "Clipboard duration:" msgstr "ðÒÏÄÏÌÖÉÔÅÌØÎÏÓÔØ ÂÕÆÅÒÁ ÏÂÍÅÎÁ:" #: src/paste_dialogs.c:375 msgid "Crossfade" msgstr "" #: src/paste_dialogs.c:375 msgid "Mix" msgstr "óÍÅÛÁÔØ" #: src/paste_dialogs.c:394 msgid "Don't crossfade" msgstr "" #: src/paste_dialogs.c:394 msgid "Don't mix" msgstr "îÅ ÓÍÅÛÉ×ÁÔØ" #: src/preferences.c:62 msgid "Error creating ~/.sweep" msgstr "" #: src/preferences.c:66 #, c-format msgid "Created %s/ mode %04o\n" msgstr "" #: src/preferences.c:73 msgid "Error on ~/.sweep" msgstr "" #: src/preferences.c:82 msgid "Error setting permissions on ~/.sweep" msgstr "" #: src/preferences.c:89 msgid "Error accessing ~/.sweep" msgstr "" #: src/preferences.c:124 msgid "Error opening ~/.sweep/preferences.tdb" msgstr "" #: src/record.c:94 src/record.c:544 msgid "Ready to record" msgstr "çÏÔÏ× Ë ÚÁÐÉÓÉ" #: src/record.c:308 msgid "No selection to record into" msgstr "îÅ ÚÁÐÉÓÙ×ÁÅÍÏÇÏ ×ÙÄÅÌÅÎÉÑ" #: src/record.c:446 msgid "Sweep: Record" msgstr "Sweep: úÁÐÉÓØ" #: src/record.c:459 src/undo_dialog.c:376 msgid "File:" msgstr "æÁÊÌ:" #: src/record.c:482 msgid "Previous sound" msgstr "ðÒÅÄÙÄÕÝÉÊ Ú×ÕË" #: src/record.c:496 msgid "" "This slider allows you to mix the new recording in with the previous " "contents of the buffer. Set it to -inf dB to overwrite the previous sound." msgstr "" #: src/record.c:502 msgid "Recorded sound" msgstr "úÁÐÉÓÁÎÎÙÊ Ú×ÕË" #: src/record.c:514 msgid "" "This slider allows you to reduce the level of the recorded sound. Set it to " "0 dB to record without any reduction. Note that setting this to -inf dB will " "record silence." msgstr "" #: src/sample-display.c:223 msgid "New selection" msgstr "îÏ×ÏÅ ×ÙÄÅÌÅÎÉÅ" #: src/sample-display.c:224 msgid "Selection: add/modify region" msgstr "÷ÙÄÅÌÅÎÉÅ: ÄÏÂÁ×ÉÔØ/ÉÚÍÅÎÉÔØ ÆÒÁÇÍÅÎÔ" #: src/sample-display.c:225 msgid "Selection: subtract region" msgstr "÷ÙÄÅÌÅÎÉÅ: ×ÙÞÅÓÔØ ÆÒÁÇÍÅÎÔ" #: src/samplerate.c:103 src/samplerate.c:167 msgid "Resample error" msgstr "ïÛÉÂËÁ ÐÒÉ ÓÍÅÎÅ ÞÁÓÔÏÔÙ ÄÉÓËÒÅÔÉÚÁÃÉÉ" #: src/samplerate.c:104 src/samplerate.c:168 msgid "libsamplerate error" msgstr "ÏÛÉÂËÁ libsamplerate" #: src/samplerate.c:234 #, c-format msgid "Resample from %d Hz to %d Hz" msgstr "óÍÅÎÁ ÞÁÓÔÏÔÙ ÄÉÓËÒÅÔÉÚÁÃÉÉ Ó %d çà ÎÁ %d çÃ" #: src/samplerate.c:445 msgid "Sweep: Resample" msgstr "Sweep: éÚÍÅÎÉÔØ ÞÁÓÔÏÔÕ ÄÉÓËÒÅÔÉÚÁÃÉÉ" #: src/samplerate.c:467 msgid "Conversion" msgstr " ðÒÅÏÂÒÁÚÏ×ÁÎÉÅ " #: src/samplerate.c:474 #, c-format msgid "Current sample rate: %d Hz" msgstr "ôÅËÕÝÁÑ ÞÁÓÔÏÔÁ ÄÉÓËÒÅÔÉÚÁÃÉÉ: %d çÃ" #: src/samplerate.c:483 msgid "New sample rate" msgstr "îÏ×ÁÑ ÞÁÓÔÏÔÁ ÄÉÓËÒÅÔÉÚÁÃÉÉ" #: src/samplerate.c:494 msgid "Quality" msgstr "ëÁÞÅÓÔ×Ï" #: src/samplerate.c:501 msgid "Converter" msgstr " ðÒÅÏÂÒÁÚÏ×ÁÔÅÌØ " #: src/samplerate.c:544 msgid "Remember this quality" msgstr "úÁÐÏÍÎÉÔØ ÜÔÏ ÚÎÁÞÅÎÉÅ" #: src/samplerate.c:564 msgid "Reset to the last remembered quality." msgstr "÷ÅÒÎÕÔØÓÑ Ë ÐÏÓÌÅÄÎÅÍÕ ÚÁÐÏÍÎÅÎÎÏÍÕ ÚÎÁÞÅÎÉÀ" #: src/samplerate.c:578 msgid "Set to default quality." msgstr "õÓÔÁÎÏ×ÉÔØ ÓÔÁÎÄÁÒÔÎÏÅ ÚÎÁÞÅÎÉÅ" #: src/samplerate.c:600 msgid "" "Secret Rabbit Code (aka libsamplerate) is a\n" "Sample Rate Converter for audio by Erik de Castro Lopo\n" msgstr "" "Secret Rabbit Code (ÉÚ×ÅÓÔÎÙÊ ËÁË libsamplerate) - ÜÔÏ\n" "ðÒÅÏÂÒÁÚÏ×ÁÔÅÌØ ÞÁÓÔÏÔÙ ÄÉÓËÒÅÔÉÚÁÃÉÉ üÒÉËÁ ÄÅ ëÁÓÔÒÏ ìÏÐÏ\n" #: src/samplerate.c:620 msgid "Resample" msgstr "ðÒÅÏÂÒÁÚÏ×ÁÔØ" #: src/samplerate.c:633 msgid "Don't resample" msgstr "îÅ ÐÒÅÏÂÒÁÚÏ×Ù×ÁÔØ" #: src/sw_chooser.c:51 src/sw_chooser.c:66 msgid "Custom" msgstr "ó×Ï£ ÚÎÁÞÅÎÉÅ" #: src/sw_chooser.c:52 msgid "192000 Hz (Studio quality)" msgstr "192000 çà (ÓÔÕÄÉÊÎÏÅ ËÁÞÅÓÔ×Ï)" #: src/sw_chooser.c:53 msgid " 96000 Hz (High quality)" msgstr " 96000 çà (×ÙÓÏËÏÅ ËÁÞÅÓÔ×Ï)" #: src/sw_chooser.c:54 msgid " 48000 Hz (DAT quality)" msgstr " 48000 çà (ËÁÞÅÓÔ×Ï DAT-ÚÁÐÉÓÉ)" #: src/sw_chooser.c:55 msgid " 44100 Hz (CD quality)" msgstr " 44100 çà (ËÁÞÅÓÔ×Ï CD)" #: src/sw_chooser.c:56 msgid " 32000 Hz (Ultra-wideband voice quality)" msgstr " 32000 çà (ÏÞÅÎØ ×ÙÓÏËÏÅ ËÁÞÅÓÔ×Ï ÄÌÑ ÚÁÐÉÓÉ ÇÏÌÏÓÁ)" #: src/sw_chooser.c:57 msgid " 22050 Hz" msgstr " 22050 çÃ" #: src/sw_chooser.c:58 msgid " 16000 Hz (Wideband voice quality)" msgstr " 16000 çà (×ÙÓÏËÏÅ ËÁÞÅÓÔ×Ï ÄÌÑ ÚÁÐÉÓÉ ÇÏÌÏÓÁ)" #: src/sw_chooser.c:59 msgid " 11025 Hz" msgstr " 11025 çÃ" #: src/sw_chooser.c:60 msgid " 8000 Hz (Narrowband voice quality)" msgstr " 8000 çà (ÎÉÚËÏÅ ËÁÞÅÓÔ×Ï ÄÌÑ ÚÁÐÉÓÉ ÇÏÌÏÓÁ)" #: src/sw_chooser.c:61 msgid " 4000 Hz (Low quality)" msgstr " 4000 çà (ÎÉÚËÏÅ ËÁÞÅÓÔ×Ï)" #: src/sw_chooser.c:67 src/view.c:3446 src/view.c:3459 src/view.c:3498 #, c-format msgid "Mono" msgstr "íÏÎÏ" #: src/sw_chooser.c:68 src/view.c:3446 src/view.c:3459 src/view.c:3501 #, c-format msgid "Stereo" msgstr "óÔÅÒÅÏ" #: src/sw_chooser.c:69 msgid "Quadraphonic" msgstr "ë×ÁÄÒÏÆÏÎÉÑ" #: src/sw_chooser.c:306 msgid "Custom: " msgstr "ó×Ï£ ÚÎÁÞÅÎÉÅ: " #: src/sw_chooser.c:341 msgid "Sampling rate" msgstr "þÁÓÔÏÔÁ ÄÉÓËÒÅÔÉÚÁÃÉÉ" #: src/sw_chooser.c:343 msgid "Hz" msgstr "çÃ" #: src/sw_chooser.c:367 src/view.c:884 msgid "Channels" msgstr "ëÁÎÁÌÙ" #: src/sw_chooser.c:369 src/view.c:3505 msgid "channels" msgstr "ËÁÎÁÌÏ×" #: src/sweep_filter.c:125 msgid "No selection to process" msgstr "îÅÔ ÏÂÒÁÂÁÔÙ×ÁÅÍÏÇÏ ×ÙÄÅÌÅÎÉÑ" #: src/sweep_sample.c:119 src/view.c:3444 src/view.c:3450 src/view.c:3457 #: src/view.c:3463 msgid "Untitled" msgstr "âÅÚÙÍÑÎÎÙÊ" #: src/sweep_sample.c:324 msgid "Overflow" msgstr "ðÅÒÅÐÏÌÎÅÎÉÅ" #: src/sweep_sample.c:407 msgid "Sweep: New file" msgstr "Sweep: îÏ×ÙÊ ÆÁÊÌ" #: src/sweep_sample.c:435 msgid "Name:" msgstr "éÍÑ:" #: src/sweep_sample.c:455 msgid "Duration:" msgstr "ðÒÏÄÏÌÖÉÔÅÌØÎÏÓÔØ:" #: src/sweep_sample.c:471 msgid "hh:mm:ss.xxx" msgstr "ÞÞ:ÍÍ:ÓÓ:xxx" #: src/sweep_sample.c:514 msgid "Remember this format" msgstr "úÁÐÏÍÎÉÔØ ÜÔÏÔ ÆÏÒÍÁÔ" #: src/sweep_sample.c:520 msgid "" "Remember this sampling rate and channel configuration for creating new files." msgstr "" "úÁÐÏÍÎÉØÔ ÜÔÏ ÚÎÁÞÅÎÉÅ ÞÁÓÔÏÔÙ ÄÉÓËÒÅÔÉÚÁÃÉÉ É ËÏÎÆÉÇÕÒÁÃÉÀ ËÁÎÁÌÏ× ÄÌÑ " "ÓÏÚÄÁÎÉÑ ÎÏ×ÙÈ ÆÁÊÌÏ×" #: src/sweep_sample.c:540 msgid "Reset to the last remembered format for new files." msgstr "÷ÅÒÎÕÔØÓÑ Ë ÐÏÓÌÅÄÎÅÍÕ ÚÁÐÏÍÎÅÎÎÏÍÕ ÆÏÒÍÁÔÕ ÎÏ×ÙÈ ÆÁÊÌÏ×" #: src/sweep_sample.c:551 msgid "Set to the default format for new files." msgstr "õÓÔÁÎÏ×ÉÔØ ÓÔÁÎÄÁÒÔÎÏÅ ÚÎÁÞÅÎÉÅ ÆÏÒÍÁÔÁ ÎÏ×ÙÈ ÆÁÊÌÏ×" #: src/sweep_sample.c:567 msgid "" "Indicates the amount of data memory which will be allocated for the selected " "duration and format. All audio data is processed internally in 32 bit " "floating point format." msgstr "" #: src/sweep_sample.c:582 msgid "Data memory:" msgstr "ïÂß£Í ÄÁÎÎÙÈ:" #: src/sweep_sample.c:594 msgid "Create" msgstr "óÏÚÄÁÔØ" #: src/sweep_sample.c:606 msgid "Don't create" msgstr "îÅ ÓÏÚÄÁ×ÁÔØ" #: src/sweep_sample.c:774 msgid "Excellent!!!" msgstr "÷ÅÌÉËÏÌÅÐÎÏ!!!" #: src/sweep_sample.c:796 msgid "Files unsaved" msgstr "æÁÊÌÙ ÎÅ ÓÏÈÒÁÎÅÎÙ" #: src/sweep_sample.c:797 msgid "" "Some files are unsaved. If you quit, all changes will be lost.\n" "\n" "Are you sure you want to quit?" msgstr "" "îÅËÏÔÏÒÙÅ ÆÁÊÌÙ ÎÅ ÓÏÈÒÁÎÅÎÙ.\n" "ðÒÉ ×ÙÈÏÄÅ ×ÓÅ ÉÚÍÅÎÅÎÉÑ ÂÕÄÕÔ ÐÏÔÅÒÑÎÙ.\n" "\n" "÷Ù Õ×ÅÒÅÎÙ, ÞÔÏ ÈÏÔÉÔÅ ×ÙÊÔÉ ÉÚ ÐÒÏÇÒÁÍÍÙ?" #: src/sweep_sample.c:800 src/sweep_sample.c:808 msgid "Don't quit" msgstr "îÅ ×ÙÈÏÄÉÔØ" #: src/sweep_sample.c:804 msgid "Files playing" msgstr "÷ÏÓÐÒÏÉÚ×ÏÄÉÍÙÅ ÆÁÊÌÙ" #: src/sweep_sample.c:805 msgid "" "No files are unsaved, but some files are currently playing.\n" "\n" "Are you sure you want to quit?" msgstr "" "÷ÓÅ ÆÁÊÌÙ ÓÏÈÒÁÎÅÎÙ, ÎÏ ÎÅËÏÔÏÒÙÅ ÉÚ ÎÉÈ\n" "ÓÅÊÞÁÓ ×ÏÓÐÒÏÉÚ×ÏÄÑÔÓÑ.\n" "÷Ù ÄÅÊÓÔ×ÉÔÅÌØÎÏ ÈÏÔÉÔÅ ×ÙÊÔÉ?" #: src/sweep_sample.c:1465 src/view.c:1206 msgid "Invert selection" msgstr "ðÅÒÅ×ÅÒÎÕÔØ ×ÙÄÅÌÅÎÉÅ" #: src/sweep_sample.c:1485 src/view.c:1214 src/view.c:1308 msgid "Select all" msgstr "÷ÙÄÅÌÉÔØ ×Ó£" #: src/sweep_sample.c:1505 src/view.c:1222 msgid "Select none" msgstr "îÉÞÅÇÏ ÎÅ ×ÙÄÅÌÑÔØ" #: src/sweep_sample.c:1525 msgid "Halve selection" msgstr "õÍÅÎØÛÉÔØ ×ÙÄÅÌÅÎÉÅ" #: src/sweep_sample.c:1545 msgid "Double selection" msgstr "õÄ×ÏÉÔØ ×ÙÄÅÌÅÎÉÅ" #: src/sweep_sample.c:1568 msgid "Selection left" msgstr "÷ÙÄÅÌÉÔØ ×ÌÅ×Ï" #: src/sweep_sample.c:1590 msgid "Selection right" msgstr "÷ÙÄÅÌÉÔØ ×ÐÒÁ×Ï" #: src/sweep_sample.c:1678 #, fuzzy, c-format msgid "Insert selection [" msgstr "ðÅÒÅ×ÅÒÎÕÔØ ×ÙÄÅÌÅÎÉÅ" #: src/sweep_sample.c:1731 #, fuzzy, c-format msgid "Subtract selection [" msgstr "õÄ×ÏÉÔØ ×ÙÄÅÌÅÎÉÅ" #: src/sweep_sample.c:1776 #, fuzzy, c-format msgid "Set selection [" msgstr "îÏ×ÏÅ ×ÙÄÅÌÅÎÉÅ" #: src/sweep_sample.c:1875 msgid "Sweep: File properties" msgstr "Sweep: ó×ÏÊÓÔ×Á ÆÁÊÌÁ" #: src/sweep_sample.c:1899 #, fuzzy msgid "Filename: " msgstr "éÍÑ ÆÁÊÌÁ:" #: src/sweep_sample.c:1901 #, fuzzy msgid "Sampling rate: " msgstr "þÁÓÔÏÔÁ ÄÉÓËÒÅÔÉÚÁÃÉÉ:" #: src/sweep_sample.c:1903 #, fuzzy msgid "Channels: " msgstr "ëÁÎÁÌÙ:" #: src/sweep_sample.c:1905 #, fuzzy msgid "Data memory: " msgstr "ïÂß£Í ÄÁÎÎÙÈ:" #: src/sweep_sample.c:1907 #, fuzzy msgid "Duration: " msgstr "ðÒÏÄÏÌÖÉÔÅÌØÎÏÓÔØ:" #: src/sweep_undo.c:327 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Do you want to continue editing this buffer?" msgstr "" "%s\n" " ÉÚÍÅÎÉÌÍÑ ÎÁ ÄÉÓËÅ.\n" "\n" "÷Ù ÈÏÔÉÔÅ ÐÒÏÄÏÌÖÉÔØ ÒÅÄÁËÔÉÒÏ×ÁÎÉÅ ÜÔÏÇÏ ÂÕÆÅÒÁ?" #: src/sweep_undo.c:332 msgid "Continue editing" msgstr "ðÒÏÄÏÌÖÉÔØ ÒÅÄÁËÔÉÒÏ×ÁÎÉÅ" #: src/sweep_undo.c:332 msgid "Reread from disk" msgstr "ðÅÒÅÞÉÔÁÔØ Ó ÄÉÓËÁ" #: src/sweep_undo.c:430 src/sweep_undo.c:488 msgid "Nothing to undo" msgstr "îÅÞÅÇÏ ÏÔÍÅÎÉÔØ" #: src/sweep_undo.c:511 src/sweep_undo.c:567 msgid "Nothing to redo" msgstr "îÅÞÅÇÏ ÐÏ×ÔÏÒÉÔØ" #: src/undo_dialog.c:159 msgid "Original data" msgstr "ðÅÒ×ÏÎÁÞÁÌØÎÙÅ ÄÁÎÎÙÅ" #: src/undo_dialog.c:344 msgid "Action" msgstr "äÅÊÓÔ×ÉÅ" #: src/undo_dialog.c:351 msgid "Sweep: History" msgstr "Sweep: éÓÔÏÒÉÑ ÉÚÍÅÎÅÎÉÊ" #: src/undo_dialog.c:393 src/view.c:548 src/view.c:1887 msgid "Undo" msgstr "ïÔÍÅÎÉÔØ" #: src/undo_dialog.c:401 src/view.c:552 src/view.c:1896 msgid "Redo" msgstr "ðÏ×ÔÏÒÉÔØ" #: src/undo_dialog.c:426 msgid "Revert to selected state" msgstr "÷ÅÒÎÕÔØÓÑ Ë ÏÔÍÅÞÅÎÎÏÍÕ ÕÒÏ×ÎÀ" #: src/undo_dialog.c:452 src/view.c:525 src/view.c:3402 msgid "Close" msgstr "úÁËÒÙÔØ" #: src/view.c:311 msgid "Duplicate to stereo" msgstr "ðÒÏÄÕÂÌÉÒÏ×ÁÔØ × ÓÔÅÒÅÏ" #: src/view.c:319 msgid "Duplicate to multichannel" msgstr "ðÒÏÄÕÂÌÉÒÏ×ÁÔØ × ÍÎÏÇÏËÁÎÁÌØÎÕÀ ÄÏÒÏÖËÕ" #: src/view.c:331 msgid "Swap left and right" msgstr "ðÏÍÅÎÑÔØ ÍÅÓÔÁÍÉ ÌÅ×ÙÊ É ÐÒÁ×ÙÊ ËÁÎÁÌÙ" #: src/view.c:371 msgid "Add/Remove channels" msgstr "äÏÂÁ×ÉÔØ/ÕÄÁÌÉÔØ ËÁÎÁÌÙ" #: src/view.c:454 src/view.c:1768 msgid "New ..." msgstr "îÏ×ÙÊ..." #: src/view.c:458 src/view.c:1775 msgid "Open ..." msgstr "ïÔËÒÙÔØ..." #: src/view.c:488 msgid "Open Recent" msgstr "" #: src/view.c:505 msgid "Save As ..." msgstr "óÏÈÒÁÎÉÔØ ËÁË..." #: src/view.c:517 msgid "Properties ..." msgstr "ó×ÏÊÓÔ×Á..." #: src/view.c:535 src/view.c:1136 msgid "Edit" msgstr "ðÒÁ×ËÁ" #: src/view.c:556 msgid "Show history ..." msgstr "ðÏËÁÚÁÔØ ÉÓÔÏÒÉÀ ÉÚÍÅÎÅÎÉÊ..." #: src/view.c:588 src/view.c:1172 msgid "Paste: Insert" msgstr "" #: src/view.c:592 src/view.c:1178 msgid "Paste: Mix" msgstr "" #: src/view.c:596 src/view.c:1184 msgid "Paste: Crossfade" msgstr "" #: src/view.c:600 msgid "Paste as New" msgstr "÷ÓÔÁ×ÉÔØ × ÎÏ×ÙÊ ÆÁÊÌ" #: src/view.c:608 msgid "Preview Cut/Cursor" msgstr "" #: src/view.c:612 msgid "Pre-roll to Cursor" msgstr "" #: src/view.c:626 msgid "Invert" msgstr "ðÅÒÅ×ÅÒÎÕÔØ" #: src/view.c:630 msgid "All" msgstr "÷Ó£" #: src/view.c:634 msgid "None" msgstr "îÉÞÅÇÏ" #: src/view.c:642 msgid "Halve" msgstr "õÍÅÎØÛÉÔØ" #: src/view.c:646 msgid "Double" msgstr "õÄ×ÏÉÔØ" #: src/view.c:650 msgid "Shift left" msgstr "óÄ×ÉÎÕÔØ ×ÌÅ×Ï" #: src/view.c:654 msgid "Shift right" msgstr "óÄ×ÉÎÕÔØ ×ÐÒÁ×Ï" #: src/view.c:659 msgid "View" msgstr "÷ÉÄ" #: src/view.c:666 src/view.c:2061 msgid "Autoscroll: follow playback cursor" msgstr "á×ÔÏÐÒÏËÒÕÔËÁ: ÓÌÅÄÏ×ÁÔØ ÚÁ ËÕÒÓÏÒÏÍ ÐÒÉ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÉ" #: src/view.c:684 msgid "Center" msgstr "ãÅÎÔÒ" #: src/view.c:692 src/view.c:1996 msgid "Zoom in" msgstr "ðÒÉÂÌÉÚÉÔØ" #: src/view.c:696 src/view.c:2005 msgid "Zoom out" msgstr "ïÔÄÁÌÉÔØ" #: src/view.c:700 src/view.c:1111 msgid "Zoom to selection" msgstr "õÍÅÓÔÉÔØ ×ÙÄÅÌÅÎÉÅ × ÏËÎÅ" #: src/view.c:706 msgid "Left" msgstr "ìÅ×ÙÊ" #: src/view.c:710 msgid "Right" msgstr "ðÒÁ×ÙÊ" #: src/view.c:715 src/view.c:1117 src/view.c:1276 msgid "Zoom normal" msgstr "ïÂÙÞÎÙÊ ×ÉÄ" #: src/view.c:719 src/view.c:1123 src/view.c:1282 src/view.c:1987 msgid "Zoom all" msgstr "ðÏËÁÚÁÔØ ×Ó£" #: src/view.c:723 msgid "1:1" msgstr "1:1" #: src/view.c:733 msgid "Remember as" msgstr "úÁÐÏÍÎÉÔØ ËÁË" #: src/view.c:752 src/view.c:783 msgid "Area 1" msgstr "ïÂÌÁÓÔØ 1" #: src/view.c:753 src/view.c:784 msgid "Area 2" msgstr "ïÂÌÁÓÔØ 2" #: src/view.c:754 src/view.c:785 msgid "Area 3" msgstr "ïÂÌÁÓÔØ 3" #: src/view.c:755 src/view.c:786 msgid "Area 4" msgstr "ïÂÌÁÓÔØ 4" #: src/view.c:756 src/view.c:787 msgid "Area 5" msgstr "ïÂÌÁÓÔØ 5" #: src/view.c:757 src/view.c:788 msgid "Area 6" msgstr "ïÂÌÁÓÔØ 6" #: src/view.c:758 src/view.c:789 msgid "Area 7" msgstr "ïÂÌÁÓÔØ 7" #: src/view.c:759 src/view.c:790 msgid "Area 8" msgstr "ïÂÌÁÓÔØ 8" #: src/view.c:760 src/view.c:791 msgid "Area 9" msgstr "ïÂÌÁÓÔØ 9" #: src/view.c:761 src/view.c:792 msgid "Area 10" msgstr "ïÂÌÁÓÔØ 10" #: src/view.c:765 msgid "Zoom to" msgstr "ðÒÉÂÌÉÚÉÔØ ÄÏ" #: src/view.c:798 msgid "Color scheme" msgstr "ã×ÅÔÏ×ÁÑ ÓÈÅÍÁ" #: src/view.c:804 msgid "Decoder Red" msgstr "" #: src/view.c:812 msgid "Orangeboom" msgstr "" #: src/view.c:820 msgid "Lame Yellow" msgstr "" #: src/view.c:828 msgid "Coogee Bay Blue" msgstr "" #: src/view.c:836 msgid "Blackwattle" msgstr "" #: src/view.c:844 msgid "Frigid" msgstr "" #: src/view.c:852 msgid "Radar" msgstr "" #: src/view.c:860 msgid "Bluescreen" msgstr "" #: src/view.c:872 src/view.c:1236 src/view.c:1322 msgid "New View" msgstr "ïÔËÒÙÔØ × ÎÏ×ÏÍ ÏËÎÅ" #: src/view.c:877 msgid "Sample" msgstr "óÅÍÐÌ" #: src/view.c:894 msgid "Resample ..." msgstr "éÚÍÅÎÉÔØ ÞÁÓÔÏÔÕ ÄÉÓËÒÅÔÉÚÁÃÉÉ..." #: src/view.c:903 msgid "Duplicate" msgstr "ðÒÏÄÕÂÌÉÒÏ×ÁÔØ" #: src/view.c:908 src/view.c:1192 msgid "Process" msgstr "üÆÆÅËÔÙ" #: src/view.c:917 msgid "Playback" msgstr "÷ÏÓÐÒÏÉÚ×ÅÄÅÎÉÅ" #: src/view.c:924 msgid "Configure audio device ..." msgstr "îÁÓÔÒÏÉÔØ ÁÕÄÉÏÕÓÔÒÏÊÓÔ×Ï..." #: src/view.c:934 msgid "Transport" msgstr "ôÒÁÎÓÐÏÒÔ" #: src/view.c:943 msgid "Go to start of file" msgstr "ðÅÒÅÊÔÉ Ë ÎÁÞÁÌÕ ÆÁÊÌÁ" #: src/view.c:949 msgid "Go to start of window" msgstr "ðÅÒÅÊÔÉ Ë ÎÁÞÁÌÕ ÏËÎÁ" #: src/view.c:954 msgid "Skip back" msgstr "ðÅÒÅÊÔÉ ÎÁÚÁÄ" #: src/view.c:959 msgid "Skip forward" msgstr "ðÅÒÅÊÔÉ ×ÐÅÒ£Ä" #: src/view.c:964 msgid "Go to end of window" msgstr "ðÅÒÅÊÔÉ Ë ËÏÎÃÕ ÏËÎÁ" #: src/view.c:969 msgid "Go to end of file" msgstr "ðÅÒÅÊÔÉ Ë ËÏÎÃÕ ÆÁÊÌÁ" #: src/view.c:978 msgid "Play selection" msgstr "÷ÏÓÐÒÏÉÚ×ÅÓÔÉ ×ÙÄÅÌÅÎÉÅ" #: src/view.c:984 msgid "Play sample" msgstr "÷ÏÓÐÒÏÉÚ×ÅÓÔÉ ÓÅÍÐÌ" #: src/view.c:990 msgid "Play note" msgstr "÷ÏÓÐÒÏÉÚ×ÅÓÔÉ ÎÏÔÕ" #: src/view.c:1009 msgid "Toggle monitoring" msgstr "ðÅÒÅËÌÀÞÉÔØ ÍÏÎÉÔÏÒÉÎÇ" #: src/view.c:1022 msgid "Toggle looping" msgstr "ðÅÒÅËÌÀÞÉÔØ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÅ × ÃÉËÌÅ" #: src/view.c:1034 msgid "Toggle muting" msgstr "ðÅÒÅËÌÀÞÉÔØ ÚÁÇÌÕÛÅÎÉÅ" #: src/view.c:1045 msgid "Toggle reverse playback" msgstr "ðÅÒÅËÌÀÞÉÔØ ÏÂÒÁÔÎÏÅ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÅ" #: src/view.c:1063 msgid "Pause" msgstr "ðÒÉÏÓÔÁÎÏ×ÉÔØ" #: src/view.c:1079 msgid "About MP3 export..." msgstr "ï ÜËÓÐÏÒÔÅ × MP3..." #: src/view.c:1085 msgid "About Sweep ..." msgstr "ï ÐÒÏÇÒÁÍÍÅ Sweep..." #: src/view.c:1249 src/view.c:1335 msgid "File properties ..." msgstr "ó×ÏÊÓÔ×Á ÆÁÊÌÁ..." #: src/view.c:1294 msgid "Paste" msgstr "÷ÓÔÁ×ÉÔØ" #: src/view.c:1791 msgid "Save as ..." msgstr "óÏÈÒÁÎÉÔØ ËÁË..." #: src/view.c:1811 msgid "Cut selection to clipboard" msgstr "÷ÙÒÅÚÁÔØ ×ÙÄÅÌÅÎÉÅ × ÂÕÆÅÒ ÏÂÍÅÎÁ" #: src/view.c:1821 msgid "Copy selection to clipboard" msgstr "óËÏÐÉÒÏ×ÁÔØ ×ÙÄÅÌÅÎÉÅ × ÂÕÆÅÒ ÏÂÍÅÎÁ" #: src/view.c:1832 msgid "Paste: insert clipboard at cursor position" msgstr "÷ÓÔÁ×ËÁ: ×ÓÔÁ×ÉÔØ ÂÕÆÅÒ ÏÂÍÅÎÁ × ÐÏÚÉÃÉÀ ËÕÒÓÏÒÁ" #: src/view.c:1843 msgid "Paste: mix clipboard in from cursor position" msgstr "÷ÓÔÁ×ËÁ: ÓÍÅÛÁÔØ ÓÉÇÎÁÌ ÉÚ ÂÕÆÅÒÁ ÏÂÍÅÎÁ Ó ÓÉÇÎÁÌÏÍ ÐÏ ÐÏÚÉÃÉÉ ËÕÒÓÏÒÁ" #: src/view.c:1854 msgid "Paste: fade clipboard in from cursor position" msgstr "" #: src/view.c:1924 #, fuzzy msgid "Hand tool" msgstr "\"ëÁÒÁÎÄÁÛ\"" #: src/view.c:1932 msgid "Selector tool" msgstr "éÎÓÔÒÕÍÅÎÔ ×ÙÄÅÌÅÎÉÑ" #: src/view.c:1944 msgid "\"Scrubby\" the scrub tool" msgstr "\"óËÒÅÂÙÛ\"" #: src/view.c:1954 msgid "Pencil tool" msgstr "\"ëÁÒÁÎÄÁÛ\"" #: src/view.c:1962 msgid "Noise tool" msgstr "" #: src/view.c:2052 msgid "Visible length" msgstr "" #: src/view.c:2171 msgid "Vertical zoom [Shift + Arrow Up/Down]" msgstr "÷ÅÒÔÉËÁÌØÎÏÅ ÍÁÓÛÔÁÂÉÒÏ×ÁÎÉÅ [Shift + Arrow Up/Down]" #: src/view.c:2301 msgid "Record ..." msgstr "úÁÐÉÓÁÔØ..." #: src/view.c:2377 msgid "Reverse mode playback (toggle)" msgstr "òÅÖÉÍ ÏÂÒÁÔÎÏÇÏ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÑ (ÐÅÒÅËÌÀÞÉÔØ)" #: src/view.c:2395 msgid "Loop mode playback (toggle)" msgstr "òÅÖÉÍ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÑ × ÃÉËÌÅ (ÐÅÒÅËÌÀÞÉÔØ)" #: src/view.c:2419 #, fuzzy msgid "Play all / Pause" msgstr "÷ÏÓÐÒÏÉÚ×ÅÓÔÉ ×Ó£ / ðÒÉÏÓÔÁÎÏ×ÉÔØ [Ctrl+Space]" #: src/view.c:2436 #, fuzzy msgid "Play selection / Pause" msgstr "÷ÏÓÐÒÏÉÚ×ÅÓÔÉ ×ÙÄÅÌÅÎÉÅ / ðÒÉÏÓÔÁÎÏ×ÉÔØ [Space]" #: src/view.c:2452 #, fuzzy msgid "Stop playback" msgstr "ïÓÔÁÎÏ×ÉÔØ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÅ [Enter]" #: src/view.c:2519 msgid "Muted playback (toggle)" msgstr "ðÒÉÇÌÕÛ£ÎÎÏÅ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÅ (ÐÅÒÅËÌÀÞÉÔØ)" #: src/view.c:2539 src/view.c:2557 msgid "Playback gain slider (volume)" msgstr "òÅÇÕÌÑÔÏÒ ÇÒÏÍËÏÓÔÉ ×ÏÓÐÒÏÉÚ×ÅÄÅÎÉÑ" #: src/view.c:2569 msgid "Monitor (toggle)" msgstr "íÏÎÉÔÏÒ (ÐÅÒÅËÌÀÞÉÔØ)" #: src/view.c:2587 msgid "SYNC" msgstr "" #: src/view.c:3144 #, c-format msgid "Remembered as area %d" msgstr "" #: src/view.c:3162 #, c-format msgid "No area remembered as %d" msgstr "" #: src/view.c:3165 #, c-format msgid "Zoomed to area %d" msgstr "" #: src/view.c:3347 src/view.c:3351 msgid "Scrub!" msgstr "" #: src/view.c:3347 src/view.c:3353 msgid "Ready" msgstr "çÏÔÏ×Ï" #: src/view.c:3399 #, c-format msgid "%s has been modified. Close anyway?" msgstr "æÁÊÌ \"%s\" ÉÚÍÅÎÉÌÓÑ. ÷Ó£ ÒÁ×ÎÏ ÚÁËÒÙÔØ?" #: src/view.c:3402 msgid "Don't close" msgstr "îÅ ÚÁËÒÙ×ÁÔØ" #: src/view.c:3449 src/view.c:3462 msgid "*" msgstr "*" #: src/view.c:3465 msgid "Empty" msgstr "ðÕÓÔÏÊ" #: plugins/byenergy/byenergy.c:58 msgid "Select regions above threshold" msgstr "÷ÙÄÅÌÉÔØ ÆÒÁÇÍÅÎÔÙ ×ÙÛÅ ÐÏÒÏÇÁ" #: plugins/byenergy/byenergy.c:59 msgid "" "Whether to select those regions lying above a given threshold or below it." msgstr "÷ÙÄÅÌÑÔØ ÌÉ ÆÒÁÇÍÅÎÔÙ ×ÙÛÅ, ÌÉÂÏ ÎÉÖÅ ÕËÁÚÁÎÎÏÇÏ ÐÏÒÏÇÁ" #: plugins/byenergy/byenergy.c:66 msgid "Resolution" msgstr "òÁÚÒÅÛÅÎÉÅ" #: plugins/byenergy/byenergy.c:67 msgid "Width of energy detection window (s)" msgstr "" #: plugins/byenergy/byenergy.c:73 msgid "Threshold" msgstr "ðÏÒÏÇ" #: plugins/byenergy/byenergy.c:74 msgid "Energy level to detect [0.0 - 1.0]" msgstr "" #: plugins/byenergy/byenergy.c:80 msgid "Minimum duration" msgstr "íÉÎÉÍÁÌØÎÁÑ ÐÒÏÄÏÌÖÉÔÅÌØÎÏÓÔØ" #: plugins/byenergy/byenergy.c:81 msgid "Shortest region of selection to detect (s)" msgstr "" #: plugins/byenergy/byenergy.c:87 msgid "Maximum interruption" msgstr "íÁËÓÉÍÁÌØÎÏÅ ÐÒÅÒÙ×ÁÎÉÅ" #: plugins/byenergy/byenergy.c:88 msgid "Longest length of sound above threshold to allow (s)" msgstr "" #: plugins/byenergy/byenergy.c:227 plugins/byenergy/byenergy.c:232 msgid "Select by energy" msgstr "" #: plugins/byenergy/byenergy.c:233 msgid "Select loud or quiet regions" msgstr "÷ÙÄÅÌÉÔØ ÇÒÏÍËÉÅ ÉÌÉ ÔÉÈÉÅ ÆÒÁÇÍÅÎÔÙ" #: plugins/echo/echo.c:53 msgid "Delay" msgstr "úÁÄÅÒÖËÁ" #: plugins/echo/echo.c:54 msgid "Time to delay by" msgstr "÷ÒÅÍÑ ÚÁÄÅÒÖËÉ" #: plugins/echo/echo.c:62 msgid "Gain with which to mix in delayed signal" msgstr "" #: plugins/echo/echo.c:107 plugins/echo/echo.c:113 msgid "Echo" msgstr "üÈÏ" #: plugins/echo/echo.c:114 msgid "Apply an echo to selected regions of a sample" msgstr "ðÒÉÍÅÎÉÔØ ÜÆÆÅËÔ ÜÈÁ Ë ×ÙÄÅÌÅÎÎÙÍ ÆÒÁÇÍÅÎÔÁÍ ÓÅÍÐÌÁ" #: plugins/normalise/normalise.c:128 plugins/normalise/normalise.c:133 msgid "Normalise" msgstr "îÏÒÍÁÌÉÚÏ×ÁÔØ" #: plugins/normalise/normalise.c:134 msgid "Alter the sample's amplitude to lie between 1.0 and -1.0" msgstr "ðÏÍÅÓÔÉÔØ ÁÍÐÌÉÔÕÄÕ ÓÅÍÐÌÁ × ÐÒÅÄÅÌÙ 1.0 É -1.0" #: plugins/reverse/reverse.c:129 plugins/reverse/reverse.c:134 #: plugins/reverse/reverse.c:140 msgid "Reverse" msgstr "ðÅÒÅ×ÅÒÎÕÔØ" #: plugins/reverse/reverse.c:141 msgid "Reverse selected regions of a sample" msgstr "ðÅÒÅ×ÅÒÎÕÔØ ×ÙÄÅÌÅÎÎÙÅ ÆÒÁÇÍÅÎÔÙ ÓÅÍÐÌÁ" #: plugins/example/example.c:37 plugins/example/example.c:86 msgid "With a fork" msgstr "÷ÉÌËÏÊ" #: plugins/example/example.c:38 msgid "With a spoon" msgstr "ìÏÖËÏÊ" #: plugins/example/example.c:39 msgid "With false teeth" msgstr "æÁÌØÛÉ×ÙÍ ÚÕÂÏÍ" #: plugins/example/example.c:40 msgid "With Nigel's bum" msgstr "úÁÄÎÉÃÅÊ îÁÊÄÖÅÌÁ" #: plugins/example/example.c:56 msgid "Flim" msgstr "" #: plugins/example/example.c:57 msgid "Should you manage your flim?" msgstr "" #: plugins/example/example.c:64 msgid "Beans" msgstr "âÏÂÙ" #: plugins/example/example.c:65 msgid "Method of eating beans" msgstr "óÐÏÓÏ ÐÏÅÄÁÎÉÑ ÂÏÂÏ×" #: plugins/example/example.c:72 msgid "Pants methodology" msgstr "óÐÏÓÏ ÛÔÁÎÏ×" #: plugins/example/example.c:73 msgid "How many pants should you wear per day?" msgstr "óËÏÌØËÏ ÛÔÁÎÏ× ×Ù ÏÄÅ×ÁÅÔÅ ÚÁ ÄÅÎØ?" #: plugins/example/example.c:122 plugins/example/example.c:129 msgid "Example Filter Region" msgstr "" #: plugins/example/example.c:130 msgid "An example filter region plugin" msgstr "" #: plugins/fade/fade.c:148 plugins/fade/fade.c:161 msgid "Fade in" msgstr "" #: plugins/fade/fade.c:156 plugins/fade/fade.c:177 msgid "Fade out" msgstr "" #: plugins/fade/fade.c:162 msgid "Apply a linear fade to the selection, fading in from silence" msgstr "" #: plugins/fade/fade.c:178 msgid "Apply a linear fade to the selection, fading out to silence" msgstr "" #~ msgid "Sweep: Load file" #~ msgstr "Sweep: ÏÔËÒÙÔØ ÆÁÊÌ" #~ msgid "Go to beginning [Ctrl+Home]" #~ msgstr "ðÅÒÅÊÔÉ Ë ÎÁÞÁÌÕ [Ctrl+Home]" #~ msgid "Go to the end [Ctrl+End]" #~ msgstr "ðÅÒÅÊÔÉ Ë ËÏÎÃÕ [Ctrl+End]" #~ msgid "About Sweep" #~ msgstr "ï ÐÒÏÇÒÁÍÍÅ Sweep" #~ msgid "Stereo (duplicate)" #~ msgstr "óÔÅÒÅÏ (ÐÒÏÄÕÂÌÉÒÏ×ÁÔØ)" #~ msgid "8 bit" #~ msgstr "8 ÂÉÔÏ×" #~ msgid "16 bit" #~ msgstr "16 ÂÉÔÏ×" #~ msgid "24 bit" #~ msgstr "24 ÂÉÔÁ" #~ msgid "32 bit" #~ msgstr "32 ÂÉÔÁ" sweep-0.9.3/po/Rules-quot0000644000175000017500000000337610777660173014034 0ustar useruser# Special Makefile rules for English message catalogs with quotation marks. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot .SUFFIXES: .insert-header .po-update-en en@quot.po-create: $(MAKE) en@quot.po-update en@boldquot.po-create: $(MAKE) en@boldquot.po-update en@quot.po-update: en@quot.po-update-en en@boldquot.po-update: en@boldquot.po-update-en .insert-header.po-update-en: @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ if cmp $$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 "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "creation of $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi en@quot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header en@boldquot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header mostlyclean: mostlyclean-quot mostlyclean-quot: rm -f *.insert-header sweep-0.9.3/po/el.gmo0000644000175000017500000012136210777670577013142 0ustar useruserÞ•ô¼¡\à)9á);*-W*0…*¶*$Î* ó*"ý* +(*+S+j+‚+›+8´+Fí+4,G,#],,ƒ,ž,(¢,&Ë,ò,õ,ø,û,--%-.- 5-?-S-Z-8^-—--·-Yå-?.F.N.U.\.c.j.q.x..†.Ž.9“.NÍ."/?/O/R/U/X/\/`/d/j/ „/ / ›/¨/¬/°/´/·/º/1½/'ï/00=%0c0l0 r0&|0£0·0Ç0 Í0Ú0õ0' 1–41Ë1Ô1 å1ð1 22)2.2HJ2 “2ž2¥2µ2 º2Ä2ß2ö233"3&3A3E3H3K37N3 †3“3¯3 µ3Á3à3è3ñ3÷3 þ3 44,4 =4I4 b4 n4{4 ‹4•4 ¥4°4 ¿4 Ì4×4Þ4 ï4 ù4535M5 a5k5n5q5t5x5|55†55£5 ½5Þ5ç5„ü5b6ä6 ö67" 7,7 B7¹O7 888888!8 $818 68 B8P8d8 j8 x8†8w‹89 9999999($9mM9»9Â9Ò9ä9ø9 : ":0:A:G:kW:Ã:È:'æ:;’;¤;©ª;_T<´<Í< Ô<á< ò<þ<h=Ll=¹>Â> Õ>à>!÷> ?4#?X?t?‘?­?Ä?Ô?å?ú?@@+@<@@@Q@W@h@x@}@‚@›@F³@ú@%A&A*A2A;A KAYA[rAÎAäAùA B$B¦e*åe;f\Lf ©f ³f ¾f Èf Òf Üf æf ðf úf g ggI#gZmg%Ègîgÿghhh hhhh :h FhQh`hdhhhlhohrh%uh/›hËhÓhKÚh&i .i9i/Biri†i•iži®iÈi.ãiªj½jÄj Újäj kk k)kEIkk ¦k±kÉk Ðk#Úkþkl0l?lPlXlvlzl}l€l=ƒlÁl(Òl ûl m-m Am Lm Wmcm lm wm‚mœm¯m¾m Ômámðmn n#n3n JnXngn pn ~n‹nªnÂnÚn ônþnooo oo oo?o#Eo+io •o¢o¦¿ozfpáp ùp q/qEq aqmqnrtrxr|r€rƒr†r‰r™r r¶rÎrärìrssy!s›s¢s¦sªs®s±s´s·s:¾suùsotvt Št"«t Ît"ïtu'u8u =uƒJuÎu(Öu(ÿu(v+v»v³Áv_uwÕw ówýw x x,x…5xO»x zz)z8z'Sz {zD†z*Ëz)öz, {"M{p{„{™{ ©{#¶{Ú{ð{|| |%|?| V| a| l|$|B²|õ|(ü|%})}1}@} [}"g}aŠ}ì} ~&~A~"]~'€~¨~°~Á~ß~æ~õ~5{MÉ%Ñ}÷u€(ˆ€±€z3® ¶  ÍÙì ý ‚‚ &‚1‚D‚T‚d‚u‚‹‚ ‚8±‚3ê‚2ƒQƒWƒ^ƒ pƒ|ƒ„,„B„ W„'c„‹„¡„¶„΄ à„ ë„ ù„………… 2…@…G…]…l…‰… …ª….»… ê… †!*†SL†) †ʆ͈ꈉ‰7‰J‰a‰%|‰ ¢‰:¬‰1ç‰:Š9TŠ+ŽŠºŠ Š-ÌŠ-úŠ (‹2‹#G‹ k‹x‹~‹…‹›‹ ²‹½‹Ï‹ã‹þ‹Œ"Œ(Œ…/ŒµŒ ½ŒÊŒ çŒ$ <] n&|£¾(Ð&ù, ŽMŽ,kŽ˜Ž ¨Ž4µŽêŽ )l8¥JªhõB^¡ ´"Õžø —‘ ¤‘±‘¹‘‘Ô‘3ñ‘%’#+’ O’!\’~’›’´’ Ã’ä’&ö’“9“Q“c“}“œ“!¶“÷Ø“Д0Ù•Š –•–¤—~À—£?˜³ã˜è—™V€š™×šq›y››˜›­›Æ›!Ü›þ›œœ7œQœ)Zœ„œ&Œœ-³œRᜂ4L·žž49žnžŸ#‡Ÿ «Ÿ¶ŸDÊŸ <& Bc ¦ (¹ â  û  ¡¡B#¡ f¡‡¡ Œ¡ –¡ ¡¨°¡Y¢j¢s¢{¢¢¡¢¥¢ ­¢º¢Ø¢Ý¢ç­pÏ—ŽNm¦É¢£Óê5Çæe}Xf1sÊP k+{‘Ðe¶,½3µ7žŠ_‚ô^Út|Çh€ {’ï™rÒ Œ¾uLÙ…¸aà~ÞĤäDÑÛOV&#¶ózÎ5’ª±âÌèHØZ ¬0c=È"S›2ýïFá³(alBoö¼Ü6…ñð;Ãä®7é!ݤwAì.åËÌâë㵕H\kBmæÕ¥Òã½nÝ g¸¢ZP‰„ÚrÔsE@GJwtÍÆ¦Ùj˜}9õp')xŒqºÔ‰oT+R*²Ë'¬«Uð!‹£°W%|†¨S¹iÁ‘Ÿ_‡”I=>?”)¥íÅ쨭®¯‡ñ#D[× –ÐX8bßEvˆQѯßÊ4¡cQŽÀôz ‚$4ꛩ«>N ë÷Méùá§:;<`™šYîKMIJÄÏœ×(*,-./0123yyWÛÖKû–—˜C©óè"Y¿xi^±²•A ¡~ÁÂÚ»Švqg´“íu°\Õ·9[VÆÞžøOú/‹<Ü·Îbl@³òÉà`U¼þ?ºîFƒLd6“ÿf†jªƒ]ÈR G»Í œ€ÂŸ¾¿À]ÓÖ$¹ò&h T8Øn´„ d-åÅ:çˆ%§üC --display Use the designated X display. --no-toolbox Do not show the toolbox window. -h --help Output this help. -v --version Output version info. 4000 Hz (Low quality) 8000 Hz (Narrowband voice quality) 11025 Hz 16000 Hz (Wideband voice quality) 22050 Hz 32000 Hz (Ultra-wideband voice quality) 44100 Hz (CD quality) 48000 Hz (DAT quality) 96000 Hz (High quality)"Scrubby" the scrub tool%s has changed on disk. Are you sure you want to save?%s has changed on disk. Do you want to continue editing this buffer?%s does not exist.%s exists. Overwrite?%s has been modified. Close anyway?*192000 Hz (Studio quality)1:1A short text description of the contentsA short text indication of music genreA3A4A5AboutAbout MP3 export...About Sweep ...About...ActionAdd noiseAdd/Remove channelsAlbum:AllAlter the sample's amplitude to lie between 1.0 and -1.0An example filter region pluginApply an echo to selected regions of a sampleAre you sure you want to revert %s to %s? All changes and undo information will be lost.Area 1Area 10Area 2Area 3Area 4Area 5Area 6Area 7Area 8Area 9Artist:AutoAutomatically select best encoding options for this file.Automatically select the encoding mode based on the sampling rate of the file.Autoscroll: follow playback cursorAverage bitrateB3B4B5Bb3Bb4Bb5BeansBitrate management engineBlackwattleBluescreenBy extensionC#3C#4C#5C3C4C5CBR with VAD and Discontinuous Transmission (DTX)CBR with Voice Activity Detection (VAD)CancelCenterChanges to device settings will take effect on next playback.ChannelsClearClipboardClipboard data has incompatible formatClipboard duration:Clipboard emptyCloseColor schemeConfigure audio device ...Constant bitrate (CBR)Constant bitrate (CBR) with no featuresContact information for the creators or distributors of the track. This could be a URL, an email address, the physical address of the producing label.Contact:Continue editingConversionConvert from %d to %d channelsConverterCoogee Bay BlueCopyCopy selection to clipboardCopyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'Copyright:CreateCreate new fileCropCrossfadeCurrent sample rate: %d HzCurrently: %d channelsCursor position (indicator)CustomCustom: CutCut selection to clipboardD#5D3D4D5DTX marks extended pauses with a minimum bitrate signalData memory:Date the track was recordedDate:Decoder RedDecoding %s Encoded by: %s %sDefaultDefaultsDelayDeleteDescription:DestinationDetermine File Type:Device bufferingDevice nameDirectory does not existDon't closeDon't createDon't crossfadeDon't mixDon't overwriteDon't quitDon't resampleDon't revertDon't saveDoubleDouble selectionDuplicateDuplicate from %d to %d channelsDuplicate to %d channelsDuplicate to multichannelDuplicate to stereoDuration:E3E4E5Eb3Eb4EchoEditEdit PCM sample valuesEmptyEnable bitrate managementEnable bitrate management engineEncodingEncoding complexity:Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file) using variable bitrate mode (VBR).Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file).Encoding quality:Encoding:End gainEnergy level to detect [0.0 - 1.0]Example Filter RegionExcellent!!!Export to MP3 format cannot legally be supported in free software due to patent licensing restrictions. Please use Ogg Vorbis format instead, which provides better quality and is free.ExtraF#3F#4F#5F3F4F5Fast forwardFileFile existsFile modifiedFile properties ...File:Files playingFiles unsavedFlimFor non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For VBR encoding, this sets the average bitrate.FrigidG#3G#4G#5G3G4G5GainGain with which to mix in delayed signalGenerate a random serial number for the Ogg bitstream. The number will change while this button is held down.Genre:Go to beginningGo to end of fileGo to end of windowGo to start of fileGo to start of windowGo to the endHack the planet!HalveHalve selectionHello, my name is Scrubby. Welcome to Sweep! Would you like to create a new file or load an existing file?HelpHigh latency / Fewer dropoutsHow many pants should you wear per day?HzISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-content/online/isrc_intro.html) for more information on ISRC numbers.ISRC:Indicates the amount of data memory which will be allocated for the selected duration and format. All audio data is processed internally in 32 bit floating point format.Indicates the total duration of the clipboard, which is the maximum length that will be pasted.Invalid encoding optionsInvertInvert phaseInvert selectionLame YellowLeftLibsndfile is a C library by Erik de Castro Lopo for reading and writing files containing sampled sound.License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL to a license such as a Creative Commons license ("www.creativecommons.org/blahblah/license.html") or the EFF Open Audio License ('distributed under the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/eff_oal.html for details'), etc.License:Load existing fileLoading %sLocate sounds directlyLocation where track was recordedLocation:Longest length of sound above threshold to allow (s)Loop mode playback (toggle)Loop mode recording (toggle)Low latency / More dropoutsMP3 export unsupportedMaximum bitrateMaximum bitrate:Maximum interruptionMetadataMethod of eating beansMinimum bitrate:Minimum durationMixMix down to monoMode:Monitor (toggle)Monitor output:MonoMoveMove regions in a sampleMuted playback (toggle)Name of the organization producing the track (i.e. the 'record label')Name:Narrowband ~8 kHz (telephone quality)NewNew ...New ViewNew sample rateNew selectionNo area remembered as %dNo files are unsaved, but some files are currently playing. Are you sure you want to quit?No selection to clearNo selection to copyNo selection to cutNo selection to deleteNo selection to processNo selection to record intoNoiseNoise toolNominal bitrate (ABR):NoneNormaliseNot stereoNothing to crop outNothing to redoNothing to undoNumber of Speex frames to pack into each Ogg packet. Higher values save space at low bitrates.OKOgg Vorbis encoding resultsOgg Vorbis is a high quality general purpose perceptual audio codec. It is free, open and unpatented.Ogg streamOgg stream serial number:Ogg, Speex, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.Ogg, Vorbis, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.OpenOpen ...OrangeboomOrganization:Original dataOutput channelsOverflowOverwritePants methodologyPastePaste as NewPaste insertPaste mixPaste xfadePaste: CrossfadePaste: InsertPaste: MixPaste: fade clipboard in from cursor positionPaste: insert clipboard at cursor positionPaste: mix clipboard in from cursor positionPausePencilPencil toolPerformer:Place the play marker on a sample. Click anywhere in a view to instantly move the playback position to that part of the sample.Play notePlay samplePlay selectionPlaybackPlayback gain slider (volume)Powered by libsndfilePre-roll to CursorPreview Cut/CursorPrevious soundProcessProperties ...QuadraphonicQualityQuitRadarRandomise PCM valuesRandomize!ReadyReady to recordRecord ...Record into selectionRecorded soundRedoRemember asRemember these encoding optionsRemember these optionsRemember this formatRemember this qualityRemember this sampling rate and channel configuration for creating new files.Remember this serial numberRemember this serial number for future re-use. USE OF THIS OPTION IS NOT RECOMMENDED. Each encoded file should have a different serial number; re-use of Ogg serial numbers in different files may create incompatabilities with streaming applications. This option is provided for bitstream engineering purposes only. If this option is not checked, new serial numbers will be randomly generated for each file encoded.Remembered as area %dRemove left channelRemove right channelReread from diskResampleResample ...Resample errorResample from %d Hz to %d HzResetReset to the last remembered device buffering.Reset to the last remembered device names.Reset to the last remembered encoding options.Reset to the last remembered format for new files.Reset to the last remembered quality.ResolutionReverseReverse mode playback (toggle)Reverse selected regions of a sampleRevertRevert fileRevert to selected stateRewindRightSampleSampling rateSampling rate:SaveSave As ...Save OptionsSave as %s cancelledSave as ...Saving %sScrubScrub!Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio by Erik de Castro Lopo SelectSelect allSelect by energySelect loud or quiet regionsSelect noneSelect regions above thresholdSelect regions of a sampleSelection leftSelection rightSelection: add/modify regionSelection: subtract regionSelector toolSet to default device buffering.Set to default device names.Set to default encoding options.Set to default quality.Set to the default format for new files.Shift leftShift rightShortest region of selection to detect (s)Should you manage your flim?Show history ...Skip backSkip forwardSome files are unsaved. If you quit, all changes will be lost. Are you sure you want to quit?SourceSpecify a maximum bitrate, useful for streaming applications. (Optional)Specify a minimum bitrate, useful for encoding for a fixed-size channel. (Optional)Specify a nominal bitrate. Attempt to encode at a bitrate averaging this.Speex encodingSpeex encoding resultsSpeex frames per Ogg packet:Speex is a high quality speech codec designed for voice over IP (VoIP) and file-based compression. It is free, open and unpatented.Start gainStereoStopSwapSwap channelsSwap left and rightSwap main and monitor devices.SweepSweep plugin API versionSweep versionSweep: Add/Remove channelsSweep: Duplicate channelSweep: File propertiesSweep: HistorySweep: Load Raw PCM optionsSweep: New fileSweep: Ogg Vorbis save optionsSweep: Paste crossfadeSweep: Paste mixSweep: RecordSweep: ResampleSweep: Save PCM optionsSweep: Save fileSweep: Speex save optionsThe artist generally considered responsible for the work. In popular music this is usually the performing band or singer. For classical music it would be the composer. For an audio book it would be the author of the original text.The artist(s) who performed the work. In classical music this would be the conductor, orchestra, soloists. In an audio book it would be the actor who did the reading. In popular music this is typically the same as the ARTIST and is omitted.The collection name to which this track belongsThe version field may be used to differentiate multiple versions of the same track title in a single collection. (e.g. remix info)This enables average bitrate mode (ABR). You must suggest a nominal average bitrate and may specify minimum and maximum bounds. For best results it is generally recommended that you use the variable bitrate 'encoding quality' control (above) instead.This is Sweep versionThis sets the encoding speed/quality tradeoff between 0 (faster encoding) and 10 (slower encoding)This slider allows you to mix the new recording in with the previous contents of the buffer. Set it to -inf dB to overwrite the previous sound.This slider allows you to reduce the level of the recorded sound. Set it to 0 dB to record without any reduction. Note that setting this to -inf dB will record silence.This tool allows you to select regions of a sample. You can then apply edits and effects to the: selected regions. Hold down shift whilst selecting to add discontinuous regions to the selection.This user interface by Conrad Parker, Copyright (C) 2002 CSIRO Australia. This user interface by Erik de Castro Lopo and Conrad Parker, Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO Australia. ThresholdTime to delay byTitle:Toggle loopingToggle monitoringToggle mutingToggle reverse playbackTrack/Work nameTransportUltra-wideband 32-48 kHzUnable to read %sUndoUnsupported encoding modeUntitledUsage: %s [option ...] [files ...] Use a different device for monitoringVAD generates low bitrate comfort noise to replace non-speechVBR allows the bitrate to adapt to the complexity of the speech, and handles pauses using VAD and DTXVBR allows the bitrate to adapt to the complexity of the speech.Valid options are: Variable bitrate (VBR)Variable bitrate (VBR) with all featuresVarying this slider controls the lag between cursor movements and playback. This is particularly noticeable when "scrubbing" during playback. Lower values improve responsiveness but may degrade audio quality on heavily-loaded systems.Version:Vertical zoom [Shift + Arrow Up/Down]ViewVorbis encodingWARNING: Build includes incomplete development code. Welcome to SweepWhen zoomed down to individual samples, click to editWhether to select those regions lying above a given threshold or below it.Wideband ~16 kHzWidth of energy detection window (s)With Nigel's bumWith a forkWith a spoonWith false teethWith this tool you can move selected regions of a sample.You are not allowed to write to %sZoomZoom allZoom inZoom in & outZoom in and out of a view. Click anywhere in a view to zoom in on that part of the sample. Hold down shift and click on the view to zoom out.Zoom normalZoom outZoom toZoom to selectionZoomed to area %dbpschannelshh:mm:ss.xxxhttp://sweep.sourceforge.net/kbpslibsamplerate errorProject-Id-Version: Sweep 0.8.1 Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/ POT-Creation-Date: 2008-04-11 15:11+0100 PO-Revision-Date: 2003-02-08 05:40+0200 Last-Translator: Dokianakis Fanis Language-Team: Greek MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 8bit --display ×ñÞóç ôçò óõãêåêñéìÝíçò ïèüíçò X. --no-toolbox Áðüêñõøç ôïõ ðáñáèýñïõ ôçò åñãáëåéïèÞêçò. -h --help Áðåéêüíéóç áõôÞò ôçò âïÞèåéáò. -v --version Áðåéêüíéóç ðëçñïöïñéþí Ýêäïóçò. 4000 Hz (×áìçëÞ ðïéüôçôá) 8000 Hz (Ðïéüôçôá öùíÞò óôåíÞò æþíçò) 11025 Hz 16000 Hz (Ðïéüôçôá åõñõæùíéêÞò öùíÞò) 22050 Hz 44100 Hz (Ðïéüôçôá õðåñ-åõñõæùíéêÞò öùíÞò) 44100 Hz (Ðïéüôçôá CD) 48000 Hz (Ðïéüôçôá DAT) 96000 Hz (ÕøçëÞ ðïéüôçôá)"Scrubby" ôï åñãáëåßï ãéá scrub%s Üëëáîå óôï äßóêï. ÈÝëåôå óßãïõñá íá ôï áðïèçêåýóåôå;%s Ý÷åé áëëÜîåé óôï äßóêï. ÈÝëåôå íá óõíå÷ßóåôå ôçí åðåîåñãáóßá áõôïý ôïõ buffer;Ôï %s äåí õðÜñ÷åéÔï %s õðÜñ÷åé Þäç. Íá ãñÜöôåß óå áõôü.Ôï %s Ý÷åé áëëÜîåé. Íá êëåßóåé;*192000 Hz (Ðïéüôçôá Óôïýíôéï)1 ðñïò 1Ìéá ìéêñÞ ðåñéãñáöÞ ôùí ðåñéå÷ïìÝíùíÌéá Ýíäåéîç ôïõ ìïõóéêïý ãÝíïõòA3A4A5ÐåñßÐåñß åîáãùãÞ MP3...Ðåñß Sweep ...Ðåñß...ÐñÜîçÐñïóèÞêç èïñýâïõÐñïóèÞêç/Áöáßñåóç êáíáëéþíÓõëëïãÞ:¼ëáÁëëáãÞ ôïõ ðëÜôïõò ôïõ äåßãìáôïò ìåôáîý ôùí ôéìþí 1.0 êáé -1.0¸íá ðáñÜäåéãìá áñèñþìáôïò ößëôñïõ ðåñéï÷ÞòÅöáñìïãÞ ìéáò ç÷ïý óôéò åðéëåãìÝíåò ðåñéï÷Ýò åíüò äåßãìáôïòÓßãïõñá íá åðéóôñÝøåôå ôï %s óôï%s; ¼ëåò ïé áëëáãÝò êáé ïé ðëçñïöïñßåò áíÜêôçóçò èá ÷áèïýí.Ðåñéï÷Þ 1Ðåñéï÷Þ 10Ðåñéï÷Þ 2Ðåñéï÷Þ 3Ðåñéï÷Þ 4Ðåñéï÷Þ 5Ðåñéï÷Þ 6Ðåñéï÷Þ 7Ðåñéï÷Þ 8Ðåñéï÷Þ 9ÊáëëéôÝ÷íçòÁõôüìáôïÁõôüìáôç åðéëïãÞ ôùí âÝëôéóôùí åðéëïãþí êùäéêïðïßçóçò ãéá áõôü ôï áñ÷åßï.ÅðéëÝãåé áõôüìáôá ôçí êáôÜóôáóç êùäéêïðïßçóçò ìå âÜóç ôï ñõèìü äåéãìáôïëçøßáò ôïõ áñ÷åßïõ.Áõôüìáôç êýëéóç: áêïëïõèÜ ôïí êÝñóïñáÌÝóïò ñõèìüò bitB3B4B5Bb3Bb4Bb5ÖáóüëéáÌç÷áíÞ äéá÷åßñçóçò ñõèìïý bitBlackwattleBluescreenÌÝóù êáôÜëçîçòC#3C#4C#5C3C4C5CBR ìå VAD êáé Áóõíå÷Þ ÌåôÜäïóç (DTX)CBR ìå Áíß÷íåõóç ÖùíçôéêÞò Äñáóôçñéüôçôáò (VAD)ÁêýñùóçÊÝíôñïÁëëáãÝò óôéò ñõèìßóåéò óõóêåõþí èá åíåñãïðïéçèïýí óôçí åðüìåíç áíáðáñáãùãÞ.ÊáíÜëéáÊáèáñéóìüòÐñü÷åéñïÔá äåäïìÝíá óôï ðñü÷åéñï åßíáé áóýìâáôçò ìïñöÞòÄéÜñêåéá ðñï÷åßñïõ:¶äåéï ðñü÷åéñïÊëåßóéìïÐáëÝôá ÷ñùìÜôùíÑýèìéóç óõóêåõÞò Þ÷ïõ ...Óôáèåñüò ñõèìüò bit (CBR):Óôáèåñüò ñõèìüò bit (CBR) ÷ùñßò ÷áñáêôçñéóôéêÜÐëçñïöïñßåò ãéá åðáöÞ ìå ôïõò äçìéïõñãïýò Þ ôïõ äéáêéíçôÝò ôïõ êïììáôéïý. Áõôü ìðïñåß íá åßíáé Ýíá URL, ìéá äéåýèõíóç email, ç öõóéêÞ äéåýèõíóç ôçòäéóêïãñáöéêÞò åôáéñßáò.ÅðáöÞ:ÓõíÝ÷åéá åðåîåñãáóßáòÌåôáôñïðÞÌåôáôñïðÞ áðü %d óå %d êáíÜëéáÌåôáôñïðÝáòCoogee Bay BlueÁíôéãñáöÞÁíôéãñáöÞ åðéëïãÞò óôï ðñü÷åéñïÁðüäïóç éäéïêôçóßáò, ð.÷., '2001 Nobody's Band' Þ '1999 Jack Moffitt'ÐíåõìáôéêÞ Éäéïêôçóßá:ÄçìéïõñãßáÄçìéïõñãßá íÝïõ áñ÷åßïõÊüøéìïCrossfadeÔñÝ÷ùí ñõèìüò äåéãìáôïëçøßáò: %d HzÁõôÞ ôç óôéãìÞ: %d êáíÜëéáÈÝóç êÝñóïñá (äåßêôçò)ÐñïóáñìïóìÝíïòÐñïóáñìïóìÝíïò: ÁðïêïðÞÁðïêïðÞ åðéëïãÞò óôï ðñü÷åéñïD#5D3D4D5Ôï DTX óçìåéþíåé ôéò ðáýóåéò ìå Ýíá åëÜ÷éóôïõ ñõèìïý bit óÞìáÌíÞìç äåäïìÝíùí:Ç çìåñïìçíßá ðïõ ç÷ïãñáöÞèçêå ôï êïììÜôéÇìåñïìçíßá:Decoder RedÁðïêùäéêïðïßçóç %s ÊùäéêïðïéÞèçêå áðü: %s %sÅî ïñéóìïýÅî ïñéóìïýÊáèõóôÝñçóçÄéáãñáöÞÐåñéãñáöÞ:ÐñïïñéóìüòÊáèïñéóìüò Ôýðïõ Áñ÷åßïõ:Buffering óõóêåõÞò¼íïìá óõóêåõÞòÏ öÜêåëïò äåí õðÜñ÷åé¼÷é êëåßóéìï¼÷é äçìéïõñãßáÍá ìç ãßíåé crossfadeÍá ìç ãßíåé ìßîç¼÷é åããñáöÞ¼÷é åãêáôÜëåéøç¼÷é åðáíáäåéãìáôïëÞøßá¼÷é åðéóôñïöÞ¼÷é áðïèÞêåõóçÄéðëÜóéáÄéðëÞ åðéëïãÞÄéðëáóéáóìüòÁíôéãñáöÞ áðü %d óå %d êáíÜëéáÁíôéãñáöÞ óå %d êáíÜëéáÁíôéãñáöÞ óå ðïëõöùíéêüÁíôéãñáöÞ óå óôÝñåïöùíéêïÄéÜñêåéá:E3E4E5Eb3Eb4Ç÷üÅðåîåñãáóßáÅðåîåñãáóßá ôéìþí PCM äåßãìáôïò¶äåéïÅíåñãïðïßçóç äéá÷åßñçóçò ñõèìïý bitÅíåñãïðïßçóç ìç÷áíÞò äéá÷åßñçóçò ñõèìïý bitÊùäéêïðïßçóçÐïëõðëïêüôçôá êùäéêïðïßçóçò:Ðïéüôçôá êùäéêïðïßçóçò ìåôáîý 0 (ç ÷áìçëüôåñç ðïéüôçôá, ôï ìéêñüôåñï áñ÷åßï) êáé 10 (ç õøçëüôåñç ðïéüôçôá, ôï ìåãáëýôåñï áñ÷åßï) ìå ÷ñÞóç ìåôáâëçôïõ ñõèìïý bit (VBR).Ðïéüôçôá êùäéêïðïßçóçò ìåôáîý 0 (ç ÷áìçëüôåñç ðïéüôçôá, ôï ìéêñüôåñï áñ÷åßï) (ç õøçëüôåñç ðïéüôçôá, ôï ìåãáëõôåñï áñ÷åßï).Ðïéüôçôá êùäéêïðïßçóçò:Êùäéêïðïßçóç:ÊÝñäïò ôÝëïõòÅðßðåäï åíÝñãåéáò ãéá íá åíôïðéóôåß [0.0 - 1.0]ÐáñÜäåéãìá Ößëôñïõ Ðåñéï÷ÞòÐåñßöçìá!!!Ç åîáãùãÞ ðñïò ôç ìïñöÞ MP3 äåí ìðïñåß íá óõìðåñéëçöèåß íüìéìá óå åëåýèåñï ëïãéóìéêü ëüãù ðåñéïñéóìþí ôçò Üäåéáò ðíåõìáôéêÞò éäéïêôçóßáò. Áíôß áõôïý, ðáñáêáëïýìå íá ÷ñçóéìïðïéÞóåôå ôç ìïñöÞ Ogg Vïrbis, ç ïðïßá ðáñÝ÷åé êáëýôåñç ðïéüôçôá êáé åßíáé åëåýèåñç.ÅîôñÜF#3F#4F#5F3F4F5ÃñÞãïñá ìðñïóôÜÁñ÷åßïÔï áñ÷åßï õðÜñ÷åé ÞäçÔï áñ÷åßï ôñïðïðïéÞèçêåÉäéüôçôåò áñ÷åßïõ ...Áñ÷åßï:Áñ÷åßá ðïõ áíáðáñÜãïíôáéÌç áðïèçêåõìÝíá áñ÷åßáFlimÃéá ìç-VBR (óôáèåñüò ñõèìüò bit) êùäéêïðïßçóç, áõôü èÝôåé ôï ìÝãéóôï ñõèìü. Ãéá êùäéêïðïßçóç VBR èÝôåé ôï ìÝóï ñõèìü bit.FrigidG#3G#4G#5G3G4G5ÊÝñäïòÊÝñäïò ìå ôï ïðïßï èá ãßíåé ìßîç ìå ôï êáèõóôåñïýìåíï óÞìáÄçìéïõñãßá åíüò ôõ÷áßïõ óåéñéáêïý áñéèìïý ãéá ôç ñïÞ bit Ogg. Ï áñéèìüò èá áëëÜæåé üóï åßíáé óå ðßåóç áõôü ôï êïõìðß.ÃÝíïò:ÅðéóôñïöÞ óôçí áñ÷ÞÌåôáêßíçóç óôï ôÝëïò ôïõ áñ÷åßïõÌåôáêßíçóç óôï ôÝëïò ôïõ ðáñáèýñïõÌåôáêßíçóç óôçí áñ÷Þ ôïõ áñ÷åßïõÌåôáêßíçóç óôçí áñ÷Þ ôïõ ðáñáèýñïõÌåôáêßíçóç óôï ôÝëïòHack the planet!ÌéóÞÌéóÞ åðéëïãÞÃåßá óáò, ôï üíïìá ìïõ åßíáé Scrubby. Êáëþò Þëèáôå óôï Sweep! ÈÝëåôå íá äçìéïõñãÞóåôå Ýíá íÝï áñ÷åßï Þ íá áíïßîåôå Ýíá ðñïûðÜñ÷ùí;ÂïÞèåéáÕøçëÞ êáèõóôÝñçóç / Ëéãüôåñåò áðïññßøåéòÐüóá óþâñáêá ðñÝðåé íá öïñÜôå ôçí çìÝñá;HzÁñéèìüò ISRC ôïõ êïììáôéïý· äåßôå ôçí åéóáãùãéêÞ óåëßäá (http://www.ifpi.org/site-content/online/isrc_intro.html) ãéá ðåñéóóüôåñåò ðëçñïöïñßåò.ISRC:ÁíáöÝñåé ôï ðïóü ôçò ìíÞìçò äåäïìÝíùí ðïõ èá äåóìåõôåß ãéá ôçí åðéëåãìÝíç äéÜñêåéá êáé ìïñöÞ. ¼ëá ôá ç÷çôéêÜ äåäïìÝíá åðåîåñãÜæïíôå åóùôåñéêÜ óå ìïñöÞ 32 bit êéíçôÞò õðïäéáóôïëÞò.Áðåéêïíßæåé ôçí ïëßêç äéÜñêåéá óôï ðñü÷åéñï, ç ïðïßá åßíáé ôï ìÝãéóôï ìÞêïò ðïõ èá åðéêêïëçèåß.¶êõñåò åðéëïãÝò êùäéêïðïßçóçòÁíáóôñïöÞÁíáóôñïöÞ öÜóçòÁíáóôñïöÞ åðéëïãÞòLame YellowÁñéóôåñÜÇ libsndfile åßíáé ìéá âéâëéïèÞêç ôçò C áðü ôïí Erik de Castro Lopo ãéá ôçí áíÜãíùóç êáé åããñáöÞ áñ÷åßùí ðïõ ðåñéÝ÷ïõí äåßãìáôá Þ÷ïõ.Ðëçñïöïñßåò Üäåéáò ÷ñÞóçò, ð÷ 'All Rights Reserved', 'Any Use Permitted', ÝíáURL ìå ôçí Üäåéá üðùò ç Creative Commons Üäåéá ("www.creativecommons.org/blahblah/license.html") Þ Áíïé÷ôÞ ¶äåéá ¹÷ïõ ôïõ EFF ('äéáíÝìåôå õðü ôïõò üñïõò ôçò Áíïé÷ôÞò ¶äåéáò ¹÷ïõ. ÂëÝðå http://www.eff.org/IP/Open_licenses/eff_oal.html ãéá ëåðôïìÝñåéåò'), êëð.¶äåéá ×ñÞóçò:¶íïéãìá áñ÷åßïõ¶íïéãìá ôïõ %sÊáôåõèåßáí åíôïðéóìüò Þ÷ùíÇ ôïðïèåóßá ðïõ ç÷ïãñáöÞèçêå ôï êïììÜôéÔïðïèåóßá:Ìåãáëýôåñï ìÞêïò ôïõ Þ÷ïõ ðÜíù áðü ôï êáôþöëé ðïõ èá åðéôñÝðåôáé (s)ÁíáðáñáãùãÞ êáôÜóôáóçò âñüã÷ïõ (äéáêüðôçò)Ç÷ïãñÜöçóç êáôÜóôáóçò âñüã÷ïõ (äéáêüðôçò)×áìçëÞ êáèõóôÝñçóç / Ðåñéóóüôåñåò áðïññßøåéòÄåí õðïóôçñßæåôáé ç åîáãùãÞ óå MP3ÌÝãéóôïò ñõèìüò bitÌÝãéóôïò ñõèìüò bit:ÌÝãéóôç äéáêïðÞMåôáäåäïìÝíáÌÝèïäïò ãéá ôçí êáôáíÜëùóç öáóïëéþíÅëÜ÷éóôïò ñõèìüò bit:ÅëÜ÷éóôç äéÜñêåéáÌßîçÌßîç óå ìïíïöùíéêüÊáôÜóôáóç:Ðáñáêïëïýèçóç (äéáêüðôçò)¸îïäïò ðáñáêïëïýèçóçò:ÌïíïöùíéêüÌåôáêßíçóçÌåôáêéíåß ðåñéï÷Ýò óå Ýíá äåßãìáÁðïóéùðçìÝíç áíáðáñáãùãÞ (äéáêüðôçò)¼íïìá ôïõ ïñãáíéóìïý ðïõ ðáñÜãåé ôï êïììÜôé ('ð.÷ ç äéóêïãñáöéêÞ')¼íïìá:ÓôåíÞ æþíç ~8000 Hz (ðïéüôçôá ôçëåöþíïõ)ÍÝïÍÝï ...ÍÝá ÁðåéêüíéóçÍÝïò ñõèìüò äåéãìáôïëçøßáòÍÝá åðéëïãÞÄåí õðÜñ÷åé óôç ìíÞìç ç ðåñéï÷Þ %dÄåí õðáñ÷ïõí ìç áðïèçêåõìÝíá áñ÷åßá, áëëÜ ìåñéêá áíáðáñÜãïíôáé. ÈÝëåôå óßãïõñá íá åãêáôáëåßøåôå;Êáììßá åðéëïãÞ ãéá êáèáñéóìüÊáììßá åðéëïãÞ ãéá áíôéãñáöÞÊáììßá åðéëïãÞ ãéá áðïêïðÞÊáììßá åðéëïãÞ ãéá äéáãñáöÞÄåí õðÜñ÷åé åðéëïãÞ ãéá êáôåñãáóßáÄåí õðÜñ÷åé åðéëïãÞ ãéá ç÷ïãñÜöçóç ìÝóáÈüñõâïòÅñãáëåßï èïñýâïõÏíïìáóôéêüò ñõèìüò bit (ABR):ÊáíÝíáÊáíïíéêïðïßçóç¼÷é óôåñåïöùíéêüÔßðïôá ãéá êüøéìïÔßðïôá ãéá íá îáíáåöáñìïóôåßÔßðïôá ãéá íá áíáêôçèåßÏ áñéèìüò ôùí ðëáéóßùí Speex ãéá áðïèÞêåõóç óå êÜèå ðáêÝôï Ogg. Õøçëüôåñåò ôéìÝò åîïéêïíïìïýí ÷þñï ìå ÷áìçëïýò ñõèìïýò bit.ÅíôÜîåéÁðïôåëÝóìáôá êùäéêïðïßçóçò Ogg VorbisÔï Ogg Vorbis åßíáé Ýíá áíôéëçðôéêü codec Þ÷ïõ ãåíéêÞò ÷ñÞóçò êáé õøçëÞò ðïéüôçôáò. Åßíáé äùñåÜí, áíïéêôü êáé ÷ùñßò ðáôÝíôåò.Ñåýìá (stream) OggÓåéñéáêüò áñéèìüò ñåýìáôïò (stream) Ogg:Ôï Ogg, ôï Speex, ôï ºäñõìá Xiph.org êáé ôá óÞìáôá ôïõò åßíáé óÞìáôá êáôáôåèÝí (tm) ôïõ Éäñýìáôïò Xiph.org. ×ñÞóÞ áõôþí ìå Üäåéá.Ôï Ogg, ôï Vorbis, ôï ºäñõìá Xiph.org êáé ôá óÞìáôá ôïõò åßíáé êáôáôåèÝí (tm) ôïõ Éäñýìáôïò Xiph.org. ×ñÞóç ôïõò ìå Üäåéá.¶íïéãìá¶íïéãìá ...OrangeboomÏñãáíéóìüò:Ðñùôüôõðá äåäïìÝíáÅîáãùãÞ êáíáëéþíÕðåñ÷åßëçóçÅããñáöÞÌåèïäïëïãßá óùâñÜêùíÅðéêüëëçóçÅðéêüëëçóç óáí ÍÝïÅðéêüëëçóç ìÝóáÅðéêüëëçóç ìßîçÅðéêüëëçóç xfadeÅðéêüëëçóç: CrossfadeÅðéêüëëçóç: ÅéóáãùãÞÅðéêüëëçóç: ÌßîçÅðéêüëëçóç: åîáóèÝíéóç ðñï÷åßñïõ áðü ôç èÝóç ôïõ êÝñóïñáÅðéêüëëçóç: åéóáãùãÞ ðñï÷åßñïõ óôç èÝóç ôïõ êÝñóïñáÅðéêüëëçóç: ìßîç ðñï÷åßñïõ áðü ôç èÝóç ôïõ êÝñóïñáÐáýóçÌïëýâéÅñãáëåßï ìïëõâéïýÅêôåëåóôÞò:Ôïðïèåôåßóôå ôï äåßêôç áíáðáñáãùãÞò óå Ýíá äåßãìá. Êëéê ïðïõäÞðïôå óå ìéá áðåéêüíéóç ãéá Üìåóç ìåôáêßíçóç ôçò èÝóçò áíáðáñáãùãÞò óå áõôü ôï ìÝñïò óôï äåßãìá.ÁíáðáñáãùãÞ íüôáòÁíáðáñáãùãÞ äåßãìáôïòÁíáðáñáãùãÞ åðéëïãÞòÁíáðáñáãùãÞÅðéëïãÝáò êÝñäïõò áíáðáñáãùãÞò (Ýíôáóç)Powered by libsndfileÅêêßíçóç óôï ÊÝñóïñáÄïêéìÞ ÁðïêïðÞò/ÊÝñóïñáÐñïçãïýìåíïò Þ÷ïòÊáôåñãáóßáÉäéüôçôåò ...ÔåôñáöùíéêüÐïéüôçôá¸îïäïòRadarÔõ÷áéïðïßçóç ôéìþí PCMÔõ÷áéïðïßçóç!¸ôïéìï¸ôïéìï ãéá ç÷ïãñÜöçóçÇ÷ïãñÜöçóç ...Ç÷ïãñÜöçóç ìÝóá óôçí åðéëïãÞÇ÷ïãñáöïýìåíïò Þ÷ïòÎáíáåöáñìïãÞÁðïìíçìüíåõóç ùòÁðïìíçìüíåõóç áõôþí ôùí åðéëïãþí êùäéêïðïßçóçòÁðïìíçìüíåõóç áõôþí ôùí åðéëïãþíÁðïìíçìüíåõóç áõôÞò ôçò ìïñöÞòÁðïìíçìüíåõóç áõôÞò ôçò ðïéüôçôáòÁðïìíçìüíåõóç áõôïý ôïõ ñõèìïý äåéãìáôïëÞøßáò êáé ñõèìßóåùí êáíáëéþí ãéá íÝá áñ÷åßáÁðïìíçìüíåõóç áõôïý ôïõ óåéñéáêïý áñéèìïýÁðïìíçìüíåõóç áõôïý ôïõ óåéñéáêïý áñéèìïý ãéá ìåëëïíôéêÞ ôïõ ÷ñÞóç. ÄÅÍ ÐÑÏÔÅÉÍÅÔÁÉ Ç ×ÑÇÓÇ ÁÕÔÇÓ ÔÇÓ ÅÐÉËÏÃÇÓ. ÊÜèå êùäéêïðïéçìÝíï áñ÷åßï ðñÝðåé íá Ý÷åé äéáöïñåôéêü óåéñéáêü áñéèìü·ç åðáíá÷ñçóéìïðïßçóç áõôþí ôùí áñéèìþí óå äéáöïñåôéêÜ áñ÷åßá ìðïñåß íá äçìéïõñãÞóåé áóõìâáôüôçôåò ìå åöáñìïãÝò ñïÞò (streaming). ÁõôÞ ç åðéëïãÞ ðáñÝ÷åôáé ìüíï ãéá ëüãïõò êáôáíüçóçò ôçò ìç÷áíéêÞò ôçò ñïÞò bit. ÅÜí äåí Ý÷åé åíåñãïðïÞèåß áõôÞ ç åðéëïãÞ, ôüôå ïé óåéñéáêïß áñéèìïß èá ðáñÜãïíôáé ôõ÷áßá ãéá êÜèå áñ÷åßï ðïõ êùäéêïðïéåßôå.Áðïìíçìüíåõóç óáí ðåñéï÷Þ %dÁöáßñåóç áñéóôåñïý êáíáëéïýÁöáßñåóç äåîéïý êáíáëéïýÅðáíÜãíùóç áðü ôï äßóêïÅðáíáäåéãìáôïëçøßáÅðáíáäåéãìáôïëçøßá ...ÓöÜëìá åðáíáäåéãìáôïëçøßáòÅðáíáäåéãìáôïëçøßá áðü %d Hz óå %d HzÅðáíáöïñÜÅðáíáöïñÜ óôï ôåëåõôáßï óôç ìíÞìç buffering ôçò óõóêåõÞò.ÅðáíáöïñÜ ôþí ðñïçãïýìåíùí ïíïìÜôùí ôùí óõóêåõþí.ÅðáíáöïñÜ ôùí ôåëåõôáßùí óôç ìíÞìç åðéëïãþí êùäéêïðïéçóçò.ÅðáíáöïñÜ óôç ôåëåõôáßá óôç ìíÞìç ìïñöÞ ãéá ôá íÝá áñ÷åßáÅðáíáöïñÜ ôçò ôåëåõôáßáò óôç ìíÞìç ðïéüôçôáÁíÜëõóçÁíáóôñïöÞÁíáðáñáãùãÞ áíÜóôñïöçò êáôÜóôáóçò (äéáêüðôçò)ÁíáóôñïöÞ åðéëåãìÝíùí ðåñéï÷þí åíüò äåßãìáôïòÅðéóôñïöÞÅðéóôñïöÞ óôï áñ÷åßïÅðéóôñïöÞ óôçí åðéëåãìåíç êáôÜóôáóçÃñÞãïñá ðßóùÄåîéÜÄåßãìáÑõèìüò äåéãìáôïëçøßáòÑõèìüò äåéãìáôïëçøßáò:ÁðïèÞêåõóçÁðïèÞêåõóç Ùò ...ÁðïèÞêåõóç ÅðéëïãþíÁðïèÞêåõóç ùò %s áêõñþèçêåÁðïèÞêåõóç ùò ...ÁðïèÞêåõóç ôïõ %sScrubScrub!Ìõóôéêüò Êïõíåëïêþäéêáò (ãíùóôüò óáí libsamplerate) åßíáé Ýíáò ÌåôáôñïðÝáò Ñõèìïý Äåéãìáôïëçøßáò ãéá Þ÷ï áðü ôïí Erik de Castro Lopo ÅðéëïãÞÅðéëïãÞ üëùíÅðéëïãÞ ìå âÜóç ôçí åíÝñãåéáÅðéëïãÞ ç÷çñþí Þ Þóõ÷ùí ðåñéï÷þíÅðéëïãÞ ôßðïôáÅðéëïãÞ ðåñéï÷þí ðÜíù áðü ôï êáôþöëéÅðéëïãÞ ðåñéï÷þí åíüò äåßãìáôïò.ÅðéëïãÞ áñéóôåñÜÅðéëïãÞ äåîéÜÅðéëïãÞ: ðñïóèÞêç/ôñïðïðïßçóç ðåñéï÷ÞòÅðéëïãÞ: áöáßñåóç ðåñéï÷ÞòÅñãáëåßï åðéëïãÞò×ñÞóç óáí åî ïñéóìïý buffering óõóêåýçò.×ñÞóç óáí åî ïñéóìïý ïíüìáôá óõóêåõþí.×ñÞóç óáí åî ïñéóìïý åðéëïãÝò êùäéêïðïßçóçò.×ñÞóç óáí åî ïñéóìïý ðïéüôçôá×ñÞóç óáí åî ïñéóìïý ìïñöÞ ãéá ôá íÝá áñ÷åßáÊýëéóç áñéóôåñÜÊýëéóç äåîéÜÌéêñüôåñç ðåñéï÷Þ ôçò åðéëïãÞò ãéá íá åíôïðéóôåß (s)Should you manage your flim?ÅìöÜíéóç éóôïñßáò ...ÐÞäçìá ðßóùÐÞäçìá ìðñïóôÜÌåñéêÜ áñ÷åßá äåí Ý÷ïõí áðïèçêåõôåß. ÅÜí öýãåôå èá ÷áèïýí üëåò ïé áëëáãÝò. ÈÝëåôå óßãïõñá íá åãêáôáëåßøåôå;ÐçãÞÊáèïñéóìüò åíüò ìÝãéóôïõ ñõèìïý, ÷ñÞóéìï ãéá åöáñìïãÝò ñïÞò. (Ðñïáéñåôéêü)Êáèïñéóìüò åíüò åëÜ÷éóôïõ ñõèìïý bit, ÷ñÞóéìï ãéá êùäéêïðïßçóç êáíáëéïý óôáèåñïý ìåãÝèïõò. (Ðñïáéñåôéêü)Êáèïñéóìüò åíüò ïíïìáóôéêïý ñõèìïý bit. ×ñÞóç áõôïý óáí ìÝóç ôéìÞ.Êùäéêïðïßçóç SpeexÁðïôåëÝóìáôá êùäéêïðïßçóçò SpeexÐëáßóéá Speex ãéá êÜèå ðáêÝôï Ogg:Ôï Speex åßíáé Ýíá codec öùíÞò õøçëÞò ðïéüôçôáò, ðïõ Ý÷åé ó÷åäéáóôåß ãéá öþíç ðÜíù óå IP (VoIP) êáé óõìðßåóç áñ÷åßùí. Åßíáé äùñåÜí, áíïéêôü êáé ÷ùñßò ðáôÝíôá.ÊÝñäïò áñ÷ÞòÓôåñåïöùíéêüÄéáêïðÞÅíáëëáãÞÅíáëëáãÞ êáíáëéþíÅíáëëáãÞ áñéóôåñïý ìå äåîéïýÅíáëëáãÞ ìåôáîý êýñéáò êáé óõóêåõÞò ðáñáêïëïýèçóçò.Sweep¸êäïóç API ôùí áñèñùìÜôùí ôïõ sweep¸êäïóç sweepSweep: ÐñïóèÞêç/Áöáßñåóç êáíáëéþíSweep: Äéðëáóéáóìüò êáíáëéïýSweep: Éäéüôçôåò áñ÷åßïõSweep: ÉóôïñßáSweep: ¶íïéãìá åðéëïãþí Ïìïý PCMSweep: ÍÝï áñ÷åßïSweep: åðéëïãÝò áðïèÞêåõóçò Ogg VorbisSweep: Åðéêüëëçóç crossfadeSweep: Åðéêüëëçóç ìßîçòSweep: Ç÷ïãñÜöçóçSweep: ÅðáíáäåéãìáôïëçøßáSweep: ÁðïèÞêåõóç åðéëïãþí PCMSweep: ÁðïèÞêåõóç áñ÷åßïõSweep: ÅðéëïãÝò áðïèÞêåõóçò SpeexÏ êáëëéôÝ÷íçò ðïõ åõèýíåôáé ãéá áõôü ôï Ýñãï. Óå äçìïöéëÞ ìïõóéêÞ åßíáé óõíÞèùò ôï óõãêñüôçìá Þ ï ôñáãïõäéóôÞò ðïõ ôï åêôåëåß. Óå êëáóóéêÞ ìïõóéêÞ èá ðñÝðåé íá åßíáé ï óõíèÝôçò. Ãéá Ýíá ç÷çôéêü âéâëßï èá åßíáé ï óõããñáöÝáò ôïõ ðñùôüôõðïõ êåéìÝíïõ.Ï êáëëéôÝ÷íçò(åò) ðïõ åêôÝëåóáí áõôü ôï Ýñãï. Óôç êëáóóéêÞ ìïõóéêÞ áõôüò èá ðñÝðåé íá åßíáé ï äéåõèõíôÞò, ïñ÷Þóôñá, óïëßóô. Óå Ýíá ç÷çôéêü âéâëßï åßíáé ï çèïðïéüò ðïõ ôï äéáâÜæåé. Óôç äçìïöéëÞ ìïõóéêÞ ôõðéêÜ åßíáé ôï ßäéï óá ôï êáëëéôÝ÷íç êáé ìðïñåß íá ðáñáëçöèåß.Ôï üíïìá ôçò óõëëïãÞò ðïõ áíÞêåé áõôü ôï êïììÜôéÔï ðåäßï ôçò Ýêäïóçò ìðïñåß íá ÷ñçóéìïðïéçèåß ãéá íá îå÷ùñßóïõìå åêäüóåéò ôïõ ßäéïõ êïììáôéïý óå ìéá óõëëïãÞ. (ð.÷. ãéá ðëçñïöïñßåò remix)Åíåñãïðïéåß ôçí êáôÜóôáóç ìÝóïõ ñõèìïý bit (ABR). ÐñÝðåé íá ðñïôåßíåôå Ýíá ïíïìáóôéêü ìÝóï ñõèìü bit êáé åÜí èÝëåôå Üíù êáé êÜôù üñéá. Ãéá êáëýôåñá áðïôÝëåóìáôá, ãåíéêÜ ðñïôåßíåôáé ç ÷ñÞóç, óôï ìåôáâëçôü ñõèìü bit, ôïõ åëÝã÷ïõ 'ðïéüôçôá êùäéêïðïßçóçò' (ðÜíù) áíôé áõôïý.Áõôü åßíáé ôï Sweep ÝêäïóçòÈÝôåé óôç êùäéêïðïßçóç, ôçí éóïññïðßá ìåôáîý ôá÷ýôçôáò/ðïéüôçôáò áðü 0 (ôá÷ýôåñç êùäéêïðïßçóç) åþò 10 (âñáäýôåñç êùäéêïðïßçóç)Áõôüò ï åðéëïãÝáò åðéôñÝðåé ôç ìßîç ìéáò íÝáò ç÷ïãñÜöçóçò ìÝóá óôá ðñïçãïýìåíá ðåñéå÷üìåíá ôçò ìíÞìçò. ÔïðïèÝôçóç óå -inf dB ãéá íá ðáñáãñáöåß ï ðñïçãïýìåíïò Þ÷ïò.Áõôüò ï åðéëïãÝáò åðéôñÝðåé ôçí ìåßùóç ôïõ åðéðÝäïõ ôïõ ç÷ïãñáöïýìåíïõ Þ÷ïõ. ÔïðïèÝôçóç óôï 0 dB ãéá ç÷ïãñÜöçóç ÷ùñßò ìåßùóç. Óçìåßùóç üôé üôáí åßíáé -inf dB èá ç÷ïãñáöçèåß óéùðÞ.Áõôü ôï åñãáëåßï åðéôñÝðåé ôçí åðéëïãÞ ðåñéï÷þí áðü Ýíá äåßãìá. ÌðïñåßôåÝðåéôá íá åöáñìüóåôå åðåîåñãáóßåò êáé åöÝ óôéò åðéëåãìÝíåò ðåñéï÷Ýò. ÊñáôÞóôå ðáôçìÝíï ôï Shift åíþ åðéëÝãåôå ãéá íá ðñïóèÝóåôå ìç óõíå÷Þò ðåñéï÷Ýò óôçí åðéëïãÞÁõôü ôï ðåñéâÜëëïí ÷ñÞóçò áðü ôï Conrad Parker, Copyright (C) 2002 CSIRO Áõóôñáëßáò. Áõôü ôï ðåñéâÜëëïí ÷ñÞóôç áðü ôï Erik de Castro Lopo êáé ôï Conrad Parker, Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO Áõóôñáëßáò. Êáôþöëé×ñüíïò ãéá êáèõóôÝñçóçÔßôëïò:Äéáêüðôçò åðáíÜëçøçòÄéáêüðôçò ðáñáêïëïýèçóçòÄéáêüðôçò áðïóéþðçóçòÄéáêüðôçò áíÜóôñïöçò áíáðáñáãùãÞò¼íïìá êïììáôéïý/ÝñãïõÌåôáöïñÜÕðåñ-åõñõæùíéêü 32-48 kHzÁäõíáìßá áíÜãíùóçò ôïõ %sÁíÜêôçóçÌç õðïóôçñéæüìåíç êáôÜóôáóç êùäéêïðïßçóçòÁíþíõìï×ñÞóç: %s [åðéëïãÝò ...] [áñ÷åßá ...] ×ñÞóç äéáöïñåôéêÞò óõóêåõÞò ãéá ðáñáêïëïýèçóçÔï VAD ðáñÜãåé Ýíá ÷áìçëïý ñõèìïý bit èüñõâï ðïõ áíôéêáèéóôåß ôï ìåñïò ÷ùñßò öùíÞ.Ôï VBR åðéôñÝðåé óôï ñõèìü bit íá ðñïóáñìïóôåß óôçí ðïëõðëïêüôçôá ôçò öùíÞò êáé ÷åéñßæåôáé ôéò ðáýóåéò ÷ñçóéìïðïéþíôáò VAD êáé VTXÔï VBR åðéôñÝðåé óôï ñõèìü bit íá ðñïóáñìïóôåß óôçí ðïëõðëïêüôçôá ôçò öùíÞò.¸ãêõñåò åðéëïãÝò åßíáé: Ìåôáâëçôüò ñõèìüò bit (VBR)Ìåôáâëçôüò ñõèìüò bit (VBR) ìå üëá ôá ÷áñáêôçñéóôéêÜÁõôüò ï åðéëïãÝáò åëÝã÷åé ôçí êáèõóôÝñçóç ìåôáîý ôùí êéíÞóåùí ôïõ êÝñóïñá êáé ôçò áíáðáñáãùãÞò. ÐáñáôÞñåßôáé éäéáßôåñá óôï "scrubbing" êáôÜ ôçíáíáðáñáãùãÞ ×áìçëÝò ôéìÝò âåëôéþíïõí ôçí áíôáðüêñéóç áëëÜ ìðïñÝß íá ìåéþóïõí ôçí ðïéüôçôá ôïõ Þ÷ïõ óå óõóôÞìáôá ìå ìåãÜëï öüñôï.¸êäïóç:ÊÜèåôï æïýì [Shift + Arrow Up/Down]ÁðåéêüíéóçÊùäéêïðïßçóç VorbisÐÑÏÅÉÄÏÐÏÉÇÓÇ: ÁõôÞ ç Ýêäïóç ðåñéÝ÷åé çìéôåëÞ, õðü áíÜðôõîç êþäéêá. Êáëþò Þëèáôå óôï Sweep¼ôáí ãßíåé æïýì óå ìåìïíïìÝíá äåßãìáôá, êëéê ãéá åðåîåñãáóßáÅÜí èá åðéëåãïýí ïé ðåñéï÷Ýò ðÜíù Þ êÜôù áðü Ýíá äåäïìÝíï êáôþöëé.Åõñõæùíéêü ~16 kHzÌÞêïò ôïõ ðáñáèýñïõ åíôïðéóìïý åíÝñãåéáòÌå ôï ðéóéíü ôïõ NáÀãêåëÌå ðçñïýíéÌå êïõôÜëéÌå øåýôéêá äüíôéáÌå áõôü ôï åñãáëåßï ìðïñåßôå íá ìåôáêéíÞóåôå åðéëåãìÝíåò ðåñéï÷Ýò.Äåí åðéôñÝðåôå íá ãñÜøåôå óôï %sÆïýìÆïýì üëùíÆïýì ìÝóáÆïýì ìÝóá & ÝîùÆïýì ìÝóá êáé Ýîù óôçí áðåéêüíéóç. Êëßê ïðïõäÞðïôå óå ìéá áðåéêüíéóç ãéá æïýì ðñïò ôá ìÝóá óå áõôü ôï ìÝñïò óôï äåßãìá. Ìå ðáôçìÝíï Shift êáé êëéê ãéá æïýì ðñïò ôá Ýîù.Æïýì óå êáíïíéêüÆïýì ÝîùÆïýì óåÆïýì óôçí åðéëïãÞÆïýì óôç ðåñéï÷Þ %dbpsÊáíÜëéáùù:ëë:ää.÷÷÷http://sweep.sourceforge.net/kbpsóöÜëìá libsampleratesweep-0.9.3/po/fr.po0000644000175000017500000013233110777670576013002 0ustar useruser# fr.po # Copyright (C) 2000 Free Software Foundation, Inc. # Mathieu ROY , 2000. # #: src/sample-display.c:222 msgid "" msgstr "" "Project-Id-Version: sweep-0.0.8\n" "Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/\n" "POT-Creation-Date: 2008-04-11 15:11+0100\n" "PO-Revision-Date: 2000-05-04 21:54+0100\n" "Last-Translator: Mathieu ROY \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8-bit\n" #: src/main.c:89 msgid "Welcome to Sweep" msgstr "" #: src/main.c:90 msgid "" "Hello, my name is Scrubby. Welcome to Sweep!\n" "\n" "Would you like to create a new file or load an existing file?" msgstr "" #: src/main.c:94 #, fuzzy msgid "Create new file" msgstr "Coller" #: src/main.c:94 msgid "Load existing file" msgstr "" #: src/main.c:129 msgid "WARNING: Build includes incomplete development code.\n" msgstr "" #: src/main.c:188 msgid "Sweep version" msgstr "version" #: src/main.c:189 #, fuzzy msgid "Sweep plugin API version" msgstr "version" #: src/main.c:195 #, c-format msgid "Usage: %s [option ...] [files ...]\n" msgstr "Usage: %s [option ...] [fichier ...]\n" #: src/main.c:196 msgid "Valid options are:\n" msgstr "Options:\n" #: src/main.c:197 msgid " -h --help Output this help.\n" msgstr " -h --help Affiche cet aide.\n" #: src/main.c:198 msgid " -v --version Output version info.\n" msgstr " -v --version Affiche les infos sur la version.\n" #: src/main.c:199 msgid " --display Use the designated X display.\n" msgstr " --display Utilise l'affichage X dsign.\n" #: src/main.c:200 msgid "" " --ignore-failed-lock Continue when attempt to lock the\n" " preferences file fails. For use when\n" " the users home directory is on an NFS\n" " file system. (possibly unsafe) \n" msgstr "" #: src/main.c:206 msgid " --no-toolbox Do not show the toolbox window.\n" msgstr "" #: src/about_dialog.c:99 #, fuzzy msgid "This is Sweep version" msgstr "version" #: src/about_dialog.c:119 msgid "http://sweep.sourceforge.net/" msgstr "" #: src/callbacks.c:926 src/callbacks.c:939 src/edit.c:1568 src/edit.c:1642 #: src/edit.c:1726 msgid "Clipboard empty" msgstr "" #: src/channelops.c:146 #, fuzzy, c-format msgid "Duplicate to %d channels" msgstr "Dupliquer" #: src/channelops.c:148 #, c-format msgid "Duplicate from %d to %d channels" msgstr "" #: src/channelops.c:207 #, fuzzy msgid "Sweep: Duplicate channel" msgstr "Coller" #: src/channelops.c:214 src/channelops.c:698 #, c-format msgid "Currently: %d channels" msgstr "" #: src/channelops.c:221 src/channelops.c:704 msgid "Output channels" msgstr "" #: src/channelops.c:231 src/channelops.c:714 src/driver.c:374 #: src/file_sndfile1.c:285 src/param.c:779 src/question_dialogs.c:144 #: src/question_dialogs.c:204 src/question_dialogs.c:253 #: src/sweep_sample.c:1918 src/undo_dialog.c:440 msgid "OK" msgstr "" #: src/channelops.c:242 src/channelops.c:725 src/driver.c:387 #: src/file_sndfile1.c:295 src/param.c:788 src/question_dialogs.c:158 #: src/view.c:543 src/view.c:2650 msgid "Cancel" msgstr "" #: src/channelops.c:347 src/view.c:361 msgid "Mix down to mono" msgstr "" #: src/channelops.c:445 src/view.c:340 msgid "Remove left channel" msgstr "" #: src/channelops.c:455 src/view.c:349 msgid "Remove right channel" msgstr "" #: src/channelops.c:539 msgid "Swap channels" msgstr "" #: src/channelops.c:541 #, fuzzy msgid "Not stereo" msgstr "Stro" #: src/channelops.c:643 #, c-format msgid "Convert from %d to %d channels" msgstr "" #: src/channelops.c:692 msgid "Sweep: Add/Remove channels" msgstr "" #: src/driver.c:369 msgid "Sweep: audio device configuration" msgstr "" #: src/driver.c:410 msgid "Changes to device settings will take effect on next playback." msgstr "" #: src/driver.c:424 #, fuzzy msgid "Device name" msgstr "Fichier" #: src/driver.c:430 msgid "Set the main device for playback and recording" msgstr "" #: src/driver.c:440 msgid "Main device:" msgstr "" #: src/driver.c:454 src/driver.c:636 src/samplerate.c:570 #, fuzzy msgid "Default" msgstr "Supprimer" #: src/driver.c:467 msgid "Use a different device for monitoring" msgstr "" #: src/driver.c:479 msgid "Monitor output:" msgstr "" #: src/driver.c:504 #, fuzzy msgid "Swap" msgstr "Sweep" #: src/driver.c:512 msgid "Swap main and monitor devices." msgstr "" #: src/driver.c:521 src/driver.c:622 src/file_speex.c:1957 #: src/file_vorbis.c:1348 src/samplerate.c:556 src/sweep_sample.c:532 #, fuzzy msgid "Reset" msgstr "Revenir" #: src/driver.c:529 msgid "Reset to the last remembered device names." msgstr "" #: src/driver.c:535 src/file_speex.c:1971 src/file_vorbis.c:1362 #: src/param.c:747 src/sweep_sample.c:543 msgid "Defaults" msgstr "" #: src/driver.c:543 msgid "Set to default device names." msgstr "" #: src/driver.c:554 msgid "Device buffering" msgstr "" #: src/driver.c:564 msgid "" "Low latency /\n" "More dropouts" msgstr "" #: src/driver.c:586 msgid "" "High latency /\n" "Fewer dropouts" msgstr "" #: src/driver.c:590 msgid "" "Varying this slider controls the lag between cursor movements and playback. " "This is particularly noticeable when \"scrubbing\" during playback.\n" "\n" "Lower values improve responsiveness but may degrade audio quality on heavily-" "loaded systems." msgstr "" #: src/driver.c:609 msgid "Remember these options" msgstr "" #: src/driver.c:630 msgid "Reset to the last remembered device buffering." msgstr "" #: src/driver.c:644 msgid "Set to default device buffering." msgstr "" #: src/edit.c:1291 #, fuzzy msgid "No selection to copy" msgstr "Boucle sur la slection" #: src/edit.c:1308 src/view.c:572 src/view.c:1150 msgid "Copy" msgstr "Copier" #: src/edit.c:1342 #, fuzzy msgid "No selection to cut" msgstr "Boucle sur la slection" #: src/edit.c:1358 src/view.c:568 src/view.c:1144 msgid "Cut" msgstr "Couper" #: src/edit.c:1388 #, fuzzy msgid "No selection to clear" msgstr "Boucle sur la slection" #: src/edit.c:1404 src/view.c:576 src/view.c:1156 msgid "Clear" msgstr "Effacer" #: src/edit.c:1430 #, fuzzy msgid "No selection to delete" msgstr "Slection" #: src/edit.c:1447 src/view.c:564 msgid "Delete" msgstr "Supprimer" #: src/edit.c:1482 msgid "Nothing to crop out" msgstr "" #: src/edit.c:1498 src/view.c:580 src/view.c:1162 src/view.c:1868 #, fuzzy msgid "Crop" msgstr "Copier" #: src/edit.c:1572 src/edit.c:1646 src/edit.c:1730 msgid "Clipboard data has incompatible format" msgstr "" #: src/edit.c:1590 #, fuzzy msgid "Paste insert" msgstr "Coller en tant que Nouveau" #: src/edit.c:1669 #, fuzzy msgid "Paste mix" msgstr "Coller" #: src/edit.c:1757 #, fuzzy msgid "Paste xfade" msgstr "Coller en tant que Nouveau" #: src/file_dialogs.c:73 msgid "MP3 export unsupported" msgstr "" #: src/file_dialogs.c:74 msgid "" "Export to MP3 format cannot legally be supported in free software\n" "due to patent licensing restrictions.\n" "\n" "Please use Ogg Vorbis format instead, which\n" "provides better quality and is free." msgstr "" #: src/file_dialogs.c:99 msgid "Raw PCM (headerless)" msgstr "" #: src/file_dialogs.c:157 #, c-format msgid "%s does not exist." msgstr "" #: src/file_dialogs.c:158 msgid "Directory does not exist" msgstr "" #: src/file_dialogs.c:262 #, c-format msgid "" "Unable to read\n" "%s" msgstr "" #: src/file_dialogs.c:289 #, fuzzy msgid "Sweep: Open Files" msgstr "Coller" #: src/file_dialogs.c:370 #, c-format msgid "" "Are you sure you want to revert %s to\n" "%s?\n" "\n" "All changes and undo information will be lost." msgstr "" #: src/file_dialogs.c:374 #, fuzzy msgid "Revert file" msgstr "Revenir" #: src/file_dialogs.c:375 src/view.c:509 msgid "Revert" msgstr "Revenir" #: src/file_dialogs.c:375 msgid "Don't revert" msgstr "" #: src/file_dialogs.c:545 src/file_dialogs.c:824 #, c-format msgid "Save as %s cancelled" msgstr "" #: src/file_dialogs.c:582 msgid "By extension" msgstr "" #: src/file_dialogs.c:640 msgid "MP3 (Use Ogg Vorbis instead)" msgstr "" #: src/file_dialogs.c:707 #, fuzzy msgid "Sweep: Save file" msgstr "Coller" #: src/file_dialogs.c:721 msgid "Save Options" msgstr "" #: src/file_dialogs.c:730 msgid "Determine File Type:" msgstr "" #: src/file_dialogs.c:810 #, c-format msgid "" "You are not allowed to write to\n" "%s" msgstr "" #: src/file_dialogs.c:812 #, c-format msgid "%s exists. Overwrite?" msgstr "" #: src/file_dialogs.c:814 msgid "File exists" msgstr "" #: src/file_dialogs.c:815 msgid "Overwrite" msgstr "" #: src/file_dialogs.c:815 msgid "Don't overwrite" msgstr "" #: src/file_dialogs.c:887 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Are you sure you want to save?" msgstr "" #: src/file_dialogs.c:891 src/sweep_undo.c:331 src/view.c:3401 msgid "File modified" msgstr "" #: src/file_dialogs.c:892 src/file_speex.c:2127 src/file_vorbis.c:1611 #: src/view.c:501 src/view.c:1782 msgid "Save" msgstr "Enregistrer..." #: src/file_dialogs.c:892 src/file_speex.c:2138 src/file_vorbis.c:1622 msgid "Don't save" msgstr "" #: src/file_sndfile1.c:327 msgid "Powered by libsndfile" msgstr "" #: src/file_sndfile1.c:354 msgid "Encoding" msgstr "" #: src/file_sndfile1.c:375 msgid "Encoding:" msgstr "" #: src/file_sndfile1.c:447 #, fuzzy msgid "Sampling rate:" msgstr "Fichier" #: src/file_sndfile1.c:480 src/file_speex.c:2078 src/file_vorbis.c:1562 #: src/samplerate.c:584 #, fuzzy msgid "About" msgstr "A propos..." #: src/file_sndfile1.c:496 msgid "" "Libsndfile is a C library by Erik de Castro Lopo\n" "for reading and writing files containing sampled sound." msgstr "" #: src/file_sndfile1.c:507 msgid "" "This user interface by Erik de Castro Lopo\n" " and Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" #: src/file_sndfile1.c:550 #, fuzzy msgid "Sweep: Save PCM options" msgstr "version" #: src/file_sndfile1.c:719 msgid "Sweep: Load Raw PCM options" msgstr "" #: src/file_sndfile1.c:771 src/file_mad.c:435 src/file_speex.c:577 #: src/file_vorbis.c:324 #, c-format msgid "Loading %s" msgstr "" #: src/file_sndfile1.c:998 src/file_speex.c:1074 src/file_vorbis.c:702 #, c-format msgid "Saving %s" msgstr "" #: src/file_speex.c:1016 src/file_speex.c:1036 msgid "Speex encoding results" msgstr "" #: src/file_speex.c:1208 msgid "Narrowband ~8 kHz (telephone quality)" msgstr "" #: src/file_speex.c:1209 msgid "Wideband ~16 kHz" msgstr "" #: src/file_speex.c:1211 msgid "Ultra-wideband 32-48 kHz" msgstr "" #: src/file_speex.c:1218 msgid "Constant bitrate (CBR) with no features" msgstr "" #: src/file_speex.c:1221 msgid "CBR with Voice Activity Detection (VAD)" msgstr "" #: src/file_speex.c:1222 msgid "VAD generates low bitrate comfort noise to replace non-speech" msgstr "" #: src/file_speex.c:1225 msgid "CBR with VAD and Discontinuous Transmission (DTX)" msgstr "" #: src/file_speex.c:1226 msgid "DTX marks extended pauses with a minimum bitrate signal" msgstr "" #: src/file_speex.c:1229 msgid "Variable bitrate (VBR) with VAD" msgstr "" #: src/file_speex.c:1230 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech; this " "selection uses VBR without DTX, which may improve performance compared to " "full VBR in the presence of background noise." msgstr "" #: src/file_speex.c:1235 msgid "Variable bitrate (VBR) with all features" msgstr "" #: src/file_speex.c:1236 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech, and handles " "pauses using VAD and DTX" msgstr "" #: src/file_speex.c:1240 msgid "Constant bitrate (CBR)" msgstr "" #: src/file_speex.c:1242 msgid "Variable bitrate (VBR)" msgstr "" #: src/file_speex.c:1243 msgid "VBR allows the bitrate to adapt to the complexity of the speech." msgstr "" #: src/file_speex.c:1298 src/file_speex.c:1803 msgid "Average bitrate" msgstr "" #: src/file_speex.c:1301 msgid "Maximum bitrate" msgstr "" #: src/file_speex.c:1494 src/file_vorbis.c:1013 msgid "Hack the planet!" msgstr "" #: src/file_speex.c:1580 #, fuzzy msgid "Sweep: Speex save options" msgstr "version" #: src/file_speex.c:1631 msgid "Speex encoding" msgstr "" #: src/file_speex.c:1644 #, fuzzy msgid "Mode:" msgstr "Dplacer" #: src/file_speex.c:1670 #, fuzzy msgid "Auto" msgstr "A propos..." #: src/file_speex.c:1679 msgid "" "Automatically select the encoding mode based on the sampling rate of the " "file." msgstr "" #: src/file_speex.c:1732 src/file_vorbis.c:1160 msgid "Encoding quality:" msgstr "" #: src/file_speex.c:1775 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file)." msgstr "" #: src/file_speex.c:1785 msgid "Enable bitrate management" msgstr "" #: src/file_speex.c:1798 msgid "" "For non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For " "VBR encoding, this sets the average bitrate." msgstr "" #: src/file_speex.c:1821 msgid "bps" msgstr "" #: src/file_speex.c:1827 msgid "Extra" msgstr "" #: src/file_speex.c:1849 msgid "Encoding complexity:" msgstr "" #: src/file_speex.c:1888 msgid "" "This sets the encoding speed/quality tradeoff between 0 (faster encoding) " "and 10 (slower encoding)" msgstr "" #: src/file_speex.c:1904 msgid "Speex frames per Ogg packet:" msgstr "" #: src/file_speex.c:1930 msgid "" "Number of Speex frames to pack into each Ogg packet. Higher values save " "space at low bitrates." msgstr "" #: src/file_speex.c:1945 src/file_vorbis.c:1336 msgid "Remember these encoding options" msgstr "" #: src/file_speex.c:1965 src/file_vorbis.c:1356 msgid "Reset to the last remembered encoding options." msgstr "" #: src/file_speex.c:1980 msgid "Automatically select best encoding options for this file." msgstr "" #: src/file_speex.c:1985 src/file_vorbis.c:1469 msgid "Ogg stream" msgstr "" #: src/file_speex.c:1998 src/file_vorbis.c:1482 msgid "Ogg stream serial number:" msgstr "" #: src/file_speex.c:2019 src/file_vorbis.c:1503 msgid "Remember this serial number" msgstr "" #: src/file_speex.c:2029 src/file_vorbis.c:1513 msgid "" "Remember this serial number for future re-use.\n" "USE OF THIS OPTION IS NOT RECOMMENDED.\n" "Each encoded file should have a different serial number; re-use of Ogg " "serial numbers in different files may create incompatabilities with " "streaming applications. This option is provided for bitstream engineering " "purposes only.\n" "If this option is not checked, new serial numbers will be randomly generated " "for each file encoded." msgstr "" #: src/file_speex.c:2056 src/file_vorbis.c:1540 msgid "Randomize!" msgstr "" #: src/file_speex.c:2063 src/file_vorbis.c:1547 msgid "" "Generate a random serial number for the Ogg bitstream. The number will " "change while this button is held down." msgstr "" #: src/file_speex.c:2094 msgid "" "Speex is a high quality speech codec designed for\n" "voice over IP (VoIP) and file-based compression.\n" "It is free, open and unpatented." msgstr "" #: src/file_speex.c:2105 msgid "" "Ogg, Speex, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" #: src/file_speex.c:2120 src/file_vorbis.c:1604 src/samplerate.c:611 msgid "" "This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" #: src/file_vorbis.c:356 #, c-format msgid "" "Decoding %s\n" "Encoded by: %s\n" "\n" "%s" msgstr "" #: src/file_vorbis.c:470 msgid "Unsupported encoding mode" msgstr "" #: src/file_vorbis.c:473 msgid "Invalid encoding options" msgstr "" #: src/file_vorbis.c:643 src/file_vorbis.c:663 msgid "Ogg Vorbis encoding results" msgstr "" #: src/file_vorbis.c:1089 #, fuzzy msgid "Sweep: Ogg Vorbis save options" msgstr "version" #: src/file_vorbis.c:1148 msgid "Vorbis encoding" msgstr "" #: src/file_vorbis.c:1195 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file) using variable bitrate mode (VBR)." msgstr "" #: src/file_vorbis.c:1205 msgid "Enable bitrate management engine" msgstr "" #: src/file_vorbis.c:1211 msgid "" "This enables average bitrate mode (ABR). You must suggest a nominal average " "bitrate and may specify minimum and maximum bounds.\n" "For best results it is generally recommended that you use the variable " "bitrate 'encoding quality' control (above) instead." msgstr "" #: src/file_vorbis.c:1221 msgid "Bitrate management engine" msgstr "" #: src/file_vorbis.c:1247 msgid "Nominal bitrate (ABR):" msgstr "" #: src/file_vorbis.c:1260 msgid "" "Specify a nominal bitrate. Attempt to encode at a bitrate averaging this." msgstr "" #: src/file_vorbis.c:1264 src/file_vorbis.c:1293 src/file_vorbis.c:1323 msgid "kbps" msgstr "" #: src/file_vorbis.c:1276 msgid "Minimum bitrate:" msgstr "" #: src/file_vorbis.c:1289 msgid "" "Specify a minimum bitrate, useful for encoding for a fixed-size channel. " "(Optional)" msgstr "" #: src/file_vorbis.c:1306 msgid "Maximum bitrate:" msgstr "" #: src/file_vorbis.c:1319 msgid "" "Specify a maximum bitrate, useful for streaming applications. (Optional)" msgstr "" #: src/file_vorbis.c:1370 msgid "Set to default encoding options." msgstr "" #: src/file_vorbis.c:1377 msgid "Metadata" msgstr "" #: src/file_vorbis.c:1399 #, fuzzy msgid "Title:" msgstr "Fichier" #: src/file_vorbis.c:1399 msgid "Track/Work name" msgstr "" #: src/file_vorbis.c:1401 msgid "Version:" msgstr "" #: src/file_vorbis.c:1402 msgid "" "The version field may be used to differentiate multiple versions of the same " "track title in a single collection. (e.g. remix info)" msgstr "" #: src/file_vorbis.c:1406 msgid "Album:" msgstr "" #: src/file_vorbis.c:1407 msgid "The collection name to which this track belongs" msgstr "" #: src/file_vorbis.c:1409 msgid "Artist:" msgstr "" #: src/file_vorbis.c:1410 msgid "" "The artist generally considered responsible for the work. In popular music " "this is usually the performing band or singer. For classical music it would " "be the composer. For an audio book it would be the author of the original " "text." msgstr "" #: src/file_vorbis.c:1416 msgid "Performer:" msgstr "" #: src/file_vorbis.c:1417 msgid "" "The artist(s) who performed the work. In classical music this would be the " "conductor, orchestra, soloists. In an audio book it would be the actor who " "did the reading. In popular music this is typically the same as the ARTIST " "and is omitted." msgstr "" #: src/file_vorbis.c:1424 msgid "Copyright:" msgstr "" #: src/file_vorbis.c:1425 msgid "" "Copyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'" msgstr "" #: src/file_vorbis.c:1428 msgid "License:" msgstr "" #: src/file_vorbis.c:1429 msgid "" "License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL " "to a license such as a Creative Commons license (\"www.creativecommons.org/" "blahblah/license.html\") or the EFF Open Audio License ('distributed under " "the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/" "eff_oal.html for details'), etc." msgstr "" #: src/file_vorbis.c:1438 msgid "Organization:" msgstr "" #: src/file_vorbis.c:1439 msgid "Name of the organization producing the track (i.e. the 'record label')" msgstr "" #: src/file_vorbis.c:1442 msgid "Description:" msgstr "" #: src/file_vorbis.c:1443 msgid "A short text description of the contents" msgstr "" #: src/file_vorbis.c:1445 msgid "Genre:" msgstr "" #: src/file_vorbis.c:1446 msgid "A short text indication of music genre" msgstr "" #: src/file_vorbis.c:1448 #, fuzzy msgid "Date:" msgstr "Coller" #: src/file_vorbis.c:1449 msgid "Date the track was recorded" msgstr "" #: src/file_vorbis.c:1451 #, fuzzy msgid "Location:" msgstr "Boucle sur la slection" #: src/file_vorbis.c:1452 msgid "Location where track was recorded" msgstr "" #: src/file_vorbis.c:1454 msgid "Contact:" msgstr "" #: src/file_vorbis.c:1455 msgid "" "Contact information for the creators or distributors of the track. This " "could be a URL, an email address, the physical address of the producing " "label." msgstr "" #: src/file_vorbis.c:1460 msgid "ISRC:" msgstr "" #: src/file_vorbis.c:1461 msgid "" "ISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-" "content/online/isrc_intro.html) for more information on ISRC numbers." msgstr "" #: src/file_vorbis.c:1578 msgid "" "Ogg Vorbis is a high quality general purpose\n" "perceptual audio codec. It is free, open and\n" "unpatented." msgstr "" #: src/file_vorbis.c:1589 msgid "" "Ogg, Vorbis, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" #: src/head.c:408 src/view.c:2324 msgid "Cursor position (indicator)" msgstr "" #: src/head.c:449 msgid "Reverse mode (toggle)" msgstr "" #: src/head.c:467 msgid "Loop mode recording (toggle)" msgstr "" #: src/head.c:486 #, fuzzy msgid "Record into selection" msgstr "Zoom sur la slection" #: src/head.c:503 src/view.c:1068 msgid "Stop" msgstr "Stop" #: src/head.c:516 src/view.c:2469 msgid "Go to beginning" msgstr "" #: src/head.c:527 src/view.c:2480 #, fuzzy msgid "Rewind" msgstr "Refaire" #: src/head.c:540 src/view.c:2492 msgid "Fast forward" msgstr "" #: src/head.c:555 src/view.c:2505 msgid "Go to the end" msgstr "" #: src/interface.c:327 msgid "Sweep" msgstr "Sweep" #: src/interface.c:352 src/view.c:446 msgid "File" msgstr "Fichier" #: src/interface.c:357 msgid "New" msgstr "Nouveau" #: src/interface.c:366 msgid "Open" msgstr "Ouvrir" #: src/interface.c:375 src/sweep_sample.c:800 src/sweep_sample.c:808 #: src/view.c:529 msgid "Quit" msgstr "Quitter" #: src/interface.c:386 src/view.c:1073 msgid "Help" msgstr "Aide" #: src/interface.c:391 msgid "About..." msgstr "A propos..." #: src/interface.c:414 src/view.c:618 msgid "Select" msgstr "Slection" #: src/interface.c:415 msgid "Select regions of a sample" msgstr "Slection de zones" #: src/interface.c:416 #, fuzzy msgid "" "This tool allows you to select regions of a sample. You can then apply edits " "and effects to the: selected regions. Hold down shift whilst selecting to " "add discontinuous regions to the selection." msgstr "" "Cet outils vous permet de slectionner une zone. Vous pouvez alors y " "appliquerdes effets. Maintenant la touche shift en slectionnant pour ajouter " "deszones discontinues la slection." #: src/interface.c:433 msgid "Move" msgstr "Dplacer" #: src/interface.c:434 msgid "Move regions in a sample" msgstr "Dplacer la zone un fichier" #: src/interface.c:435 msgid "With this tool you can move selected regions of a sample." msgstr "Avec cet outils, vous pouvez dplacer une zone slectionner d'un fichier" #: src/interface.c:447 msgid "Scrub" msgstr "" #: src/interface.c:448 msgid "Locate sounds directly" msgstr "" #: src/interface.c:449 msgid "" "Place the play marker on a sample. Click anywhere in a view to instantly " "move the playback position to that part of the sample." msgstr "" #: src/interface.c:466 msgid "Zoom" msgstr "Zoom" #: src/interface.c:467 msgid "Zoom in & out" msgstr "Zoom avant & arrire" #: src/interface.c:468 msgid "" "Zoom in and out of a view. Click anywhere in a view to zoom in on that part " "of the sample. Hold down shift and click on the view to zoom out." msgstr "" "Zoom avant et arrire. Maintenez la touche shift enfonce en cliquant " "pourzoomer en arrire." #: src/interface.c:484 msgid "Pencil" msgstr "" #: src/interface.c:485 msgid "Edit PCM sample values" msgstr "" #: src/interface.c:486 msgid "When zoomed down to individual samples, click to edit" msgstr "" #: src/interface.c:497 #, fuzzy msgid "Noise" msgstr "Normaliser" #: src/interface.c:498 msgid "Add noise" msgstr "" #: src/interface.c:499 msgid "Randomise PCM values" msgstr "" #: src/notes.c:61 msgid "C3" msgstr "" #: src/notes.c:62 msgid "C#3" msgstr "" #: src/notes.c:63 msgid "D3" msgstr "" #: src/notes.c:64 msgid "Eb3" msgstr "" #: src/notes.c:65 msgid "E3" msgstr "" #: src/notes.c:66 msgid "F3" msgstr "" #: src/notes.c:67 msgid "F#3" msgstr "" #: src/notes.c:68 msgid "G3" msgstr "" #: src/notes.c:69 msgid "G#3" msgstr "" #: src/notes.c:70 msgid "A3" msgstr "" #: src/notes.c:71 msgid "Bb3" msgstr "" #: src/notes.c:72 msgid "B3" msgstr "" #: src/notes.c:74 msgid "C4" msgstr "" #: src/notes.c:76 msgid "C#4" msgstr "" #: src/notes.c:77 msgid "D4" msgstr "" #: src/notes.c:78 msgid "Eb4" msgstr "" #: src/notes.c:79 msgid "E4" msgstr "" #: src/notes.c:80 msgid "F4" msgstr "" #: src/notes.c:81 msgid "F#4" msgstr "" #: src/notes.c:82 msgid "G4" msgstr "" #: src/notes.c:83 msgid "G#4" msgstr "" #: src/notes.c:84 msgid "A4" msgstr "" #: src/notes.c:85 msgid "Bb4" msgstr "" #: src/notes.c:86 msgid "B4" msgstr "" #: src/notes.c:88 msgid "C5" msgstr "" #: src/notes.c:89 msgid "C#5" msgstr "" #: src/notes.c:90 msgid "D5" msgstr "" #: src/notes.c:91 msgid "D#5" msgstr "" #: src/notes.c:92 msgid "E5" msgstr "" #: src/notes.c:94 msgid "F5" msgstr "" #: src/notes.c:95 msgid "F#5" msgstr "" #: src/notes.c:96 msgid "G5" msgstr "" #: src/notes.c:97 msgid "G#5" msgstr "" #: src/notes.c:98 msgid "A5" msgstr "" #: src/notes.c:99 msgid "Bb5" msgstr "" #: src/notes.c:100 msgid "B5" msgstr "" #: src/param.c:117 #, c-format msgid "TRUE" msgstr "" #: src/param.c:118 #, c-format msgid "FALSE" msgstr "" #: src/param.c:738 msgid "Parameters" msgstr "" #: src/param.c:769 msgid "Preview" msgstr "" #: src/paste_dialogs.c:221 msgid "Start gain" msgstr "" #: src/paste_dialogs.c:223 src/record.c:489 src/record.c:507 #: plugins/echo/echo.c:61 msgid "Gain" msgstr "" #: src/paste_dialogs.c:230 #, fuzzy msgid "Sweep: Paste crossfade" msgstr "Coller" #: src/paste_dialogs.c:232 #, fuzzy msgid "Sweep: Paste mix" msgstr "Coller" #: src/paste_dialogs.c:257 msgid "Source" msgstr "" #: src/paste_dialogs.c:257 msgid "Clipboard" msgstr "" #: src/paste_dialogs.c:279 src/paste_dialogs.c:318 msgid "End gain" msgstr "" #: src/paste_dialogs.c:287 src/paste_dialogs.c:326 #, fuzzy msgid "Invert phase" msgstr "Inverser" #: src/paste_dialogs.c:295 msgid "Destination" msgstr "" #: src/paste_dialogs.c:345 msgid "" "Indicates the total duration of the clipboard, which is the maximum length " "that will be pasted." msgstr "" #: src/paste_dialogs.c:362 msgid "Clipboard duration:" msgstr "" #: src/paste_dialogs.c:375 msgid "Crossfade" msgstr "" #: src/paste_dialogs.c:375 msgid "Mix" msgstr "" #: src/paste_dialogs.c:394 msgid "Don't crossfade" msgstr "" #: src/paste_dialogs.c:394 msgid "Don't mix" msgstr "" #: src/preferences.c:62 msgid "Error creating ~/.sweep" msgstr "" #: src/preferences.c:66 #, c-format msgid "Created %s/ mode %04o\n" msgstr "" #: src/preferences.c:73 msgid "Error on ~/.sweep" msgstr "" #: src/preferences.c:82 msgid "Error setting permissions on ~/.sweep" msgstr "" #: src/preferences.c:89 msgid "Error accessing ~/.sweep" msgstr "" #: src/preferences.c:124 msgid "Error opening ~/.sweep/preferences.tdb" msgstr "" #: src/record.c:94 src/record.c:544 msgid "Ready to record" msgstr "" #: src/record.c:308 #, fuzzy msgid "No selection to record into" msgstr "Boucle sur la slection" #: src/record.c:446 #, fuzzy msgid "Sweep: Record" msgstr "Refaire" #: src/record.c:459 src/undo_dialog.c:376 #, fuzzy msgid "File:" msgstr "Fichier" #: src/record.c:482 msgid "Previous sound" msgstr "" #: src/record.c:496 msgid "" "This slider allows you to mix the new recording in with the previous " "contents of the buffer. Set it to -inf dB to overwrite the previous sound." msgstr "" #: src/record.c:502 #, fuzzy msgid "Recorded sound" msgstr "Refaire" #: src/record.c:514 msgid "" "This slider allows you to reduce the level of the recorded sound. Set it to " "0 dB to record without any reduction. Note that setting this to -inf dB will " "record silence." msgstr "" #: src/sample-display.c:223 #, fuzzy msgid "New selection" msgstr "Jouer la slection" #: src/sample-display.c:224 #, fuzzy msgid "Selection: add/modify region" msgstr "Slection de zones" #: src/sample-display.c:225 #, fuzzy msgid "Selection: subtract region" msgstr "Slection de zones" #: src/samplerate.c:103 src/samplerate.c:167 #, fuzzy msgid "Resample error" msgstr "Ouvrir..." #: src/samplerate.c:104 src/samplerate.c:168 msgid "libsamplerate error" msgstr "" #: src/samplerate.c:234 #, c-format msgid "Resample from %d Hz to %d Hz" msgstr "" #: src/samplerate.c:445 #, fuzzy msgid "Sweep: Resample" msgstr "Coller" #: src/samplerate.c:467 #, fuzzy msgid "Conversion" msgstr "Boucle sur la slection" #: src/samplerate.c:474 #, c-format msgid "Current sample rate: %d Hz" msgstr "" #: src/samplerate.c:483 #, fuzzy msgid "New sample rate" msgstr "Fichier" #: src/samplerate.c:494 #, fuzzy msgid "Quality" msgstr "Quitter" #: src/samplerate.c:501 #, fuzzy msgid "Converter" msgstr "Inverser" #: src/samplerate.c:544 msgid "Remember this quality" msgstr "" #: src/samplerate.c:564 msgid "Reset to the last remembered quality." msgstr "" #: src/samplerate.c:578 msgid "Set to default quality." msgstr "" #: src/samplerate.c:600 msgid "" "Secret Rabbit Code (aka libsamplerate) is a\n" "Sample Rate Converter for audio by Erik de Castro Lopo\n" msgstr "" #: src/samplerate.c:620 #, fuzzy msgid "Resample" msgstr "Ouvrir..." #: src/samplerate.c:633 #, fuzzy msgid "Don't resample" msgstr "Boucle" #: src/sw_chooser.c:51 src/sw_chooser.c:66 #, fuzzy msgid "Custom" msgstr "Couper" #: src/sw_chooser.c:52 msgid "192000 Hz (Studio quality)" msgstr "" #: src/sw_chooser.c:53 msgid " 96000 Hz (High quality)" msgstr "" #: src/sw_chooser.c:54 msgid " 48000 Hz (DAT quality)" msgstr "" #: src/sw_chooser.c:55 msgid " 44100 Hz (CD quality)" msgstr "" #: src/sw_chooser.c:56 msgid " 32000 Hz (Ultra-wideband voice quality)" msgstr "" #: src/sw_chooser.c:57 msgid " 22050 Hz" msgstr "" #: src/sw_chooser.c:58 msgid " 16000 Hz (Wideband voice quality)" msgstr "" #: src/sw_chooser.c:59 msgid " 11025 Hz" msgstr "" #: src/sw_chooser.c:60 msgid " 8000 Hz (Narrowband voice quality)" msgstr "" #: src/sw_chooser.c:61 msgid " 4000 Hz (Low quality)" msgstr "" #: src/sw_chooser.c:67 src/view.c:3446 src/view.c:3459 src/view.c:3498 #, c-format msgid "Mono" msgstr "Mono" #: src/sw_chooser.c:68 src/view.c:3446 src/view.c:3459 src/view.c:3501 #, c-format msgid "Stereo" msgstr "Stro" #: src/sw_chooser.c:69 msgid "Quadraphonic" msgstr "" #: src/sw_chooser.c:306 msgid "Custom: " msgstr "" #: src/sw_chooser.c:341 #, fuzzy msgid "Sampling rate" msgstr "Fichier" #: src/sw_chooser.c:343 msgid "Hz" msgstr "" #: src/sw_chooser.c:367 src/view.c:884 msgid "Channels" msgstr "" #: src/sw_chooser.c:369 src/view.c:3505 msgid "channels" msgstr "" #: src/sweep_filter.c:125 msgid "No selection to process" msgstr "" #: src/sweep_sample.c:119 src/view.c:3444 src/view.c:3450 src/view.c:3457 #: src/view.c:3463 msgid "Untitled" msgstr "Sans titre" #: src/sweep_sample.c:324 msgid "Overflow" msgstr "" #: src/sweep_sample.c:407 #, fuzzy msgid "Sweep: New file" msgstr "Coller" #: src/sweep_sample.c:435 #, fuzzy msgid "Name:" msgstr "Fichier" #: src/sweep_sample.c:455 msgid "Duration:" msgstr "" #: src/sweep_sample.c:471 msgid "hh:mm:ss.xxx" msgstr "" #: src/sweep_sample.c:514 msgid "Remember this format" msgstr "" #: src/sweep_sample.c:520 msgid "" "Remember this sampling rate and channel configuration for creating new files." msgstr "" #: src/sweep_sample.c:540 msgid "Reset to the last remembered format for new files." msgstr "" #: src/sweep_sample.c:551 msgid "Set to the default format for new files." msgstr "" #: src/sweep_sample.c:567 msgid "" "Indicates the amount of data memory which will be allocated for the selected " "duration and format. All audio data is processed internally in 32 bit " "floating point format." msgstr "" #: src/sweep_sample.c:582 msgid "Data memory:" msgstr "" #: src/sweep_sample.c:594 msgid "Create" msgstr "" #: src/sweep_sample.c:606 msgid "Don't create" msgstr "" #: src/sweep_sample.c:774 msgid "Excellent!!!" msgstr "" #: src/sweep_sample.c:796 #, fuzzy msgid "Files unsaved" msgstr "Fichier" #: src/sweep_sample.c:797 msgid "" "Some files are unsaved. If you quit, all changes will be lost.\n" "\n" "Are you sure you want to quit?" msgstr "" #: src/sweep_sample.c:800 src/sweep_sample.c:808 msgid "Don't quit" msgstr "" #: src/sweep_sample.c:804 msgid "Files playing" msgstr "" #: src/sweep_sample.c:805 msgid "" "No files are unsaved, but some files are currently playing.\n" "\n" "Are you sure you want to quit?" msgstr "" #: src/sweep_sample.c:1465 src/view.c:1206 #, fuzzy msgid "Invert selection" msgstr "Boucle sur la slection" #: src/sweep_sample.c:1485 src/view.c:1214 src/view.c:1308 #, fuzzy msgid "Select all" msgstr "Slection" #: src/sweep_sample.c:1505 src/view.c:1222 #, fuzzy msgid "Select none" msgstr "Slection" #: src/sweep_sample.c:1525 #, fuzzy msgid "Halve selection" msgstr "Jouer la slection" #: src/sweep_sample.c:1545 #, fuzzy msgid "Double selection" msgstr "Jouer la slection" #: src/sweep_sample.c:1568 #, fuzzy msgid "Selection left" msgstr "Slection" #: src/sweep_sample.c:1590 #, fuzzy msgid "Selection right" msgstr "Slection" #: src/sweep_sample.c:1678 #, fuzzy, c-format msgid "Insert selection [" msgstr "Boucle sur la slection" #: src/sweep_sample.c:1731 #, fuzzy, c-format msgid "Subtract selection [" msgstr "Jouer la slection" #: src/sweep_sample.c:1776 #, fuzzy, c-format msgid "Set selection [" msgstr "Jouer la slection" #: src/sweep_sample.c:1875 msgid "Sweep: File properties" msgstr "" #: src/sweep_sample.c:1899 #, fuzzy msgid "Filename: " msgstr "Fichier" #: src/sweep_sample.c:1901 #, fuzzy msgid "Sampling rate: " msgstr "Fichier" #: src/sweep_sample.c:1903 msgid "Channels: " msgstr "" #: src/sweep_sample.c:1905 msgid "Data memory: " msgstr "" #: src/sweep_sample.c:1907 #, fuzzy msgid "Duration: " msgstr "Boucle sur la slection" #: src/sweep_undo.c:327 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Do you want to continue editing this buffer?" msgstr "" #: src/sweep_undo.c:332 msgid "Continue editing" msgstr "" #: src/sweep_undo.c:332 msgid "Reread from disk" msgstr "" #: src/sweep_undo.c:430 src/sweep_undo.c:488 msgid "Nothing to undo" msgstr "" #: src/sweep_undo.c:511 src/sweep_undo.c:567 msgid "Nothing to redo" msgstr "" #: src/undo_dialog.c:159 msgid "Original data" msgstr "" #: src/undo_dialog.c:344 msgid "Action" msgstr "" #: src/undo_dialog.c:351 msgid "Sweep: History" msgstr "" #: src/undo_dialog.c:393 src/view.c:548 src/view.c:1887 msgid "Undo" msgstr "Annuler" #: src/undo_dialog.c:401 src/view.c:552 src/view.c:1896 msgid "Redo" msgstr "Refaire" #: src/undo_dialog.c:426 #, fuzzy msgid "Revert to selected state" msgstr "Slection de zones" #: src/undo_dialog.c:452 src/view.c:525 src/view.c:3402 msgid "Close" msgstr "Fermer" #: src/view.c:311 #, fuzzy msgid "Duplicate to stereo" msgstr "Dupliquer" #: src/view.c:319 msgid "Duplicate to multichannel" msgstr "" #: src/view.c:331 #, fuzzy msgid "Swap left and right" msgstr "Slection" #: src/view.c:371 msgid "Add/Remove channels" msgstr "" #: src/view.c:454 src/view.c:1768 #, fuzzy msgid "New ..." msgstr "Ouvrir..." #: src/view.c:458 src/view.c:1775 #, fuzzy msgid "Open ..." msgstr "Ouvrir..." #: src/view.c:488 msgid "Open Recent" msgstr "" #: src/view.c:505 #, fuzzy msgid "Save As ..." msgstr "Enregistrer Sous..." #: src/view.c:517 msgid "Properties ..." msgstr "" #: src/view.c:535 src/view.c:1136 msgid "Edit" msgstr "Edition" #: src/view.c:556 msgid "Show history ..." msgstr "" #: src/view.c:588 src/view.c:1172 #, fuzzy msgid "Paste: Insert" msgstr "Coller en tant que Nouveau" #: src/view.c:592 src/view.c:1178 #, fuzzy msgid "Paste: Mix" msgstr "Coller" #: src/view.c:596 src/view.c:1184 #, fuzzy msgid "Paste: Crossfade" msgstr "Coller en tant que Nouveau" #: src/view.c:600 msgid "Paste as New" msgstr "Coller en tant que Nouveau" #: src/view.c:608 msgid "Preview Cut/Cursor" msgstr "" #: src/view.c:612 msgid "Pre-roll to Cursor" msgstr "" #: src/view.c:626 msgid "Invert" msgstr "Inverser" #: src/view.c:630 msgid "All" msgstr "Tout" #: src/view.c:634 msgid "None" msgstr "Rien" #: src/view.c:642 #, fuzzy msgid "Halve" msgstr "Enregistrer..." #: src/view.c:646 msgid "Double" msgstr "" #: src/view.c:650 msgid "Shift left" msgstr "" #: src/view.c:654 msgid "Shift right" msgstr "" #: src/view.c:659 msgid "View" msgstr "Vue" #: src/view.c:666 src/view.c:2061 msgid "Autoscroll: follow playback cursor" msgstr "" #: src/view.c:684 msgid "Center" msgstr "" #: src/view.c:692 src/view.c:1996 #, fuzzy msgid "Zoom in" msgstr "Zoom Avant" #: src/view.c:696 src/view.c:2005 #, fuzzy msgid "Zoom out" msgstr "Zoom Arrire" #: src/view.c:700 src/view.c:1111 #, fuzzy msgid "Zoom to selection" msgstr "Zoom sur la slection" #: src/view.c:706 msgid "Left" msgstr "Gauche" #: src/view.c:710 msgid "Right" msgstr "Droite" #: src/view.c:715 src/view.c:1117 src/view.c:1276 #, fuzzy msgid "Zoom normal" msgstr "Zoom Avant" #: src/view.c:719 src/view.c:1123 src/view.c:1282 src/view.c:1987 #, fuzzy msgid "Zoom all" msgstr "Zoom Avant" #: src/view.c:723 msgid "1:1" msgstr "" #: src/view.c:733 msgid "Remember as" msgstr "" #: src/view.c:752 src/view.c:783 msgid "Area 1" msgstr "" #: src/view.c:753 src/view.c:784 msgid "Area 2" msgstr "" #: src/view.c:754 src/view.c:785 msgid "Area 3" msgstr "" #: src/view.c:755 src/view.c:786 msgid "Area 4" msgstr "" #: src/view.c:756 src/view.c:787 msgid "Area 5" msgstr "" #: src/view.c:757 src/view.c:788 msgid "Area 6" msgstr "" #: src/view.c:758 src/view.c:789 msgid "Area 7" msgstr "" #: src/view.c:759 src/view.c:790 msgid "Area 8" msgstr "" #: src/view.c:760 src/view.c:791 msgid "Area 9" msgstr "" #: src/view.c:761 src/view.c:792 msgid "Area 10" msgstr "" #: src/view.c:765 #, fuzzy msgid "Zoom to" msgstr "Zoom Arrire" #: src/view.c:798 msgid "Color scheme" msgstr "" #: src/view.c:804 msgid "Decoder Red" msgstr "" #: src/view.c:812 msgid "Orangeboom" msgstr "" #: src/view.c:820 msgid "Lame Yellow" msgstr "" #: src/view.c:828 msgid "Coogee Bay Blue" msgstr "" #: src/view.c:836 msgid "Blackwattle" msgstr "" #: src/view.c:844 msgid "Frigid" msgstr "" #: src/view.c:852 msgid "Radar" msgstr "" #: src/view.c:860 msgid "Bluescreen" msgstr "" #: src/view.c:872 src/view.c:1236 src/view.c:1322 msgid "New View" msgstr "Nouvelle Vue" #: src/view.c:877 msgid "Sample" msgstr "Fichier" #: src/view.c:894 #, fuzzy msgid "Resample ..." msgstr "Ouvrir..." #: src/view.c:903 msgid "Duplicate" msgstr "Dupliquer" #: src/view.c:908 src/view.c:1192 msgid "Process" msgstr "" #: src/view.c:917 msgid "Playback" msgstr "Playback" #: src/view.c:924 msgid "Configure audio device ..." msgstr "" #: src/view.c:934 msgid "Transport" msgstr "" #: src/view.c:943 msgid "Go to start of file" msgstr "" #: src/view.c:949 msgid "Go to start of window" msgstr "" #: src/view.c:954 msgid "Skip back" msgstr "" #: src/view.c:959 msgid "Skip forward" msgstr "" #: src/view.c:964 msgid "Go to end of window" msgstr "" #: src/view.c:969 msgid "Go to end of file" msgstr "" #: src/view.c:978 #, fuzzy msgid "Play selection" msgstr "Jouer la slection" #: src/view.c:984 msgid "Play sample" msgstr "Jouer" #: src/view.c:990 #, fuzzy msgid "Play note" msgstr "Jouer" #: src/view.c:1009 msgid "Toggle monitoring" msgstr "" #: src/view.c:1022 msgid "Toggle looping" msgstr "" #: src/view.c:1034 msgid "Toggle muting" msgstr "" #: src/view.c:1045 msgid "Toggle reverse playback" msgstr "" #: src/view.c:1063 #, fuzzy msgid "Pause" msgstr "Coller" #: src/view.c:1079 #, fuzzy msgid "About MP3 export..." msgstr "A propos..." #: src/view.c:1085 #, fuzzy msgid "About Sweep ..." msgstr "Sweep" #: src/view.c:1249 src/view.c:1335 msgid "File properties ..." msgstr "" #: src/view.c:1294 msgid "Paste" msgstr "Coller" #: src/view.c:1791 #, fuzzy msgid "Save as ..." msgstr "Enregistrer Sous..." #: src/view.c:1811 msgid "Cut selection to clipboard" msgstr "" #: src/view.c:1821 msgid "Copy selection to clipboard" msgstr "" #: src/view.c:1832 msgid "Paste: insert clipboard at cursor position" msgstr "" #: src/view.c:1843 msgid "Paste: mix clipboard in from cursor position" msgstr "" #: src/view.c:1854 msgid "Paste: fade clipboard in from cursor position" msgstr "" #: src/view.c:1924 msgid "Hand tool" msgstr "" #: src/view.c:1932 #, fuzzy msgid "Selector tool" msgstr "Slection" #: src/view.c:1944 msgid "\"Scrubby\" the scrub tool" msgstr "" #: src/view.c:1954 msgid "Pencil tool" msgstr "" #: src/view.c:1962 #, fuzzy msgid "Noise tool" msgstr "Normaliser" #: src/view.c:2052 msgid "Visible length" msgstr "" #: src/view.c:2171 msgid "Vertical zoom [Shift + Arrow Up/Down]" msgstr "" #: src/view.c:2301 #, fuzzy msgid "Record ..." msgstr "Refaire" #: src/view.c:2377 msgid "Reverse mode playback (toggle)" msgstr "" #: src/view.c:2395 msgid "Loop mode playback (toggle)" msgstr "" #: src/view.c:2419 msgid "Play all / Pause" msgstr "" #: src/view.c:2436 #, fuzzy msgid "Play selection / Pause" msgstr "Jouer la slection" #: src/view.c:2452 #, fuzzy msgid "Stop playback" msgstr "Playback" #: src/view.c:2519 msgid "Muted playback (toggle)" msgstr "" #: src/view.c:2539 src/view.c:2557 msgid "Playback gain slider (volume)" msgstr "" #: src/view.c:2569 msgid "Monitor (toggle)" msgstr "" #: src/view.c:2587 msgid "SYNC" msgstr "" #: src/view.c:3144 #, c-format msgid "Remembered as area %d" msgstr "" #: src/view.c:3162 #, c-format msgid "No area remembered as %d" msgstr "" #: src/view.c:3165 #, c-format msgid "Zoomed to area %d" msgstr "" #: src/view.c:3347 src/view.c:3351 msgid "Scrub!" msgstr "" #: src/view.c:3347 src/view.c:3353 #, fuzzy msgid "Ready" msgstr "Refaire" #: src/view.c:3399 #, c-format msgid "%s has been modified. Close anyway?" msgstr "" #: src/view.c:3402 msgid "Don't close" msgstr "" #: src/view.c:3449 src/view.c:3462 msgid "*" msgstr "" #: src/view.c:3465 msgid "Empty" msgstr "" #: plugins/byenergy/byenergy.c:58 #, fuzzy msgid "Select regions above threshold" msgstr "Slection de zones" #: plugins/byenergy/byenergy.c:59 msgid "" "Whether to select those regions lying above a given threshold or below it." msgstr "" #: plugins/byenergy/byenergy.c:66 msgid "Resolution" msgstr "" #: plugins/byenergy/byenergy.c:67 msgid "Width of energy detection window (s)" msgstr "" #: plugins/byenergy/byenergy.c:73 msgid "Threshold" msgstr "" #: plugins/byenergy/byenergy.c:74 msgid "Energy level to detect [0.0 - 1.0]" msgstr "" #: plugins/byenergy/byenergy.c:80 msgid "Minimum duration" msgstr "" #: plugins/byenergy/byenergy.c:81 msgid "Shortest region of selection to detect (s)" msgstr "" #: plugins/byenergy/byenergy.c:87 msgid "Maximum interruption" msgstr "" #: plugins/byenergy/byenergy.c:88 msgid "Longest length of sound above threshold to allow (s)" msgstr "" #: plugins/byenergy/byenergy.c:227 plugins/byenergy/byenergy.c:232 #, fuzzy msgid "Select by energy" msgstr "Slection" #: plugins/byenergy/byenergy.c:233 #, fuzzy msgid "Select loud or quiet regions" msgstr "Slection de zones" #: plugins/echo/echo.c:53 msgid "Delay" msgstr "" #: plugins/echo/echo.c:54 msgid "Time to delay by" msgstr "" #: plugins/echo/echo.c:62 msgid "Gain with which to mix in delayed signal" msgstr "" #: plugins/echo/echo.c:107 plugins/echo/echo.c:113 msgid "Echo" msgstr "" #: plugins/echo/echo.c:114 #, fuzzy msgid "Apply an echo to selected regions of a sample" msgstr "Avec cet outils, vous pouvez dplacer une zone slectionner d'un fichier" #: plugins/normalise/normalise.c:128 plugins/normalise/normalise.c:133 msgid "Normalise" msgstr "Normaliser" #: plugins/normalise/normalise.c:134 msgid "Alter the sample's amplitude to lie between 1.0 and -1.0" msgstr "" #: plugins/reverse/reverse.c:129 plugins/reverse/reverse.c:134 #: plugins/reverse/reverse.c:140 msgid "Reverse" msgstr "Reverse" #: plugins/reverse/reverse.c:141 #, fuzzy msgid "Reverse selected regions of a sample" msgstr "Slection de zones" #: plugins/example/example.c:37 plugins/example/example.c:86 msgid "With a fork" msgstr "" #: plugins/example/example.c:38 msgid "With a spoon" msgstr "" #: plugins/example/example.c:39 msgid "With false teeth" msgstr "" #: plugins/example/example.c:40 msgid "With Nigel's bum" msgstr "" #: plugins/example/example.c:56 msgid "Flim" msgstr "" #: plugins/example/example.c:57 msgid "Should you manage your flim?" msgstr "" #: plugins/example/example.c:64 msgid "Beans" msgstr "" #: plugins/example/example.c:65 msgid "Method of eating beans" msgstr "" #: plugins/example/example.c:72 msgid "Pants methodology" msgstr "" #: plugins/example/example.c:73 msgid "How many pants should you wear per day?" msgstr "" #: plugins/example/example.c:122 plugins/example/example.c:129 msgid "Example Filter Region" msgstr "" #: plugins/example/example.c:130 msgid "An example filter region plugin" msgstr "" #: plugins/fade/fade.c:148 plugins/fade/fade.c:161 msgid "Fade in" msgstr "" #: plugins/fade/fade.c:156 plugins/fade/fade.c:177 msgid "Fade out" msgstr "" #: plugins/fade/fade.c:162 msgid "Apply a linear fade to the selection, fading in from silence" msgstr "" #: plugins/fade/fade.c:178 msgid "Apply a linear fade to the selection, fading out to silence" msgstr "" #, fuzzy #~ msgid "Sweep: Load file" #~ msgstr "Coller" #, fuzzy #~ msgid "About Sweep" #~ msgstr "Sweep" #, fuzzy #~ msgid "Filename:" #~ msgstr "Fichier" #, fuzzy #~ msgid "Sample:" #~ msgstr "Fichier" #~ msgid "Open..." #~ msgstr "Ouvrir..." #, fuzzy #~ msgid " Invert selection" #~ msgstr "Boucle sur la slection" #, fuzzy #~ msgid " Select all" #~ msgstr "Slection" #, fuzzy #~ msgid " Select none" #~ msgstr "Slection" #~ msgid "Zoom In" #~ msgstr "Zoom Avant" #~ msgid "Zoom Out" #~ msgstr "Zoom Arrire" #~ msgid "50%" #~ msgstr "50%" #, fuzzy #~ msgid "Normal" #~ msgstr "Normaliser" #~ msgid "Filters" #~ msgstr "Filtres" #, fuzzy #~ msgid "selecta selecta" #~ msgstr "Jouer la slection" #~ msgid "Note" #~ msgstr "Note" #~ msgid "100%" #~ msgstr "100%" sweep-0.9.3/po/boldquot.sed0000644000175000017500000000033110777660173014343 0ustar userusers/"\([^"]*\)"/“\1â€/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“â€/""/g s/“/“/g s/â€/â€/g s/‘/‘/g s/’/’/g sweep-0.9.3/po/POTFILES.in0000644000175000017500000000321710777660336013601 0ustar useruser# List of source files containing translatable strings. include/sweep/sweep_version.h include/sweep/sweep_types.h include/sweep/sweep_filter.h include/sweep/sweep_sample.h include/sweep/sweep_sounddata.h include/sweep/sweep_selection.h include/sweep/sweep_typeconvert.h include/sweep/sweep_undo.h src/main.c src/about_dialog.c src/about_dialog.h src/callbacks.c src/callbacks.h src/channelops.c src/channelops.h src/cursors.c src/cursors.h src/db_ruler.c src/db_ruler.h src/db_slider.c src/db_slider.h src/driver.c src/driver.h src/driver_alsa.c src/driver_oss.c src/driver_solaris.c src/edit.c src/edit.h src/file_dialogs.c src/file_dialogs.h src/file_sndfile.h src/file_sndfile1.c src/file_mad.c src/file_speex.c src/file_vorbis.c src/format.c src/format.h src/head.c src/head.h src/interface.c src/interface.h src/levelmeter.c src/levelmeter.h src/notes.c src/notes.h src/param.c src/param.h src/paste_dialogs.c src/paste_dialogs.h src/pixmaps.h src/play.c src/play.h src/plugin.c src/plugin.h src/preferences.c src/preferences.h src/print.c src/print.h src/question_dialogs.c src/question_dialogs.h src/record.c src/record.h src/sample-display.c src/sample-display.h src/sample.h src/samplerate.c src/sw_chooser.c src/sw_chooser.h src/sweep_app.h src/sweep_filter.c src/sweep_sample.c src/sweep_sounddata.c src/sweep_selection.c src/sweep_typeconvert.c src/sweep_undo.c src/time_ruler.c src/time_ruler.h src/timeouts.c src/undo_dialog.c src/undo_dialog.h src/view.c src/view.h src/view_pixmaps.h plugins/byenergy/byenergy.c plugins/ladspa/ladspameta.c plugins/echo/echo.c plugins/normalise/normalise.c plugins/reverse/reverse.c plugins/example/example.c plugins/fade/fade.c sweep-0.9.3/po/es_ES.gmo0000644000175000017500000012765210777670577013550 0ustar useruserÞ•¼Å\!p,9q,;«,-ç,0-F-$^- ƒ-"- °-(º-ã-ú-.+.8D.F}.Ä.×.#í.//./(2/&[/‚/…/ˆ/‹/‘/¥/µ/¾/ Å/Ï/ã/ê/8î/'0<G0;„0-À0Yî0H1O1W1^1e1l1s1z11ˆ11—19œ1NÖ1"%2H2X2[2^2a2e2i2m2s2 2 ™2 ¤2±2µ2¹2½2À2Ã21Æ2'ø2 3'3=.3l3 u3€3 †3&3·3Ë3Û3 á3î3 4' 4–H4ß4è4 ù45 #5-5=5B5H^5 §5²5¹5É5à5 å5ï5 6!6=6D6M6Q6l6p6s6v67y6 ±6 ¾6Ì6è6 î6ú67!7*707 77 D7P7e7 v7‚7 ›7 §7´7 Ä7Î7 Þ7é7 ø7 888 (8 28S8l8†8 š8 ¤8¯8²8µ8¸8¼8À8Å8Ê8á8ç8 9"9+9„@9bÅ9(: ::D:"M:p:‰:¡:&³:%Ú:; ;¹#;Ý;ã;ç;ë;ï;ò;õ;ø;þ;< << !< -<;<O< U< `< n<|<w<ù<=== ====(=mC=±=¸=È=Ú=î=> >&>7>=>kM>¹>¾>'Ü>?’?š?© ?_J@ª@½@Ö@ Ý@ê@ û@Ah ALuAÂBËB ÞBéB!C "C4,CaC}CšC¶CÓC êC÷CDD-D6DMD^DoDsD„DŠD›D«D°DµDÎDFæD-E%3EYE]EeEnE ~EŒE[¥EFF,F@FWFoF‹F ‘FœF³F ¸F ÂFÍFáFñF^G`GcGeG åGðGu Hv€H÷HüH I I I,IfyRf:ÌgBh/Jh/zhªh+Ãh ïh)ùh #i2-i`izi•i$®i?Ói@j Tjbj-j­j¯jÎj#Òj'öjk&k.k 6k)Ckmk|k…k Œk™k²k¹k;¾k,úkK'lNsl9Âllülimpmxmm†mm”m›m¢m©m°m ¹mRÄmfn,~n«nÇnÐnÙnánénñnùn-o .o ;o IoWo^oeoloto|o+„o+°oÜoåo^íoLpTp]p ep8rp«pÆpÙpàp"óp"q39q¨mq r r 0r;r Xr bror#vrNšr érôrúrs%s.s$Isns†s ¦s´sÄs#ËsïsösþstJtYtkt!}tŸt ¦t'´t Ütètøtu uuu8uSuju ‚uŒu•u ¥u°uÁuÊu Ùu åuðuùuvv3vIv_v qv {v…vv•vv¤v«v¯v'¶vÞv.äv:w Nw[w¨{wz$xŸx »xÉx'Øxyy4y+Fy'ryšy ¸yëÅy±z·z¾zÅzÌzÔzÜzäzêz{ {){1{F{Y{t{}{‘{ª{À{µÅ{ {|ˆ||–||¥|­|µ|(¾|uç|]}e}t}Œ}¦}Á} Þ}ê}û}~h~~$‡~+¬~Ø~±Û~Ç“R[€®€"Æ€é€ò€ %/s± %ƒ/ƒ DƒPƒ oƒ ƒ:›ƒ1Öƒ.„"7„Z„y„˜„¯„Ʉ䄸„……5…E…M…f…l…‰……¢…¨…,Æ…Ró…F†)N†x†~† ‡†“†¯†%¿†_å†E‡a‡|‡—‡&²‡)Ù‡ˆ ˆ!ˆ@ˆ Eˆ PˆZˆmˆ…ˆ|žˆ‰(‰`G‰ ¨‰²‰xЉyIŠÊÉŠÒŠ ãŠñŠ‹‹ #‹1‹ M‹X‹^‹w‹ †‹#”‹!¸‹Ú‹ê‹>ù‹98Œ;rŒ®Œ´ŒºŒ ÌŒ­ÖŒ„”¨ À3ÍŽŽ/ŽAŽ]ŽmŽvŽ …Ž’ŽšŽ  Ž¬Ž ÇŽÕŽõŽûŽ 8G O']…³^É(ÓF’1’J’a’ r’~’’¡’ ¾’FÌ’=“GQ“D™“1Þ“ ””)$”4N”2ƒ”¶”¿”Д ð”ú”•••'•?•W•_•o•…•Ÿ• ¯•¼••dË• 0–:–K–*c– Ž–(œ–"Å–è–—#—;—V—n—@ˆ—@É—9 ˜7D˜'|˜:¤˜ߘô˜/™7™V™k™™z–™šfšešvåš\›#o›.“›˜Â›[œlœsœ{œ “œ œ µœ1Öœ):ZpŽ#ŸÃ'Ø+ž,ž CžQž dž…ž"œž-¿ž ížý÷žèõŸ/Þ ‡¡\–¡ó¢x £“‚£ª¤ûÁ¤S½¥‘¦£¦ ª¦µ¦"½¦à¦þ¦-§D§ _§k§‡§™§!¢§ ħ"ϧ.ò§_!¨w¨Rù¨ÚL©'ª!Bª)dª<Žª˪á«+ꫬ ¬(¬7<¬t¬E‡¬Tͬ"­/5­e­­Ž­ž­K¶­!®$® )®4®=®¨Q® ú®¯ ¯¯/¯D¯[¯ c¯p¯ޝ“¯Qud}5Ëlža€÷`‘ÌñœÓ{…Ø"ãXà|r°3GHI‡×F.Ïc剆_Æëdí)óÊðò‡Þá?@A‚Egqçˆ=•#¸¹º‰ Çý4nÔNËnL¡%Ú}ššú ;½ÍÀ§£]%꟠f÷ã˜ÂkÍ„ˆ+e È9Å «y¨cœ¢'8&ÎWÉ\RJ…ÿªÐ_ô¯B¿2E gæA<³Z@á] ré¾|ÜÕvÄC7ª&å èU Ìè(¯sPÖÿµþ‚ë ¿›Õç¾êû6#muØü¥ ­h1Ñ q›ƒ-[‹âÊøxÞ¢ÏÄ\D’[-ÚóÈ€‹Ü·iGO—άPäïÝðÒ+h?•!:é7VÀjÉàþ¦S;(<=>C“©ýwZ´I¤¥JKL¬ìäzK^vwxjíS,,./012345!9ò¼ÖDÁ¶»¼½$>YmbâæÐÑÒŽƒFŠ©—‘™ «î6H~±µüÅ Ó* ³b~VûÓp"Nö±Ão–W*²­Û^z¦ùŸ¶ßÙMÁõpM§¸–™ ´·ôByR’†°ñe”YT$ ÛŒ£¨TÆ¡˜oQù)aÂløì×¹žX®”¤® '„öÔúÙŽ8`Ofk{tõº:Ý Št/ß»Ui0sïÇ --display Use the designated X display. --no-toolbox Do not show the toolbox window. -h --help Output this help. -v --version Output version info. 4000 Hz (Low quality) 8000 Hz (Narrowband voice quality) 11025 Hz 16000 Hz (Wideband voice quality) 22050 Hz 32000 Hz (Ultra-wideband voice quality) 44100 Hz (CD quality) 48000 Hz (DAT quality) 96000 Hz (High quality)"Scrubby" the scrub tool%s has changed on disk. Are you sure you want to save?%s has changed on disk. Do you want to continue editing this buffer?%s does not exist.%s exists. Overwrite?%s has been modified. Close anyway?*192000 Hz (Studio quality)1:1A short text description of the contentsA short text indication of music genreA3A4A5AboutAbout MP3 export...About Sweep ...About...ActionAdd noiseAdd/Remove channelsAlbum:AllAlter the sample's amplitude to lie between 1.0 and -1.0An example filter region pluginApply a linear fade to the selection, fading in from silenceApply a linear fade to the selection, fading out to silenceApply an echo to selected regions of a sampleAre you sure you want to revert %s to %s? All changes and undo information will be lost.Area 1Area 10Area 2Area 3Area 4Area 5Area 6Area 7Area 8Area 9Artist:AutoAutomatically select best encoding options for this file.Automatically select the encoding mode based on the sampling rate of the file.Autoscroll: follow playback cursorAverage bitrateB3B4B5Bb3Bb4Bb5BeansBitrate management engineBlackwattleBluescreenBy extensionC#3C#4C#5C3C4C5CBR with VAD and Discontinuous Transmission (DTX)CBR with Voice Activity Detection (VAD)CancelCenterChanges to device settings will take effect on next playback.ChannelsChannels: ClearClipboardClipboard data has incompatible formatClipboard duration:Clipboard emptyCloseColor schemeConfigure audio device ...Constant bitrate (CBR)Constant bitrate (CBR) with no featuresContact information for the creators or distributors of the track. This could be a URL, an email address, the physical address of the producing label.Contact:Continue editingConversionConvert from %d to %d channelsConverterCoogee Bay BlueCopyCopy selection to clipboardCopyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'Copyright:CreateCreate new fileCreated %s/ mode %04o CropCrossfadeCurrent sample rate: %d HzCurrently: %d channelsCursor position (indicator)CustomCustom: CutCut selection to clipboardD#5D3D4D5DTX marks extended pauses with a minimum bitrate signalData memory:Data memory: Date the track was recordedDate:Decoder RedDecoding %s Encoded by: %s %sDefaultDefaultsDelayDeleteDescription:DestinationDetermine File Type:Device bufferingDevice nameDirectory does not existDon't closeDon't createDon't crossfadeDon't mixDon't overwriteDon't quitDon't resampleDon't revertDon't saveDoubleDouble selectionDuplicateDuplicate from %d to %d channelsDuplicate to %d channelsDuplicate to multichannelDuplicate to stereoDuration:Duration: E3E4E5Eb3Eb4EchoEditEdit PCM sample valuesEmptyEnable bitrate managementEnable bitrate management engineEncodingEncoding complexity:Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file) using variable bitrate mode (VBR).Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file).Encoding quality:Encoding:End gainEnergy level to detect [0.0 - 1.0]Error accessing ~/.sweepError creating ~/.sweepError on ~/.sweepError opening ~/.sweep/preferences.tdbError setting permissions on ~/.sweepExample Filter RegionExcellent!!!Export to MP3 format cannot legally be supported in free software due to patent licensing restrictions. Please use Ogg Vorbis format instead, which provides better quality and is free.ExtraF#3F#4F#5F3F4F5FALSEFade inFade outFast forwardFileFile existsFile modifiedFile properties ...File:Filename: Files playingFiles unsavedFlimFor non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For VBR encoding, this sets the average bitrate.FrigidG#3G#4G#5G3G4G5GainGain with which to mix in delayed signalGenerate a random serial number for the Ogg bitstream. The number will change while this button is held down.Genre:Go to beginningGo to end of fileGo to end of windowGo to start of fileGo to start of windowGo to the endHack the planet!HalveHalve selectionHello, my name is Scrubby. Welcome to Sweep! Would you like to create a new file or load an existing file?HelpHigh latency / Fewer dropoutsHow many pants should you wear per day?HzISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-content/online/isrc_intro.html) for more information on ISRC numbers.ISRC:Indicates the amount of data memory which will be allocated for the selected duration and format. All audio data is processed internally in 32 bit floating point format.Indicates the total duration of the clipboard, which is the maximum length that will be pasted.Insert selection [Invalid encoding optionsInvertInvert phaseInvert selectionLame YellowLeftLibsndfile is a C library by Erik de Castro Lopo for reading and writing files containing sampled sound.License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL to a license such as a Creative Commons license ("www.creativecommons.org/blahblah/license.html") or the EFF Open Audio License ('distributed under the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/eff_oal.html for details'), etc.License:Load existing fileLoading %sLocate sounds directlyLocation where track was recordedLocation:Longest length of sound above threshold to allow (s)Loop mode playback (toggle)Loop mode recording (toggle)Low latency / More dropoutsMP3 (Use Ogg Vorbis instead)MP3 export unsupportedMain device:Maximum bitrateMaximum bitrate:Maximum interruptionMetadataMethod of eating beansMinimum bitrate:Minimum durationMixMix down to monoMode:Monitor (toggle)Monitor output:MonoMoveMove regions in a sampleMuted playback (toggle)Name of the organization producing the track (i.e. the 'record label')Name:Narrowband ~8 kHz (telephone quality)NewNew ...New ViewNew sample rateNew selectionNo area remembered as %dNo files are unsaved, but some files are currently playing. Are you sure you want to quit?No selection to clearNo selection to copyNo selection to cutNo selection to deleteNo selection to processNo selection to record intoNoiseNoise toolNominal bitrate (ABR):NoneNormaliseNot stereoNothing to crop outNothing to redoNothing to undoNumber of Speex frames to pack into each Ogg packet. Higher values save space at low bitrates.OKOgg Vorbis encoding resultsOgg Vorbis is a high quality general purpose perceptual audio codec. It is free, open and unpatented.Ogg streamOgg stream serial number:Ogg, Speex, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.Ogg, Vorbis, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.OpenOpen ...OrangeboomOrganization:Original dataOutput channelsOverflowOverwritePants methodologyParametersPastePaste as NewPaste insertPaste mixPaste xfadePaste: CrossfadePaste: InsertPaste: MixPaste: fade clipboard in from cursor positionPaste: insert clipboard at cursor positionPaste: mix clipboard in from cursor positionPausePencilPencil toolPerformer:Place the play marker on a sample. Click anywhere in a view to instantly move the playback position to that part of the sample.Play notePlay samplePlay selectionPlaybackPlayback gain slider (volume)Powered by libsndfilePre-roll to CursorPreviewPreview Cut/CursorPrevious soundProcessProperties ...QuadraphonicQualityQuitRadarRandomise PCM valuesRandomize!Raw PCM (headerless)ReadyReady to recordRecord ...Record into selectionRecorded soundRedoRemember asRemember these encoding optionsRemember these optionsRemember this formatRemember this qualityRemember this sampling rate and channel configuration for creating new files.Remember this serial numberRemember this serial number for future re-use. USE OF THIS OPTION IS NOT RECOMMENDED. Each encoded file should have a different serial number; re-use of Ogg serial numbers in different files may create incompatabilities with streaming applications. This option is provided for bitstream engineering purposes only. If this option is not checked, new serial numbers will be randomly generated for each file encoded.Remembered as area %dRemove left channelRemove right channelReread from diskResampleResample ...Resample errorResample from %d Hz to %d HzResetReset to the last remembered device buffering.Reset to the last remembered device names.Reset to the last remembered encoding options.Reset to the last remembered format for new files.Reset to the last remembered quality.ResolutionReverseReverse mode (toggle)Reverse mode playback (toggle)Reverse selected regions of a sampleRevertRevert fileRevert to selected stateRewindRightSYNCSampleSampling rateSampling rate:Sampling rate: SaveSave As ...Save OptionsSave as %s cancelledSave as ...Saving %sScrubScrub!Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio by Erik de Castro Lopo SelectSelect allSelect by energySelect loud or quiet regionsSelect noneSelect regions above thresholdSelect regions of a sampleSelection leftSelection rightSelection: add/modify regionSelection: subtract regionSelector toolSet selection [Set the main device for playback and recordingSet to default device buffering.Set to default device names.Set to default encoding options.Set to default quality.Set to the default format for new files.Shift leftShift rightShortest region of selection to detect (s)Should you manage your flim?Show history ...Skip backSkip forwardSome files are unsaved. If you quit, all changes will be lost. Are you sure you want to quit?SourceSpecify a maximum bitrate, useful for streaming applications. (Optional)Specify a minimum bitrate, useful for encoding for a fixed-size channel. (Optional)Specify a nominal bitrate. Attempt to encode at a bitrate averaging this.Speex encodingSpeex encoding resultsSpeex frames per Ogg packet:Speex is a high quality speech codec designed for voice over IP (VoIP) and file-based compression. It is free, open and unpatented.Start gainStereoStopSubtract selection [SwapSwap channelsSwap left and rightSwap main and monitor devices.SweepSweep plugin API versionSweep versionSweep: Add/Remove channelsSweep: Duplicate channelSweep: File propertiesSweep: HistorySweep: Load Raw PCM optionsSweep: New fileSweep: Ogg Vorbis save optionsSweep: Paste crossfadeSweep: Paste mixSweep: RecordSweep: ResampleSweep: Save PCM optionsSweep: Save fileSweep: Speex save optionsSweep: audio device configurationTRUEThe artist generally considered responsible for the work. In popular music this is usually the performing band or singer. For classical music it would be the composer. For an audio book it would be the author of the original text.The artist(s) who performed the work. In classical music this would be the conductor, orchestra, soloists. In an audio book it would be the actor who did the reading. In popular music this is typically the same as the ARTIST and is omitted.The collection name to which this track belongsThe version field may be used to differentiate multiple versions of the same track title in a single collection. (e.g. remix info)This enables average bitrate mode (ABR). You must suggest a nominal average bitrate and may specify minimum and maximum bounds. For best results it is generally recommended that you use the variable bitrate 'encoding quality' control (above) instead.This is Sweep versionThis sets the encoding speed/quality tradeoff between 0 (faster encoding) and 10 (slower encoding)This slider allows you to mix the new recording in with the previous contents of the buffer. Set it to -inf dB to overwrite the previous sound.This slider allows you to reduce the level of the recorded sound. Set it to 0 dB to record without any reduction. Note that setting this to -inf dB will record silence.This tool allows you to select regions of a sample. You can then apply edits and effects to the: selected regions. Hold down shift whilst selecting to add discontinuous regions to the selection.This user interface by Conrad Parker, Copyright (C) 2002 CSIRO Australia. This user interface by Erik de Castro Lopo and Conrad Parker, Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO Australia. ThresholdTime to delay byTitle:Toggle loopingToggle monitoringToggle mutingToggle reverse playbackTrack/Work nameTransportUltra-wideband 32-48 kHzUnable to read %sUndoUnsupported encoding modeUntitledUsage: %s [option ...] [files ...] Use a different device for monitoringVAD generates low bitrate comfort noise to replace non-speechVBR allows the bitrate to adapt to the complexity of the speech, and handles pauses using VAD and DTXVBR allows the bitrate to adapt to the complexity of the speech.VBR allows the bitrate to adapt to the complexity of the speech; this selection uses VBR without DTX, which may improve performance compared to full VBR in the presence of background noise.Valid options are: Variable bitrate (VBR)Variable bitrate (VBR) with VADVariable bitrate (VBR) with all featuresVarying this slider controls the lag between cursor movements and playback. This is particularly noticeable when "scrubbing" during playback. Lower values improve responsiveness but may degrade audio quality on heavily-loaded systems.Version:Vertical zoom [Shift + Arrow Up/Down]ViewVisible lengthVorbis encodingWARNING: Build includes incomplete development code. Welcome to SweepWhen zoomed down to individual samples, click to editWhether to select those regions lying above a given threshold or below it.Wideband ~16 kHzWidth of energy detection window (s)With Nigel's bumWith a forkWith a spoonWith false teethWith this tool you can move selected regions of a sample.You are not allowed to write to %sZoomZoom allZoom inZoom in & outZoom in and out of a view. Click anywhere in a view to zoom in on that part of the sample. Hold down shift and click on the view to zoom out.Zoom normalZoom outZoom toZoom to selectionZoomed to area %dbpschannelshh:mm:ss.xxxhttp://sweep.sourceforge.net/kbpslibsamplerate errorProject-Id-Version: sweep-0.5.13 Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/ POT-Creation-Date: 2008-04-11 15:11+0100 PO-Revision-Date: 2005-12-02 23:06-0600 Last-Translator: Waldo Ramírez Montaño Language-Team: Spanish MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit --display Usa el display X especificado. --no-toolbox No muestra la ventana de herramientas. -h --help Muestra esta ayuda. -v --version Muestra la versión. 4000 Hz (Baja calidad) 8000 Hz (Calidad de voz de banda angosta) 11025 Hz 16000 Hz (Calidad de voz de banda ancha) 22050 Hz 32000 Hz (Calidad de voz de ultra ancho de banda) 44100 Hz (Calidad de CD) 48000 Hz (Calidad de DAT) 96000 Hz (Alta calidad)"Scrubby" la herramienta para fregar%s ha cambiado en el disco. ¿Está seguro que desea guardarlo?%s ha cambiado en el disco. Desea seguir editando este buffer?%s no existe.%s ya existe. Sobreescribir?%s ha sido modificado. Cerrar de todos modos?*192000 Hz (Calidad de estudio)1:1Una breve descripción del contenidoUna breve indicación del género musicalLa 3La 4La 5Acerca de...Información sobre la exportación a MP3...Sobre Sweep...Sobre...AcciónAgrega ruidoAgregar/Eliminar canalesAlbum:TodoAltera la amplitud del muestreo para estar entre 1.0 e -1.0Un plugin de ejemplo de filtrado de regionesAplicar un desvanecido lineal a la selección, apareciendo desde el silencioAplicar un desvanecido lineal a la selección, desapareciendo hasta el silencioAplica un eco a las regiones seleccionadas de un muestreo¿Está seguro que desea reviertir %s a %s? Todos los cambios y la información parar deshacer serán perdidos.Área 1Área 10Área 2Área 3Área 4Área 5Área 6Área 7Área 8Área 9Artista:AutomáticoSeleccionar automáticamente las mejores opciones de codificación para este archivoSeleccionar automáticamente el modo de codificación basándose en la frecuencia de muestreo del archivoAutoscroll: seguir el cursor de reproducciónFrecuencia de bits promedioSi 3Si 4Si 5Sib 3Sib 4Sib 5ManíesMotor de administración de frecuencia de bitsMarrón glacéPantalla azulPor extensiónDo# 3Do# 4Do# 5Do 3Do 4Do 5CBR con VAD y Transmisión Discontinua (DTX)CBR con Detección de Actividad de Voz (VAD)CancelarCentrarLos cambios en el dispositivo de salida tendrán efecto la próxima vez que reproduzca el audio.CanalesCanales:LimpiarPortapapelesEl formato de los datos del portapapeles es incompatibleDuración del portapapeles:Portapapeles vacíoCerrarEsquema de coloresConfigurar dispositivo de audio...Frecuencia de bits constante (ABR)Frecuencia de bits constante (CBR) sin prestacionesInformación de los contactos con los creadores o distribuidores de la pista. Puede ser una URL, una dirección de mail, la dirección física de la casa discográfica, etc.Contacto:Seguir editandoConversiónConvertir de %d a %d canalesConvertirSusurro AzulCopiarCopiar la selección al portapapelesDerecho de Copia, p.e. '2001 Juan Manuel Martínez' o '1999 La banda de pirulo'Copyright:CrearCrear archivo nuevoSe creó %s/ modo %04o RecortarIntermezclar desvaneciendoFrecuencia de muestreo actual: %d HzActualmente: %d canalesPosición del cursor (indicador)PersonalizadoPersonalizado: CortarCortar la selección al portapapelesRe# 5Re 3Re 4Re 5DTX marca las pausas extendidas con una señal de frecuencia de bits mínimaMemoria de datos:Memoria de datos:Fecha de la grabación de la pistaFecha:Rojo profundoDecodificando %s Codificado por: %s %sPredefinidoPredeterminadosRetardoBorrarDescripción:DestinoDeterminar tipo de archivo:Dispositivo de pre-lecturaNombre del dispositivoEl directorio no existeNo cerrarNo crearNo intermezclarNo mezclarNo sobreescribirNo salirNo remuestrearNo revertirNo guardarDuplicarSeleccionar el dobleDuplicarDuplicar de %d a %d canalesDuplicar a %d canalesDuplicar a multicanalDuplicar a stereoDuración:Duración:Mi 3Mi 4Mi 5Mib 3Mib 4EcoEditarModifica los valores PCM de un muestreoVacíoActiva la administración de frecuencia de bitsHabilitar el motor de administración de frecuencia de bitsCodificaciónComplejidad de la codificación:La calidad de codificación varía de 0 (la más baja calidad, archivos chicos) a 10 (la más alta calidad, archivos grandes) usando el modo de frecuencia de bits variable.La calidad de codificación varía de 0 (la más baja calidad, archivos chicos) a 10 (la más alta calidad, archivos grandes).Calidad de la codificación:Codificación:Ganancia finalNivel de energía a detectar [0.0 - 1.0]Error al acceder a ~/.sweepError al crear ~/.sweepError en ~/.sweepError al acceder a ~/.sweep/preferences.tdbError al poner los permisos de ~/.sweepEjemplo de filtrado de regiónExcelente!!!No se puede dar soporte legal a la exportación a formato MP3 en el software libre a causa de restricciones en la patente de licencia. Por favor, en reemplazo use el formato Ogg Vorbis que provee mejor calidad y además es de uso libre.ExtraFa# 3Fa# 4Fa# 5Fa 3Fa 4Fa 5FALSODesvanecido (aparecer)Desvanecido (desaparecer)Avance rápidoArchivoEl archivo ya existeArchivo modificadoPropiedades del archivo...Archivo:Nombre del archivo:Archivos en reproducciónArchivos no guardadosFlimPara codificaciones con frecuencia de bits constantes (no VBR), aquí se establece la frecuencia de bits máxima. Para codificaciones VBR, se establece la frecuencia de bits promedio.BlancanievesSol# 3Sol# 4Sol# 5Sol 3Sol 4Sol 5GananciaGanancia para mezclar la señal retardadaGenera un número de serie aleatorio para el flujo Ogg. El número cambiará mientras este botón se mantenga presionado.Género:Ir al comienzoIr al final del archivoIr al final de la ventanaIr al comienzo del archivoIr al comienzo de la ventanaIr al finalHackea el mundo!DividirSeleccionar la mitadHola, mi nombre es Scrubby. ¡Bienvenido a Sweep! ¿Quiere crear un archivo nuevo o cargar uno existente?AyudaAlta latencia / Menos interrupcionesCuantos calzoncillos deberías usar por día?HzNúmero de ISRC de la pista; vea la página de introducción a ISRC (http://www.ifpi.org/site-content/online/isrc_intro.html) para obtener mayor información sobre los números ISRC.ISRC:Indica la cantidad de memoria para datos que será reservada para el formato y la duración seleccionados. Todos los datos de audio son procesados internamente en formato de 32 bits con punto flotante.Indica la duración total del portapapeles, que es el largo máximo que será pegado.Insertar la selección [Opciones de codificación inválidasInvertirInvertir la faseInvertir selecciónAmarillo debilIzquierdaLibsndfile es una librería en C escrita por Erik de Castro Lopo, para leer y escribir archivos que contengan sonidos muestreados.Información de la licencia, p.e. 'Todos los derechos reservados', 'Permitido su uso', una URL que apunte hacia una licencia como la Creative Commons license ("www.creativecommons.org/blahblah/license.html") o la EFF Open Audio License ('Distribuido bajo los términos de la Open Audio License. Ver http://www.eff.org/IP/Open_licenses/eff_oal.html pera más detalles'), etc.Licencia:Cargar uno existenteCargando %sEncontrar sonidos directamenteLugar donde fué grabada la pistaUbicación:Longitud mas larga de sonido permitida sobre el umbral (s)Modo de reproducción cíclica (activar/desactivar)Grabación en modo cíclico (activar/desactivar)Baja latencia / Más interrupcionesMP3 (Reemplace por Ogg Vorbis)Exportación a MP3 no soportadaDispositivo principal:Máxima frecuencia de bitsFrecuencia de bits máxima:Interrupción máximaMetadataMétodo para comer maníesFrecuencia de bits mínima:Duración mínimaMezclarMezclar y reducir a MonoModo:Monitor (activar/desactivar)Salida del monitor:MonoMoverMueve regiones en un muestreoReproducción silenciada (activar/desactivar)Nombre de la organización que produjo la pista (es decir, el 'sello discográfico')Nombre:Banda angosta 8 kHz (Calidad de teléfono)NuevoNuevo...Nueva vistaNueva frecencia de muestreoNueva selecciónNo hay ningún area reacordada como %dNo hay archivos sin guardar, pero algunos se están reproduciendo. Está seguro que desea salir?Ninguna selección a limpiarNinguna selección a copiarNinguna selección a cortarNinguna selección a borrarNo hay ninguna selección para procesarNo hay ninguna selección en la que grabarRuidoHerramienta de ruidoFrecuencia de bits nominal (ABR):NadaNormalizarNo stereoNada para recortarNo hay nada que rehacerNo hay nada que deshacerNúmero de muestras a insertar dentro de cada paquete Ogg. Los valores mas altos ahorran espacio a bajas frecuencias de bits.OkResultados de la codificación Ogg VorbisOgg Vorbis es un codec de alta calidad para uso general. Es gratis, abierto y no está patentado.Flujo OggNúmero de serie del flujo OggOgg, Speex, Xiph.org Foundation y sus logotipos son marcas registradas de la fundación Xiph.org. Usado con autorización.Ogg, Vorbis, Xiph.org Foundation y sus logotipos son marcas registradas de la fundación Xiph.org. Usado con autorización.AbrirAbrir...Naranja mecánicaOrganización:Datos originalesCanales de salidaDesbordamientoSobreescribirMetodología de calzoncillosParámetrosPegarPegar como Nuevo archivoPega e insertaPega y mezclaPega intermezclando y desvaneciendoPegar: Intermezclar desvaneciendoPegar: InsertarPegar: MezclarPegar: desvanecer el portapapeles desde la posición del cursorPegar: insertar el portapapeles en la posición del cursorPegar: mezclar el portapapeles desde la posición del cursorPausaLápizHerramienta lápizEjecutor:Ubique el marcador de reproducción en un muestreo. Haga click en cualquier lado en la vista para mover instantáneamente la posición de reproducción a esa parte del muestreo.Reproducir notaReproducir muestreoReproducir la selecciónReproducciónDeslizador de ganancia de la reproducción (volumen)Basado en libsndfilePre-roll hasta el cursorSonido preliminarPrevisualizar Cortar/CursorSonido anteriorProcesarPropiedades...CuadrofónicoCalidadSalirVerde radarAleatoriza los valores PCM¡Aleatorizar!PCM crudo (son encabezamientos)ListoListo para grabarGrabar...Grabación dentro de la selecciónSonido grabadoRehacerRecordar comoRecordar estas opciones de codificaciónRecordar estas opcionesRecordar este formatoRecordar esta calidadRecordar esta frecuencia de muestreo y la configuración de canales para crear archivos nuevos.Recordar este número de serieRecordar este número de serie para usos futuros. NO SE RECOMIENDA EL USO DE ESTA OPCION. Cada archivo codificado debería tener un número de serie diferente; reutilizar números de serie Ogg en distintos archivos puede crear incompatibilidades con aplicaciones que leen el flujo. Esta opción se suministra únicamente para fines ingenieriles en los flujos de bits. Si la opción no está seleccionada, se generarán números de serie aleatorios para cada archivo codificado.Area recordada como %dEliminar canal izquierdoEliminar canal derechoReleer del discoRemuestrearRemuestrear...Error de remuestreoRemuestrear de %d Hz a %d HzReinicializarReinicializar el dispositivo de pre-lectura al último valor recordado.Reinicializa los dispositivos a los últimos valores conocidosReinicializar a las últimas opciones de codificación que se recordaron.Reinicializar al último formato que se recordó para archivos nuevos.Reinicializar a la última calidad que se recordó.ResoluciónInvertirGrabación en reversa (activar/desactivar)Modo de reproducción en reversa (activar/desactivar)Invierte las regiones seleccionadas de un muestreoRevertirRevertir archivoRevertir al estado seleccionadoRebobinarDerechaSYNCMuestreoFrecuencia de muestreoFrecuencia de muestreo:Frequencia de muestreo:GuardarGuardar como...Opciones para guardarGuardar como %s canceladoGuardar como...Guardando %sScrubFregado!Secret Rabbit Code (alias libsamplerate) es un conversor para audio escrito por Erik de Castro Lopo SelecciónSeleccionar todoSeleccionar por energíaSeleccionar regiones sileciosas o ruidosasSin selecciónSeleccionar las regiones sobre el umbralSelecciona regiones de un muestreoSeleccinar la izquierdaSeleccionar la derechaSelección: agregar/modificar regiónSelección: sustraer regiónHerramienta seleccionarEstablecer la selección [Establece el dispositivo principal para reproducción y grabaciónEstablece el dispositivo de pre-lectura al valor predeterminado.Establece los dispositivos a los valores predeterminados.Establece las opciones de codificación predeterminadas.Establecer a la calidad predeterminada.Establecer al formato predeterminado para archivos nuevos.Pasar a la izquierdaPasar a la derechaRegión mas corta de la selección a detectar (s)¿Deberías administrar tu flim?Mostrar historial...Saltear hacia atrásSaltear hacia adelanteAlgunos archivos no han sido guardados. Si sale del programa, se perderán todos los cambios. Está seguro que desea salir?FuenteEspecifique una frecuencia de bits máxima; es útil para las aplicaciones que leen el flujo (opcional).Especifique una frecuencia de bits mínimam; es útil para codificar canales de tamaño fijo (opcional).Especifique una frecuencia de bits nominal. Se tratará de codificar con una frecuencia de bits que promedie este valorCodificación SpeexResultados de la codificación SpeexNúmero de muestras Speex por cada paquete Ogg:Speex es un codec de voz de alta calidad diseñado para "voice over IP (VoIP)" y compresión de archivos. Es de uso gratuito, abierto y no está patentado.Ganancia inicialStereoDetenerSustraer la selección [IntercambiarIntercambiar canalesIntercambiar izquierda y derechaIntercambiar los dispositivos Principal y MonitorSweepVersión de la API de SweepVersión de SweepSweep: Agregar/Eliminar canalesSweep: duplicar canalSweep: Proiedades del archivoSweep: HistorialSweep: Opciones para cargar Raw PCMSweep: Nuevo archivoSweep: Opciones para guardar Ogg VorbisSweep: Pegar intermezclando y desvaneciendoSweep: Pegar y mezclarSweep: GrabarSweep: RemuestrearSweep: Opciones para guardar PCMSweep: Guardar archivoSweep: Opciones para guardar SpeexSwwep: configuración del dispositivo de audioVERDADEROEl artista que es, generalmente, considerado el responsable del trabajo. Para música popular usualmente es el cantante o la banda que tocan. Para música clásica. debería ser el compositor. Para un libro de audio, debería ser el autor del texto original.El artista que ejecutó el trabajo. Para música clásica, debería ser el director, orquesta o solista. Para un libro de audio, debería ser el actor que lo leyó. Para música popular, generalmente es igual al ARTISTA y por eso se omite.El nombre del álbum al que pertenece esta pistaEl campo Versión puede ser usado para diferenciar las distintas versiones del mismo título de pista de un mismo álbum (p.e. remix info)Aquí se habilita el modo de promedio de frecuencia de bits (ABR). Debe sugerir un promedio de frecuencia de bits nominal y debería especificar los límites mínimo y máximo. Para lograr mejores resultados, generalmente se recomienda que se use el control de frecuencia de bits variable "Calidad de codificación" en reemplazo de este (ver mas arriba).Este es Sweep versiónAquí se establece la relación velocidad/calidad de la codificación entre 0 (codifcación veloz) y 10 (codificaicón lenta)El deslizador le permite mezclar la nueva grabación con el contenido anterior del buffer. Al ponerlo en -inf dB se sobreescribe el sonido anterior.Este deslizador le permite reducir el nivel del sonido grabado. Al ponerlo en 0 dB se graba sin reducción. Tenga en cuenta que al ponerlo en -in dB se grabará silenciado.Esta herramienta le permite seleccionar regiones de un muestreo. Luego puede aplicar las modificaciones y los efectos a las regiones selccinadas. Mantenga presionada la tecla shift mientras selecciona para agregar regiones discontínuas a la selección.Esta interface de usuario, por Conrad Parker, Copyright (C) 2002 CSIRO Australia. Esta interface de usuario, por Erik de Castro Lopo y Conrad Parker, Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO Australia. UmbralRetardo deTítulo:Activar/Desactivar el modo cíclicoActivar/desactivar el MonitorActivar/Desactivar mudoActivar/Desactivar la reproducción en reversaNombre de la pista/trabajoTransportarBanda ultra ancha 32-48 kHzImposible leer %sDeshacerModo de codificación no soportadoSin títuloUso: %s [opción...] [archivos...] Usar un dispositivo distinto para el monitoreoVAD genera ruido confortable de baja frecuencia de bits (bitrate) para reemplazar al no-diálogoVBR permite adaptar la frecuencia de bits según la complejidad de la conversación, y maneja las pausas usando VAD y DTXVBR permite adaptar la frecuencia de bits según la complejidad de la conversación.VBR permite adaptar la frecuencia de bits según la complejidad de la conversación; esta selección usa VBR sin DTX, lo que puede mejorar la performance en comparación con VBR total, en presencia de algún ruido de fondo.Las opciones válidas son: Frecuencia de bits variable (VBR)Frecuencia de bits variable (VBR) con VADFrecuencia de bits variable (VBR) con todas las prestacionesVariando este deslizador se controla el retraso entre los movimientos del cursor y la reproducción. Esto es más notorio cuando se "frega" durante la reproducción. Los valores bajos mejoran la respuesta, pero pueden degradar la calidad del audio en sistemas damasiado cargados.Versión:Zoom vertical [Shift + Flecha Arriba/Abajo]VerLargo visibleCodificación VorbisATENCION: la compilación incluye código en desarrollo. Bienvenido a SweepCuando está a nivel de muestreos individuales, haga click para editarSeleccionar aquellas regiones que están sobre un unbral especificado o debajo de él.Banda ancha 16 kHzAncho de la ventana de detección de energía (s)Con un vagabundo de NigelCon un tenedorCon una cucharaCon una dentadura falsaCon esta herramienta puede mover las regiones seleccionadas de un muestreo.No tiene permisos para guardar %sZoomZoom totalAgrandarAumenta o disminuyeAgranda o disminuye la vista. Haga click en cualquier lado de la vista para agrandar esa parte del muestreo. Mantenga presionada la tecla shift para disminuir la vusta.Zoom normalReducirAgrandar aAgrandar la selecciónAgrandado al área %dBits por segundo (bps)canaleshh:mm:ss.xxxhttp://sweep.sourceforge.net/kbpsError de libsampleratesweep-0.9.3/po/hu.gmo0000644000175000017500000000725210777670577013157 0ustar useruserÞ•6ÌI| 9¡-Û0 :CGMSX\ cmrw|ƒˆ’«¯¸ ½ÇÌ Ò ßëú ").5PW\ bÂp38#Aey9~¸ ½ËYtk;à * .G v  ‰  ˜   ¨ ¯ ¸ Ä É Ò Þ â ç %ð   " ) 6 @ L f { ˜ ¢ ª Ä Ð Þ ã í ô ( ) 0 5 ; ÜH % 1 ': b k Cq µ ¾ ­Ö %„0 65.,$'(%"* # 2/4)1 3 -!+& --display Use the designated X display. -h --help Output this help. -v --version Output version info. About...AllClearCloseCopyCutDeleteDuplicateEditFileHelpInvertLeftMonoMoveMove regions in a sampleNewNew ViewNoneNormaliseOpenPastePaste as NewPlay samplePlay selectionPlaybackQuitRedoReverseRevertRightSampleSaveSelectSelect regions of a sampleStereoStopSweepSweep versionThis tool allows you to select regions of a sample. You can then apply edits and effects to the: selected regions. Hold down shift whilst selecting to add discontinuous regions to the selection.UndoUntitledUsage: %s [option ...] [files ...] Valid options are: ViewWith this tool you can move selected regions of a sample.ZoomZoom in & outZoom in and out of a view. Click anywhere in a view to zoom in on that part of the sample. Hold down shift and click on the view to zoom out.Zoom to selectionProject-Id-Version: sweep 0.0.9 Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/ POT-Creation-Date: 2008-04-11 15:11+0100 PO-Revision-Date: 2000-05-15 22:MI+0200 Last-Translator: Gergely Nagy Language-Team: Hungarian MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit --display A jelzett X kijelzõ használata. -h --help Ez a képernyõ. -v --version Verziószám kírása. Névjegy...MindentTörlésBezárásMásolásKivágásTörlésDuplázásSzerkesztésFájlSegítségMegfordításBalMonoMozgatásA hanganyag egyes részeinek mozgatásaÚjÚj nézetSemmitNormalizálásMegnyitásBeillesztésBeillesztés mint új anyagHanganyag lejátszásaKiválasztott rész lejátszásaLejátszásKilépésVisszavonás semlegesítéseMegfordításVisszaállításJobbHanganyagMentésKiválasztásA hanganyag egyes részeinek kiválasztásaStereoÁlljSweepSweep verzióEz az eszköz lehetõvé teszi a hanganyag egyes részeinek kiválasztását. Ezek után minden mûvelet erre a részre fog korlátozódni. Tartsa nyomva a shift-et választás közben, hogy nem folyotnos részeket tudnjon kiválasztani.VisszavonásNévtelenHasználat: %s [opció ...] [fájlok ...] Opciók: NézetEzzel az eszközzel a hanganyag kiválasztott részeit lehet mozgatni.NagyításNagyítás és kicsinyítésNézet kicsínyítése és nagyítása. Villantson bárhova a nézeten belül, hogy arraa részre fokuszálodjón a nagyítás. Tartsa lenyomva a shift-et klikkelés közben a kicsinyítéshezA kiválasztott rész méretére nagyítássweep-0.9.3/po/en@quot.header0000644000175000017500000000226310777660173014610 0ustar useruser# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # sweep-0.9.3/po/Makefile.in.in0000644000175000017500000003170710777660173014502 0ustar useruser# Makefile for PO directory in any package using GNU gettext. # Copyright (C) 1995-1997, 2000-2005 by Ulrich Drepper # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public # License but which still want to provide support for the GNU gettext # functionality. # Please note that the actual code of GNU gettext is covered by the GNU # General Public License and is *not* in the public domain. # # Origin: gettext-0.14.4 PACKAGE = @PACKAGE@ VERSION = @VERSION@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datadir = @datadir@ localedir = $(datadir)/locale gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = @MKINSTALLDIRS@ mkinstalldirs = $(SHELL) $(MKINSTALLDIRS) GMSGFMT = @GMSGFMT@ MSGFMT = @MSGFMT@ XGETTEXT = @XGETTEXT@ MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit MSGCONV = msgconv MSGFILTER = msgfilter POFILES = @POFILES@ GMOFILES = @GMOFILES@ UPDATEPOFILES = @UPDATEPOFILES@ DUMMYPOFILES = @DUMMYPOFILES@ DISTFILES.common = Makefile.in.in remove-potcdate.sin \ $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ $(POFILES) $(GMOFILES) \ $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) POTFILES = \ CATALOGS = @CATALOGS@ # Makevars gets inserted here. (Don't remove this line!) .SUFFIXES: .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update .po.mo: @echo "$(MSGFMT) -c -o $@ $<"; \ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@ all: all-@USE_NLS@ all-yes: stamp-po all-no: # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because # we don't want to bother translators with empty POT files). We assume that # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. # In this case, stamp-po is a nop (i.e. a phony target). # stamp-po is a timestamp denoting the last time at which the CATALOGS have # been loosely updated. Its purpose is that when a developer or translator # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent # invocations of "make" will do nothing. This timestamp would not be necessary # if updating the $(CATALOGS) would always touch them; however, the rule for # $(POFILES) has been designed to not touch files that don't need to be # changed. stamp-po: $(srcdir)/$(DOMAIN).pot test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ echo "touch stamp-po" && \ echo timestamp > stamp-poT && \ mv stamp-poT stamp-po; \ } # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', # otherwise packages like GCC can not be built if only parts of the source # have been downloaded. # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ else \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ else \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ } # This rule has no dependencies: we don't need to update $(DOMAIN).pot at # every "make" invocation, only create it when it is missing. # Only "make $(DOMAIN).pot-update" or "make dist" will force an update. $(srcdir)/$(DOMAIN).pot: $(MAKE) $(DOMAIN).pot-update # This target rebuilds a PO file if $(DOMAIN).pot has changed. # Note that a PO file is not touched if it doesn't need to be changed. $(POFILES): $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ else \ $(MAKE) $${lang}.po-create; \ fi install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ for file in $(DISTFILES.common) Makevars.template; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ for file in Makevars; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-data-no: all install-data-yes: all $(mkinstalldirs) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkinstalldirs) $(DESTDIR)$$dir; \ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ fi; \ done; \ done install-strip: install installdirs: installdirs-exec installdirs-data installdirs-exec: installdirs-data: installdirs-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi installdirs-data-no: installdirs-data-yes: $(mkinstalldirs) $(DESTDIR)$(datadir) @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkinstalldirs) $(DESTDIR)$$dir; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ fi; \ done; \ done # Define this as empty until I found a useful application. installcheck: uninstall: uninstall-exec uninstall-data uninstall-exec: uninstall-data: uninstall-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ for file in $(DISTFILES.common) Makevars.template; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi uninstall-data-no: uninstall-data-yes: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ done; \ done check: all info dvi ps pdf html tags TAGS ctags CTAGS ID: mostlyclean: rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo 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 stamp-po $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(MAKE) update-po @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. dist2: stamp-po $(DISTFILES) dists="$(DISTFILES)"; \ if test "$(PACKAGE)" = "gettext-tools"; then \ dists="$$dists Makevars.template"; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ dists="$$dists $(DOMAIN).pot stamp-po"; \ fi; \ if test -f $(srcdir)/ChangeLog; then \ dists="$$dists ChangeLog"; \ fi; \ for i in 0 1 2 3 4 5 6 7 8 9; do \ if test -f $(srcdir)/ChangeLog.$$i; then \ dists="$$dists ChangeLog.$$i"; \ fi; \ done; \ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ for file in $$dists; do \ if test -f $$file; then \ cp -p $$file $(distdir) || exit 1; \ else \ cp -p $(srcdir)/$$file $(distdir) || exit 1; \ fi; \ done update-po: Makefile $(MAKE) $(DOMAIN).pot-update test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) $(MAKE) update-gmo # General rule for creating PO files. .nop.po-create: @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ exit 1 # General rule for updating PO files. .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ if cmp $$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; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi $(DUMMYPOFILES): update-gmo: Makefile $(GMOFILES) @: Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ cd $(top_builddir) \ && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \ $(SHELL) ./config.status force: # 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: sweep-0.9.3/po/Makevars0000644000175000017500000000344610777660173013523 0ustar useruser# Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. DOMAIN = $(PACKAGE) # These two variables depend on the location of this directory. subdir = po top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = Conrad Parker # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS = http://www.metadecks.org/software/sweep/ # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = sweep-0.9.3/po/es_ES.po0000644000175000017500000017047110777670576013400 0ustar useruser# Spanish translation of sweep # Juan Manuel Martínez # #: src/sample-display.c:222 msgid "" msgstr "" "Project-Id-Version: sweep-0.5.13\n" "Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/\n" "POT-Creation-Date: 2008-04-11 15:11+0100\n" "PO-Revision-Date: 2005-12-02 23:06-0600\n" "Last-Translator: Waldo Ramírez Montaño \n" "Language-Team: Spanish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: src/main.c:89 msgid "Welcome to Sweep" msgstr "Bienvenido a Sweep" #: src/main.c:90 msgid "" "Hello, my name is Scrubby. Welcome to Sweep!\n" "\n" "Would you like to create a new file or load an existing file?" msgstr "" "Hola, mi nombre es Scrubby. ¡Bienvenido a Sweep!\n" "\n" "¿Quiere crear un archivo nuevo o cargar uno existente?" #: src/main.c:94 msgid "Create new file" msgstr "Crear archivo nuevo" #: src/main.c:94 msgid "Load existing file" msgstr "Cargar uno existente" #: src/main.c:129 msgid "WARNING: Build includes incomplete development code.\n" msgstr "ATENCION: la compilación incluye código en desarrollo.\n" #: src/main.c:188 msgid "Sweep version" msgstr "Versión de Sweep" #: src/main.c:189 msgid "Sweep plugin API version" msgstr "Versión de la API de Sweep" #: src/main.c:195 #, c-format msgid "Usage: %s [option ...] [files ...]\n" msgstr "Uso: %s [opción...] [archivos...]\n" #: src/main.c:196 msgid "Valid options are:\n" msgstr "Las opciones válidas son:\n" #: src/main.c:197 msgid " -h --help Output this help.\n" msgstr " -h --help Muestra esta ayuda.\n" #: src/main.c:198 msgid " -v --version Output version info.\n" msgstr " -v --version Muestra la versión.\n" #: src/main.c:199 msgid " --display Use the designated X display.\n" msgstr " --display Usa el display X especificado.\n" #: src/main.c:200 msgid "" " --ignore-failed-lock Continue when attempt to lock the\n" " preferences file fails. For use when\n" " the users home directory is on an NFS\n" " file system. (possibly unsafe) \n" msgstr "" #: src/main.c:206 msgid " --no-toolbox Do not show the toolbox window.\n" msgstr " --no-toolbox No muestra la ventana de herramientas.\n" #: src/about_dialog.c:99 msgid "This is Sweep version" msgstr "Este es Sweep versión" #: src/about_dialog.c:119 msgid "http://sweep.sourceforge.net/" msgstr "http://sweep.sourceforge.net/" #: src/callbacks.c:926 src/callbacks.c:939 src/edit.c:1568 src/edit.c:1642 #: src/edit.c:1726 msgid "Clipboard empty" msgstr "Portapapeles vacío" #: src/channelops.c:146 #, c-format msgid "Duplicate to %d channels" msgstr "Duplicar a %d canales" #: src/channelops.c:148 #, c-format msgid "Duplicate from %d to %d channels" msgstr "Duplicar de %d a %d canales" #: src/channelops.c:207 msgid "Sweep: Duplicate channel" msgstr "Sweep: duplicar canal" #: src/channelops.c:214 src/channelops.c:698 #, c-format msgid "Currently: %d channels" msgstr "Actualmente: %d canales" #: src/channelops.c:221 src/channelops.c:704 msgid "Output channels" msgstr "Canales de salida" #: src/channelops.c:231 src/channelops.c:714 src/driver.c:374 #: src/file_sndfile1.c:285 src/param.c:779 src/question_dialogs.c:144 #: src/question_dialogs.c:204 src/question_dialogs.c:253 #: src/sweep_sample.c:1918 src/undo_dialog.c:440 msgid "OK" msgstr "Ok" #: src/channelops.c:242 src/channelops.c:725 src/driver.c:387 #: src/file_sndfile1.c:295 src/param.c:788 src/question_dialogs.c:158 #: src/view.c:543 src/view.c:2650 msgid "Cancel" msgstr "Cancelar" #: src/channelops.c:347 src/view.c:361 msgid "Mix down to mono" msgstr "Mezclar y reducir a Mono" #: src/channelops.c:445 src/view.c:340 msgid "Remove left channel" msgstr "Eliminar canal izquierdo" #: src/channelops.c:455 src/view.c:349 msgid "Remove right channel" msgstr "Eliminar canal derecho" #: src/channelops.c:539 msgid "Swap channels" msgstr "Intercambiar canales" #: src/channelops.c:541 msgid "Not stereo" msgstr "No stereo" #: src/channelops.c:643 #, c-format msgid "Convert from %d to %d channels" msgstr "Convertir de %d a %d canales" #: src/channelops.c:692 msgid "Sweep: Add/Remove channels" msgstr "Sweep: Agregar/Eliminar canales" #: src/driver.c:369 msgid "Sweep: audio device configuration" msgstr "Swwep: configuración del dispositivo de audio" #: src/driver.c:410 msgid "Changes to device settings will take effect on next playback." msgstr "" "Los cambios en el dispositivo de salida tendrán efecto la próxima vez que " "reproduzca el audio." #: src/driver.c:424 msgid "Device name" msgstr "Nombre del dispositivo" #: src/driver.c:430 msgid "Set the main device for playback and recording" msgstr "Establece el dispositivo principal para reproducción y grabación" #: src/driver.c:440 msgid "Main device:" msgstr "Dispositivo principal:" #: src/driver.c:454 src/driver.c:636 src/samplerate.c:570 msgid "Default" msgstr "Predefinido" #: src/driver.c:467 msgid "Use a different device for monitoring" msgstr "Usar un dispositivo distinto para el monitoreo" #: src/driver.c:479 msgid "Monitor output:" msgstr "Salida del monitor:" #: src/driver.c:504 msgid "Swap" msgstr "Intercambiar" #: src/driver.c:512 msgid "Swap main and monitor devices." msgstr "Intercambiar los dispositivos Principal y Monitor" #: src/driver.c:521 src/driver.c:622 src/file_speex.c:1957 #: src/file_vorbis.c:1348 src/samplerate.c:556 src/sweep_sample.c:532 msgid "Reset" msgstr "Reinicializar" #: src/driver.c:529 msgid "Reset to the last remembered device names." msgstr "Reinicializa los dispositivos a los últimos valores conocidos" #: src/driver.c:535 src/file_speex.c:1971 src/file_vorbis.c:1362 #: src/param.c:747 src/sweep_sample.c:543 msgid "Defaults" msgstr "Predeterminados" #: src/driver.c:543 msgid "Set to default device names." msgstr "Establece los dispositivos a los valores predeterminados." #: src/driver.c:554 msgid "Device buffering" msgstr "Dispositivo de pre-lectura" #: src/driver.c:564 msgid "" "Low latency /\n" "More dropouts" msgstr "" "Baja latencia /\n" "Más interrupciones" #: src/driver.c:586 msgid "" "High latency /\n" "Fewer dropouts" msgstr "" "Alta latencia /\n" "Menos interrupciones" #: src/driver.c:590 msgid "" "Varying this slider controls the lag between cursor movements and playback. " "This is particularly noticeable when \"scrubbing\" during playback.\n" "\n" "Lower values improve responsiveness but may degrade audio quality on heavily-" "loaded systems." msgstr "" "Variando este deslizador se controla el retraso entre los movimientos del " "cursor y la reproducción. Esto es más notorio cuando se \"frega\" durante la " "reproducción.\n" "\n" "Los valores bajos mejoran la respuesta, pero pueden degradar la calidad del " "audio en sistemas damasiado cargados." #: src/driver.c:609 msgid "Remember these options" msgstr "Recordar estas opciones" #: src/driver.c:630 msgid "Reset to the last remembered device buffering." msgstr "Reinicializar el dispositivo de pre-lectura al último valor recordado." #: src/driver.c:644 msgid "Set to default device buffering." msgstr "Establece el dispositivo de pre-lectura al valor predeterminado." #: src/edit.c:1291 msgid "No selection to copy" msgstr "Ninguna selección a copiar" #: src/edit.c:1308 src/view.c:572 src/view.c:1150 msgid "Copy" msgstr "Copiar" #: src/edit.c:1342 msgid "No selection to cut" msgstr "Ninguna selección a cortar" #: src/edit.c:1358 src/view.c:568 src/view.c:1144 msgid "Cut" msgstr "Cortar" #: src/edit.c:1388 msgid "No selection to clear" msgstr "Ninguna selección a limpiar" #: src/edit.c:1404 src/view.c:576 src/view.c:1156 msgid "Clear" msgstr "Limpiar" #: src/edit.c:1430 msgid "No selection to delete" msgstr "Ninguna selección a borrar" #: src/edit.c:1447 src/view.c:564 msgid "Delete" msgstr "Borrar" #: src/edit.c:1482 msgid "Nothing to crop out" msgstr "Nada para recortar" #: src/edit.c:1498 src/view.c:580 src/view.c:1162 src/view.c:1868 msgid "Crop" msgstr "Recortar" #: src/edit.c:1572 src/edit.c:1646 src/edit.c:1730 msgid "Clipboard data has incompatible format" msgstr "El formato de los datos del portapapeles es incompatible" #: src/edit.c:1590 msgid "Paste insert" msgstr "Pega e inserta" #: src/edit.c:1669 msgid "Paste mix" msgstr "Pega y mezcla" #: src/edit.c:1757 msgid "Paste xfade" msgstr "Pega intermezclando y desvaneciendo" #: src/file_dialogs.c:73 msgid "MP3 export unsupported" msgstr "Exportación a MP3 no soportada" #: src/file_dialogs.c:74 msgid "" "Export to MP3 format cannot legally be supported in free software\n" "due to patent licensing restrictions.\n" "\n" "Please use Ogg Vorbis format instead, which\n" "provides better quality and is free." msgstr "" "No se puede dar soporte legal a la exportación a formato MP3 en el software " "libre\n" "a causa de restricciones en la patente de licencia.\n" "\n" "Por favor, en reemplazo use el formato Ogg Vorbis que provee\n" "mejor calidad y además es de uso libre." #: src/file_dialogs.c:99 msgid "Raw PCM (headerless)" msgstr "PCM crudo (son encabezamientos)" #: src/file_dialogs.c:157 #, c-format msgid "%s does not exist." msgstr "%s no existe." #: src/file_dialogs.c:158 msgid "Directory does not exist" msgstr "El directorio no existe" #: src/file_dialogs.c:262 #, c-format msgid "" "Unable to read\n" "%s" msgstr "" "Imposible leer\n" "%s" #: src/file_dialogs.c:289 #, fuzzy msgid "Sweep: Open Files" msgstr "Sweep: Nuevo archivo" #: src/file_dialogs.c:370 #, c-format msgid "" "Are you sure you want to revert %s to\n" "%s?\n" "\n" "All changes and undo information will be lost." msgstr "" "¿Está seguro que desea reviertir %s a\n" "%s?\n" "\n" "Todos los cambios y la información parar deshacer serán perdidos." #: src/file_dialogs.c:374 msgid "Revert file" msgstr "Revertir archivo" #: src/file_dialogs.c:375 src/view.c:509 msgid "Revert" msgstr "Revertir" #: src/file_dialogs.c:375 msgid "Don't revert" msgstr "No revertir" #: src/file_dialogs.c:545 src/file_dialogs.c:824 #, c-format msgid "Save as %s cancelled" msgstr "Guardar como %s cancelado" #: src/file_dialogs.c:582 msgid "By extension" msgstr "Por extensión" #: src/file_dialogs.c:640 msgid "MP3 (Use Ogg Vorbis instead)" msgstr "MP3 (Reemplace por Ogg Vorbis)" #: src/file_dialogs.c:707 msgid "Sweep: Save file" msgstr "Sweep: Guardar archivo" #: src/file_dialogs.c:721 msgid "Save Options" msgstr "Opciones para guardar" #: src/file_dialogs.c:730 msgid "Determine File Type:" msgstr "Determinar tipo de archivo:" #: src/file_dialogs.c:810 #, c-format msgid "" "You are not allowed to write to\n" "%s" msgstr "" "No tiene permisos para guardar\n" "%s" #: src/file_dialogs.c:812 #, c-format msgid "%s exists. Overwrite?" msgstr "%s ya existe. Sobreescribir?" #: src/file_dialogs.c:814 msgid "File exists" msgstr "El archivo ya existe" #: src/file_dialogs.c:815 msgid "Overwrite" msgstr "Sobreescribir" #: src/file_dialogs.c:815 msgid "Don't overwrite" msgstr "No sobreescribir" #: src/file_dialogs.c:887 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Are you sure you want to save?" msgstr "" "%s\n" " ha cambiado en el disco.\n" "\n" "¿Está seguro que desea guardarlo?" #: src/file_dialogs.c:891 src/sweep_undo.c:331 src/view.c:3401 msgid "File modified" msgstr "Archivo modificado" #: src/file_dialogs.c:892 src/file_speex.c:2127 src/file_vorbis.c:1611 #: src/view.c:501 src/view.c:1782 msgid "Save" msgstr "Guardar" #: src/file_dialogs.c:892 src/file_speex.c:2138 src/file_vorbis.c:1622 msgid "Don't save" msgstr "No guardar" #: src/file_sndfile1.c:327 msgid "Powered by libsndfile" msgstr "Basado en libsndfile" #: src/file_sndfile1.c:354 msgid "Encoding" msgstr "Codificación" #: src/file_sndfile1.c:375 msgid "Encoding:" msgstr "Codificación:" #: src/file_sndfile1.c:447 msgid "Sampling rate:" msgstr "Frecuencia de muestreo:" #: src/file_sndfile1.c:480 src/file_speex.c:2078 src/file_vorbis.c:1562 #: src/samplerate.c:584 msgid "About" msgstr "Acerca de..." #: src/file_sndfile1.c:496 msgid "" "Libsndfile is a C library by Erik de Castro Lopo\n" "for reading and writing files containing sampled sound." msgstr "" "Libsndfile es una librería en C escrita por Erik de Castro Lopo,\n" "para leer y escribir archivos que contengan sonidos muestreados." #: src/file_sndfile1.c:507 msgid "" "This user interface by Erik de Castro Lopo\n" " and Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "Esta interface de usuario, por Erik de Castro Lopo\n" " y Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" #: src/file_sndfile1.c:550 msgid "Sweep: Save PCM options" msgstr "Sweep: Opciones para guardar PCM" #: src/file_sndfile1.c:719 msgid "Sweep: Load Raw PCM options" msgstr "Sweep: Opciones para cargar Raw PCM" #: src/file_sndfile1.c:771 src/file_mad.c:435 src/file_speex.c:577 #: src/file_vorbis.c:324 #, c-format msgid "Loading %s" msgstr "Cargando %s" #: src/file_sndfile1.c:998 src/file_speex.c:1074 src/file_vorbis.c:702 #, c-format msgid "Saving %s" msgstr "Guardando %s" #: src/file_speex.c:1016 src/file_speex.c:1036 msgid "Speex encoding results" msgstr "Resultados de la codificación Speex" #: src/file_speex.c:1208 msgid "Narrowband ~8 kHz (telephone quality)" msgstr "Banda angosta 8 kHz (Calidad de teléfono)" #: src/file_speex.c:1209 msgid "Wideband ~16 kHz" msgstr "Banda ancha 16 kHz" #: src/file_speex.c:1211 msgid "Ultra-wideband 32-48 kHz" msgstr "Banda ultra ancha 32-48 kHz" #: src/file_speex.c:1218 msgid "Constant bitrate (CBR) with no features" msgstr "Frecuencia de bits constante (CBR) sin prestaciones" #: src/file_speex.c:1221 msgid "CBR with Voice Activity Detection (VAD)" msgstr "CBR con Detección de Actividad de Voz (VAD)" #: src/file_speex.c:1222 msgid "VAD generates low bitrate comfort noise to replace non-speech" msgstr "" "VAD genera ruido confortable de baja frecuencia de bits (bitrate) para " "reemplazar al no-diálogo" #: src/file_speex.c:1225 msgid "CBR with VAD and Discontinuous Transmission (DTX)" msgstr "CBR con VAD y Transmisión Discontinua (DTX)" #: src/file_speex.c:1226 msgid "DTX marks extended pauses with a minimum bitrate signal" msgstr "" "DTX marca las pausas extendidas con una señal de frecuencia de bits mínima" #: src/file_speex.c:1229 msgid "Variable bitrate (VBR) with VAD" msgstr "Frecuencia de bits variable (VBR) con VAD" #: src/file_speex.c:1230 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech; this " "selection uses VBR without DTX, which may improve performance compared to " "full VBR in the presence of background noise." msgstr "" "VBR permite adaptar la frecuencia de bits según la complejidad de la " "conversación; esta selección usa VBR sin DTX, lo que puede mejorar la " "performance en comparación con VBR total, en presencia de algún ruido de " "fondo." #: src/file_speex.c:1235 msgid "Variable bitrate (VBR) with all features" msgstr "Frecuencia de bits variable (VBR) con todas las prestaciones" #: src/file_speex.c:1236 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech, and handles " "pauses using VAD and DTX" msgstr "" "VBR permite adaptar la frecuencia de bits según la complejidad de la " "conversación, y maneja las pausas usando VAD y DTX" #: src/file_speex.c:1240 msgid "Constant bitrate (CBR)" msgstr "Frecuencia de bits constante (ABR)" #: src/file_speex.c:1242 msgid "Variable bitrate (VBR)" msgstr "Frecuencia de bits variable (VBR)" #: src/file_speex.c:1243 msgid "VBR allows the bitrate to adapt to the complexity of the speech." msgstr "" "VBR permite adaptar la frecuencia de bits según la complejidad de la " "conversación." #: src/file_speex.c:1298 src/file_speex.c:1803 msgid "Average bitrate" msgstr "Frecuencia de bits promedio" #: src/file_speex.c:1301 msgid "Maximum bitrate" msgstr "Máxima frecuencia de bits" #: src/file_speex.c:1494 src/file_vorbis.c:1013 msgid "Hack the planet!" msgstr "Hackea el mundo!" #: src/file_speex.c:1580 msgid "Sweep: Speex save options" msgstr "Sweep: Opciones para guardar Speex" #: src/file_speex.c:1631 msgid "Speex encoding" msgstr "Codificación Speex" #: src/file_speex.c:1644 msgid "Mode:" msgstr "Modo:" #: src/file_speex.c:1670 msgid "Auto" msgstr "Automático" #: src/file_speex.c:1679 msgid "" "Automatically select the encoding mode based on the sampling rate of the " "file." msgstr "" "Seleccionar automáticamente el modo de codificación basándose en la " "frecuencia de muestreo del archivo" #: src/file_speex.c:1732 src/file_vorbis.c:1160 msgid "Encoding quality:" msgstr "Calidad de la codificación:" #: src/file_speex.c:1775 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file)." msgstr "" "La calidad de codificación varía de 0 (la más baja calidad, archivos chicos) " "a 10 (la más alta calidad, archivos grandes)." #: src/file_speex.c:1785 msgid "Enable bitrate management" msgstr "Activa la administración de frecuencia de bits" #: src/file_speex.c:1798 msgid "" "For non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For " "VBR encoding, this sets the average bitrate." msgstr "" "Para codificaciones con frecuencia de bits constantes (no VBR), aquí se " "establece la frecuencia de bits máxima. Para codificaciones VBR, se " "establece la frecuencia de bits promedio." #: src/file_speex.c:1821 msgid "bps" msgstr "Bits por segundo (bps)" #: src/file_speex.c:1827 msgid "Extra" msgstr "Extra" #: src/file_speex.c:1849 msgid "Encoding complexity:" msgstr "Complejidad de la codificación:" #: src/file_speex.c:1888 msgid "" "This sets the encoding speed/quality tradeoff between 0 (faster encoding) " "and 10 (slower encoding)" msgstr "" "Aquí se establece la relación velocidad/calidad de la codificación entre 0 " "(codifcación veloz) y 10 (codificaicón lenta)" #: src/file_speex.c:1904 msgid "Speex frames per Ogg packet:" msgstr "Número de muestras Speex por cada paquete Ogg:" #: src/file_speex.c:1930 msgid "" "Number of Speex frames to pack into each Ogg packet. Higher values save " "space at low bitrates." msgstr "" "Número de muestras a insertar dentro de cada paquete Ogg. Los valores mas " "altos ahorran espacio a bajas frecuencias de bits." #: src/file_speex.c:1945 src/file_vorbis.c:1336 msgid "Remember these encoding options" msgstr "Recordar estas opciones de codificación" #: src/file_speex.c:1965 src/file_vorbis.c:1356 msgid "Reset to the last remembered encoding options." msgstr "" "Reinicializar a las últimas opciones de codificación que se recordaron." #: src/file_speex.c:1980 msgid "Automatically select best encoding options for this file." msgstr "" "Seleccionar automáticamente las mejores opciones de codificación para este " "archivo" #: src/file_speex.c:1985 src/file_vorbis.c:1469 msgid "Ogg stream" msgstr "Flujo Ogg" #: src/file_speex.c:1998 src/file_vorbis.c:1482 msgid "Ogg stream serial number:" msgstr "Número de serie del flujo Ogg" #: src/file_speex.c:2019 src/file_vorbis.c:1503 msgid "Remember this serial number" msgstr "Recordar este número de serie" #: src/file_speex.c:2029 src/file_vorbis.c:1513 msgid "" "Remember this serial number for future re-use.\n" "USE OF THIS OPTION IS NOT RECOMMENDED.\n" "Each encoded file should have a different serial number; re-use of Ogg " "serial numbers in different files may create incompatabilities with " "streaming applications. This option is provided for bitstream engineering " "purposes only.\n" "If this option is not checked, new serial numbers will be randomly generated " "for each file encoded." msgstr "" "Recordar este número de serie para usos futuros.\n" "NO SE RECOMIENDA EL USO DE ESTA OPCION.\n" "Cada archivo codificado debería tener un número de serie diferente; " "reutilizar números de serie Ogg en distintos archivos puede crear " "incompatibilidades con aplicaciones que leen el flujo. Esta opción se " "suministra únicamente para fines ingenieriles en los flujos de bits.\n" "Si la opción no está seleccionada, se generarán números de serie aleatorios " "para cada archivo codificado." #: src/file_speex.c:2056 src/file_vorbis.c:1540 msgid "Randomize!" msgstr "¡Aleatorizar!" #: src/file_speex.c:2063 src/file_vorbis.c:1547 msgid "" "Generate a random serial number for the Ogg bitstream. The number will " "change while this button is held down." msgstr "" "Genera un número de serie aleatorio para el flujo Ogg. El número cambiará " "mientras este botón se mantenga presionado." #: src/file_speex.c:2094 msgid "" "Speex is a high quality speech codec designed for\n" "voice over IP (VoIP) and file-based compression.\n" "It is free, open and unpatented." msgstr "" "Speex es un codec de voz de alta calidad diseñado\n" "para \"voice over IP (VoIP)\" y compresión de archivos.\n" "Es de uso gratuito, abierto y no está patentado." #: src/file_speex.c:2105 msgid "" "Ogg, Speex, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ogg, Speex, Xiph.org Foundation y sus logotipos\n" "son marcas registradas de la fundación Xiph.org.\n" "Usado con autorización." #: src/file_speex.c:2120 src/file_vorbis.c:1604 src/samplerate.c:611 msgid "" "This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "Esta interface de usuario, por Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" #: src/file_vorbis.c:356 #, c-format msgid "" "Decoding %s\n" "Encoded by: %s\n" "\n" "%s" msgstr "" "Decodificando %s\n" "Codificado por: %s\n" "\n" "%s" #: src/file_vorbis.c:470 msgid "Unsupported encoding mode" msgstr "Modo de codificación no soportado" #: src/file_vorbis.c:473 msgid "Invalid encoding options" msgstr "Opciones de codificación inválidas" #: src/file_vorbis.c:643 src/file_vorbis.c:663 msgid "Ogg Vorbis encoding results" msgstr "Resultados de la codificación Ogg Vorbis" #: src/file_vorbis.c:1089 msgid "Sweep: Ogg Vorbis save options" msgstr "Sweep: Opciones para guardar Ogg Vorbis" #: src/file_vorbis.c:1148 msgid "Vorbis encoding" msgstr "Codificación Vorbis" #: src/file_vorbis.c:1195 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file) using variable bitrate mode (VBR)." msgstr "" "La calidad de codificación varía de 0 (la más baja calidad, archivos chicos) " "a 10 (la más alta calidad, archivos grandes) usando el modo de frecuencia de " "bits variable." #: src/file_vorbis.c:1205 msgid "Enable bitrate management engine" msgstr "Habilitar el motor de administración de frecuencia de bits" #: src/file_vorbis.c:1211 msgid "" "This enables average bitrate mode (ABR). You must suggest a nominal average " "bitrate and may specify minimum and maximum bounds.\n" "For best results it is generally recommended that you use the variable " "bitrate 'encoding quality' control (above) instead." msgstr "" "Aquí se habilita el modo de promedio de frecuencia de bits (ABR). Debe " "sugerir un promedio de frecuencia de bits nominal y debería especificar los " "límites mínimo y máximo.\n" "Para lograr mejores resultados, generalmente se recomienda que se use el " "control de frecuencia de bits variable \"Calidad de codificación\" en " "reemplazo de este (ver mas arriba)." #: src/file_vorbis.c:1221 msgid "Bitrate management engine" msgstr "Motor de administración de frecuencia de bits" #: src/file_vorbis.c:1247 msgid "Nominal bitrate (ABR):" msgstr "Frecuencia de bits nominal (ABR):" #: src/file_vorbis.c:1260 msgid "" "Specify a nominal bitrate. Attempt to encode at a bitrate averaging this." msgstr "" "Especifique una frecuencia de bits nominal. Se tratará de codificar con una " "frecuencia de bits que promedie este valor" #: src/file_vorbis.c:1264 src/file_vorbis.c:1293 src/file_vorbis.c:1323 msgid "kbps" msgstr "kbps" #: src/file_vorbis.c:1276 msgid "Minimum bitrate:" msgstr "Frecuencia de bits mínima:" #: src/file_vorbis.c:1289 msgid "" "Specify a minimum bitrate, useful for encoding for a fixed-size channel. " "(Optional)" msgstr "" "Especifique una frecuencia de bits mínimam; es útil para codificar canales " "de tamaño fijo (opcional)." #: src/file_vorbis.c:1306 msgid "Maximum bitrate:" msgstr "Frecuencia de bits máxima:" #: src/file_vorbis.c:1319 msgid "" "Specify a maximum bitrate, useful for streaming applications. (Optional)" msgstr "" "Especifique una frecuencia de bits máxima; es útil para las aplicaciones que " "leen el flujo (opcional)." #: src/file_vorbis.c:1370 msgid "Set to default encoding options." msgstr "Establece las opciones de codificación predeterminadas." #: src/file_vorbis.c:1377 msgid "Metadata" msgstr "Metadata" #: src/file_vorbis.c:1399 msgid "Title:" msgstr "Título:" #: src/file_vorbis.c:1399 msgid "Track/Work name" msgstr "Nombre de la pista/trabajo" #: src/file_vorbis.c:1401 msgid "Version:" msgstr "Versión:" #: src/file_vorbis.c:1402 msgid "" "The version field may be used to differentiate multiple versions of the same " "track title in a single collection. (e.g. remix info)" msgstr "" "El campo Versión puede ser usado para diferenciar las distintas versiones " "del mismo título de pista de un mismo álbum (p.e. remix info)" #: src/file_vorbis.c:1406 msgid "Album:" msgstr "Album:" #: src/file_vorbis.c:1407 msgid "The collection name to which this track belongs" msgstr "El nombre del álbum al que pertenece esta pista" #: src/file_vorbis.c:1409 msgid "Artist:" msgstr "Artista:" #: src/file_vorbis.c:1410 msgid "" "The artist generally considered responsible for the work. In popular music " "this is usually the performing band or singer. For classical music it would " "be the composer. For an audio book it would be the author of the original " "text." msgstr "" "El artista que es, generalmente, considerado el responsable del trabajo. " "Para música popular usualmente es el cantante o la banda que tocan. Para " "música clásica. debería ser el compositor. Para un libro de audio, debería " "ser el autor del texto original." #: src/file_vorbis.c:1416 msgid "Performer:" msgstr "Ejecutor:" #: src/file_vorbis.c:1417 msgid "" "The artist(s) who performed the work. In classical music this would be the " "conductor, orchestra, soloists. In an audio book it would be the actor who " "did the reading. In popular music this is typically the same as the ARTIST " "and is omitted." msgstr "" "El artista que ejecutó el trabajo. Para música clásica, debería ser el " "director, orquesta o solista. Para un libro de audio, debería ser el actor " "que lo leyó. Para música popular, generalmente es igual al ARTISTA y por eso " "se omite." #: src/file_vorbis.c:1424 msgid "Copyright:" msgstr "Copyright:" #: src/file_vorbis.c:1425 msgid "" "Copyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'" msgstr "" "Derecho de Copia, p.e. '2001 Juan Manuel Martínez' o '1999 La banda de " "pirulo'" #: src/file_vorbis.c:1428 msgid "License:" msgstr "Licencia:" #: src/file_vorbis.c:1429 msgid "" "License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL " "to a license such as a Creative Commons license (\"www.creativecommons.org/" "blahblah/license.html\") or the EFF Open Audio License ('distributed under " "the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/" "eff_oal.html for details'), etc." msgstr "" "Información de la licencia, p.e. 'Todos los derechos reservados', 'Permitido " "su uso', una URL que apunte hacia una licencia como la Creative Commons " "license (\"www.creativecommons.org/blahblah/license.html\") o la EFF Open " "Audio License ('Distribuido bajo los términos de la Open Audio License. Ver " "http://www.eff.org/IP/Open_licenses/eff_oal.html pera más detalles'), etc." #: src/file_vorbis.c:1438 msgid "Organization:" msgstr "Organización:" #: src/file_vorbis.c:1439 msgid "Name of the organization producing the track (i.e. the 'record label')" msgstr "" "Nombre de la organización que produjo la pista (es decir, el 'sello " "discográfico')" #: src/file_vorbis.c:1442 msgid "Description:" msgstr "Descripción:" #: src/file_vorbis.c:1443 msgid "A short text description of the contents" msgstr "Una breve descripción del contenido" #: src/file_vorbis.c:1445 msgid "Genre:" msgstr "Género:" #: src/file_vorbis.c:1446 msgid "A short text indication of music genre" msgstr "Una breve indicación del género musical" #: src/file_vorbis.c:1448 msgid "Date:" msgstr "Fecha:" #: src/file_vorbis.c:1449 msgid "Date the track was recorded" msgstr "Fecha de la grabación de la pista" #: src/file_vorbis.c:1451 msgid "Location:" msgstr "Ubicación:" #: src/file_vorbis.c:1452 msgid "Location where track was recorded" msgstr "Lugar donde fué grabada la pista" #: src/file_vorbis.c:1454 msgid "Contact:" msgstr "Contacto:" #: src/file_vorbis.c:1455 msgid "" "Contact information for the creators or distributors of the track. This " "could be a URL, an email address, the physical address of the producing " "label." msgstr "" "Información de los contactos con los creadores o distribuidores de la pista. " "Puede ser una URL, una dirección de mail, la dirección física de la casa " "discográfica, etc." #: src/file_vorbis.c:1460 msgid "ISRC:" msgstr "ISRC:" #: src/file_vorbis.c:1461 msgid "" "ISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-" "content/online/isrc_intro.html) for more information on ISRC numbers." msgstr "" "Número de ISRC de la pista; vea la página de introducción a ISRC (http://www." "ifpi.org/site-content/online/isrc_intro.html) para obtener mayor información " "sobre los números ISRC." #: src/file_vorbis.c:1578 msgid "" "Ogg Vorbis is a high quality general purpose\n" "perceptual audio codec. It is free, open and\n" "unpatented." msgstr "" "Ogg Vorbis es un codec de alta calidad\n" "para uso general. Es gratis, abierto y no\n" "está patentado." #: src/file_vorbis.c:1589 msgid "" "Ogg, Vorbis, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ogg, Vorbis, Xiph.org Foundation y sus logotipos\n" "son marcas registradas de la fundación Xiph.org.\n" "Usado con autorización." #: src/head.c:408 src/view.c:2324 msgid "Cursor position (indicator)" msgstr "Posición del cursor (indicador)" #: src/head.c:449 msgid "Reverse mode (toggle)" msgstr "Grabación en reversa (activar/desactivar)" #: src/head.c:467 msgid "Loop mode recording (toggle)" msgstr "Grabación en modo cíclico (activar/desactivar)" #: src/head.c:486 msgid "Record into selection" msgstr "Grabación dentro de la selección" #: src/head.c:503 src/view.c:1068 msgid "Stop" msgstr "Detener" #: src/head.c:516 src/view.c:2469 msgid "Go to beginning" msgstr "Ir al comienzo" #: src/head.c:527 src/view.c:2480 msgid "Rewind" msgstr "Rebobinar" #: src/head.c:540 src/view.c:2492 msgid "Fast forward" msgstr "Avance rápido" #: src/head.c:555 src/view.c:2505 msgid "Go to the end" msgstr "Ir al final" #: src/interface.c:327 msgid "Sweep" msgstr "Sweep" #: src/interface.c:352 src/view.c:446 msgid "File" msgstr "Archivo" #: src/interface.c:357 msgid "New" msgstr "Nuevo" #: src/interface.c:366 msgid "Open" msgstr "Abrir" #: src/interface.c:375 src/sweep_sample.c:800 src/sweep_sample.c:808 #: src/view.c:529 msgid "Quit" msgstr "Salir" #: src/interface.c:386 src/view.c:1073 msgid "Help" msgstr "Ayuda" #: src/interface.c:391 msgid "About..." msgstr "Sobre..." #: src/interface.c:414 src/view.c:618 msgid "Select" msgstr "Selección" #: src/interface.c:415 msgid "Select regions of a sample" msgstr "Selecciona regiones de un muestreo" #: src/interface.c:416 msgid "" "This tool allows you to select regions of a sample. You can then apply edits " "and effects to the: selected regions. Hold down shift whilst selecting to " "add discontinuous regions to the selection." msgstr "" "Esta herramienta le permite seleccionar regiones de un muestreo. Luego puede " "aplicar las modificaciones y los efectos a las regiones selccinadas. " "Mantenga presionada la tecla shift mientras selecciona para agregar regiones " "discontínuas a la selección." #: src/interface.c:433 msgid "Move" msgstr "Mover" #: src/interface.c:434 msgid "Move regions in a sample" msgstr "Mueve regiones en un muestreo" #: src/interface.c:435 msgid "With this tool you can move selected regions of a sample." msgstr "" "Con esta herramienta puede mover las regiones seleccionadas de un muestreo." #: src/interface.c:447 msgid "Scrub" msgstr "Scrub" #: src/interface.c:448 msgid "Locate sounds directly" msgstr "Encontrar sonidos directamente" #: src/interface.c:449 msgid "" "Place the play marker on a sample. Click anywhere in a view to instantly " "move the playback position to that part of the sample." msgstr "" "Ubique el marcador de reproducción en un muestreo. Haga click en cualquier " "lado en la vista para mover instantáneamente la posición de reproducción a " "esa parte del muestreo." #: src/interface.c:466 msgid "Zoom" msgstr "Zoom" #: src/interface.c:467 msgid "Zoom in & out" msgstr "Aumenta o disminuye" #: src/interface.c:468 msgid "" "Zoom in and out of a view. Click anywhere in a view to zoom in on that part " "of the sample. Hold down shift and click on the view to zoom out." msgstr "" "Agranda o disminuye la vista. Haga click en cualquier lado de la vista para " "agrandar esa parte del muestreo. Mantenga presionada la tecla shift para " "disminuir la vusta." #: src/interface.c:484 msgid "Pencil" msgstr "Lápiz" #: src/interface.c:485 msgid "Edit PCM sample values" msgstr "Modifica los valores PCM de un muestreo" #: src/interface.c:486 msgid "When zoomed down to individual samples, click to edit" msgstr "Cuando está a nivel de muestreos individuales, haga click para editar" #: src/interface.c:497 msgid "Noise" msgstr "Ruido" #: src/interface.c:498 msgid "Add noise" msgstr "Agrega ruido" #: src/interface.c:499 msgid "Randomise PCM values" msgstr "Aleatoriza los valores PCM" #: src/notes.c:61 msgid "C3" msgstr "Do 3" #: src/notes.c:62 msgid "C#3" msgstr "Do# 3" #: src/notes.c:63 msgid "D3" msgstr "Re 3" #: src/notes.c:64 msgid "Eb3" msgstr "Mib 3" #: src/notes.c:65 msgid "E3" msgstr "Mi 3" #: src/notes.c:66 msgid "F3" msgstr "Fa 3" #: src/notes.c:67 msgid "F#3" msgstr "Fa# 3" #: src/notes.c:68 msgid "G3" msgstr "Sol 3" #: src/notes.c:69 msgid "G#3" msgstr "Sol# 3" #: src/notes.c:70 msgid "A3" msgstr "La 3" #: src/notes.c:71 msgid "Bb3" msgstr "Sib 3" #: src/notes.c:72 msgid "B3" msgstr "Si 3" #: src/notes.c:74 msgid "C4" msgstr "Do 4" #: src/notes.c:76 msgid "C#4" msgstr "Do# 4" #: src/notes.c:77 msgid "D4" msgstr "Re 4" #: src/notes.c:78 msgid "Eb4" msgstr "Mib 4" #: src/notes.c:79 msgid "E4" msgstr "Mi 4" #: src/notes.c:80 msgid "F4" msgstr "Fa 4" #: src/notes.c:81 msgid "F#4" msgstr "Fa# 4" #: src/notes.c:82 msgid "G4" msgstr "Sol 4" #: src/notes.c:83 msgid "G#4" msgstr "Sol# 4" #: src/notes.c:84 msgid "A4" msgstr "La 4" #: src/notes.c:85 msgid "Bb4" msgstr "Sib 4" #: src/notes.c:86 msgid "B4" msgstr "Si 4" #: src/notes.c:88 msgid "C5" msgstr "Do 5" #: src/notes.c:89 msgid "C#5" msgstr "Do# 5" #: src/notes.c:90 msgid "D5" msgstr "Re 5" #: src/notes.c:91 msgid "D#5" msgstr "Re# 5" #: src/notes.c:92 msgid "E5" msgstr "Mi 5" #: src/notes.c:94 msgid "F5" msgstr "Fa 5" #: src/notes.c:95 msgid "F#5" msgstr "Fa# 5" #: src/notes.c:96 msgid "G5" msgstr "Sol 5" #: src/notes.c:97 msgid "G#5" msgstr "Sol# 5" #: src/notes.c:98 msgid "A5" msgstr "La 5" #: src/notes.c:99 msgid "Bb5" msgstr "Sib 5" #: src/notes.c:100 msgid "B5" msgstr "Si 5" #: src/param.c:117 #, c-format msgid "TRUE" msgstr "VERDADERO" #: src/param.c:118 #, c-format msgid "FALSE" msgstr "FALSO" #: src/param.c:738 msgid "Parameters" msgstr "Parámetros" #: src/param.c:769 msgid "Preview" msgstr "Sonido preliminar" #: src/paste_dialogs.c:221 msgid "Start gain" msgstr "Ganancia inicial" #: src/paste_dialogs.c:223 src/record.c:489 src/record.c:507 #: plugins/echo/echo.c:61 msgid "Gain" msgstr "Ganancia" #: src/paste_dialogs.c:230 msgid "Sweep: Paste crossfade" msgstr "Sweep: Pegar intermezclando y desvaneciendo" #: src/paste_dialogs.c:232 msgid "Sweep: Paste mix" msgstr "Sweep: Pegar y mezclar" #: src/paste_dialogs.c:257 msgid "Source" msgstr "Fuente" #: src/paste_dialogs.c:257 msgid "Clipboard" msgstr "Portapapeles" #: src/paste_dialogs.c:279 src/paste_dialogs.c:318 msgid "End gain" msgstr "Ganancia final" #: src/paste_dialogs.c:287 src/paste_dialogs.c:326 msgid "Invert phase" msgstr "Invertir la fase" #: src/paste_dialogs.c:295 msgid "Destination" msgstr "Destino" #: src/paste_dialogs.c:345 msgid "" "Indicates the total duration of the clipboard, which is the maximum length " "that will be pasted." msgstr "" "Indica la duración total del portapapeles, que es el largo máximo que será " "pegado." #: src/paste_dialogs.c:362 msgid "Clipboard duration:" msgstr "Duración del portapapeles:" #: src/paste_dialogs.c:375 msgid "Crossfade" msgstr "Intermezclar desvaneciendo" #: src/paste_dialogs.c:375 msgid "Mix" msgstr "Mezclar" #: src/paste_dialogs.c:394 msgid "Don't crossfade" msgstr "No intermezclar" #: src/paste_dialogs.c:394 msgid "Don't mix" msgstr "No mezclar" #: src/preferences.c:62 msgid "Error creating ~/.sweep" msgstr "Error al crear ~/.sweep" #: src/preferences.c:66 #, c-format msgid "Created %s/ mode %04o\n" msgstr "Se creó %s/ modo %04o\n" #: src/preferences.c:73 msgid "Error on ~/.sweep" msgstr "Error en ~/.sweep" #: src/preferences.c:82 msgid "Error setting permissions on ~/.sweep" msgstr "Error al poner los permisos de ~/.sweep" #: src/preferences.c:89 msgid "Error accessing ~/.sweep" msgstr "Error al acceder a ~/.sweep" #: src/preferences.c:124 msgid "Error opening ~/.sweep/preferences.tdb" msgstr "Error al acceder a ~/.sweep/preferences.tdb" #: src/record.c:94 src/record.c:544 msgid "Ready to record" msgstr "Listo para grabar" #: src/record.c:308 msgid "No selection to record into" msgstr "No hay ninguna selección en la que grabar" #: src/record.c:446 msgid "Sweep: Record" msgstr "Sweep: Grabar" #: src/record.c:459 src/undo_dialog.c:376 msgid "File:" msgstr "Archivo:" #: src/record.c:482 msgid "Previous sound" msgstr "Sonido anterior" #: src/record.c:496 msgid "" "This slider allows you to mix the new recording in with the previous " "contents of the buffer. Set it to -inf dB to overwrite the previous sound." msgstr "" "El deslizador le permite mezclar la nueva grabación con el contenido " "anterior del buffer. Al ponerlo en -inf dB se sobreescribe el sonido " "anterior." #: src/record.c:502 msgid "Recorded sound" msgstr "Sonido grabado" #: src/record.c:514 msgid "" "This slider allows you to reduce the level of the recorded sound. Set it to " "0 dB to record without any reduction. Note that setting this to -inf dB will " "record silence." msgstr "" "Este deslizador le permite reducir el nivel del sonido grabado. Al ponerlo " "en 0 dB se graba sin reducción. Tenga en cuenta que al ponerlo en -in dB se " "grabará silenciado." #: src/sample-display.c:223 msgid "New selection" msgstr "Nueva selección" #: src/sample-display.c:224 msgid "Selection: add/modify region" msgstr "Selección: agregar/modificar región" #: src/sample-display.c:225 msgid "Selection: subtract region" msgstr "Selección: sustraer región" #: src/samplerate.c:103 src/samplerate.c:167 msgid "Resample error" msgstr "Error de remuestreo" #: src/samplerate.c:104 src/samplerate.c:168 msgid "libsamplerate error" msgstr "Error de libsamplerate" #: src/samplerate.c:234 #, c-format msgid "Resample from %d Hz to %d Hz" msgstr "Remuestrear de %d Hz a %d Hz" #: src/samplerate.c:445 msgid "Sweep: Resample" msgstr "Sweep: Remuestrear" #: src/samplerate.c:467 msgid "Conversion" msgstr "Conversión" #: src/samplerate.c:474 #, c-format msgid "Current sample rate: %d Hz" msgstr "Frecuencia de muestreo actual: %d Hz" #: src/samplerate.c:483 msgid "New sample rate" msgstr "Nueva frecencia de muestreo" #: src/samplerate.c:494 msgid "Quality" msgstr "Calidad" #: src/samplerate.c:501 msgid "Converter" msgstr "Convertir" #: src/samplerate.c:544 msgid "Remember this quality" msgstr "Recordar esta calidad" #: src/samplerate.c:564 msgid "Reset to the last remembered quality." msgstr "Reinicializar a la última calidad que se recordó." #: src/samplerate.c:578 msgid "Set to default quality." msgstr "Establecer a la calidad predeterminada." #: src/samplerate.c:600 msgid "" "Secret Rabbit Code (aka libsamplerate) is a\n" "Sample Rate Converter for audio by Erik de Castro Lopo\n" msgstr "" "Secret Rabbit Code (alias libsamplerate) es un\n" "conversor para audio escrito por Erik de Castro Lopo\n" #: src/samplerate.c:620 msgid "Resample" msgstr "Remuestrear" #: src/samplerate.c:633 msgid "Don't resample" msgstr "No remuestrear" #: src/sw_chooser.c:51 src/sw_chooser.c:66 msgid "Custom" msgstr "Personalizado" #: src/sw_chooser.c:52 msgid "192000 Hz (Studio quality)" msgstr "192000 Hz (Calidad de estudio)" #: src/sw_chooser.c:53 msgid " 96000 Hz (High quality)" msgstr " 96000 Hz (Alta calidad)" #: src/sw_chooser.c:54 msgid " 48000 Hz (DAT quality)" msgstr " 48000 Hz (Calidad de DAT)" #: src/sw_chooser.c:55 msgid " 44100 Hz (CD quality)" msgstr " 44100 Hz (Calidad de CD)" #: src/sw_chooser.c:56 msgid " 32000 Hz (Ultra-wideband voice quality)" msgstr " 32000 Hz (Calidad de voz de ultra ancho de banda)" #: src/sw_chooser.c:57 msgid " 22050 Hz" msgstr " 22050 Hz" #: src/sw_chooser.c:58 msgid " 16000 Hz (Wideband voice quality)" msgstr " 16000 Hz (Calidad de voz de banda ancha)" #: src/sw_chooser.c:59 msgid " 11025 Hz" msgstr " 11025 Hz" #: src/sw_chooser.c:60 msgid " 8000 Hz (Narrowband voice quality)" msgstr " 8000 Hz (Calidad de voz de banda angosta)" #: src/sw_chooser.c:61 msgid " 4000 Hz (Low quality)" msgstr " 4000 Hz (Baja calidad)" #: src/sw_chooser.c:67 src/view.c:3446 src/view.c:3459 src/view.c:3498 #, c-format msgid "Mono" msgstr "Mono" #: src/sw_chooser.c:68 src/view.c:3446 src/view.c:3459 src/view.c:3501 #, c-format msgid "Stereo" msgstr "Stereo" #: src/sw_chooser.c:69 msgid "Quadraphonic" msgstr "Cuadrofónico" #: src/sw_chooser.c:306 msgid "Custom: " msgstr "Personalizado: " #: src/sw_chooser.c:341 msgid "Sampling rate" msgstr "Frecuencia de muestreo" #: src/sw_chooser.c:343 msgid "Hz" msgstr "Hz" #: src/sw_chooser.c:367 src/view.c:884 msgid "Channels" msgstr "Canales" #: src/sw_chooser.c:369 src/view.c:3505 msgid "channels" msgstr "canales" #: src/sweep_filter.c:125 msgid "No selection to process" msgstr "No hay ninguna selección para procesar" #: src/sweep_sample.c:119 src/view.c:3444 src/view.c:3450 src/view.c:3457 #: src/view.c:3463 msgid "Untitled" msgstr "Sin título" #: src/sweep_sample.c:324 msgid "Overflow" msgstr "Desbordamiento" #: src/sweep_sample.c:407 msgid "Sweep: New file" msgstr "Sweep: Nuevo archivo" #: src/sweep_sample.c:435 msgid "Name:" msgstr "Nombre:" #: src/sweep_sample.c:455 msgid "Duration:" msgstr "Duración:" #: src/sweep_sample.c:471 msgid "hh:mm:ss.xxx" msgstr "hh:mm:ss.xxx" #: src/sweep_sample.c:514 msgid "Remember this format" msgstr "Recordar este formato" #: src/sweep_sample.c:520 msgid "" "Remember this sampling rate and channel configuration for creating new files." msgstr "" "Recordar esta frecuencia de muestreo y la configuración de canales para " "crear archivos nuevos." #: src/sweep_sample.c:540 msgid "Reset to the last remembered format for new files." msgstr "Reinicializar al último formato que se recordó para archivos nuevos." #: src/sweep_sample.c:551 msgid "Set to the default format for new files." msgstr "Establecer al formato predeterminado para archivos nuevos." #: src/sweep_sample.c:567 msgid "" "Indicates the amount of data memory which will be allocated for the selected " "duration and format. All audio data is processed internally in 32 bit " "floating point format." msgstr "" "Indica la cantidad de memoria para datos que será reservada para el formato " "y la duración seleccionados. Todos los datos de audio son procesados " "internamente en formato de 32 bits con punto flotante." #: src/sweep_sample.c:582 msgid "Data memory:" msgstr "Memoria de datos:" #: src/sweep_sample.c:594 msgid "Create" msgstr "Crear" #: src/sweep_sample.c:606 msgid "Don't create" msgstr "No crear" #: src/sweep_sample.c:774 msgid "Excellent!!!" msgstr "Excelente!!!" #: src/sweep_sample.c:796 msgid "Files unsaved" msgstr "Archivos no guardados" #: src/sweep_sample.c:797 msgid "" "Some files are unsaved. If you quit, all changes will be lost.\n" "\n" "Are you sure you want to quit?" msgstr "" "Algunos archivos no han sido guardados. Si sale del programa, se perderán " "todos los cambios.\n" "\n" "Está seguro que desea salir?" #: src/sweep_sample.c:800 src/sweep_sample.c:808 msgid "Don't quit" msgstr "No salir" #: src/sweep_sample.c:804 msgid "Files playing" msgstr "Archivos en reproducción" #: src/sweep_sample.c:805 msgid "" "No files are unsaved, but some files are currently playing.\n" "\n" "Are you sure you want to quit?" msgstr "" "No hay archivos sin guardar, pero algunos se están reproduciendo.\n" "\n" "Está seguro que desea salir?" #: src/sweep_sample.c:1465 src/view.c:1206 msgid "Invert selection" msgstr "Invertir selección" #: src/sweep_sample.c:1485 src/view.c:1214 src/view.c:1308 msgid "Select all" msgstr "Seleccionar todo" #: src/sweep_sample.c:1505 src/view.c:1222 msgid "Select none" msgstr "Sin selección" #: src/sweep_sample.c:1525 msgid "Halve selection" msgstr "Seleccionar la mitad" #: src/sweep_sample.c:1545 msgid "Double selection" msgstr "Seleccionar el doble" #: src/sweep_sample.c:1568 msgid "Selection left" msgstr "Seleccinar la izquierda" #: src/sweep_sample.c:1590 msgid "Selection right" msgstr "Seleccionar la derecha" #: src/sweep_sample.c:1678 #, c-format msgid "Insert selection [" msgstr "Insertar la selección [" #: src/sweep_sample.c:1731 #, c-format msgid "Subtract selection [" msgstr "Sustraer la selección [" #: src/sweep_sample.c:1776 #, c-format msgid "Set selection [" msgstr "Establecer la selección [" #: src/sweep_sample.c:1875 msgid "Sweep: File properties" msgstr "Sweep: Proiedades del archivo" #: src/sweep_sample.c:1899 msgid "Filename: " msgstr "Nombre del archivo:" #: src/sweep_sample.c:1901 msgid "Sampling rate: " msgstr "Frequencia de muestreo:" #: src/sweep_sample.c:1903 msgid "Channels: " msgstr "Canales:" #: src/sweep_sample.c:1905 msgid "Data memory: " msgstr "Memoria de datos:" #: src/sweep_sample.c:1907 msgid "Duration: " msgstr "Duración:" #: src/sweep_undo.c:327 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Do you want to continue editing this buffer?" msgstr "" "%s\n" " ha cambiado en el disco.\n" "\n" "Desea seguir editando este buffer?" #: src/sweep_undo.c:332 msgid "Continue editing" msgstr "Seguir editando" #: src/sweep_undo.c:332 msgid "Reread from disk" msgstr "Releer del disco" #: src/sweep_undo.c:430 src/sweep_undo.c:488 msgid "Nothing to undo" msgstr "No hay nada que deshacer" #: src/sweep_undo.c:511 src/sweep_undo.c:567 msgid "Nothing to redo" msgstr "No hay nada que rehacer" #: src/undo_dialog.c:159 msgid "Original data" msgstr "Datos originales" #: src/undo_dialog.c:344 msgid "Action" msgstr "Acción" #: src/undo_dialog.c:351 msgid "Sweep: History" msgstr "Sweep: Historial" #: src/undo_dialog.c:393 src/view.c:548 src/view.c:1887 msgid "Undo" msgstr "Deshacer" #: src/undo_dialog.c:401 src/view.c:552 src/view.c:1896 msgid "Redo" msgstr "Rehacer" #: src/undo_dialog.c:426 msgid "Revert to selected state" msgstr "Revertir al estado seleccionado" #: src/undo_dialog.c:452 src/view.c:525 src/view.c:3402 msgid "Close" msgstr "Cerrar" #: src/view.c:311 msgid "Duplicate to stereo" msgstr "Duplicar a stereo" #: src/view.c:319 msgid "Duplicate to multichannel" msgstr "Duplicar a multicanal" #: src/view.c:331 msgid "Swap left and right" msgstr "Intercambiar izquierda y derecha" #: src/view.c:371 msgid "Add/Remove channels" msgstr "Agregar/Eliminar canales" #: src/view.c:454 src/view.c:1768 msgid "New ..." msgstr "Nuevo..." #: src/view.c:458 src/view.c:1775 msgid "Open ..." msgstr "Abrir..." #: src/view.c:488 msgid "Open Recent" msgstr "" #: src/view.c:505 msgid "Save As ..." msgstr "Guardar como..." #: src/view.c:517 msgid "Properties ..." msgstr "Propiedades..." #: src/view.c:535 src/view.c:1136 msgid "Edit" msgstr "Editar" #: src/view.c:556 msgid "Show history ..." msgstr "Mostrar historial..." #: src/view.c:588 src/view.c:1172 msgid "Paste: Insert" msgstr "Pegar: Insertar" #: src/view.c:592 src/view.c:1178 msgid "Paste: Mix" msgstr "Pegar: Mezclar" #: src/view.c:596 src/view.c:1184 msgid "Paste: Crossfade" msgstr "Pegar: Intermezclar desvaneciendo" #: src/view.c:600 msgid "Paste as New" msgstr "Pegar como Nuevo archivo" #: src/view.c:608 msgid "Preview Cut/Cursor" msgstr "Previsualizar Cortar/Cursor" #: src/view.c:612 msgid "Pre-roll to Cursor" msgstr "Pre-roll hasta el cursor" #: src/view.c:626 msgid "Invert" msgstr "Invertir" #: src/view.c:630 msgid "All" msgstr "Todo" #: src/view.c:634 msgid "None" msgstr "Nada" #: src/view.c:642 msgid "Halve" msgstr "Dividir" #: src/view.c:646 msgid "Double" msgstr "Duplicar" #: src/view.c:650 msgid "Shift left" msgstr "Pasar a la izquierda" #: src/view.c:654 msgid "Shift right" msgstr "Pasar a la derecha" #: src/view.c:659 msgid "View" msgstr "Ver" #: src/view.c:666 src/view.c:2061 msgid "Autoscroll: follow playback cursor" msgstr "Autoscroll: seguir el cursor de reproducción" #: src/view.c:684 msgid "Center" msgstr "Centrar" #: src/view.c:692 src/view.c:1996 msgid "Zoom in" msgstr "Agrandar" #: src/view.c:696 src/view.c:2005 msgid "Zoom out" msgstr "Reducir" #: src/view.c:700 src/view.c:1111 msgid "Zoom to selection" msgstr "Agrandar la selección" #: src/view.c:706 msgid "Left" msgstr "Izquierda" #: src/view.c:710 msgid "Right" msgstr "Derecha" #: src/view.c:715 src/view.c:1117 src/view.c:1276 msgid "Zoom normal" msgstr "Zoom normal" #: src/view.c:719 src/view.c:1123 src/view.c:1282 src/view.c:1987 msgid "Zoom all" msgstr "Zoom total" #: src/view.c:723 msgid "1:1" msgstr "1:1" #: src/view.c:733 msgid "Remember as" msgstr "Recordar como" #: src/view.c:752 src/view.c:783 msgid "Area 1" msgstr "Área 1" #: src/view.c:753 src/view.c:784 msgid "Area 2" msgstr "Área 2" #: src/view.c:754 src/view.c:785 msgid "Area 3" msgstr "Área 3" #: src/view.c:755 src/view.c:786 msgid "Area 4" msgstr "Área 4" #: src/view.c:756 src/view.c:787 msgid "Area 5" msgstr "Área 5" #: src/view.c:757 src/view.c:788 msgid "Area 6" msgstr "Área 6" #: src/view.c:758 src/view.c:789 msgid "Area 7" msgstr "Área 7" #: src/view.c:759 src/view.c:790 msgid "Area 8" msgstr "Área 8" #: src/view.c:760 src/view.c:791 msgid "Area 9" msgstr "Área 9" #: src/view.c:761 src/view.c:792 msgid "Area 10" msgstr "Área 10" #: src/view.c:765 msgid "Zoom to" msgstr "Agrandar a" #: src/view.c:798 msgid "Color scheme" msgstr "Esquema de colores" #: src/view.c:804 msgid "Decoder Red" msgstr "Rojo profundo" #: src/view.c:812 msgid "Orangeboom" msgstr "Naranja mecánica" #: src/view.c:820 msgid "Lame Yellow" msgstr "Amarillo debil" #: src/view.c:828 msgid "Coogee Bay Blue" msgstr "Susurro Azul" #: src/view.c:836 msgid "Blackwattle" msgstr "Marrón glacé" #: src/view.c:844 msgid "Frigid" msgstr "Blancanieves" #: src/view.c:852 msgid "Radar" msgstr "Verde radar" #: src/view.c:860 msgid "Bluescreen" msgstr "Pantalla azul" #: src/view.c:872 src/view.c:1236 src/view.c:1322 msgid "New View" msgstr "Nueva vista" #: src/view.c:877 msgid "Sample" msgstr "Muestreo" #: src/view.c:894 msgid "Resample ..." msgstr "Remuestrear..." #: src/view.c:903 msgid "Duplicate" msgstr "Duplicar" #: src/view.c:908 src/view.c:1192 msgid "Process" msgstr "Procesar" #: src/view.c:917 msgid "Playback" msgstr "Reproducción" #: src/view.c:924 msgid "Configure audio device ..." msgstr "Configurar dispositivo de audio..." #: src/view.c:934 msgid "Transport" msgstr "Transportar" #: src/view.c:943 msgid "Go to start of file" msgstr "Ir al comienzo del archivo" #: src/view.c:949 msgid "Go to start of window" msgstr "Ir al comienzo de la ventana" #: src/view.c:954 msgid "Skip back" msgstr "Saltear hacia atrás" #: src/view.c:959 msgid "Skip forward" msgstr "Saltear hacia adelante" #: src/view.c:964 msgid "Go to end of window" msgstr "Ir al final de la ventana" #: src/view.c:969 msgid "Go to end of file" msgstr "Ir al final del archivo" #: src/view.c:978 msgid "Play selection" msgstr "Reproducir la selección" #: src/view.c:984 msgid "Play sample" msgstr "Reproducir muestreo" #: src/view.c:990 msgid "Play note" msgstr "Reproducir nota" #: src/view.c:1009 msgid "Toggle monitoring" msgstr "Activar/desactivar el Monitor" #: src/view.c:1022 msgid "Toggle looping" msgstr "Activar/Desactivar el modo cíclico" #: src/view.c:1034 msgid "Toggle muting" msgstr "Activar/Desactivar mudo" #: src/view.c:1045 msgid "Toggle reverse playback" msgstr "Activar/Desactivar la reproducción en reversa" #: src/view.c:1063 msgid "Pause" msgstr "Pausa" #: src/view.c:1079 msgid "About MP3 export..." msgstr "Información sobre la exportación a MP3..." #: src/view.c:1085 msgid "About Sweep ..." msgstr "Sobre Sweep..." #: src/view.c:1249 src/view.c:1335 msgid "File properties ..." msgstr "Propiedades del archivo..." #: src/view.c:1294 msgid "Paste" msgstr "Pegar" #: src/view.c:1791 msgid "Save as ..." msgstr "Guardar como..." #: src/view.c:1811 msgid "Cut selection to clipboard" msgstr "Cortar la selección al portapapeles" #: src/view.c:1821 msgid "Copy selection to clipboard" msgstr "Copiar la selección al portapapeles" #: src/view.c:1832 msgid "Paste: insert clipboard at cursor position" msgstr "Pegar: insertar el portapapeles en la posición del cursor" #: src/view.c:1843 msgid "Paste: mix clipboard in from cursor position" msgstr "Pegar: mezclar el portapapeles desde la posición del cursor" #: src/view.c:1854 msgid "Paste: fade clipboard in from cursor position" msgstr "Pegar: desvanecer el portapapeles desde la posición del cursor" #: src/view.c:1924 #, fuzzy msgid "Hand tool" msgstr "Herramienta lápiz" #: src/view.c:1932 msgid "Selector tool" msgstr "Herramienta seleccionar" #: src/view.c:1944 msgid "\"Scrubby\" the scrub tool" msgstr "\"Scrubby\" la herramienta para fregar" #: src/view.c:1954 msgid "Pencil tool" msgstr "Herramienta lápiz" #: src/view.c:1962 msgid "Noise tool" msgstr "Herramienta de ruido" #: src/view.c:2052 msgid "Visible length" msgstr "Largo visible" #: src/view.c:2171 msgid "Vertical zoom [Shift + Arrow Up/Down]" msgstr "Zoom vertical [Shift + Flecha Arriba/Abajo]" #: src/view.c:2301 msgid "Record ..." msgstr "Grabar..." #: src/view.c:2377 msgid "Reverse mode playback (toggle)" msgstr "Modo de reproducción en reversa (activar/desactivar)" #: src/view.c:2395 msgid "Loop mode playback (toggle)" msgstr "Modo de reproducción cíclica (activar/desactivar)" #: src/view.c:2419 #, fuzzy msgid "Play all / Pause" msgstr "Reproducir todo / Pausa [Ctrl+Espacio]" #: src/view.c:2436 #, fuzzy msgid "Play selection / Pause" msgstr "Reproducir la selección / Pausa [Espacio]" #: src/view.c:2452 #, fuzzy msgid "Stop playback" msgstr "Detener la reproducción [Enter]" #: src/view.c:2519 msgid "Muted playback (toggle)" msgstr "Reproducción silenciada (activar/desactivar)" #: src/view.c:2539 src/view.c:2557 msgid "Playback gain slider (volume)" msgstr "Deslizador de ganancia de la reproducción (volumen)" #: src/view.c:2569 msgid "Monitor (toggle)" msgstr "Monitor (activar/desactivar)" #: src/view.c:2587 msgid "SYNC" msgstr "SYNC" #: src/view.c:3144 #, c-format msgid "Remembered as area %d" msgstr "Area recordada como %d" #: src/view.c:3162 #, c-format msgid "No area remembered as %d" msgstr "No hay ningún area reacordada como %d" #: src/view.c:3165 #, c-format msgid "Zoomed to area %d" msgstr "Agrandado al área %d" #: src/view.c:3347 src/view.c:3351 msgid "Scrub!" msgstr "Fregado!" #: src/view.c:3347 src/view.c:3353 msgid "Ready" msgstr "Listo" #: src/view.c:3399 #, c-format msgid "%s has been modified. Close anyway?" msgstr "%s ha sido modificado. Cerrar de todos modos?" #: src/view.c:3402 msgid "Don't close" msgstr "No cerrar" #: src/view.c:3449 src/view.c:3462 msgid "*" msgstr "*" #: src/view.c:3465 msgid "Empty" msgstr "Vacío" #: plugins/byenergy/byenergy.c:58 msgid "Select regions above threshold" msgstr "Seleccionar las regiones sobre el umbral" #: plugins/byenergy/byenergy.c:59 msgid "" "Whether to select those regions lying above a given threshold or below it." msgstr "" "Seleccionar aquellas regiones que están sobre un unbral especificado o " "debajo de él." #: plugins/byenergy/byenergy.c:66 msgid "Resolution" msgstr "Resolución" #: plugins/byenergy/byenergy.c:67 msgid "Width of energy detection window (s)" msgstr "Ancho de la ventana de detección de energía (s)" #: plugins/byenergy/byenergy.c:73 msgid "Threshold" msgstr "Umbral" #: plugins/byenergy/byenergy.c:74 msgid "Energy level to detect [0.0 - 1.0]" msgstr "Nivel de energía a detectar [0.0 - 1.0]" #: plugins/byenergy/byenergy.c:80 msgid "Minimum duration" msgstr "Duración mínima" #: plugins/byenergy/byenergy.c:81 msgid "Shortest region of selection to detect (s)" msgstr "Región mas corta de la selección a detectar (s)" #: plugins/byenergy/byenergy.c:87 msgid "Maximum interruption" msgstr "Interrupción máxima" #: plugins/byenergy/byenergy.c:88 msgid "Longest length of sound above threshold to allow (s)" msgstr "Longitud mas larga de sonido permitida sobre el umbral (s)" #: plugins/byenergy/byenergy.c:227 plugins/byenergy/byenergy.c:232 msgid "Select by energy" msgstr "Seleccionar por energía" #: plugins/byenergy/byenergy.c:233 msgid "Select loud or quiet regions" msgstr "Seleccionar regiones sileciosas o ruidosas" #: plugins/echo/echo.c:53 msgid "Delay" msgstr "Retardo" #: plugins/echo/echo.c:54 msgid "Time to delay by" msgstr "Retardo de" #: plugins/echo/echo.c:62 msgid "Gain with which to mix in delayed signal" msgstr "Ganancia para mezclar la señal retardada" #: plugins/echo/echo.c:107 plugins/echo/echo.c:113 msgid "Echo" msgstr "Eco" #: plugins/echo/echo.c:114 msgid "Apply an echo to selected regions of a sample" msgstr "Aplica un eco a las regiones seleccionadas de un muestreo" #: plugins/normalise/normalise.c:128 plugins/normalise/normalise.c:133 msgid "Normalise" msgstr "Normalizar" #: plugins/normalise/normalise.c:134 msgid "Alter the sample's amplitude to lie between 1.0 and -1.0" msgstr "Altera la amplitud del muestreo para estar entre 1.0 e -1.0" #: plugins/reverse/reverse.c:129 plugins/reverse/reverse.c:134 #: plugins/reverse/reverse.c:140 msgid "Reverse" msgstr "Invertir" #: plugins/reverse/reverse.c:141 msgid "Reverse selected regions of a sample" msgstr "Invierte las regiones seleccionadas de un muestreo" #: plugins/example/example.c:37 plugins/example/example.c:86 msgid "With a fork" msgstr "Con un tenedor" #: plugins/example/example.c:38 msgid "With a spoon" msgstr "Con una cuchara" #: plugins/example/example.c:39 msgid "With false teeth" msgstr "Con una dentadura falsa" #: plugins/example/example.c:40 msgid "With Nigel's bum" msgstr "Con un vagabundo de Nigel" #: plugins/example/example.c:56 msgid "Flim" msgstr "Flim" #: plugins/example/example.c:57 msgid "Should you manage your flim?" msgstr "¿Deberías administrar tu flim?" #: plugins/example/example.c:64 msgid "Beans" msgstr "Maníes" #: plugins/example/example.c:65 msgid "Method of eating beans" msgstr "Método para comer maníes" #: plugins/example/example.c:72 msgid "Pants methodology" msgstr "Metodología de calzoncillos" #: plugins/example/example.c:73 msgid "How many pants should you wear per day?" msgstr "Cuantos calzoncillos deberías usar por día?" #: plugins/example/example.c:122 plugins/example/example.c:129 msgid "Example Filter Region" msgstr "Ejemplo de filtrado de región" #: plugins/example/example.c:130 msgid "An example filter region plugin" msgstr "Un plugin de ejemplo de filtrado de regiones" #: plugins/fade/fade.c:148 plugins/fade/fade.c:161 msgid "Fade in" msgstr "Desvanecido (aparecer)" #: plugins/fade/fade.c:156 plugins/fade/fade.c:177 msgid "Fade out" msgstr "Desvanecido (desaparecer)" #: plugins/fade/fade.c:162 msgid "Apply a linear fade to the selection, fading in from silence" msgstr "" "Aplicar un desvanecido lineal a la selección, apareciendo desde el silencio" #: plugins/fade/fade.c:178 msgid "Apply a linear fade to the selection, fading out to silence" msgstr "" "Aplicar un desvanecido lineal a la selección, desapareciendo hasta el " "silencio" #~ msgid "Sweep: Load file" #~ msgstr "Sweep: Cargar archivo" #~ msgid "Go to beginning [Ctrl+Home]" #~ msgstr "Ir al inicio [Ctrl+Inicio]" #~ msgid "Go to the end [Ctrl+End]" #~ msgstr "Ir al final [Ctrl+Fin]" #~ msgid "About Sweep" #~ msgstr "Acerca de Sweep" #~ msgid "Channels:" #~ msgstr "Canales:" #~ msgid "Mono (mixdown)" #~ msgstr "Mono (mezcla de canales)" #~ msgid "Stereo (duplicate)" #~ msgstr "Stereo (duplicado)" #~ msgid "Bitwidth:" #~ msgstr "Amplitud de bits:" #~ msgid "8 bit" #~ msgstr "8 bit" #~ msgid "16 bit" #~ msgstr "16 bit" #~ msgid "24 bit" #~ msgstr "24 bit" #~ msgid "32 bit" #~ msgstr "32 bit" sweep-0.9.3/po/en_AU.po0000644000175000017500000012306410777670577013366 0ustar useruser# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #: src/sample-display.c:222 #, fuzzy msgid "" msgstr "" "Project-Id-Version: sweep-0.0.0\n" "Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/\n" "POT-Creation-Date: 2008-04-11 15:11+0100\n" "PO-Revision-Date: 2002-07-11 17:58+1000\n" "Last-Translator: joe bloggs \n" "Language-Team: English/Australia \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: src/main.c:89 msgid "Welcome to Sweep" msgstr "" #: src/main.c:90 msgid "" "Hello, my name is Scrubby. Welcome to Sweep!\n" "\n" "Would you like to create a new file or load an existing file?" msgstr "" #: src/main.c:94 msgid "Create new file" msgstr "" #: src/main.c:94 msgid "Load existing file" msgstr "" #: src/main.c:129 msgid "WARNING: Build includes incomplete development code.\n" msgstr "" #: src/main.c:188 msgid "Sweep version" msgstr "" #: src/main.c:189 msgid "Sweep plugin API version" msgstr "" #: src/main.c:195 #, c-format msgid "Usage: %s [option ...] [files ...]\n" msgstr "" #: src/main.c:196 msgid "Valid options are:\n" msgstr "" #: src/main.c:197 msgid " -h --help Output this help.\n" msgstr "" #: src/main.c:198 msgid " -v --version Output version info.\n" msgstr "" #: src/main.c:199 msgid " --display Use the designated X display.\n" msgstr "" #: src/main.c:200 msgid "" " --ignore-failed-lock Continue when attempt to lock the\n" " preferences file fails. For use when\n" " the users home directory is on an NFS\n" " file system. (possibly unsafe) \n" msgstr "" #: src/main.c:206 msgid " --no-toolbox Do not show the toolbox window.\n" msgstr "" #: src/about_dialog.c:99 msgid "This is Sweep version" msgstr "" #: src/about_dialog.c:119 msgid "http://sweep.sourceforge.net/" msgstr "" #: src/callbacks.c:926 src/callbacks.c:939 src/edit.c:1568 src/edit.c:1642 #: src/edit.c:1726 msgid "Clipboard empty" msgstr "" #: src/channelops.c:146 #, c-format msgid "Duplicate to %d channels" msgstr "" #: src/channelops.c:148 #, c-format msgid "Duplicate from %d to %d channels" msgstr "" #: src/channelops.c:207 msgid "Sweep: Duplicate channel" msgstr "" #: src/channelops.c:214 src/channelops.c:698 #, c-format msgid "Currently: %d channels" msgstr "" #: src/channelops.c:221 src/channelops.c:704 msgid "Output channels" msgstr "" #: src/channelops.c:231 src/channelops.c:714 src/driver.c:374 #: src/file_sndfile1.c:285 src/param.c:779 src/question_dialogs.c:144 #: src/question_dialogs.c:204 src/question_dialogs.c:253 #: src/sweep_sample.c:1918 src/undo_dialog.c:440 msgid "OK" msgstr "" #: src/channelops.c:242 src/channelops.c:725 src/driver.c:387 #: src/file_sndfile1.c:295 src/param.c:788 src/question_dialogs.c:158 #: src/view.c:543 src/view.c:2650 msgid "Cancel" msgstr "" #: src/channelops.c:347 src/view.c:361 msgid "Mix down to mono" msgstr "" #: src/channelops.c:445 src/view.c:340 msgid "Remove left channel" msgstr "" #: src/channelops.c:455 src/view.c:349 msgid "Remove right channel" msgstr "" #: src/channelops.c:539 msgid "Swap channels" msgstr "" #: src/channelops.c:541 msgid "Not stereo" msgstr "" #: src/channelops.c:643 #, c-format msgid "Convert from %d to %d channels" msgstr "" #: src/channelops.c:692 msgid "Sweep: Add/Remove channels" msgstr "" #: src/driver.c:369 msgid "Sweep: audio device configuration" msgstr "" #: src/driver.c:410 msgid "Changes to device settings will take effect on next playback." msgstr "" #: src/driver.c:424 msgid "Device name" msgstr "" #: src/driver.c:430 msgid "Set the main device for playback and recording" msgstr "" #: src/driver.c:440 msgid "Main device:" msgstr "" #: src/driver.c:454 src/driver.c:636 src/samplerate.c:570 msgid "Default" msgstr "" #: src/driver.c:467 msgid "Use a different device for monitoring" msgstr "" #: src/driver.c:479 msgid "Monitor output:" msgstr "" #: src/driver.c:504 msgid "Swap" msgstr "" #: src/driver.c:512 msgid "Swap main and monitor devices." msgstr "" #: src/driver.c:521 src/driver.c:622 src/file_speex.c:1957 #: src/file_vorbis.c:1348 src/samplerate.c:556 src/sweep_sample.c:532 msgid "Reset" msgstr "" #: src/driver.c:529 msgid "Reset to the last remembered device names." msgstr "" #: src/driver.c:535 src/file_speex.c:1971 src/file_vorbis.c:1362 #: src/param.c:747 src/sweep_sample.c:543 msgid "Defaults" msgstr "" #: src/driver.c:543 msgid "Set to default device names." msgstr "" #: src/driver.c:554 msgid "Device buffering" msgstr "" #: src/driver.c:564 msgid "" "Low latency /\n" "More dropouts" msgstr "" #: src/driver.c:586 msgid "" "High latency /\n" "Fewer dropouts" msgstr "" #: src/driver.c:590 msgid "" "Varying this slider controls the lag between cursor movements and playback. " "This is particularly noticeable when \"scrubbing\" during playback.\n" "\n" "Lower values improve responsiveness but may degrade audio quality on heavily-" "loaded systems." msgstr "" #: src/driver.c:609 msgid "Remember these options" msgstr "" #: src/driver.c:630 msgid "Reset to the last remembered device buffering." msgstr "" #: src/driver.c:644 msgid "Set to default device buffering." msgstr "" #: src/edit.c:1291 msgid "No selection to copy" msgstr "" #: src/edit.c:1308 src/view.c:572 src/view.c:1150 msgid "Copy" msgstr "" #: src/edit.c:1342 msgid "No selection to cut" msgstr "" #: src/edit.c:1358 src/view.c:568 src/view.c:1144 msgid "Cut" msgstr "" #: src/edit.c:1388 msgid "No selection to clear" msgstr "" #: src/edit.c:1404 src/view.c:576 src/view.c:1156 msgid "Clear" msgstr "" #: src/edit.c:1430 msgid "No selection to delete" msgstr "" #: src/edit.c:1447 src/view.c:564 msgid "Delete" msgstr "" #: src/edit.c:1482 msgid "Nothing to crop out" msgstr "" #: src/edit.c:1498 src/view.c:580 src/view.c:1162 src/view.c:1868 msgid "Crop" msgstr "" #: src/edit.c:1572 src/edit.c:1646 src/edit.c:1730 msgid "Clipboard data has incompatible format" msgstr "" #: src/edit.c:1590 msgid "Paste insert" msgstr "" #: src/edit.c:1669 msgid "Paste mix" msgstr "" #: src/edit.c:1757 msgid "Paste xfade" msgstr "" #: src/file_dialogs.c:73 msgid "MP3 export unsupported" msgstr "" #: src/file_dialogs.c:74 msgid "" "Export to MP3 format cannot legally be supported in free software\n" "due to patent licensing restrictions.\n" "\n" "Please use Ogg Vorbis format instead, which\n" "provides better quality and is free." msgstr "" #: src/file_dialogs.c:99 msgid "Raw PCM (headerless)" msgstr "" #: src/file_dialogs.c:157 #, c-format msgid "%s does not exist." msgstr "" #: src/file_dialogs.c:158 msgid "Directory does not exist" msgstr "" #: src/file_dialogs.c:262 #, c-format msgid "" "Unable to read\n" "%s" msgstr "" #: src/file_dialogs.c:289 msgid "Sweep: Open Files" msgstr "" #: src/file_dialogs.c:370 #, c-format msgid "" "Are you sure you want to revert %s to\n" "%s?\n" "\n" "All changes and undo information will be lost." msgstr "" #: src/file_dialogs.c:374 msgid "Revert file" msgstr "" #: src/file_dialogs.c:375 src/view.c:509 msgid "Revert" msgstr "" #: src/file_dialogs.c:375 msgid "Don't revert" msgstr "" #: src/file_dialogs.c:545 src/file_dialogs.c:824 #, c-format msgid "Save as %s cancelled" msgstr "" #: src/file_dialogs.c:582 msgid "By extension" msgstr "" #: src/file_dialogs.c:640 msgid "MP3 (Use Ogg Vorbis instead)" msgstr "" #: src/file_dialogs.c:707 msgid "Sweep: Save file" msgstr "" #: src/file_dialogs.c:721 msgid "Save Options" msgstr "" #: src/file_dialogs.c:730 msgid "Determine File Type:" msgstr "" #: src/file_dialogs.c:810 #, c-format msgid "" "You are not allowed to write to\n" "%s" msgstr "" #: src/file_dialogs.c:812 #, c-format msgid "%s exists. Overwrite?" msgstr "" #: src/file_dialogs.c:814 msgid "File exists" msgstr "" #: src/file_dialogs.c:815 msgid "Overwrite" msgstr "" #: src/file_dialogs.c:815 msgid "Don't overwrite" msgstr "" #: src/file_dialogs.c:887 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Are you sure you want to save?" msgstr "" #: src/file_dialogs.c:891 src/sweep_undo.c:331 src/view.c:3401 msgid "File modified" msgstr "" #: src/file_dialogs.c:892 src/file_speex.c:2127 src/file_vorbis.c:1611 #: src/view.c:501 src/view.c:1782 msgid "Save" msgstr "" #: src/file_dialogs.c:892 src/file_speex.c:2138 src/file_vorbis.c:1622 msgid "Don't save" msgstr "" #: src/file_sndfile1.c:327 msgid "Powered by libsndfile" msgstr "" #: src/file_sndfile1.c:354 msgid "Encoding" msgstr "" #: src/file_sndfile1.c:375 msgid "Encoding:" msgstr "" #: src/file_sndfile1.c:447 msgid "Sampling rate:" msgstr "" #: src/file_sndfile1.c:480 src/file_speex.c:2078 src/file_vorbis.c:1562 #: src/samplerate.c:584 msgid "About" msgstr "" #: src/file_sndfile1.c:496 msgid "" "Libsndfile is a C library by Erik de Castro Lopo\n" "for reading and writing files containing sampled sound." msgstr "" #: src/file_sndfile1.c:507 msgid "" "This user interface by Erik de Castro Lopo\n" " and Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" #: src/file_sndfile1.c:550 msgid "Sweep: Save PCM options" msgstr "" #: src/file_sndfile1.c:719 msgid "Sweep: Load Raw PCM options" msgstr "" #: src/file_sndfile1.c:771 src/file_mad.c:435 src/file_speex.c:577 #: src/file_vorbis.c:324 #, c-format msgid "Loading %s" msgstr "" #: src/file_sndfile1.c:998 src/file_speex.c:1074 src/file_vorbis.c:702 #, c-format msgid "Saving %s" msgstr "" #: src/file_speex.c:1016 src/file_speex.c:1036 msgid "Speex encoding results" msgstr "" #: src/file_speex.c:1208 msgid "Narrowband ~8 kHz (telephone quality)" msgstr "" #: src/file_speex.c:1209 msgid "Wideband ~16 kHz" msgstr "" #: src/file_speex.c:1211 msgid "Ultra-wideband 32-48 kHz" msgstr "" #: src/file_speex.c:1218 msgid "Constant bitrate (CBR) with no features" msgstr "" #: src/file_speex.c:1221 msgid "CBR with Voice Activity Detection (VAD)" msgstr "" #: src/file_speex.c:1222 msgid "VAD generates low bitrate comfort noise to replace non-speech" msgstr "" #: src/file_speex.c:1225 msgid "CBR with VAD and Discontinuous Transmission (DTX)" msgstr "" #: src/file_speex.c:1226 msgid "DTX marks extended pauses with a minimum bitrate signal" msgstr "" #: src/file_speex.c:1229 msgid "Variable bitrate (VBR) with VAD" msgstr "" #: src/file_speex.c:1230 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech; this " "selection uses VBR without DTX, which may improve performance compared to " "full VBR in the presence of background noise." msgstr "" #: src/file_speex.c:1235 msgid "Variable bitrate (VBR) with all features" msgstr "" #: src/file_speex.c:1236 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech, and handles " "pauses using VAD and DTX" msgstr "" #: src/file_speex.c:1240 msgid "Constant bitrate (CBR)" msgstr "" #: src/file_speex.c:1242 msgid "Variable bitrate (VBR)" msgstr "" #: src/file_speex.c:1243 msgid "VBR allows the bitrate to adapt to the complexity of the speech." msgstr "" #: src/file_speex.c:1298 src/file_speex.c:1803 msgid "Average bitrate" msgstr "" #: src/file_speex.c:1301 msgid "Maximum bitrate" msgstr "" #: src/file_speex.c:1494 src/file_vorbis.c:1013 msgid "Hack the planet!" msgstr "" #: src/file_speex.c:1580 msgid "Sweep: Speex save options" msgstr "" #: src/file_speex.c:1631 msgid "Speex encoding" msgstr "" #: src/file_speex.c:1644 msgid "Mode:" msgstr "" #: src/file_speex.c:1670 msgid "Auto" msgstr "" #: src/file_speex.c:1679 msgid "" "Automatically select the encoding mode based on the sampling rate of the " "file." msgstr "" #: src/file_speex.c:1732 src/file_vorbis.c:1160 msgid "Encoding quality:" msgstr "" #: src/file_speex.c:1775 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file)." msgstr "" #: src/file_speex.c:1785 msgid "Enable bitrate management" msgstr "" #: src/file_speex.c:1798 msgid "" "For non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For " "VBR encoding, this sets the average bitrate." msgstr "" #: src/file_speex.c:1821 msgid "bps" msgstr "" #: src/file_speex.c:1827 msgid "Extra" msgstr "" #: src/file_speex.c:1849 msgid "Encoding complexity:" msgstr "" #: src/file_speex.c:1888 msgid "" "This sets the encoding speed/quality tradeoff between 0 (faster encoding) " "and 10 (slower encoding)" msgstr "" #: src/file_speex.c:1904 msgid "Speex frames per Ogg packet:" msgstr "" #: src/file_speex.c:1930 msgid "" "Number of Speex frames to pack into each Ogg packet. Higher values save " "space at low bitrates." msgstr "" #: src/file_speex.c:1945 src/file_vorbis.c:1336 msgid "Remember these encoding options" msgstr "" #: src/file_speex.c:1965 src/file_vorbis.c:1356 msgid "Reset to the last remembered encoding options." msgstr "" #: src/file_speex.c:1980 msgid "Automatically select best encoding options for this file." msgstr "" #: src/file_speex.c:1985 src/file_vorbis.c:1469 msgid "Ogg stream" msgstr "" #: src/file_speex.c:1998 src/file_vorbis.c:1482 msgid "Ogg stream serial number:" msgstr "" #: src/file_speex.c:2019 src/file_vorbis.c:1503 msgid "Remember this serial number" msgstr "" #: src/file_speex.c:2029 src/file_vorbis.c:1513 msgid "" "Remember this serial number for future re-use.\n" "USE OF THIS OPTION IS NOT RECOMMENDED.\n" "Each encoded file should have a different serial number; re-use of Ogg " "serial numbers in different files may create incompatabilities with " "streaming applications. This option is provided for bitstream engineering " "purposes only.\n" "If this option is not checked, new serial numbers will be randomly generated " "for each file encoded." msgstr "" #: src/file_speex.c:2056 src/file_vorbis.c:1540 msgid "Randomize!" msgstr "" #: src/file_speex.c:2063 src/file_vorbis.c:1547 msgid "" "Generate a random serial number for the Ogg bitstream. The number will " "change while this button is held down." msgstr "" #: src/file_speex.c:2094 msgid "" "Speex is a high quality speech codec designed for\n" "voice over IP (VoIP) and file-based compression.\n" "It is free, open and unpatented." msgstr "" #: src/file_speex.c:2105 msgid "" "Ogg, Speex, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" #: src/file_speex.c:2120 src/file_vorbis.c:1604 src/samplerate.c:611 msgid "" "This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" #: src/file_vorbis.c:356 #, c-format msgid "" "Decoding %s\n" "Encoded by: %s\n" "\n" "%s" msgstr "" #: src/file_vorbis.c:470 msgid "Unsupported encoding mode" msgstr "" #: src/file_vorbis.c:473 msgid "Invalid encoding options" msgstr "" #: src/file_vorbis.c:643 src/file_vorbis.c:663 msgid "Ogg Vorbis encoding results" msgstr "" #: src/file_vorbis.c:1089 msgid "Sweep: Ogg Vorbis save options" msgstr "" #: src/file_vorbis.c:1148 msgid "Vorbis encoding" msgstr "" #: src/file_vorbis.c:1195 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file) using variable bitrate mode (VBR)." msgstr "" #: src/file_vorbis.c:1205 msgid "Enable bitrate management engine" msgstr "" #: src/file_vorbis.c:1211 msgid "" "This enables average bitrate mode (ABR). You must suggest a nominal average " "bitrate and may specify minimum and maximum bounds.\n" "For best results it is generally recommended that you use the variable " "bitrate 'encoding quality' control (above) instead." msgstr "" #: src/file_vorbis.c:1221 msgid "Bitrate management engine" msgstr "" #: src/file_vorbis.c:1247 msgid "Nominal bitrate (ABR):" msgstr "" #: src/file_vorbis.c:1260 msgid "" "Specify a nominal bitrate. Attempt to encode at a bitrate averaging this." msgstr "" #: src/file_vorbis.c:1264 src/file_vorbis.c:1293 src/file_vorbis.c:1323 msgid "kbps" msgstr "" #: src/file_vorbis.c:1276 msgid "Minimum bitrate:" msgstr "" #: src/file_vorbis.c:1289 msgid "" "Specify a minimum bitrate, useful for encoding for a fixed-size channel. " "(Optional)" msgstr "" #: src/file_vorbis.c:1306 msgid "Maximum bitrate:" msgstr "" #: src/file_vorbis.c:1319 msgid "" "Specify a maximum bitrate, useful for streaming applications. (Optional)" msgstr "" #: src/file_vorbis.c:1370 msgid "Set to default encoding options." msgstr "" #: src/file_vorbis.c:1377 msgid "Metadata" msgstr "" #: src/file_vorbis.c:1399 msgid "Title:" msgstr "" #: src/file_vorbis.c:1399 msgid "Track/Work name" msgstr "" #: src/file_vorbis.c:1401 msgid "Version:" msgstr "" #: src/file_vorbis.c:1402 msgid "" "The version field may be used to differentiate multiple versions of the same " "track title in a single collection. (e.g. remix info)" msgstr "" #: src/file_vorbis.c:1406 msgid "Album:" msgstr "" #: src/file_vorbis.c:1407 msgid "The collection name to which this track belongs" msgstr "" #: src/file_vorbis.c:1409 msgid "Artist:" msgstr "" #: src/file_vorbis.c:1410 msgid "" "The artist generally considered responsible for the work. In popular music " "this is usually the performing band or singer. For classical music it would " "be the composer. For an audio book it would be the author of the original " "text." msgstr "" #: src/file_vorbis.c:1416 msgid "Performer:" msgstr "" #: src/file_vorbis.c:1417 msgid "" "The artist(s) who performed the work. In classical music this would be the " "conductor, orchestra, soloists. In an audio book it would be the actor who " "did the reading. In popular music this is typically the same as the ARTIST " "and is omitted." msgstr "" #: src/file_vorbis.c:1424 msgid "Copyright:" msgstr "" #: src/file_vorbis.c:1425 msgid "" "Copyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'" msgstr "" #: src/file_vorbis.c:1428 msgid "License:" msgstr "" #: src/file_vorbis.c:1429 msgid "" "License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL " "to a license such as a Creative Commons license (\"www.creativecommons.org/" "blahblah/license.html\") or the EFF Open Audio License ('distributed under " "the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/" "eff_oal.html for details'), etc." msgstr "" #: src/file_vorbis.c:1438 msgid "Organization:" msgstr "" #: src/file_vorbis.c:1439 msgid "Name of the organization producing the track (i.e. the 'record label')" msgstr "" #: src/file_vorbis.c:1442 msgid "Description:" msgstr "" #: src/file_vorbis.c:1443 msgid "A short text description of the contents" msgstr "" #: src/file_vorbis.c:1445 msgid "Genre:" msgstr "" #: src/file_vorbis.c:1446 msgid "A short text indication of music genre" msgstr "" #: src/file_vorbis.c:1448 msgid "Date:" msgstr "" #: src/file_vorbis.c:1449 msgid "Date the track was recorded" msgstr "" #: src/file_vorbis.c:1451 msgid "Location:" msgstr "" #: src/file_vorbis.c:1452 msgid "Location where track was recorded" msgstr "" #: src/file_vorbis.c:1454 msgid "Contact:" msgstr "" #: src/file_vorbis.c:1455 msgid "" "Contact information for the creators or distributors of the track. This " "could be a URL, an email address, the physical address of the producing " "label." msgstr "" #: src/file_vorbis.c:1460 msgid "ISRC:" msgstr "" #: src/file_vorbis.c:1461 msgid "" "ISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-" "content/online/isrc_intro.html) for more information on ISRC numbers." msgstr "" #: src/file_vorbis.c:1578 msgid "" "Ogg Vorbis is a high quality general purpose\n" "perceptual audio codec. It is free, open and\n" "unpatented." msgstr "" #: src/file_vorbis.c:1589 msgid "" "Ogg, Vorbis, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" #: src/head.c:408 src/view.c:2324 msgid "Cursor position (indicator)" msgstr "" #: src/head.c:449 msgid "Reverse mode (toggle)" msgstr "" #: src/head.c:467 msgid "Loop mode recording (toggle)" msgstr "" #: src/head.c:486 msgid "Record into selection" msgstr "" #: src/head.c:503 src/view.c:1068 msgid "Stop" msgstr "" #: src/head.c:516 src/view.c:2469 msgid "Go to beginning" msgstr "" #: src/head.c:527 src/view.c:2480 msgid "Rewind" msgstr "" #: src/head.c:540 src/view.c:2492 msgid "Fast forward" msgstr "" #: src/head.c:555 src/view.c:2505 msgid "Go to the end" msgstr "" #: src/interface.c:327 msgid "Sweep" msgstr "" #: src/interface.c:352 src/view.c:446 msgid "File" msgstr "" #: src/interface.c:357 msgid "New" msgstr "" #: src/interface.c:366 msgid "Open" msgstr "" #: src/interface.c:375 src/sweep_sample.c:800 src/sweep_sample.c:808 #: src/view.c:529 msgid "Quit" msgstr "" #: src/interface.c:386 src/view.c:1073 msgid "Help" msgstr "" #: src/interface.c:391 msgid "About..." msgstr "" #: src/interface.c:414 src/view.c:618 msgid "Select" msgstr "" #: src/interface.c:415 msgid "Select regions of a sample" msgstr "" #: src/interface.c:416 msgid "" "This tool allows you to select regions of a sample. You can then apply edits " "and effects to the: selected regions. Hold down shift whilst selecting to " "add discontinuous regions to the selection." msgstr "" #: src/interface.c:433 msgid "Move" msgstr "" #: src/interface.c:434 msgid "Move regions in a sample" msgstr "" #: src/interface.c:435 msgid "With this tool you can move selected regions of a sample." msgstr "" #: src/interface.c:447 msgid "Scrub" msgstr "" #: src/interface.c:448 msgid "Locate sounds directly" msgstr "" #: src/interface.c:449 msgid "" "Place the play marker on a sample. Click anywhere in a view to instantly " "move the playback position to that part of the sample." msgstr "" #: src/interface.c:466 msgid "Zoom" msgstr "" #: src/interface.c:467 msgid "Zoom in & out" msgstr "" #: src/interface.c:468 msgid "" "Zoom in and out of a view. Click anywhere in a view to zoom in on that part " "of the sample. Hold down shift and click on the view to zoom out." msgstr "" #: src/interface.c:484 msgid "Pencil" msgstr "" #: src/interface.c:485 msgid "Edit PCM sample values" msgstr "" #: src/interface.c:486 msgid "When zoomed down to individual samples, click to edit" msgstr "" #: src/interface.c:497 msgid "Noise" msgstr "" #: src/interface.c:498 msgid "Add noise" msgstr "" #: src/interface.c:499 msgid "Randomise PCM values" msgstr "" #: src/notes.c:61 msgid "C3" msgstr "" #: src/notes.c:62 msgid "C#3" msgstr "" #: src/notes.c:63 msgid "D3" msgstr "" #: src/notes.c:64 msgid "Eb3" msgstr "" #: src/notes.c:65 msgid "E3" msgstr "" #: src/notes.c:66 msgid "F3" msgstr "" #: src/notes.c:67 msgid "F#3" msgstr "" #: src/notes.c:68 msgid "G3" msgstr "" #: src/notes.c:69 msgid "G#3" msgstr "" #: src/notes.c:70 msgid "A3" msgstr "" #: src/notes.c:71 msgid "Bb3" msgstr "" #: src/notes.c:72 msgid "B3" msgstr "" #: src/notes.c:74 msgid "C4" msgstr "" #: src/notes.c:76 msgid "C#4" msgstr "" #: src/notes.c:77 msgid "D4" msgstr "" #: src/notes.c:78 msgid "Eb4" msgstr "" #: src/notes.c:79 msgid "E4" msgstr "" #: src/notes.c:80 msgid "F4" msgstr "" #: src/notes.c:81 msgid "F#4" msgstr "" #: src/notes.c:82 msgid "G4" msgstr "" #: src/notes.c:83 msgid "G#4" msgstr "" #: src/notes.c:84 msgid "A4" msgstr "" #: src/notes.c:85 msgid "Bb4" msgstr "" #: src/notes.c:86 msgid "B4" msgstr "" #: src/notes.c:88 msgid "C5" msgstr "" #: src/notes.c:89 msgid "C#5" msgstr "" #: src/notes.c:90 msgid "D5" msgstr "" #: src/notes.c:91 msgid "D#5" msgstr "" #: src/notes.c:92 msgid "E5" msgstr "" #: src/notes.c:94 msgid "F5" msgstr "" #: src/notes.c:95 msgid "F#5" msgstr "" #: src/notes.c:96 msgid "G5" msgstr "" #: src/notes.c:97 msgid "G#5" msgstr "" #: src/notes.c:98 msgid "A5" msgstr "" #: src/notes.c:99 msgid "Bb5" msgstr "" #: src/notes.c:100 msgid "B5" msgstr "" #: src/param.c:117 #, c-format msgid "TRUE" msgstr "" #: src/param.c:118 #, c-format msgid "FALSE" msgstr "" #: src/param.c:738 msgid "Parameters" msgstr "" #: src/param.c:769 msgid "Preview" msgstr "" #: src/paste_dialogs.c:221 msgid "Start gain" msgstr "" #: src/paste_dialogs.c:223 src/record.c:489 src/record.c:507 #: plugins/echo/echo.c:61 msgid "Gain" msgstr "" #: src/paste_dialogs.c:230 msgid "Sweep: Paste crossfade" msgstr "" #: src/paste_dialogs.c:232 msgid "Sweep: Paste mix" msgstr "" #: src/paste_dialogs.c:257 msgid "Source" msgstr "" #: src/paste_dialogs.c:257 msgid "Clipboard" msgstr "" #: src/paste_dialogs.c:279 src/paste_dialogs.c:318 msgid "End gain" msgstr "" #: src/paste_dialogs.c:287 src/paste_dialogs.c:326 msgid "Invert phase" msgstr "" #: src/paste_dialogs.c:295 msgid "Destination" msgstr "" #: src/paste_dialogs.c:345 msgid "" "Indicates the total duration of the clipboard, which is the maximum length " "that will be pasted." msgstr "" #: src/paste_dialogs.c:362 msgid "Clipboard duration:" msgstr "" #: src/paste_dialogs.c:375 msgid "Crossfade" msgstr "" #: src/paste_dialogs.c:375 msgid "Mix" msgstr "" #: src/paste_dialogs.c:394 msgid "Don't crossfade" msgstr "" #: src/paste_dialogs.c:394 msgid "Don't mix" msgstr "" #: src/preferences.c:62 msgid "Error creating ~/.sweep" msgstr "" #: src/preferences.c:66 #, c-format msgid "Created %s/ mode %04o\n" msgstr "" #: src/preferences.c:73 msgid "Error on ~/.sweep" msgstr "" #: src/preferences.c:82 msgid "Error setting permissions on ~/.sweep" msgstr "" #: src/preferences.c:89 msgid "Error accessing ~/.sweep" msgstr "" #: src/preferences.c:124 msgid "Error opening ~/.sweep/preferences.tdb" msgstr "" #: src/record.c:94 src/record.c:544 msgid "Ready to record" msgstr "" #: src/record.c:308 msgid "No selection to record into" msgstr "" #: src/record.c:446 msgid "Sweep: Record" msgstr "" #: src/record.c:459 src/undo_dialog.c:376 msgid "File:" msgstr "" #: src/record.c:482 msgid "Previous sound" msgstr "" #: src/record.c:496 msgid "" "This slider allows you to mix the new recording in with the previous " "contents of the buffer. Set it to -inf dB to overwrite the previous sound." msgstr "" #: src/record.c:502 msgid "Recorded sound" msgstr "" #: src/record.c:514 msgid "" "This slider allows you to reduce the level of the recorded sound. Set it to " "0 dB to record without any reduction. Note that setting this to -inf dB will " "record silence." msgstr "" #: src/sample-display.c:223 msgid "New selection" msgstr "" #: src/sample-display.c:224 msgid "Selection: add/modify region" msgstr "" #: src/sample-display.c:225 msgid "Selection: subtract region" msgstr "" #: src/samplerate.c:103 src/samplerate.c:167 msgid "Resample error" msgstr "" #: src/samplerate.c:104 src/samplerate.c:168 msgid "libsamplerate error" msgstr "" #: src/samplerate.c:234 #, c-format msgid "Resample from %d Hz to %d Hz" msgstr "" #: src/samplerate.c:445 msgid "Sweep: Resample" msgstr "" #: src/samplerate.c:467 msgid "Conversion" msgstr "" #: src/samplerate.c:474 #, c-format msgid "Current sample rate: %d Hz" msgstr "" #: src/samplerate.c:483 msgid "New sample rate" msgstr "" #: src/samplerate.c:494 msgid "Quality" msgstr "" #: src/samplerate.c:501 msgid "Converter" msgstr "" #: src/samplerate.c:544 msgid "Remember this quality" msgstr "" #: src/samplerate.c:564 msgid "Reset to the last remembered quality." msgstr "" #: src/samplerate.c:578 msgid "Set to default quality." msgstr "" #: src/samplerate.c:600 msgid "" "Secret Rabbit Code (aka libsamplerate) is a\n" "Sample Rate Converter for audio by Erik de Castro Lopo\n" msgstr "" #: src/samplerate.c:620 msgid "Resample" msgstr "" #: src/samplerate.c:633 msgid "Don't resample" msgstr "" #: src/sw_chooser.c:51 src/sw_chooser.c:66 msgid "Custom" msgstr "" #: src/sw_chooser.c:52 msgid "192000 Hz (Studio quality)" msgstr "" #: src/sw_chooser.c:53 msgid " 96000 Hz (High quality)" msgstr "" #: src/sw_chooser.c:54 msgid " 48000 Hz (DAT quality)" msgstr "" #: src/sw_chooser.c:55 msgid " 44100 Hz (CD quality)" msgstr "" #: src/sw_chooser.c:56 msgid " 32000 Hz (Ultra-wideband voice quality)" msgstr "" #: src/sw_chooser.c:57 msgid " 22050 Hz" msgstr "" #: src/sw_chooser.c:58 msgid " 16000 Hz (Wideband voice quality)" msgstr "" #: src/sw_chooser.c:59 msgid " 11025 Hz" msgstr "" #: src/sw_chooser.c:60 msgid " 8000 Hz (Narrowband voice quality)" msgstr "" #: src/sw_chooser.c:61 msgid " 4000 Hz (Low quality)" msgstr "" #: src/sw_chooser.c:67 src/view.c:3446 src/view.c:3459 src/view.c:3498 #, c-format msgid "Mono" msgstr "" #: src/sw_chooser.c:68 src/view.c:3446 src/view.c:3459 src/view.c:3501 #, c-format msgid "Stereo" msgstr "" #: src/sw_chooser.c:69 msgid "Quadraphonic" msgstr "" #: src/sw_chooser.c:306 msgid "Custom: " msgstr "" #: src/sw_chooser.c:341 msgid "Sampling rate" msgstr "" #: src/sw_chooser.c:343 msgid "Hz" msgstr "" #: src/sw_chooser.c:367 src/view.c:884 msgid "Channels" msgstr "" #: src/sw_chooser.c:369 src/view.c:3505 msgid "channels" msgstr "" #: src/sweep_filter.c:125 msgid "No selection to process" msgstr "" #: src/sweep_sample.c:119 src/view.c:3444 src/view.c:3450 src/view.c:3457 #: src/view.c:3463 msgid "Untitled" msgstr "" #: src/sweep_sample.c:324 msgid "Overflow" msgstr "" #: src/sweep_sample.c:407 msgid "Sweep: New file" msgstr "" #: src/sweep_sample.c:435 msgid "Name:" msgstr "" #: src/sweep_sample.c:455 msgid "Duration:" msgstr "" #: src/sweep_sample.c:471 msgid "hh:mm:ss.xxx" msgstr "" #: src/sweep_sample.c:514 msgid "Remember this format" msgstr "" #: src/sweep_sample.c:520 msgid "" "Remember this sampling rate and channel configuration for creating new files." msgstr "" #: src/sweep_sample.c:540 msgid "Reset to the last remembered format for new files." msgstr "" #: src/sweep_sample.c:551 msgid "Set to the default format for new files." msgstr "" #: src/sweep_sample.c:567 msgid "" "Indicates the amount of data memory which will be allocated for the selected " "duration and format. All audio data is processed internally in 32 bit " "floating point format." msgstr "" #: src/sweep_sample.c:582 msgid "Data memory:" msgstr "" #: src/sweep_sample.c:594 msgid "Create" msgstr "" #: src/sweep_sample.c:606 msgid "Don't create" msgstr "" #: src/sweep_sample.c:774 msgid "Excellent!!!" msgstr "" #: src/sweep_sample.c:796 msgid "Files unsaved" msgstr "" #: src/sweep_sample.c:797 msgid "" "Some files are unsaved. If you quit, all changes will be lost.\n" "\n" "Are you sure you want to quit?" msgstr "" #: src/sweep_sample.c:800 src/sweep_sample.c:808 msgid "Don't quit" msgstr "" #: src/sweep_sample.c:804 msgid "Files playing" msgstr "" #: src/sweep_sample.c:805 msgid "" "No files are unsaved, but some files are currently playing.\n" "\n" "Are you sure you want to quit?" msgstr "" #: src/sweep_sample.c:1465 src/view.c:1206 msgid "Invert selection" msgstr "" #: src/sweep_sample.c:1485 src/view.c:1214 src/view.c:1308 msgid "Select all" msgstr "" #: src/sweep_sample.c:1505 src/view.c:1222 msgid "Select none" msgstr "" #: src/sweep_sample.c:1525 msgid "Halve selection" msgstr "" #: src/sweep_sample.c:1545 msgid "Double selection" msgstr "" #: src/sweep_sample.c:1568 msgid "Selection left" msgstr "" #: src/sweep_sample.c:1590 msgid "Selection right" msgstr "" #: src/sweep_sample.c:1678 #, c-format msgid "Insert selection [" msgstr "" #: src/sweep_sample.c:1731 #, c-format msgid "Subtract selection [" msgstr "" #: src/sweep_sample.c:1776 #, c-format msgid "Set selection [" msgstr "" #: src/sweep_sample.c:1875 msgid "Sweep: File properties" msgstr "" #: src/sweep_sample.c:1899 msgid "Filename: " msgstr "" #: src/sweep_sample.c:1901 msgid "Sampling rate: " msgstr "" #: src/sweep_sample.c:1903 msgid "Channels: " msgstr "" #: src/sweep_sample.c:1905 msgid "Data memory: " msgstr "" #: src/sweep_sample.c:1907 msgid "Duration: " msgstr "" #: src/sweep_undo.c:327 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Do you want to continue editing this buffer?" msgstr "" #: src/sweep_undo.c:332 msgid "Continue editing" msgstr "" #: src/sweep_undo.c:332 msgid "Reread from disk" msgstr "" #: src/sweep_undo.c:430 src/sweep_undo.c:488 msgid "Nothing to undo" msgstr "" #: src/sweep_undo.c:511 src/sweep_undo.c:567 msgid "Nothing to redo" msgstr "" #: src/undo_dialog.c:159 msgid "Original data" msgstr "" #: src/undo_dialog.c:344 msgid "Action" msgstr "" #: src/undo_dialog.c:351 msgid "Sweep: History" msgstr "" #: src/undo_dialog.c:393 src/view.c:548 src/view.c:1887 msgid "Undo" msgstr "" #: src/undo_dialog.c:401 src/view.c:552 src/view.c:1896 msgid "Redo" msgstr "" #: src/undo_dialog.c:426 msgid "Revert to selected state" msgstr "" #: src/undo_dialog.c:452 src/view.c:525 src/view.c:3402 msgid "Close" msgstr "" #: src/view.c:311 msgid "Duplicate to stereo" msgstr "" #: src/view.c:319 msgid "Duplicate to multichannel" msgstr "" #: src/view.c:331 msgid "Swap left and right" msgstr "" #: src/view.c:371 msgid "Add/Remove channels" msgstr "" #: src/view.c:454 src/view.c:1768 msgid "New ..." msgstr "" #: src/view.c:458 src/view.c:1775 msgid "Open ..." msgstr "" #: src/view.c:488 msgid "Open Recent" msgstr "" #: src/view.c:505 msgid "Save As ..." msgstr "" #: src/view.c:517 msgid "Properties ..." msgstr "" #: src/view.c:535 src/view.c:1136 msgid "Edit" msgstr "" #: src/view.c:556 msgid "Show history ..." msgstr "" #: src/view.c:588 src/view.c:1172 msgid "Paste: Insert" msgstr "" #: src/view.c:592 src/view.c:1178 msgid "Paste: Mix" msgstr "" #: src/view.c:596 src/view.c:1184 msgid "Paste: Crossfade" msgstr "" #: src/view.c:600 msgid "Paste as New" msgstr "" #: src/view.c:608 msgid "Preview Cut/Cursor" msgstr "" #: src/view.c:612 msgid "Pre-roll to Cursor" msgstr "" #: src/view.c:626 msgid "Invert" msgstr "" #: src/view.c:630 msgid "All" msgstr "" #: src/view.c:634 msgid "None" msgstr "" #: src/view.c:642 msgid "Halve" msgstr "" #: src/view.c:646 msgid "Double" msgstr "" #: src/view.c:650 msgid "Shift left" msgstr "" #: src/view.c:654 msgid "Shift right" msgstr "" #: src/view.c:659 msgid "View" msgstr "" #: src/view.c:666 src/view.c:2061 msgid "Autoscroll: follow playback cursor" msgstr "" #: src/view.c:684 msgid "Center" msgstr "" #: src/view.c:692 src/view.c:1996 msgid "Zoom in" msgstr "" #: src/view.c:696 src/view.c:2005 msgid "Zoom out" msgstr "" #: src/view.c:700 src/view.c:1111 msgid "Zoom to selection" msgstr "" #: src/view.c:706 msgid "Left" msgstr "" #: src/view.c:710 msgid "Right" msgstr "" #: src/view.c:715 src/view.c:1117 src/view.c:1276 msgid "Zoom normal" msgstr "" #: src/view.c:719 src/view.c:1123 src/view.c:1282 src/view.c:1987 msgid "Zoom all" msgstr "" #: src/view.c:723 msgid "1:1" msgstr "" #: src/view.c:733 msgid "Remember as" msgstr "" #: src/view.c:752 src/view.c:783 msgid "Area 1" msgstr "" #: src/view.c:753 src/view.c:784 msgid "Area 2" msgstr "" #: src/view.c:754 src/view.c:785 msgid "Area 3" msgstr "" #: src/view.c:755 src/view.c:786 msgid "Area 4" msgstr "" #: src/view.c:756 src/view.c:787 msgid "Area 5" msgstr "" #: src/view.c:757 src/view.c:788 msgid "Area 6" msgstr "" #: src/view.c:758 src/view.c:789 msgid "Area 7" msgstr "" #: src/view.c:759 src/view.c:790 msgid "Area 8" msgstr "" #: src/view.c:760 src/view.c:791 msgid "Area 9" msgstr "" #: src/view.c:761 src/view.c:792 msgid "Area 10" msgstr "" #: src/view.c:765 msgid "Zoom to" msgstr "" #: src/view.c:798 msgid "Color scheme" msgstr "Colour scheme" #: src/view.c:804 msgid "Decoder Red" msgstr "" #: src/view.c:812 msgid "Orangeboom" msgstr "" #: src/view.c:820 msgid "Lame Yellow" msgstr "" #: src/view.c:828 msgid "Coogee Bay Blue" msgstr "" #: src/view.c:836 msgid "Blackwattle" msgstr "" #: src/view.c:844 msgid "Frigid" msgstr "" #: src/view.c:852 msgid "Radar" msgstr "" #: src/view.c:860 msgid "Bluescreen" msgstr "" #: src/view.c:872 src/view.c:1236 src/view.c:1322 msgid "New View" msgstr "" #: src/view.c:877 msgid "Sample" msgstr "" #: src/view.c:894 msgid "Resample ..." msgstr "" #: src/view.c:903 msgid "Duplicate" msgstr "" #: src/view.c:908 src/view.c:1192 msgid "Process" msgstr "" #: src/view.c:917 msgid "Playback" msgstr "" #: src/view.c:924 msgid "Configure audio device ..." msgstr "" #: src/view.c:934 msgid "Transport" msgstr "" #: src/view.c:943 msgid "Go to start of file" msgstr "" #: src/view.c:949 msgid "Go to start of window" msgstr "" #: src/view.c:954 msgid "Skip back" msgstr "" #: src/view.c:959 msgid "Skip forward" msgstr "" #: src/view.c:964 msgid "Go to end of window" msgstr "" #: src/view.c:969 msgid "Go to end of file" msgstr "" #: src/view.c:978 msgid "Play selection" msgstr "" #: src/view.c:984 msgid "Play sample" msgstr "" #: src/view.c:990 msgid "Play note" msgstr "" #: src/view.c:1009 msgid "Toggle monitoring" msgstr "" #: src/view.c:1022 msgid "Toggle looping" msgstr "" #: src/view.c:1034 msgid "Toggle muting" msgstr "" #: src/view.c:1045 msgid "Toggle reverse playback" msgstr "" #: src/view.c:1063 msgid "Pause" msgstr "" #: src/view.c:1079 msgid "About MP3 export..." msgstr "" #: src/view.c:1085 msgid "About Sweep ..." msgstr "" #: src/view.c:1249 src/view.c:1335 msgid "File properties ..." msgstr "" #: src/view.c:1294 msgid "Paste" msgstr "" #: src/view.c:1791 msgid "Save as ..." msgstr "" #: src/view.c:1811 msgid "Cut selection to clipboard" msgstr "" #: src/view.c:1821 msgid "Copy selection to clipboard" msgstr "" #: src/view.c:1832 msgid "Paste: insert clipboard at cursor position" msgstr "" #: src/view.c:1843 msgid "Paste: mix clipboard in from cursor position" msgstr "" #: src/view.c:1854 msgid "Paste: fade clipboard in from cursor position" msgstr "" #: src/view.c:1924 msgid "Hand tool" msgstr "" #: src/view.c:1932 msgid "Selector tool" msgstr "" #: src/view.c:1944 msgid "\"Scrubby\" the scrub tool" msgstr "" #: src/view.c:1954 msgid "Pencil tool" msgstr "" #: src/view.c:1962 msgid "Noise tool" msgstr "" #: src/view.c:2052 msgid "Visible length" msgstr "" #: src/view.c:2171 msgid "Vertical zoom [Shift + Arrow Up/Down]" msgstr "" #: src/view.c:2301 msgid "Record ..." msgstr "" #: src/view.c:2377 msgid "Reverse mode playback (toggle)" msgstr "" #: src/view.c:2395 msgid "Loop mode playback (toggle)" msgstr "" #: src/view.c:2419 msgid "Play all / Pause" msgstr "" #: src/view.c:2436 msgid "Play selection / Pause" msgstr "" #: src/view.c:2452 msgid "Stop playback" msgstr "" #: src/view.c:2519 msgid "Muted playback (toggle)" msgstr "" #: src/view.c:2539 src/view.c:2557 msgid "Playback gain slider (volume)" msgstr "" #: src/view.c:2569 msgid "Monitor (toggle)" msgstr "" #: src/view.c:2587 msgid "SYNC" msgstr "" #: src/view.c:3144 #, c-format msgid "Remembered as area %d" msgstr "" #: src/view.c:3162 #, c-format msgid "No area remembered as %d" msgstr "" #: src/view.c:3165 #, c-format msgid "Zoomed to area %d" msgstr "" #: src/view.c:3347 src/view.c:3351 msgid "Scrub!" msgstr "" #: src/view.c:3347 src/view.c:3353 msgid "Ready" msgstr "" #: src/view.c:3399 #, c-format msgid "%s has been modified. Close anyway?" msgstr "" #: src/view.c:3402 msgid "Don't close" msgstr "" #: src/view.c:3449 src/view.c:3462 msgid "*" msgstr "" #: src/view.c:3465 msgid "Empty" msgstr "" #: plugins/byenergy/byenergy.c:58 msgid "Select regions above threshold" msgstr "" #: plugins/byenergy/byenergy.c:59 msgid "" "Whether to select those regions lying above a given threshold or below it." msgstr "" #: plugins/byenergy/byenergy.c:66 msgid "Resolution" msgstr "" #: plugins/byenergy/byenergy.c:67 msgid "Width of energy detection window (s)" msgstr "" #: plugins/byenergy/byenergy.c:73 msgid "Threshold" msgstr "" #: plugins/byenergy/byenergy.c:74 msgid "Energy level to detect [0.0 - 1.0]" msgstr "" #: plugins/byenergy/byenergy.c:80 msgid "Minimum duration" msgstr "" #: plugins/byenergy/byenergy.c:81 msgid "Shortest region of selection to detect (s)" msgstr "" #: plugins/byenergy/byenergy.c:87 msgid "Maximum interruption" msgstr "" #: plugins/byenergy/byenergy.c:88 msgid "Longest length of sound above threshold to allow (s)" msgstr "" #: plugins/byenergy/byenergy.c:227 plugins/byenergy/byenergy.c:232 msgid "Select by energy" msgstr "" #: plugins/byenergy/byenergy.c:233 msgid "Select loud or quiet regions" msgstr "" #: plugins/echo/echo.c:53 msgid "Delay" msgstr "" #: plugins/echo/echo.c:54 msgid "Time to delay by" msgstr "" #: plugins/echo/echo.c:62 msgid "Gain with which to mix in delayed signal" msgstr "" #: plugins/echo/echo.c:107 plugins/echo/echo.c:113 msgid "Echo" msgstr "" #: plugins/echo/echo.c:114 msgid "Apply an echo to selected regions of a sample" msgstr "" #: plugins/normalise/normalise.c:128 plugins/normalise/normalise.c:133 msgid "Normalise" msgstr "" #: plugins/normalise/normalise.c:134 msgid "Alter the sample's amplitude to lie between 1.0 and -1.0" msgstr "" #: plugins/reverse/reverse.c:129 plugins/reverse/reverse.c:134 #: plugins/reverse/reverse.c:140 msgid "Reverse" msgstr "" #: plugins/reverse/reverse.c:141 msgid "Reverse selected regions of a sample" msgstr "" #: plugins/example/example.c:37 plugins/example/example.c:86 msgid "With a fork" msgstr "" #: plugins/example/example.c:38 msgid "With a spoon" msgstr "" #: plugins/example/example.c:39 msgid "With false teeth" msgstr "" #: plugins/example/example.c:40 msgid "With Nigel's bum" msgstr "" #: plugins/example/example.c:56 msgid "Flim" msgstr "" #: plugins/example/example.c:57 msgid "Should you manage your flim?" msgstr "" #: plugins/example/example.c:64 msgid "Beans" msgstr "" #: plugins/example/example.c:65 msgid "Method of eating beans" msgstr "" #: plugins/example/example.c:72 msgid "Pants methodology" msgstr "" #: plugins/example/example.c:73 msgid "How many pants should you wear per day?" msgstr "" #: plugins/example/example.c:122 plugins/example/example.c:129 msgid "Example Filter Region" msgstr "" #: plugins/example/example.c:130 msgid "An example filter region plugin" msgstr "" #: plugins/fade/fade.c:148 plugins/fade/fade.c:161 msgid "Fade in" msgstr "" #: plugins/fade/fade.c:156 plugins/fade/fade.c:177 msgid "Fade out" msgstr "" #: plugins/fade/fade.c:162 msgid "Apply a linear fade to the selection, fading in from silence" msgstr "" #: plugins/fade/fade.c:178 msgid "Apply a linear fade to the selection, fading out to silence" msgstr "" sweep-0.9.3/po/el.po0000644000175000017500000016561710777670576013010 0ustar useruser# Greek Translation of Sweep. # Dokianakis Fanis , 2003. # #: src/sample-display.c:222 msgid "" msgstr "" "Project-Id-Version: Sweep 0.8.1\n" "Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/\n" "POT-Creation-Date: 2008-04-11 15:11+0100\n" "PO-Revision-Date: 2003-02-08 05:40+0200\n" "Last-Translator: Dokianakis Fanis \n" "Language-Team: Greek \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-7\n" "Content-Transfer-Encoding: 8bit\n" #: src/main.c:89 msgid "Welcome to Sweep" msgstr "Êáëþò Þëèáôå óôï Sweep" #: src/main.c:90 msgid "" "Hello, my name is Scrubby. Welcome to Sweep!\n" "\n" "Would you like to create a new file or load an existing file?" msgstr "" "Ãåßá óáò, ôï üíïìá ìïõ åßíáé Scrubby. Êáëþò Þëèáôå óôï Sweep!\n" "\n" "ÈÝëåôå íá äçìéïõñãÞóåôå Ýíá íÝï áñ÷åßï Þ íá áíïßîåôå Ýíá ðñïûðÜñ÷ùí;" #: src/main.c:94 msgid "Create new file" msgstr "Äçìéïõñãßá íÝïõ áñ÷åßïõ" #: src/main.c:94 msgid "Load existing file" msgstr "¶íïéãìá áñ÷åßïõ" #: src/main.c:129 msgid "WARNING: Build includes incomplete development code.\n" msgstr "ÐÑÏÅÉÄÏÐÏÉÇÓÇ: ÁõôÞ ç Ýêäïóç ðåñéÝ÷åé çìéôåëÞ, õðü áíÜðôõîç êþäéêá.\n" #: src/main.c:188 msgid "Sweep version" msgstr "¸êäïóç sweep" #: src/main.c:189 msgid "Sweep plugin API version" msgstr "¸êäïóç API ôùí áñèñùìÜôùí ôïõ sweep" #: src/main.c:195 #, c-format msgid "Usage: %s [option ...] [files ...]\n" msgstr "×ñÞóç: %s [åðéëïãÝò ...] [áñ÷åßá ...]\n" #: src/main.c:196 msgid "Valid options are:\n" msgstr "¸ãêõñåò åðéëïãÝò åßíáé:\n" #: src/main.c:197 msgid " -h --help Output this help.\n" msgstr " -h --help Áðåéêüíéóç áõôÞò ôçò âïÞèåéáò.\n" #: src/main.c:198 msgid " -v --version Output version info.\n" msgstr " -v --version Áðåéêüíéóç ðëçñïöïñéþí Ýêäïóçò.\n" #: src/main.c:199 msgid " --display Use the designated X display.\n" msgstr " --display ×ñÞóç ôçò óõãêåêñéìÝíçò ïèüíçò X.\n" #: src/main.c:200 msgid "" " --ignore-failed-lock Continue when attempt to lock the\n" " preferences file fails. For use when\n" " the users home directory is on an NFS\n" " file system. (possibly unsafe) \n" msgstr "" #: src/main.c:206 msgid " --no-toolbox Do not show the toolbox window.\n" msgstr " --no-toolbox Áðüêñõøç ôïõ ðáñáèýñïõ ôçò åñãáëåéïèÞêçò.\n" #: src/about_dialog.c:99 msgid "This is Sweep version" msgstr "Áõôü åßíáé ôï Sweep Ýêäïóçò" #: src/about_dialog.c:119 msgid "http://sweep.sourceforge.net/" msgstr "http://sweep.sourceforge.net/" #: src/callbacks.c:926 src/callbacks.c:939 src/edit.c:1568 src/edit.c:1642 #: src/edit.c:1726 msgid "Clipboard empty" msgstr "¶äåéï ðñü÷åéñï" #: src/channelops.c:146 #, c-format msgid "Duplicate to %d channels" msgstr "ÁíôéãñáöÞ óå %d êáíÜëéá" #: src/channelops.c:148 #, c-format msgid "Duplicate from %d to %d channels" msgstr "ÁíôéãñáöÞ áðü %d óå %d êáíÜëéá" #: src/channelops.c:207 msgid "Sweep: Duplicate channel" msgstr "Sweep: Äéðëáóéáóìüò êáíáëéïý" #: src/channelops.c:214 src/channelops.c:698 #, c-format msgid "Currently: %d channels" msgstr "ÁõôÞ ôç óôéãìÞ: %d êáíÜëéá" #: src/channelops.c:221 src/channelops.c:704 msgid "Output channels" msgstr "ÅîáãùãÞ êáíáëéþí" #: src/channelops.c:231 src/channelops.c:714 src/driver.c:374 #: src/file_sndfile1.c:285 src/param.c:779 src/question_dialogs.c:144 #: src/question_dialogs.c:204 src/question_dialogs.c:253 #: src/sweep_sample.c:1918 src/undo_dialog.c:440 msgid "OK" msgstr "ÅíôÜîåé" #: src/channelops.c:242 src/channelops.c:725 src/driver.c:387 #: src/file_sndfile1.c:295 src/param.c:788 src/question_dialogs.c:158 #: src/view.c:543 src/view.c:2650 msgid "Cancel" msgstr "Áêýñùóç" #: src/channelops.c:347 src/view.c:361 msgid "Mix down to mono" msgstr "Ìßîç óå ìïíïöùíéêü" #: src/channelops.c:445 src/view.c:340 msgid "Remove left channel" msgstr "Áöáßñåóç áñéóôåñïý êáíáëéïý" #: src/channelops.c:455 src/view.c:349 msgid "Remove right channel" msgstr "Áöáßñåóç äåîéïý êáíáëéïý" #: src/channelops.c:539 msgid "Swap channels" msgstr "ÅíáëëáãÞ êáíáëéþí" #: src/channelops.c:541 msgid "Not stereo" msgstr "¼÷é óôåñåïöùíéêü" #: src/channelops.c:643 #, c-format msgid "Convert from %d to %d channels" msgstr "ÌåôáôñïðÞ áðü %d óå %d êáíÜëéá" #: src/channelops.c:692 msgid "Sweep: Add/Remove channels" msgstr "Sweep: ÐñïóèÞêç/Áöáßñåóç êáíáëéþí" #: src/driver.c:369 msgid "Sweep: audio device configuration" msgstr "" #: src/driver.c:410 msgid "Changes to device settings will take effect on next playback." msgstr "" "ÁëëáãÝò óôéò ñõèìßóåéò óõóêåõþí èá åíåñãïðïéçèïýí óôçí åðüìåíç áíáðáñáãùãÞ." #: src/driver.c:424 msgid "Device name" msgstr "¼íïìá óõóêåõÞò" #: src/driver.c:430 msgid "Set the main device for playback and recording" msgstr "" #: src/driver.c:440 msgid "Main device:" msgstr "" #: src/driver.c:454 src/driver.c:636 src/samplerate.c:570 msgid "Default" msgstr "Åî ïñéóìïý" #: src/driver.c:467 msgid "Use a different device for monitoring" msgstr "×ñÞóç äéáöïñåôéêÞò óõóêåõÞò ãéá ðáñáêïëïýèçóç" #: src/driver.c:479 msgid "Monitor output:" msgstr "¸îïäïò ðáñáêïëïýèçóçò:" #: src/driver.c:504 msgid "Swap" msgstr "ÅíáëëáãÞ" #: src/driver.c:512 msgid "Swap main and monitor devices." msgstr "ÅíáëëáãÞ ìåôáîý êýñéáò êáé óõóêåõÞò ðáñáêïëïýèçóçò." #: src/driver.c:521 src/driver.c:622 src/file_speex.c:1957 #: src/file_vorbis.c:1348 src/samplerate.c:556 src/sweep_sample.c:532 msgid "Reset" msgstr "ÅðáíáöïñÜ" #: src/driver.c:529 msgid "Reset to the last remembered device names." msgstr "ÅðáíáöïñÜ ôþí ðñïçãïýìåíùí ïíïìÜôùí ôùí óõóêåõþí." #: src/driver.c:535 src/file_speex.c:1971 src/file_vorbis.c:1362 #: src/param.c:747 src/sweep_sample.c:543 msgid "Defaults" msgstr "Åî ïñéóìïý" #: src/driver.c:543 msgid "Set to default device names." msgstr "×ñÞóç óáí åî ïñéóìïý ïíüìáôá óõóêåõþí." #: src/driver.c:554 msgid "Device buffering" msgstr "Buffering óõóêåõÞò" #: src/driver.c:564 msgid "" "Low latency /\n" "More dropouts" msgstr "" "×áìçëÞ êáèõóôÝñçóç /\n" "Ðåñéóóüôåñåò áðïññßøåéò" #: src/driver.c:586 msgid "" "High latency /\n" "Fewer dropouts" msgstr "" "ÕøçëÞ êáèõóôÝñçóç /\n" "Ëéãüôåñåò áðïññßøåéò" #: src/driver.c:590 msgid "" "Varying this slider controls the lag between cursor movements and playback. " "This is particularly noticeable when \"scrubbing\" during playback.\n" "\n" "Lower values improve responsiveness but may degrade audio quality on heavily-" "loaded systems." msgstr "" "Áõôüò ï åðéëïãÝáò åëÝã÷åé ôçí êáèõóôÝñçóç ìåôáîý ôùí êéíÞóåùí ôïõ êÝñóïñá " "êáé ôçò áíáðáñáãùãÞò. ÐáñáôÞñåßôáé éäéáßôåñá óôï \"scrubbing\" êáôÜ " "ôçíáíáðáñáãùãÞ\n" "\n" "×áìçëÝò ôéìÝò âåëôéþíïõí ôçí áíôáðüêñéóç áëëÜ ìðïñÝß íá ìåéþóïõí ôçí " "ðïéüôçôá ôïõ Þ÷ïõ óå óõóôÞìáôá ìå ìåãÜëï öüñôï." #: src/driver.c:609 msgid "Remember these options" msgstr "Áðïìíçìüíåõóç áõôþí ôùí åðéëïãþí" #: src/driver.c:630 msgid "Reset to the last remembered device buffering." msgstr "ÅðáíáöïñÜ óôï ôåëåõôáßï óôç ìíÞìç buffering ôçò óõóêåõÞò." #: src/driver.c:644 msgid "Set to default device buffering." msgstr "×ñÞóç óáí åî ïñéóìïý buffering óõóêåýçò." #: src/edit.c:1291 msgid "No selection to copy" msgstr "Êáììßá åðéëïãÞ ãéá áíôéãñáöÞ" #: src/edit.c:1308 src/view.c:572 src/view.c:1150 msgid "Copy" msgstr "ÁíôéãñáöÞ" #: src/edit.c:1342 msgid "No selection to cut" msgstr "Êáììßá åðéëïãÞ ãéá áðïêïðÞ" #: src/edit.c:1358 src/view.c:568 src/view.c:1144 msgid "Cut" msgstr "ÁðïêïðÞ" #: src/edit.c:1388 msgid "No selection to clear" msgstr "Êáììßá åðéëïãÞ ãéá êáèáñéóìü" #: src/edit.c:1404 src/view.c:576 src/view.c:1156 msgid "Clear" msgstr "Êáèáñéóìüò" #: src/edit.c:1430 msgid "No selection to delete" msgstr "Êáììßá åðéëïãÞ ãéá äéáãñáöÞ" #: src/edit.c:1447 src/view.c:564 msgid "Delete" msgstr "ÄéáãñáöÞ" #: src/edit.c:1482 msgid "Nothing to crop out" msgstr "Ôßðïôá ãéá êüøéìï" #: src/edit.c:1498 src/view.c:580 src/view.c:1162 src/view.c:1868 msgid "Crop" msgstr "Êüøéìï" #: src/edit.c:1572 src/edit.c:1646 src/edit.c:1730 msgid "Clipboard data has incompatible format" msgstr "Ôá äåäïìÝíá óôï ðñü÷åéñï åßíáé áóýìâáôçò ìïñöÞò" #: src/edit.c:1590 msgid "Paste insert" msgstr "Åðéêüëëçóç ìÝóá" #: src/edit.c:1669 msgid "Paste mix" msgstr "Åðéêüëëçóç ìßîç" #: src/edit.c:1757 msgid "Paste xfade" msgstr "Åðéêüëëçóç xfade" #: src/file_dialogs.c:73 msgid "MP3 export unsupported" msgstr "Äåí õðïóôçñßæåôáé ç åîáãùãÞ óå MP3" #: src/file_dialogs.c:74 msgid "" "Export to MP3 format cannot legally be supported in free software\n" "due to patent licensing restrictions.\n" "\n" "Please use Ogg Vorbis format instead, which\n" "provides better quality and is free." msgstr "" "Ç åîáãùãÞ ðñïò ôç ìïñöÞ MP3 äåí ìðïñåß íá óõìðåñéëçöèåß íüìéìá óå åëåýèåñï\n" "ëïãéóìéêü ëüãù ðåñéïñéóìþí ôçò Üäåéáò ðíåõìáôéêÞò éäéïêôçóßáò.\n" "\n" "Áíôß áõôïý, ðáñáêáëïýìå íá ÷ñçóéìïðïéÞóåôå ôç ìïñöÞ Ogg Vïrbis, ç ïðïßá\n" "ðáñÝ÷åé êáëýôåñç ðïéüôçôá êáé åßíáé åëåýèåñç." #: src/file_dialogs.c:99 msgid "Raw PCM (headerless)" msgstr "" #: src/file_dialogs.c:157 #, c-format msgid "%s does not exist." msgstr "Ôï %s äåí õðÜñ÷åé" #: src/file_dialogs.c:158 msgid "Directory does not exist" msgstr "Ï öÜêåëïò äåí õðÜñ÷åé" #: src/file_dialogs.c:262 #, c-format msgid "" "Unable to read\n" "%s" msgstr "" "Áäõíáìßá áíÜãíùóçò\n" "ôïõ %s" #: src/file_dialogs.c:289 #, fuzzy msgid "Sweep: Open Files" msgstr "Sweep: ÍÝï áñ÷åßï" #: src/file_dialogs.c:370 #, c-format msgid "" "Are you sure you want to revert %s to\n" "%s?\n" "\n" "All changes and undo information will be lost." msgstr "" "Óßãïõñá íá åðéóôñÝøåôå ôï %s óôï%s;\n" "\n" "¼ëåò ïé áëëáãÝò êáé ïé ðëçñïöïñßåò áíÜêôçóçò èá ÷áèïýí." #: src/file_dialogs.c:374 msgid "Revert file" msgstr "ÅðéóôñïöÞ óôï áñ÷åßï" #: src/file_dialogs.c:375 src/view.c:509 msgid "Revert" msgstr "ÅðéóôñïöÞ" #: src/file_dialogs.c:375 msgid "Don't revert" msgstr "¼÷é åðéóôñïöÞ" #: src/file_dialogs.c:545 src/file_dialogs.c:824 #, c-format msgid "Save as %s cancelled" msgstr "ÁðïèÞêåõóç ùò %s áêõñþèçêå" #: src/file_dialogs.c:582 msgid "By extension" msgstr "ÌÝóù êáôÜëçîçò" #: src/file_dialogs.c:640 msgid "MP3 (Use Ogg Vorbis instead)" msgstr "" #: src/file_dialogs.c:707 msgid "Sweep: Save file" msgstr "Sweep: ÁðïèÞêåõóç áñ÷åßïõ" #: src/file_dialogs.c:721 msgid "Save Options" msgstr "ÁðïèÞêåõóç Åðéëïãþí" #: src/file_dialogs.c:730 msgid "Determine File Type:" msgstr "Êáèïñéóìüò Ôýðïõ Áñ÷åßïõ:" #: src/file_dialogs.c:810 #, c-format msgid "" "You are not allowed to write to\n" "%s" msgstr "" "Äåí åðéôñÝðåôå íá ãñÜøåôå óôï\n" "%s" #: src/file_dialogs.c:812 #, c-format msgid "%s exists. Overwrite?" msgstr "Ôï %s õðÜñ÷åé Þäç. Íá ãñÜöôåß óå áõôü." #: src/file_dialogs.c:814 msgid "File exists" msgstr "Ôï áñ÷åßï õðÜñ÷åé Þäç" #: src/file_dialogs.c:815 msgid "Overwrite" msgstr "ÅããñáöÞ" #: src/file_dialogs.c:815 msgid "Don't overwrite" msgstr "¼÷é åããñáöÞ" #: src/file_dialogs.c:887 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Are you sure you want to save?" msgstr "" "%s\n" " Üëëáîå óôï äßóêï.\n" "\n" "ÈÝëåôå óßãïõñá íá ôï áðïèçêåýóåôå;" #: src/file_dialogs.c:891 src/sweep_undo.c:331 src/view.c:3401 msgid "File modified" msgstr "Ôï áñ÷åßï ôñïðïðïéÞèçêå" #: src/file_dialogs.c:892 src/file_speex.c:2127 src/file_vorbis.c:1611 #: src/view.c:501 src/view.c:1782 msgid "Save" msgstr "ÁðïèÞêåõóç" #: src/file_dialogs.c:892 src/file_speex.c:2138 src/file_vorbis.c:1622 msgid "Don't save" msgstr "¼÷é áðïèÞêåõóç" #: src/file_sndfile1.c:327 msgid "Powered by libsndfile" msgstr "Powered by libsndfile" #: src/file_sndfile1.c:354 msgid "Encoding" msgstr "Êùäéêïðïßçóç" #: src/file_sndfile1.c:375 msgid "Encoding:" msgstr "Êùäéêïðïßçóç:" #: src/file_sndfile1.c:447 msgid "Sampling rate:" msgstr "Ñõèìüò äåéãìáôïëçøßáò:" #: src/file_sndfile1.c:480 src/file_speex.c:2078 src/file_vorbis.c:1562 #: src/samplerate.c:584 msgid "About" msgstr "Ðåñß" #: src/file_sndfile1.c:496 msgid "" "Libsndfile is a C library by Erik de Castro Lopo\n" "for reading and writing files containing sampled sound." msgstr "" "Ç libsndfile åßíáé ìéá âéâëéïèÞêç ôçò C áðü ôïí Erik de Castro Lopo\n" "ãéá ôçí áíÜãíùóç êáé åããñáöÞ áñ÷åßùí ðïõ ðåñéÝ÷ïõí äåßãìáôá Þ÷ïõ." #: src/file_sndfile1.c:507 msgid "" "This user interface by Erik de Castro Lopo\n" " and Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "Áõôü ôï ðåñéâÜëëïí ÷ñÞóôç áðü ôï Erik de Castro Lopo\n" " êáé ôï Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Áõóôñáëßáò.\n" "\n" #: src/file_sndfile1.c:550 msgid "Sweep: Save PCM options" msgstr "Sweep: ÁðïèÞêåõóç åðéëïãþí PCM" #: src/file_sndfile1.c:719 msgid "Sweep: Load Raw PCM options" msgstr "Sweep: ¶íïéãìá åðéëïãþí Ïìïý PCM" #: src/file_sndfile1.c:771 src/file_mad.c:435 src/file_speex.c:577 #: src/file_vorbis.c:324 #, c-format msgid "Loading %s" msgstr "¶íïéãìá ôïõ %s" #: src/file_sndfile1.c:998 src/file_speex.c:1074 src/file_vorbis.c:702 #, c-format msgid "Saving %s" msgstr "ÁðïèÞêåõóç ôïõ %s" #: src/file_speex.c:1016 src/file_speex.c:1036 msgid "Speex encoding results" msgstr "ÁðïôåëÝóìáôá êùäéêïðïßçóçò Speex" #: src/file_speex.c:1208 msgid "Narrowband ~8 kHz (telephone quality)" msgstr "ÓôåíÞ æþíç ~8000 Hz (ðïéüôçôá ôçëåöþíïõ)" #: src/file_speex.c:1209 msgid "Wideband ~16 kHz" msgstr "Åõñõæùíéêü ~16 kHz" #: src/file_speex.c:1211 msgid "Ultra-wideband 32-48 kHz" msgstr "Õðåñ-åõñõæùíéêü 32-48 kHz" #: src/file_speex.c:1218 msgid "Constant bitrate (CBR) with no features" msgstr "Óôáèåñüò ñõèìüò bit (CBR) ÷ùñßò ÷áñáêôçñéóôéêÜ" #: src/file_speex.c:1221 msgid "CBR with Voice Activity Detection (VAD)" msgstr "CBR ìå Áíß÷íåõóç ÖùíçôéêÞò Äñáóôçñéüôçôáò (VAD)" #: src/file_speex.c:1222 msgid "VAD generates low bitrate comfort noise to replace non-speech" msgstr "" "Ôï VAD ðáñÜãåé Ýíá ÷áìçëïý ñõèìïý bit èüñõâï ðïõ áíôéêáèéóôåß ôï ìåñïò ÷ùñßò " "öùíÞ." #: src/file_speex.c:1225 msgid "CBR with VAD and Discontinuous Transmission (DTX)" msgstr "CBR ìå VAD êáé Áóõíå÷Þ ÌåôÜäïóç (DTX)" #: src/file_speex.c:1226 msgid "DTX marks extended pauses with a minimum bitrate signal" msgstr "Ôï DTX óçìåéþíåé ôéò ðáýóåéò ìå Ýíá åëÜ÷éóôïõ ñõèìïý bit óÞìá" #: src/file_speex.c:1229 #, fuzzy msgid "Variable bitrate (VBR) with VAD" msgstr "Ìåôáâëçôüò ñõèìüò bit (VBR)" #: src/file_speex.c:1230 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech; this " "selection uses VBR without DTX, which may improve performance compared to " "full VBR in the presence of background noise." msgstr "" #: src/file_speex.c:1235 msgid "Variable bitrate (VBR) with all features" msgstr "Ìåôáâëçôüò ñõèìüò bit (VBR) ìå üëá ôá ÷áñáêôçñéóôéêÜ" #: src/file_speex.c:1236 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech, and handles " "pauses using VAD and DTX" msgstr "" "Ôï VBR åðéôñÝðåé óôï ñõèìü bit íá ðñïóáñìïóôåß óôçí ðïëõðëïêüôçôá ôçò öùíÞò " "êáé ÷åéñßæåôáé ôéò ðáýóåéò ÷ñçóéìïðïéþíôáò VAD êáé VTX" #: src/file_speex.c:1240 msgid "Constant bitrate (CBR)" msgstr "Óôáèåñüò ñõèìüò bit (CBR):" #: src/file_speex.c:1242 msgid "Variable bitrate (VBR)" msgstr "Ìåôáâëçôüò ñõèìüò bit (VBR)" #: src/file_speex.c:1243 msgid "VBR allows the bitrate to adapt to the complexity of the speech." msgstr "" "Ôï VBR åðéôñÝðåé óôï ñõèìü bit íá ðñïóáñìïóôåß óôçí ðïëõðëïêüôçôá ôçò öùíÞò." #: src/file_speex.c:1298 src/file_speex.c:1803 msgid "Average bitrate" msgstr "ÌÝóïò ñõèìüò bit" #: src/file_speex.c:1301 msgid "Maximum bitrate" msgstr "ÌÝãéóôïò ñõèìüò bit" #: src/file_speex.c:1494 src/file_vorbis.c:1013 msgid "Hack the planet!" msgstr "Hack the planet!" #: src/file_speex.c:1580 msgid "Sweep: Speex save options" msgstr "Sweep: ÅðéëïãÝò áðïèÞêåõóçò Speex" #: src/file_speex.c:1631 msgid "Speex encoding" msgstr "Êùäéêïðïßçóç Speex" #: src/file_speex.c:1644 msgid "Mode:" msgstr "ÊáôÜóôáóç:" #: src/file_speex.c:1670 msgid "Auto" msgstr "Áõôüìáôï" #: src/file_speex.c:1679 msgid "" "Automatically select the encoding mode based on the sampling rate of the " "file." msgstr "" "ÅðéëÝãåé áõôüìáôá ôçí êáôÜóôáóç êùäéêïðïßçóçò ìå âÜóç ôï ñõèìü " "äåéãìáôïëçøßáò ôïõ áñ÷åßïõ." #: src/file_speex.c:1732 src/file_vorbis.c:1160 msgid "Encoding quality:" msgstr "Ðïéüôçôá êùäéêïðïßçóçò:" #: src/file_speex.c:1775 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file)." msgstr "" "Ðïéüôçôá êùäéêïðïßçóçò ìåôáîý 0 (ç ÷áìçëüôåñç ðïéüôçôá, ôï ìéêñüôåñï áñ÷åßï) " "(ç õøçëüôåñç ðïéüôçôá, ôï ìåãáëõôåñï áñ÷åßï)." #: src/file_speex.c:1785 msgid "Enable bitrate management" msgstr "Åíåñãïðïßçóç äéá÷åßñçóçò ñõèìïý bit" #: src/file_speex.c:1798 msgid "" "For non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For " "VBR encoding, this sets the average bitrate." msgstr "" "Ãéá ìç-VBR (óôáèåñüò ñõèìüò bit) êùäéêïðïßçóç, áõôü èÝôåé ôï ìÝãéóôï ñõèìü. " "Ãéá êùäéêïðïßçóç VBR èÝôåé ôï ìÝóï ñõèìü bit." #: src/file_speex.c:1821 msgid "bps" msgstr "bps" #: src/file_speex.c:1827 msgid "Extra" msgstr "ÅîôñÜ" #: src/file_speex.c:1849 msgid "Encoding complexity:" msgstr "Ðïëõðëïêüôçôá êùäéêïðïßçóçò:" #: src/file_speex.c:1888 msgid "" "This sets the encoding speed/quality tradeoff between 0 (faster encoding) " "and 10 (slower encoding)" msgstr "" "ÈÝôåé óôç êùäéêïðïßçóç, ôçí éóïññïðßá ìåôáîý ôá÷ýôçôáò/ðïéüôçôáò áðü 0 " "(ôá÷ýôåñç êùäéêïðïßçóç) åþò 10 (âñáäýôåñç êùäéêïðïßçóç)" #: src/file_speex.c:1904 msgid "Speex frames per Ogg packet:" msgstr "Ðëáßóéá Speex ãéá êÜèå ðáêÝôï Ogg:" #: src/file_speex.c:1930 msgid "" "Number of Speex frames to pack into each Ogg packet. Higher values save " "space at low bitrates." msgstr "" "Ï áñéèìüò ôùí ðëáéóßùí Speex ãéá áðïèÞêåõóç óå êÜèå ðáêÝôï Ogg. Õøçëüôåñåò " "ôéìÝò åîïéêïíïìïýí ÷þñï ìå ÷áìçëïýò ñõèìïýò bit." #: src/file_speex.c:1945 src/file_vorbis.c:1336 msgid "Remember these encoding options" msgstr "Áðïìíçìüíåõóç áõôþí ôùí åðéëïãþí êùäéêïðïßçóçò" #: src/file_speex.c:1965 src/file_vorbis.c:1356 msgid "Reset to the last remembered encoding options." msgstr "ÅðáíáöïñÜ ôùí ôåëåõôáßùí óôç ìíÞìç åðéëïãþí êùäéêïðïéçóçò." #: src/file_speex.c:1980 msgid "Automatically select best encoding options for this file." msgstr "" "Áõôüìáôç åðéëïãÞ ôùí âÝëôéóôùí åðéëïãþí êùäéêïðïßçóçò ãéá áõôü ôï áñ÷åßï." #: src/file_speex.c:1985 src/file_vorbis.c:1469 msgid "Ogg stream" msgstr "Ñåýìá (stream) Ogg" #: src/file_speex.c:1998 src/file_vorbis.c:1482 msgid "Ogg stream serial number:" msgstr "Óåéñéáêüò áñéèìüò ñåýìáôïò (stream) Ogg:" #: src/file_speex.c:2019 src/file_vorbis.c:1503 msgid "Remember this serial number" msgstr "Áðïìíçìüíåõóç áõôïý ôïõ óåéñéáêïý áñéèìïý" #: src/file_speex.c:2029 src/file_vorbis.c:1513 msgid "" "Remember this serial number for future re-use.\n" "USE OF THIS OPTION IS NOT RECOMMENDED.\n" "Each encoded file should have a different serial number; re-use of Ogg " "serial numbers in different files may create incompatabilities with " "streaming applications. This option is provided for bitstream engineering " "purposes only.\n" "If this option is not checked, new serial numbers will be randomly generated " "for each file encoded." msgstr "" "Áðïìíçìüíåõóç áõôïý ôïõ óåéñéáêïý áñéèìïý ãéá ìåëëïíôéêÞ ôïõ ÷ñÞóç.\n" "ÄÅÍ ÐÑÏÔÅÉÍÅÔÁÉ Ç ×ÑÇÓÇ ÁÕÔÇÓ ÔÇÓ ÅÐÉËÏÃÇÓ.\n" "ÊÜèå êùäéêïðïéçìÝíï áñ÷åßï ðñÝðåé íá Ý÷åé äéáöïñåôéêü óåéñéáêü áñéèìü·ç " "åðáíá÷ñçóéìïðïßçóç áõôþí ôùí áñéèìþí óå äéáöïñåôéêÜ áñ÷åßá ìðïñåß íá " "äçìéïõñãÞóåé áóõìâáôüôçôåò ìå åöáñìïãÝò ñïÞò (streaming). ÁõôÞ ç åðéëïãÞ " "ðáñÝ÷åôáé ìüíï ãéá ëüãïõò êáôáíüçóçò ôçò ìç÷áíéêÞò ôçò ñïÞò bit.\n" "ÅÜí äåí Ý÷åé åíåñãïðïÞèåß áõôÞ ç åðéëïãÞ, ôüôå ïé óåéñéáêïß áñéèìïß èá " "ðáñÜãïíôáé ôõ÷áßá ãéá êÜèå áñ÷åßï ðïõ êùäéêïðïéåßôå." #: src/file_speex.c:2056 src/file_vorbis.c:1540 msgid "Randomize!" msgstr "Ôõ÷áéïðïßçóç!" #: src/file_speex.c:2063 src/file_vorbis.c:1547 msgid "" "Generate a random serial number for the Ogg bitstream. The number will " "change while this button is held down." msgstr "" "Äçìéïõñãßá åíüò ôõ÷áßïõ óåéñéáêïý áñéèìïý ãéá ôç ñïÞ bit Ogg. Ï áñéèìüò èá " "áëëÜæåé üóï åßíáé óå ðßåóç áõôü ôï êïõìðß." #: src/file_speex.c:2094 msgid "" "Speex is a high quality speech codec designed for\n" "voice over IP (VoIP) and file-based compression.\n" "It is free, open and unpatented." msgstr "" "Ôï Speex åßíáé Ýíá codec öùíÞò õøçëÞò ðïéüôçôáò, ðïõ\n" "Ý÷åé ó÷åäéáóôåß ãéá öþíç ðÜíù óå IP (VoIP) êáé óõìðßåóç\n" "áñ÷åßùí. Åßíáé äùñåÜí, áíïéêôü êáé ÷ùñßò ðáôÝíôá." #: src/file_speex.c:2105 msgid "" "Ogg, Speex, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ôï Ogg, ôï Speex, ôï ºäñõìá Xiph.org êáé ôá óÞìáôá\n" "ôïõò åßíáé óÞìáôá êáôáôåèÝí (tm) ôïõ Éäñýìáôïò Xiph.org.\n" "×ñÞóÞ áõôþí ìå Üäåéá." #: src/file_speex.c:2120 src/file_vorbis.c:1604 src/samplerate.c:611 msgid "" "This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "Áõôü ôï ðåñéâÜëëïí ÷ñÞóçò áðü ôï Conrad Parker,\n" "Copyright (C) 2002 CSIRO Áõóôñáëßáò.\n" "\n" #: src/file_vorbis.c:356 #, c-format msgid "" "Decoding %s\n" "Encoded by: %s\n" "\n" "%s" msgstr "" "Áðïêùäéêïðïßçóç %s\n" "ÊùäéêïðïéÞèçêå áðü: %s\n" "\n" "%s" #: src/file_vorbis.c:470 msgid "Unsupported encoding mode" msgstr "Ìç õðïóôçñéæüìåíç êáôÜóôáóç êùäéêïðïßçóçò" #: src/file_vorbis.c:473 msgid "Invalid encoding options" msgstr "¶êõñåò åðéëïãÝò êùäéêïðïßçóçò" #: src/file_vorbis.c:643 src/file_vorbis.c:663 msgid "Ogg Vorbis encoding results" msgstr "ÁðïôåëÝóìáôá êùäéêïðïßçóçò Ogg Vorbis" #: src/file_vorbis.c:1089 msgid "Sweep: Ogg Vorbis save options" msgstr "Sweep: åðéëïãÝò áðïèÞêåõóçò Ogg Vorbis" #: src/file_vorbis.c:1148 msgid "Vorbis encoding" msgstr "Êùäéêïðïßçóç Vorbis" #: src/file_vorbis.c:1195 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file) using variable bitrate mode (VBR)." msgstr "" "Ðïéüôçôá êùäéêïðïßçóçò ìåôáîý 0 (ç ÷áìçëüôåñç ðïéüôçôá, ôï ìéêñüôåñï áñ÷åßï) " "êáé 10 (ç õøçëüôåñç ðïéüôçôá, ôï ìåãáëýôåñï áñ÷åßï) ìå ÷ñÞóç ìåôáâëçôïõ " "ñõèìïý bit (VBR)." #: src/file_vorbis.c:1205 msgid "Enable bitrate management engine" msgstr "Åíåñãïðïßçóç ìç÷áíÞò äéá÷åßñçóçò ñõèìïý bit" #: src/file_vorbis.c:1211 msgid "" "This enables average bitrate mode (ABR). You must suggest a nominal average " "bitrate and may specify minimum and maximum bounds.\n" "For best results it is generally recommended that you use the variable " "bitrate 'encoding quality' control (above) instead." msgstr "" "Åíåñãïðïéåß ôçí êáôÜóôáóç ìÝóïõ ñõèìïý bit (ABR). ÐñÝðåé íá ðñïôåßíåôå Ýíá " "ïíïìáóôéêü ìÝóï ñõèìü bit êáé åÜí èÝëåôå Üíù êáé êÜôù üñéá.\n" "Ãéá êáëýôåñá áðïôÝëåóìáôá, ãåíéêÜ ðñïôåßíåôáé ç ÷ñÞóç, óôï ìåôáâëçôü ñõèìü " "bit, ôïõ åëÝã÷ïõ 'ðïéüôçôá êùäéêïðïßçóçò' (ðÜíù) áíôé áõôïý." #: src/file_vorbis.c:1221 msgid "Bitrate management engine" msgstr "Ìç÷áíÞ äéá÷åßñçóçò ñõèìïý bit" #: src/file_vorbis.c:1247 msgid "Nominal bitrate (ABR):" msgstr "Ïíïìáóôéêüò ñõèìüò bit (ABR):" #: src/file_vorbis.c:1260 msgid "" "Specify a nominal bitrate. Attempt to encode at a bitrate averaging this." msgstr "Êáèïñéóìüò åíüò ïíïìáóôéêïý ñõèìïý bit. ×ñÞóç áõôïý óáí ìÝóç ôéìÞ." #: src/file_vorbis.c:1264 src/file_vorbis.c:1293 src/file_vorbis.c:1323 msgid "kbps" msgstr "kbps" #: src/file_vorbis.c:1276 msgid "Minimum bitrate:" msgstr "ÅëÜ÷éóôïò ñõèìüò bit:" #: src/file_vorbis.c:1289 msgid "" "Specify a minimum bitrate, useful for encoding for a fixed-size channel. " "(Optional)" msgstr "" "Êáèïñéóìüò åíüò åëÜ÷éóôïõ ñõèìïý bit, ÷ñÞóéìï ãéá êùäéêïðïßçóç êáíáëéïý " "óôáèåñïý ìåãÝèïõò. (Ðñïáéñåôéêü)" #: src/file_vorbis.c:1306 msgid "Maximum bitrate:" msgstr "ÌÝãéóôïò ñõèìüò bit:" #: src/file_vorbis.c:1319 msgid "" "Specify a maximum bitrate, useful for streaming applications. (Optional)" msgstr "" "Êáèïñéóìüò åíüò ìÝãéóôïõ ñõèìïý, ÷ñÞóéìï ãéá åöáñìïãÝò ñïÞò. (Ðñïáéñåôéêü)" #: src/file_vorbis.c:1370 msgid "Set to default encoding options." msgstr "×ñÞóç óáí åî ïñéóìïý åðéëïãÝò êùäéêïðïßçóçò." #: src/file_vorbis.c:1377 msgid "Metadata" msgstr "MåôáäåäïìÝíá" #: src/file_vorbis.c:1399 msgid "Title:" msgstr "Ôßôëïò:" #: src/file_vorbis.c:1399 msgid "Track/Work name" msgstr "¼íïìá êïììáôéïý/Ýñãïõ" #: src/file_vorbis.c:1401 msgid "Version:" msgstr "¸êäïóç:" #: src/file_vorbis.c:1402 msgid "" "The version field may be used to differentiate multiple versions of the same " "track title in a single collection. (e.g. remix info)" msgstr "" "Ôï ðåäßï ôçò Ýêäïóçò ìðïñåß íá ÷ñçóéìïðïéçèåß ãéá íá îå÷ùñßóïõìå åêäüóåéò " "ôïõ ßäéïõ êïììáôéïý óå ìéá óõëëïãÞ. (ð.÷. ãéá ðëçñïöïñßåò remix)" #: src/file_vorbis.c:1406 msgid "Album:" msgstr "ÓõëëïãÞ:" #: src/file_vorbis.c:1407 msgid "The collection name to which this track belongs" msgstr "Ôï üíïìá ôçò óõëëïãÞò ðïõ áíÞêåé áõôü ôï êïììÜôé" #: src/file_vorbis.c:1409 msgid "Artist:" msgstr "ÊáëëéôÝ÷íçò" #: src/file_vorbis.c:1410 msgid "" "The artist generally considered responsible for the work. In popular music " "this is usually the performing band or singer. For classical music it would " "be the composer. For an audio book it would be the author of the original " "text." msgstr "" "Ï êáëëéôÝ÷íçò ðïõ åõèýíåôáé ãéá áõôü ôï Ýñãï. Óå äçìïöéëÞ ìïõóéêÞ åßíáé " "óõíÞèùò ôï óõãêñüôçìá Þ ï ôñáãïõäéóôÞò ðïõ ôï åêôåëåß. Óå êëáóóéêÞ ìïõóéêÞ " "èá ðñÝðåé íá åßíáé ï óõíèÝôçò. Ãéá Ýíá ç÷çôéêü âéâëßï èá åßíáé ï óõããñáöÝáò " "ôïõ ðñùôüôõðïõ êåéìÝíïõ." #: src/file_vorbis.c:1416 msgid "Performer:" msgstr "ÅêôåëåóôÞò:" #: src/file_vorbis.c:1417 msgid "" "The artist(s) who performed the work. In classical music this would be the " "conductor, orchestra, soloists. In an audio book it would be the actor who " "did the reading. In popular music this is typically the same as the ARTIST " "and is omitted." msgstr "" "Ï êáëëéôÝ÷íçò(åò) ðïõ åêôÝëåóáí áõôü ôï Ýñãï. Óôç êëáóóéêÞ ìïõóéêÞ áõôüò èá " "ðñÝðåé íá åßíáé ï äéåõèõíôÞò, ïñ÷Þóôñá, óïëßóô. Óå Ýíá ç÷çôéêü âéâëßï åßíáé " "ï çèïðïéüò ðïõ ôï äéáâÜæåé. Óôç äçìïöéëÞ ìïõóéêÞ ôõðéêÜ åßíáé ôï ßäéï óá ôï " "êáëëéôÝ÷íç êáé ìðïñåß íá ðáñáëçöèåß." #: src/file_vorbis.c:1424 msgid "Copyright:" msgstr "ÐíåõìáôéêÞ Éäéïêôçóßá:" #: src/file_vorbis.c:1425 msgid "" "Copyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'" msgstr "Áðüäïóç éäéïêôçóßáò, ð.÷., '2001 Nobody's Band' Þ '1999 Jack Moffitt'" #: src/file_vorbis.c:1428 msgid "License:" msgstr "¶äåéá ×ñÞóçò:" #: src/file_vorbis.c:1429 msgid "" "License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL " "to a license such as a Creative Commons license (\"www.creativecommons.org/" "blahblah/license.html\") or the EFF Open Audio License ('distributed under " "the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/" "eff_oal.html for details'), etc." msgstr "" "Ðëçñïöïñßåò Üäåéáò ÷ñÞóçò, ð÷ 'All Rights Reserved', 'Any Use Permitted', " "ÝíáURL ìå ôçí Üäåéá üðùò ç Creative Commons Üäåéá (\"www.creativecommons.org/" "blahblah/license.html\") Þ Áíïé÷ôÞ ¶äåéá ¹÷ïõ ôïõ EFF ('äéáíÝìåôå õðü ôïõò " "üñïõò ôçò Áíïé÷ôÞò ¶äåéáò ¹÷ïõ. ÂëÝðå http://www.eff.org/IP/Open_licenses/" "eff_oal.html ãéá ëåðôïìÝñåéåò'), êëð." #: src/file_vorbis.c:1438 msgid "Organization:" msgstr "Ïñãáíéóìüò:" #: src/file_vorbis.c:1439 msgid "Name of the organization producing the track (i.e. the 'record label')" msgstr "¼íïìá ôïõ ïñãáíéóìïý ðïõ ðáñÜãåé ôï êïììÜôé ('ð.÷ ç äéóêïãñáöéêÞ')" #: src/file_vorbis.c:1442 msgid "Description:" msgstr "ÐåñéãñáöÞ:" #: src/file_vorbis.c:1443 msgid "A short text description of the contents" msgstr "Ìéá ìéêñÞ ðåñéãñáöÞ ôùí ðåñéå÷ïìÝíùí" #: src/file_vorbis.c:1445 msgid "Genre:" msgstr "ÃÝíïò:" #: src/file_vorbis.c:1446 msgid "A short text indication of music genre" msgstr "Ìéá Ýíäåéîç ôïõ ìïõóéêïý ãÝíïõò" #: src/file_vorbis.c:1448 msgid "Date:" msgstr "Çìåñïìçíßá:" #: src/file_vorbis.c:1449 msgid "Date the track was recorded" msgstr "Ç çìåñïìçíßá ðïõ ç÷ïãñáöÞèçêå ôï êïììÜôé" #: src/file_vorbis.c:1451 msgid "Location:" msgstr "Ôïðïèåóßá:" #: src/file_vorbis.c:1452 msgid "Location where track was recorded" msgstr "Ç ôïðïèåóßá ðïõ ç÷ïãñáöÞèçêå ôï êïììÜôé" #: src/file_vorbis.c:1454 msgid "Contact:" msgstr "ÅðáöÞ:" #: src/file_vorbis.c:1455 msgid "" "Contact information for the creators or distributors of the track. This " "could be a URL, an email address, the physical address of the producing " "label." msgstr "" "Ðëçñïöïñßåò ãéá åðáöÞ ìå ôïõò äçìéïõñãïýò Þ ôïõ äéáêéíçôÝò ôïõ êïììáôéïý. " "Áõôü ìðïñåß íá åßíáé Ýíá URL, ìéá äéåýèõíóç email, ç öõóéêÞ äéåýèõíóç " "ôçòäéóêïãñáöéêÞò åôáéñßáò." #: src/file_vorbis.c:1460 msgid "ISRC:" msgstr "ISRC:" #: src/file_vorbis.c:1461 msgid "" "ISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-" "content/online/isrc_intro.html) for more information on ISRC numbers." msgstr "" "Áñéèìüò ISRC ôïõ êïììáôéïý· äåßôå ôçí åéóáãùãéêÞ óåëßäá (http://www.ifpi.org/" "site-content/online/isrc_intro.html) ãéá ðåñéóóüôåñåò ðëçñïöïñßåò." #: src/file_vorbis.c:1578 msgid "" "Ogg Vorbis is a high quality general purpose\n" "perceptual audio codec. It is free, open and\n" "unpatented." msgstr "" "Ôï Ogg Vorbis åßíáé Ýíá áíôéëçðôéêü codec Þ÷ïõ\n" "ãåíéêÞò ÷ñÞóçò êáé õøçëÞò ðïéüôçôáò. Åßíáé äùñåÜí,\n" "áíïéêôü êáé ÷ùñßò ðáôÝíôåò." #: src/file_vorbis.c:1589 msgid "" "Ogg, Vorbis, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ôï Ogg, ôï Vorbis, ôï ºäñõìá Xiph.org êáé ôá óÞìáôá\n" "ôïõò åßíáé êáôáôåèÝí (tm) ôïõ Éäñýìáôïò Xiph.org.\n" "×ñÞóç ôïõò ìå Üäåéá." #: src/head.c:408 src/view.c:2324 msgid "Cursor position (indicator)" msgstr "ÈÝóç êÝñóïñá (äåßêôçò)" #: src/head.c:449 #, fuzzy msgid "Reverse mode (toggle)" msgstr "ÁíáðáñáãùãÞ áíÜóôñïöçò êáôÜóôáóçò (äéáêüðôçò)" #: src/head.c:467 msgid "Loop mode recording (toggle)" msgstr "Ç÷ïãñÜöçóç êáôÜóôáóçò âñüã÷ïõ (äéáêüðôçò)" #: src/head.c:486 msgid "Record into selection" msgstr "Ç÷ïãñÜöçóç ìÝóá óôçí åðéëïãÞ" #: src/head.c:503 src/view.c:1068 msgid "Stop" msgstr "ÄéáêïðÞ" #: src/head.c:516 src/view.c:2469 msgid "Go to beginning" msgstr "ÅðéóôñïöÞ óôçí áñ÷Þ" #: src/head.c:527 src/view.c:2480 msgid "Rewind" msgstr "ÃñÞãïñá ðßóù" #: src/head.c:540 src/view.c:2492 msgid "Fast forward" msgstr "ÃñÞãïñá ìðñïóôÜ" #: src/head.c:555 src/view.c:2505 msgid "Go to the end" msgstr "Ìåôáêßíçóç óôï ôÝëïò" #: src/interface.c:327 msgid "Sweep" msgstr "Sweep" #: src/interface.c:352 src/view.c:446 msgid "File" msgstr "Áñ÷åßï" #: src/interface.c:357 msgid "New" msgstr "ÍÝï" #: src/interface.c:366 msgid "Open" msgstr "¶íïéãìá" #: src/interface.c:375 src/sweep_sample.c:800 src/sweep_sample.c:808 #: src/view.c:529 msgid "Quit" msgstr "¸îïäïò" #: src/interface.c:386 src/view.c:1073 msgid "Help" msgstr "ÂïÞèåéá" #: src/interface.c:391 msgid "About..." msgstr "Ðåñß..." #: src/interface.c:414 src/view.c:618 msgid "Select" msgstr "ÅðéëïãÞ" #: src/interface.c:415 msgid "Select regions of a sample" msgstr "ÅðéëïãÞ ðåñéï÷þí åíüò äåßãìáôïò." #: src/interface.c:416 msgid "" "This tool allows you to select regions of a sample. You can then apply edits " "and effects to the: selected regions. Hold down shift whilst selecting to " "add discontinuous regions to the selection." msgstr "" "Áõôü ôï åñãáëåßï åðéôñÝðåé ôçí åðéëïãÞ ðåñéï÷þí áðü Ýíá äåßãìá. " "ÌðïñåßôåÝðåéôá íá åöáñìüóåôå åðåîåñãáóßåò êáé åöÝ óôéò åðéëåãìÝíåò ðåñéï÷Ýò. " "ÊñáôÞóôå ðáôçìÝíï ôï Shift åíþ åðéëÝãåôå ãéá íá ðñïóèÝóåôå ìç óõíå÷Þò " "ðåñéï÷Ýò óôçí åðéëïãÞ" #: src/interface.c:433 msgid "Move" msgstr "Ìåôáêßíçóç" #: src/interface.c:434 msgid "Move regions in a sample" msgstr "Ìåôáêéíåß ðåñéï÷Ýò óå Ýíá äåßãìá" #: src/interface.c:435 msgid "With this tool you can move selected regions of a sample." msgstr "Ìå áõôü ôï åñãáëåßï ìðïñåßôå íá ìåôáêéíÞóåôå åðéëåãìÝíåò ðåñéï÷Ýò." #: src/interface.c:447 msgid "Scrub" msgstr "Scrub" #: src/interface.c:448 msgid "Locate sounds directly" msgstr "Êáôåõèåßáí åíôïðéóìüò Þ÷ùí" #: src/interface.c:449 msgid "" "Place the play marker on a sample. Click anywhere in a view to instantly " "move the playback position to that part of the sample." msgstr "" "Ôïðïèåôåßóôå ôï äåßêôç áíáðáñáãùãÞò óå Ýíá äåßãìá. Êëéê ïðïõäÞðïôå óå ìéá " "áðåéêüíéóç ãéá Üìåóç ìåôáêßíçóç ôçò èÝóçò áíáðáñáãùãÞò óå áõôü ôï ìÝñïò óôï " "äåßãìá." #: src/interface.c:466 msgid "Zoom" msgstr "Æïýì" #: src/interface.c:467 msgid "Zoom in & out" msgstr "Æïýì ìÝóá & Ýîù" #: src/interface.c:468 msgid "" "Zoom in and out of a view. Click anywhere in a view to zoom in on that part " "of the sample. Hold down shift and click on the view to zoom out." msgstr "" "Æïýì ìÝóá êáé Ýîù óôçí áðåéêüíéóç. Êëßê ïðïõäÞðïôå óå ìéá áðåéêüíéóç ãéá " "æïýì ðñïò ôá ìÝóá óå áõôü ôï ìÝñïò óôï äåßãìá. Ìå ðáôçìÝíï Shift êáé êëéê " "ãéá æïýì ðñïò ôá Ýîù." #: src/interface.c:484 msgid "Pencil" msgstr "Ìïëýâé" #: src/interface.c:485 msgid "Edit PCM sample values" msgstr "Åðåîåñãáóßá ôéìþí PCM äåßãìáôïò" #: src/interface.c:486 msgid "When zoomed down to individual samples, click to edit" msgstr "¼ôáí ãßíåé æïýì óå ìåìïíïìÝíá äåßãìáôá, êëéê ãéá åðåîåñãáóßá" #: src/interface.c:497 msgid "Noise" msgstr "Èüñõâïò" #: src/interface.c:498 msgid "Add noise" msgstr "ÐñïóèÞêç èïñýâïõ" #: src/interface.c:499 msgid "Randomise PCM values" msgstr "Ôõ÷áéïðïßçóç ôéìþí PCM" #: src/notes.c:61 msgid "C3" msgstr "C3" #: src/notes.c:62 msgid "C#3" msgstr "C#3" #: src/notes.c:63 msgid "D3" msgstr "D3" #: src/notes.c:64 msgid "Eb3" msgstr "Eb3" #: src/notes.c:65 msgid "E3" msgstr "E3" #: src/notes.c:66 msgid "F3" msgstr "F3" #: src/notes.c:67 msgid "F#3" msgstr "F#3" #: src/notes.c:68 msgid "G3" msgstr "G3" #: src/notes.c:69 msgid "G#3" msgstr "G#3" #: src/notes.c:70 msgid "A3" msgstr "A3" #: src/notes.c:71 msgid "Bb3" msgstr "Bb3" #: src/notes.c:72 msgid "B3" msgstr "B3" #: src/notes.c:74 msgid "C4" msgstr "C4" #: src/notes.c:76 msgid "C#4" msgstr "C#4" #: src/notes.c:77 msgid "D4" msgstr "D4" #: src/notes.c:78 msgid "Eb4" msgstr "Eb4" #: src/notes.c:79 msgid "E4" msgstr "E4" #: src/notes.c:80 msgid "F4" msgstr "F4" #: src/notes.c:81 msgid "F#4" msgstr "F#4" #: src/notes.c:82 msgid "G4" msgstr "G4" #: src/notes.c:83 msgid "G#4" msgstr "G#4" #: src/notes.c:84 msgid "A4" msgstr "A4" #: src/notes.c:85 msgid "Bb4" msgstr "Bb4" #: src/notes.c:86 msgid "B4" msgstr "B4" #: src/notes.c:88 msgid "C5" msgstr "C5" #: src/notes.c:89 msgid "C#5" msgstr "C#5" #: src/notes.c:90 msgid "D5" msgstr "D5" #: src/notes.c:91 msgid "D#5" msgstr "D#5" #: src/notes.c:92 msgid "E5" msgstr "E5" #: src/notes.c:94 msgid "F5" msgstr "F5" #: src/notes.c:95 msgid "F#5" msgstr "F#5" #: src/notes.c:96 msgid "G5" msgstr "G5" #: src/notes.c:97 msgid "G#5" msgstr "G#5" #: src/notes.c:98 msgid "A5" msgstr "A5" #: src/notes.c:99 msgid "Bb5" msgstr "Bb5" #: src/notes.c:100 msgid "B5" msgstr "B5" #: src/param.c:117 #, c-format msgid "TRUE" msgstr "" #: src/param.c:118 #, c-format msgid "FALSE" msgstr "" #: src/param.c:738 msgid "Parameters" msgstr "" #: src/param.c:769 msgid "Preview" msgstr "" #: src/paste_dialogs.c:221 msgid "Start gain" msgstr "ÊÝñäïò áñ÷Þò" #: src/paste_dialogs.c:223 src/record.c:489 src/record.c:507 #: plugins/echo/echo.c:61 msgid "Gain" msgstr "ÊÝñäïò" #: src/paste_dialogs.c:230 msgid "Sweep: Paste crossfade" msgstr "Sweep: Åðéêüëëçóç crossfade" #: src/paste_dialogs.c:232 msgid "Sweep: Paste mix" msgstr "Sweep: Åðéêüëëçóç ìßîçò" #: src/paste_dialogs.c:257 msgid "Source" msgstr "ÐçãÞ" #: src/paste_dialogs.c:257 msgid "Clipboard" msgstr "Ðñü÷åéñï" #: src/paste_dialogs.c:279 src/paste_dialogs.c:318 msgid "End gain" msgstr "ÊÝñäïò ôÝëïõò" #: src/paste_dialogs.c:287 src/paste_dialogs.c:326 msgid "Invert phase" msgstr "ÁíáóôñïöÞ öÜóçò" #: src/paste_dialogs.c:295 msgid "Destination" msgstr "Ðñïïñéóìüò" #: src/paste_dialogs.c:345 msgid "" "Indicates the total duration of the clipboard, which is the maximum length " "that will be pasted." msgstr "" "Áðåéêïíßæåé ôçí ïëßêç äéÜñêåéá óôï ðñü÷åéñï, ç ïðïßá åßíáé ôï ìÝãéóôï ìÞêïò " "ðïõ èá åðéêêïëçèåß." #: src/paste_dialogs.c:362 msgid "Clipboard duration:" msgstr "ÄéÜñêåéá ðñï÷åßñïõ:" #: src/paste_dialogs.c:375 msgid "Crossfade" msgstr "Crossfade" #: src/paste_dialogs.c:375 msgid "Mix" msgstr "Ìßîç" #: src/paste_dialogs.c:394 msgid "Don't crossfade" msgstr "Íá ìç ãßíåé crossfade" #: src/paste_dialogs.c:394 msgid "Don't mix" msgstr "Íá ìç ãßíåé ìßîç" #: src/preferences.c:62 msgid "Error creating ~/.sweep" msgstr "" #: src/preferences.c:66 #, c-format msgid "Created %s/ mode %04o\n" msgstr "" #: src/preferences.c:73 msgid "Error on ~/.sweep" msgstr "" #: src/preferences.c:82 msgid "Error setting permissions on ~/.sweep" msgstr "" #: src/preferences.c:89 msgid "Error accessing ~/.sweep" msgstr "" #: src/preferences.c:124 msgid "Error opening ~/.sweep/preferences.tdb" msgstr "" #: src/record.c:94 src/record.c:544 msgid "Ready to record" msgstr "¸ôïéìï ãéá ç÷ïãñÜöçóç" #: src/record.c:308 msgid "No selection to record into" msgstr "Äåí õðÜñ÷åé åðéëïãÞ ãéá ç÷ïãñÜöçóç ìÝóá" #: src/record.c:446 msgid "Sweep: Record" msgstr "Sweep: Ç÷ïãñÜöçóç" #: src/record.c:459 src/undo_dialog.c:376 msgid "File:" msgstr "Áñ÷åßï:" #: src/record.c:482 msgid "Previous sound" msgstr "Ðñïçãïýìåíïò Þ÷ïò" #: src/record.c:496 msgid "" "This slider allows you to mix the new recording in with the previous " "contents of the buffer. Set it to -inf dB to overwrite the previous sound." msgstr "" "Áõôüò ï åðéëïãÝáò åðéôñÝðåé ôç ìßîç ìéáò íÝáò ç÷ïãñÜöçóçò ìÝóá óôá " "ðñïçãïýìåíá ðåñéå÷üìåíá ôçò ìíÞìçò. ÔïðïèÝôçóç óå -inf dB ãéá íá ðáñáãñáöåß " "ï ðñïçãïýìåíïò Þ÷ïò." #: src/record.c:502 msgid "Recorded sound" msgstr "Ç÷ïãñáöïýìåíïò Þ÷ïò" #: src/record.c:514 msgid "" "This slider allows you to reduce the level of the recorded sound. Set it to " "0 dB to record without any reduction. Note that setting this to -inf dB will " "record silence." msgstr "" "Áõôüò ï åðéëïãÝáò åðéôñÝðåé ôçí ìåßùóç ôïõ åðéðÝäïõ ôïõ ç÷ïãñáöïýìåíïõ Þ÷ïõ. " "ÔïðïèÝôçóç óôï 0 dB ãéá ç÷ïãñÜöçóç ÷ùñßò ìåßùóç. Óçìåßùóç üôé üôáí åßíáé -" "inf dB èá ç÷ïãñáöçèåß óéùðÞ." #: src/sample-display.c:223 msgid "New selection" msgstr "ÍÝá åðéëïãÞ" #: src/sample-display.c:224 msgid "Selection: add/modify region" msgstr "ÅðéëïãÞ: ðñïóèÞêç/ôñïðïðïßçóç ðåñéï÷Þò" #: src/sample-display.c:225 msgid "Selection: subtract region" msgstr "ÅðéëïãÞ: áöáßñåóç ðåñéï÷Þò" #: src/samplerate.c:103 src/samplerate.c:167 msgid "Resample error" msgstr "ÓöÜëìá åðáíáäåéãìáôïëçøßáò" #: src/samplerate.c:104 src/samplerate.c:168 msgid "libsamplerate error" msgstr "óöÜëìá libsamplerate" #: src/samplerate.c:234 #, c-format msgid "Resample from %d Hz to %d Hz" msgstr "Åðáíáäåéãìáôïëçøßá áðü %d Hz óå %d Hz" #: src/samplerate.c:445 msgid "Sweep: Resample" msgstr "Sweep: Åðáíáäåéãìáôïëçøßá" #: src/samplerate.c:467 msgid "Conversion" msgstr "ÌåôáôñïðÞ" #: src/samplerate.c:474 #, c-format msgid "Current sample rate: %d Hz" msgstr "ÔñÝ÷ùí ñõèìüò äåéãìáôïëçøßáò: %d Hz" #: src/samplerate.c:483 msgid "New sample rate" msgstr "ÍÝïò ñõèìüò äåéãìáôïëçøßáò" #: src/samplerate.c:494 msgid "Quality" msgstr "Ðïéüôçôá" #: src/samplerate.c:501 msgid "Converter" msgstr "ÌåôáôñïðÝáò" #: src/samplerate.c:544 msgid "Remember this quality" msgstr "Áðïìíçìüíåõóç áõôÞò ôçò ðïéüôçôáò" #: src/samplerate.c:564 msgid "Reset to the last remembered quality." msgstr "ÅðáíáöïñÜ ôçò ôåëåõôáßáò óôç ìíÞìç ðïéüôçôá" #: src/samplerate.c:578 msgid "Set to default quality." msgstr "×ñÞóç óáí åî ïñéóìïý ðïéüôçôá" #: src/samplerate.c:600 msgid "" "Secret Rabbit Code (aka libsamplerate) is a\n" "Sample Rate Converter for audio by Erik de Castro Lopo\n" msgstr "" "Ìõóôéêüò Êïõíåëïêþäéêáò (ãíùóôüò óáí libsamplerate) åßíáé Ýíáò\n" "ÌåôáôñïðÝáò Ñõèìïý Äåéãìáôïëçøßáò ãéá Þ÷ï áðü ôïí Erik de Castro Lopo\n" #: src/samplerate.c:620 msgid "Resample" msgstr "Åðáíáäåéãìáôïëçøßá" #: src/samplerate.c:633 msgid "Don't resample" msgstr "¼÷é åðáíáäåéãìáôïëÞøßá" #: src/sw_chooser.c:51 src/sw_chooser.c:66 msgid "Custom" msgstr "ÐñïóáñìïóìÝíïò" #: src/sw_chooser.c:52 msgid "192000 Hz (Studio quality)" msgstr "192000 Hz (Ðïéüôçôá Óôïýíôéï)" #: src/sw_chooser.c:53 msgid " 96000 Hz (High quality)" msgstr " 96000 Hz (ÕøçëÞ ðïéüôçôá)" #: src/sw_chooser.c:54 msgid " 48000 Hz (DAT quality)" msgstr " 48000 Hz (Ðïéüôçôá DAT)" #: src/sw_chooser.c:55 msgid " 44100 Hz (CD quality)" msgstr " 44100 Hz (Ðïéüôçôá CD)" #: src/sw_chooser.c:56 msgid " 32000 Hz (Ultra-wideband voice quality)" msgstr " 44100 Hz (Ðïéüôçôá õðåñ-åõñõæùíéêÞò öùíÞò)" #: src/sw_chooser.c:57 msgid " 22050 Hz" msgstr " 22050 Hz" #: src/sw_chooser.c:58 msgid " 16000 Hz (Wideband voice quality)" msgstr " 16000 Hz (Ðïéüôçôá åõñõæùíéêÞò öùíÞò)" #: src/sw_chooser.c:59 msgid " 11025 Hz" msgstr " 11025 Hz" #: src/sw_chooser.c:60 msgid " 8000 Hz (Narrowband voice quality)" msgstr " 8000 Hz (Ðïéüôçôá öùíÞò óôåíÞò æþíçò)" #: src/sw_chooser.c:61 msgid " 4000 Hz (Low quality)" msgstr " 4000 Hz (×áìçëÞ ðïéüôçôá)" #: src/sw_chooser.c:67 src/view.c:3446 src/view.c:3459 src/view.c:3498 #, c-format msgid "Mono" msgstr "Ìïíïöùíéêü" #: src/sw_chooser.c:68 src/view.c:3446 src/view.c:3459 src/view.c:3501 #, c-format msgid "Stereo" msgstr "Óôåñåïöùíéêü" #: src/sw_chooser.c:69 msgid "Quadraphonic" msgstr "Ôåôñáöùíéêü" #: src/sw_chooser.c:306 msgid "Custom: " msgstr "ÐñïóáñìïóìÝíïò: " #: src/sw_chooser.c:341 msgid "Sampling rate" msgstr "Ñõèìüò äåéãìáôïëçøßáò" #: src/sw_chooser.c:343 msgid "Hz" msgstr "Hz" #: src/sw_chooser.c:367 src/view.c:884 msgid "Channels" msgstr "ÊáíÜëéá" #: src/sw_chooser.c:369 src/view.c:3505 msgid "channels" msgstr "ÊáíÜëéá" #: src/sweep_filter.c:125 msgid "No selection to process" msgstr "Äåí õðÜñ÷åé åðéëïãÞ ãéá êáôåñãáóßá" #: src/sweep_sample.c:119 src/view.c:3444 src/view.c:3450 src/view.c:3457 #: src/view.c:3463 msgid "Untitled" msgstr "Áíþíõìï" #: src/sweep_sample.c:324 msgid "Overflow" msgstr "Õðåñ÷åßëçóç" #: src/sweep_sample.c:407 msgid "Sweep: New file" msgstr "Sweep: ÍÝï áñ÷åßï" #: src/sweep_sample.c:435 msgid "Name:" msgstr "¼íïìá:" #: src/sweep_sample.c:455 msgid "Duration:" msgstr "ÄéÜñêåéá:" #: src/sweep_sample.c:471 msgid "hh:mm:ss.xxx" msgstr "ùù:ëë:ää.÷÷÷" #: src/sweep_sample.c:514 msgid "Remember this format" msgstr "Áðïìíçìüíåõóç áõôÞò ôçò ìïñöÞò" #: src/sweep_sample.c:520 msgid "" "Remember this sampling rate and channel configuration for creating new files." msgstr "" "Áðïìíçìüíåõóç áõôïý ôïõ ñõèìïý äåéãìáôïëÞøßáò êáé ñõèìßóåùí êáíáëéþí ãéá íÝá " "áñ÷åßá" #: src/sweep_sample.c:540 msgid "Reset to the last remembered format for new files." msgstr "ÅðáíáöïñÜ óôç ôåëåõôáßá óôç ìíÞìç ìïñöÞ ãéá ôá íÝá áñ÷åßá" #: src/sweep_sample.c:551 msgid "Set to the default format for new files." msgstr "×ñÞóç óáí åî ïñéóìïý ìïñöÞ ãéá ôá íÝá áñ÷åßá" #: src/sweep_sample.c:567 msgid "" "Indicates the amount of data memory which will be allocated for the selected " "duration and format. All audio data is processed internally in 32 bit " "floating point format." msgstr "" "ÁíáöÝñåé ôï ðïóü ôçò ìíÞìçò äåäïìÝíùí ðïõ èá äåóìåõôåß ãéá ôçí åðéëåãìÝíç " "äéÜñêåéá êáé ìïñöÞ. ¼ëá ôá ç÷çôéêÜ äåäïìÝíá åðåîåñãÜæïíôå åóùôåñéêÜ óå ìïñöÞ " "32 bit êéíçôÞò õðïäéáóôïëÞò." #: src/sweep_sample.c:582 msgid "Data memory:" msgstr "ÌíÞìç äåäïìÝíùí:" #: src/sweep_sample.c:594 msgid "Create" msgstr "Äçìéïõñãßá" #: src/sweep_sample.c:606 msgid "Don't create" msgstr "¼÷é äçìéïõñãßá" #: src/sweep_sample.c:774 msgid "Excellent!!!" msgstr "Ðåñßöçìá!!!" #: src/sweep_sample.c:796 msgid "Files unsaved" msgstr "Ìç áðïèçêåõìÝíá áñ÷åßá" #: src/sweep_sample.c:797 msgid "" "Some files are unsaved. If you quit, all changes will be lost.\n" "\n" "Are you sure you want to quit?" msgstr "" "ÌåñéêÜ áñ÷åßá äåí Ý÷ïõí áðïèçêåõôåß. ÅÜí öýãåôå èá ÷áèïýí üëåò ïé áëëáãÝò.\n" "\n" "ÈÝëåôå óßãïõñá íá åãêáôáëåßøåôå;" #: src/sweep_sample.c:800 src/sweep_sample.c:808 msgid "Don't quit" msgstr "¼÷é åãêáôÜëåéøç" #: src/sweep_sample.c:804 msgid "Files playing" msgstr "Áñ÷åßá ðïõ áíáðáñÜãïíôáé" #: src/sweep_sample.c:805 msgid "" "No files are unsaved, but some files are currently playing.\n" "\n" "Are you sure you want to quit?" msgstr "" "Äåí õðáñ÷ïõí ìç áðïèçêåõìÝíá áñ÷åßá, áëëÜ ìåñéêá áíáðáñÜãïíôáé.\n" "\n" "ÈÝëåôå óßãïõñá íá åãêáôáëåßøåôå;" #: src/sweep_sample.c:1465 src/view.c:1206 msgid "Invert selection" msgstr "ÁíáóôñïöÞ åðéëïãÞò" #: src/sweep_sample.c:1485 src/view.c:1214 src/view.c:1308 msgid "Select all" msgstr "ÅðéëïãÞ üëùí" #: src/sweep_sample.c:1505 src/view.c:1222 msgid "Select none" msgstr "ÅðéëïãÞ ôßðïôá" #: src/sweep_sample.c:1525 msgid "Halve selection" msgstr "ÌéóÞ åðéëïãÞ" #: src/sweep_sample.c:1545 msgid "Double selection" msgstr "ÄéðëÞ åðéëïãÞ" #: src/sweep_sample.c:1568 msgid "Selection left" msgstr "ÅðéëïãÞ áñéóôåñÜ" #: src/sweep_sample.c:1590 msgid "Selection right" msgstr "ÅðéëïãÞ äåîéÜ" #: src/sweep_sample.c:1678 #, fuzzy, c-format msgid "Insert selection [" msgstr "ÁíáóôñïöÞ åðéëïãÞò" #: src/sweep_sample.c:1731 #, fuzzy, c-format msgid "Subtract selection [" msgstr "ÄéðëÞ åðéëïãÞ" #: src/sweep_sample.c:1776 #, fuzzy, c-format msgid "Set selection [" msgstr "ÍÝá åðéëïãÞ" #: src/sweep_sample.c:1875 msgid "Sweep: File properties" msgstr "Sweep: Éäéüôçôåò áñ÷åßïõ" #: src/sweep_sample.c:1899 #, fuzzy msgid "Filename: " msgstr "¼íïìá áñ÷åßïõ:" #: src/sweep_sample.c:1901 #, fuzzy msgid "Sampling rate: " msgstr "Ñõèìüò äåéãìáôïëçøßáò:" #: src/sweep_sample.c:1903 #, fuzzy msgid "Channels: " msgstr "ÊáíÜëéá" #: src/sweep_sample.c:1905 #, fuzzy msgid "Data memory: " msgstr "ÌíÞìç äåäïìÝíùí:" #: src/sweep_sample.c:1907 #, fuzzy msgid "Duration: " msgstr "ÄéÜñêåéá:" #: src/sweep_undo.c:327 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Do you want to continue editing this buffer?" msgstr "" "%s\n" " Ý÷åé áëëÜîåé óôï äßóêï.\n" "ÈÝëåôå íá óõíå÷ßóåôå ôçí åðåîåñãáóßá áõôïý ôïõ buffer;" #: src/sweep_undo.c:332 msgid "Continue editing" msgstr "ÓõíÝ÷åéá åðåîåñãáóßáò" #: src/sweep_undo.c:332 msgid "Reread from disk" msgstr "ÅðáíÜãíùóç áðü ôï äßóêï" #: src/sweep_undo.c:430 src/sweep_undo.c:488 msgid "Nothing to undo" msgstr "Ôßðïôá ãéá íá áíáêôçèåß" #: src/sweep_undo.c:511 src/sweep_undo.c:567 msgid "Nothing to redo" msgstr "Ôßðïôá ãéá íá îáíáåöáñìïóôåß" #: src/undo_dialog.c:159 msgid "Original data" msgstr "Ðñùôüôõðá äåäïìÝíá" #: src/undo_dialog.c:344 msgid "Action" msgstr "ÐñÜîç" #: src/undo_dialog.c:351 msgid "Sweep: History" msgstr "Sweep: Éóôïñßá" #: src/undo_dialog.c:393 src/view.c:548 src/view.c:1887 msgid "Undo" msgstr "ÁíÜêôçóç" #: src/undo_dialog.c:401 src/view.c:552 src/view.c:1896 msgid "Redo" msgstr "ÎáíáåöáñìïãÞ" #: src/undo_dialog.c:426 msgid "Revert to selected state" msgstr "ÅðéóôñïöÞ óôçí åðéëåãìåíç êáôÜóôáóç" #: src/undo_dialog.c:452 src/view.c:525 src/view.c:3402 msgid "Close" msgstr "Êëåßóéìï" #: src/view.c:311 msgid "Duplicate to stereo" msgstr "ÁíôéãñáöÞ óå óôÝñåïöùíéêï" #: src/view.c:319 msgid "Duplicate to multichannel" msgstr "ÁíôéãñáöÞ óå ðïëõöùíéêü" #: src/view.c:331 msgid "Swap left and right" msgstr "ÅíáëëáãÞ áñéóôåñïý ìå äåîéïý" #: src/view.c:371 msgid "Add/Remove channels" msgstr "ÐñïóèÞêç/Áöáßñåóç êáíáëéþí" #: src/view.c:454 src/view.c:1768 msgid "New ..." msgstr "ÍÝï ..." #: src/view.c:458 src/view.c:1775 msgid "Open ..." msgstr "¶íïéãìá ..." #: src/view.c:488 msgid "Open Recent" msgstr "" #: src/view.c:505 msgid "Save As ..." msgstr "ÁðïèÞêåõóç Ùò ..." #: src/view.c:517 msgid "Properties ..." msgstr "Éäéüôçôåò ..." #: src/view.c:535 src/view.c:1136 msgid "Edit" msgstr "Åðåîåñãáóßá" #: src/view.c:556 msgid "Show history ..." msgstr "ÅìöÜíéóç éóôïñßáò ..." #: src/view.c:588 src/view.c:1172 msgid "Paste: Insert" msgstr "Åðéêüëëçóç: ÅéóáãùãÞ" #: src/view.c:592 src/view.c:1178 msgid "Paste: Mix" msgstr "Åðéêüëëçóç: Ìßîç" #: src/view.c:596 src/view.c:1184 msgid "Paste: Crossfade" msgstr "Åðéêüëëçóç: Crossfade" #: src/view.c:600 msgid "Paste as New" msgstr "Åðéêüëëçóç óáí ÍÝï" #: src/view.c:608 msgid "Preview Cut/Cursor" msgstr "ÄïêéìÞ ÁðïêïðÞò/ÊÝñóïñá" #: src/view.c:612 msgid "Pre-roll to Cursor" msgstr "Åêêßíçóç óôï ÊÝñóïñá" #: src/view.c:626 msgid "Invert" msgstr "ÁíáóôñïöÞ" #: src/view.c:630 msgid "All" msgstr "¼ëá" #: src/view.c:634 msgid "None" msgstr "ÊáíÝíá" #: src/view.c:642 msgid "Halve" msgstr "ÌéóÞ" #: src/view.c:646 msgid "Double" msgstr "ÄéðëÜóéá" #: src/view.c:650 msgid "Shift left" msgstr "Êýëéóç áñéóôåñÜ" #: src/view.c:654 msgid "Shift right" msgstr "Êýëéóç äåîéÜ" #: src/view.c:659 msgid "View" msgstr "Áðåéêüíéóç" #: src/view.c:666 src/view.c:2061 msgid "Autoscroll: follow playback cursor" msgstr "Áõôüìáôç êýëéóç: áêïëïõèÜ ôïí êÝñóïñá" #: src/view.c:684 msgid "Center" msgstr "ÊÝíôñï" #: src/view.c:692 src/view.c:1996 msgid "Zoom in" msgstr "Æïýì ìÝóá" #: src/view.c:696 src/view.c:2005 msgid "Zoom out" msgstr "Æïýì Ýîù" #: src/view.c:700 src/view.c:1111 msgid "Zoom to selection" msgstr "Æïýì óôçí åðéëïãÞ" #: src/view.c:706 msgid "Left" msgstr "ÁñéóôåñÜ" #: src/view.c:710 msgid "Right" msgstr "ÄåîéÜ" #: src/view.c:715 src/view.c:1117 src/view.c:1276 msgid "Zoom normal" msgstr "Æïýì óå êáíïíéêü" #: src/view.c:719 src/view.c:1123 src/view.c:1282 src/view.c:1987 msgid "Zoom all" msgstr "Æïýì üëùí" #: src/view.c:723 msgid "1:1" msgstr "1 ðñïò 1" #: src/view.c:733 msgid "Remember as" msgstr "Áðïìíçìüíåõóç ùò" #: src/view.c:752 src/view.c:783 msgid "Area 1" msgstr "Ðåñéï÷Þ 1" #: src/view.c:753 src/view.c:784 msgid "Area 2" msgstr "Ðåñéï÷Þ 2" #: src/view.c:754 src/view.c:785 msgid "Area 3" msgstr "Ðåñéï÷Þ 3" #: src/view.c:755 src/view.c:786 msgid "Area 4" msgstr "Ðåñéï÷Þ 4" #: src/view.c:756 src/view.c:787 msgid "Area 5" msgstr "Ðåñéï÷Þ 5" #: src/view.c:757 src/view.c:788 msgid "Area 6" msgstr "Ðåñéï÷Þ 6" #: src/view.c:758 src/view.c:789 msgid "Area 7" msgstr "Ðåñéï÷Þ 7" #: src/view.c:759 src/view.c:790 msgid "Area 8" msgstr "Ðåñéï÷Þ 8" #: src/view.c:760 src/view.c:791 msgid "Area 9" msgstr "Ðåñéï÷Þ 9" #: src/view.c:761 src/view.c:792 msgid "Area 10" msgstr "Ðåñéï÷Þ 10" #: src/view.c:765 msgid "Zoom to" msgstr "Æïýì óå" #: src/view.c:798 msgid "Color scheme" msgstr "ÐáëÝôá ÷ñùìÜôùí" #: src/view.c:804 msgid "Decoder Red" msgstr "Decoder Red" #: src/view.c:812 msgid "Orangeboom" msgstr "Orangeboom" #: src/view.c:820 msgid "Lame Yellow" msgstr "Lame Yellow" #: src/view.c:828 msgid "Coogee Bay Blue" msgstr "Coogee Bay Blue" #: src/view.c:836 msgid "Blackwattle" msgstr "Blackwattle" #: src/view.c:844 msgid "Frigid" msgstr "Frigid" #: src/view.c:852 msgid "Radar" msgstr "Radar" #: src/view.c:860 msgid "Bluescreen" msgstr "Bluescreen" #: src/view.c:872 src/view.c:1236 src/view.c:1322 msgid "New View" msgstr "ÍÝá Áðåéêüíéóç" #: src/view.c:877 msgid "Sample" msgstr "Äåßãìá" #: src/view.c:894 msgid "Resample ..." msgstr "Åðáíáäåéãìáôïëçøßá ..." #: src/view.c:903 msgid "Duplicate" msgstr "Äéðëáóéáóìüò" #: src/view.c:908 src/view.c:1192 msgid "Process" msgstr "Êáôåñãáóßá" #: src/view.c:917 msgid "Playback" msgstr "ÁíáðáñáãùãÞ" #: src/view.c:924 msgid "Configure audio device ..." msgstr "Ñýèìéóç óõóêåõÞò Þ÷ïõ ..." #: src/view.c:934 msgid "Transport" msgstr "ÌåôáöïñÜ" #: src/view.c:943 msgid "Go to start of file" msgstr "Ìåôáêßíçóç óôçí áñ÷Þ ôïõ áñ÷åßïõ" #: src/view.c:949 msgid "Go to start of window" msgstr "Ìåôáêßíçóç óôçí áñ÷Þ ôïõ ðáñáèýñïõ" #: src/view.c:954 msgid "Skip back" msgstr "ÐÞäçìá ðßóù" #: src/view.c:959 msgid "Skip forward" msgstr "ÐÞäçìá ìðñïóôÜ" #: src/view.c:964 msgid "Go to end of window" msgstr "Ìåôáêßíçóç óôï ôÝëïò ôïõ ðáñáèýñïõ" #: src/view.c:969 msgid "Go to end of file" msgstr "Ìåôáêßíçóç óôï ôÝëïò ôïõ áñ÷åßïõ" #: src/view.c:978 msgid "Play selection" msgstr "ÁíáðáñáãùãÞ åðéëïãÞò" #: src/view.c:984 msgid "Play sample" msgstr "ÁíáðáñáãùãÞ äåßãìáôïò" #: src/view.c:990 msgid "Play note" msgstr "ÁíáðáñáãùãÞ íüôáò" #: src/view.c:1009 msgid "Toggle monitoring" msgstr "Äéáêüðôçò ðáñáêïëïýèçóçò" #: src/view.c:1022 msgid "Toggle looping" msgstr "Äéáêüðôçò åðáíÜëçøçò" #: src/view.c:1034 msgid "Toggle muting" msgstr "Äéáêüðôçò áðïóéþðçóçò" #: src/view.c:1045 msgid "Toggle reverse playback" msgstr "Äéáêüðôçò áíÜóôñïöçò áíáðáñáãùãÞò" #: src/view.c:1063 msgid "Pause" msgstr "Ðáýóç" #: src/view.c:1079 msgid "About MP3 export..." msgstr "Ðåñß åîáãùãÞ MP3..." #: src/view.c:1085 msgid "About Sweep ..." msgstr "Ðåñß Sweep ..." #: src/view.c:1249 src/view.c:1335 msgid "File properties ..." msgstr "Éäéüôçôåò áñ÷åßïõ ..." #: src/view.c:1294 msgid "Paste" msgstr "Åðéêüëëçóç" #: src/view.c:1791 msgid "Save as ..." msgstr "ÁðïèÞêåõóç ùò ..." #: src/view.c:1811 msgid "Cut selection to clipboard" msgstr "ÁðïêïðÞ åðéëïãÞò óôï ðñü÷åéñï" #: src/view.c:1821 msgid "Copy selection to clipboard" msgstr "ÁíôéãñáöÞ åðéëïãÞò óôï ðñü÷åéñï" #: src/view.c:1832 msgid "Paste: insert clipboard at cursor position" msgstr "Åðéêüëëçóç: åéóáãùãÞ ðñï÷åßñïõ óôç èÝóç ôïõ êÝñóïñá" #: src/view.c:1843 msgid "Paste: mix clipboard in from cursor position" msgstr "Åðéêüëëçóç: ìßîç ðñï÷åßñïõ áðü ôç èÝóç ôïõ êÝñóïñá" #: src/view.c:1854 msgid "Paste: fade clipboard in from cursor position" msgstr "Åðéêüëëçóç: åîáóèÝíéóç ðñï÷åßñïõ áðü ôç èÝóç ôïõ êÝñóïñá" #: src/view.c:1924 #, fuzzy msgid "Hand tool" msgstr "Åñãáëåßï ìïëõâéïý" #: src/view.c:1932 msgid "Selector tool" msgstr "Åñãáëåßï åðéëïãÞò" #: src/view.c:1944 msgid "\"Scrubby\" the scrub tool" msgstr "\"Scrubby\" ôï åñãáëåßï ãéá scrub" #: src/view.c:1954 msgid "Pencil tool" msgstr "Åñãáëåßï ìïëõâéïý" #: src/view.c:1962 msgid "Noise tool" msgstr "Åñãáëåßï èïñýâïõ" #: src/view.c:2052 msgid "Visible length" msgstr "" #: src/view.c:2171 msgid "Vertical zoom [Shift + Arrow Up/Down]" msgstr "ÊÜèåôï æïýì [Shift + Arrow Up/Down]" #: src/view.c:2301 msgid "Record ..." msgstr "Ç÷ïãñÜöçóç ..." #: src/view.c:2377 msgid "Reverse mode playback (toggle)" msgstr "ÁíáðáñáãùãÞ áíÜóôñïöçò êáôÜóôáóçò (äéáêüðôçò)" #: src/view.c:2395 msgid "Loop mode playback (toggle)" msgstr "ÁíáðáñáãùãÞ êáôÜóôáóçò âñüã÷ïõ (äéáêüðôçò)" #: src/view.c:2419 #, fuzzy msgid "Play all / Pause" msgstr "ÁíáðáñáãùãÞ üëùí / Ðáýóç [Ctrl+Space]" #: src/view.c:2436 #, fuzzy msgid "Play selection / Pause" msgstr "ÁíáðáñáãùãÞ åðéëïãÞò / Ðáýóç [Space]" #: src/view.c:2452 #, fuzzy msgid "Stop playback" msgstr "ÄéáêïðÞ áíáðáñáãùãÞò [Enter]" #: src/view.c:2519 msgid "Muted playback (toggle)" msgstr "ÁðïóéùðçìÝíç áíáðáñáãùãÞ (äéáêüðôçò)" #: src/view.c:2539 src/view.c:2557 msgid "Playback gain slider (volume)" msgstr "ÅðéëïãÝáò êÝñäïõò áíáðáñáãùãÞò (Ýíôáóç)" #: src/view.c:2569 msgid "Monitor (toggle)" msgstr "Ðáñáêïëïýèçóç (äéáêüðôçò)" #: src/view.c:2587 msgid "SYNC" msgstr "" #: src/view.c:3144 #, c-format msgid "Remembered as area %d" msgstr "Áðïìíçìüíåõóç óáí ðåñéï÷Þ %d" #: src/view.c:3162 #, c-format msgid "No area remembered as %d" msgstr "Äåí õðÜñ÷åé óôç ìíÞìç ç ðåñéï÷Þ %d" #: src/view.c:3165 #, c-format msgid "Zoomed to area %d" msgstr "Æïýì óôç ðåñéï÷Þ %d" #: src/view.c:3347 src/view.c:3351 msgid "Scrub!" msgstr "Scrub!" #: src/view.c:3347 src/view.c:3353 msgid "Ready" msgstr "¸ôïéìï" #: src/view.c:3399 #, c-format msgid "%s has been modified. Close anyway?" msgstr "Ôï %s Ý÷åé áëëÜîåé. Íá êëåßóåé;" #: src/view.c:3402 msgid "Don't close" msgstr "¼÷é êëåßóéìï" #: src/view.c:3449 src/view.c:3462 msgid "*" msgstr "*" #: src/view.c:3465 msgid "Empty" msgstr "¶äåéï" #: plugins/byenergy/byenergy.c:58 msgid "Select regions above threshold" msgstr "ÅðéëïãÞ ðåñéï÷þí ðÜíù áðü ôï êáôþöëé" #: plugins/byenergy/byenergy.c:59 msgid "" "Whether to select those regions lying above a given threshold or below it." msgstr "ÅÜí èá åðéëåãïýí ïé ðåñéï÷Ýò ðÜíù Þ êÜôù áðü Ýíá äåäïìÝíï êáôþöëé." #: plugins/byenergy/byenergy.c:66 msgid "Resolution" msgstr "ÁíÜëõóç" #: plugins/byenergy/byenergy.c:67 msgid "Width of energy detection window (s)" msgstr "ÌÞêïò ôïõ ðáñáèýñïõ åíôïðéóìïý åíÝñãåéáò" #: plugins/byenergy/byenergy.c:73 msgid "Threshold" msgstr "Êáôþöëé" #: plugins/byenergy/byenergy.c:74 msgid "Energy level to detect [0.0 - 1.0]" msgstr "Åðßðåäï åíÝñãåéáò ãéá íá åíôïðéóôåß [0.0 - 1.0]" #: plugins/byenergy/byenergy.c:80 msgid "Minimum duration" msgstr "ÅëÜ÷éóôç äéÜñêåéá" #: plugins/byenergy/byenergy.c:81 msgid "Shortest region of selection to detect (s)" msgstr "Ìéêñüôåñç ðåñéï÷Þ ôçò åðéëïãÞò ãéá íá åíôïðéóôåß (s)" #: plugins/byenergy/byenergy.c:87 msgid "Maximum interruption" msgstr "ÌÝãéóôç äéáêïðÞ" #: plugins/byenergy/byenergy.c:88 msgid "Longest length of sound above threshold to allow (s)" msgstr "Ìåãáëýôåñï ìÞêïò ôïõ Þ÷ïõ ðÜíù áðü ôï êáôþöëé ðïõ èá åðéôñÝðåôáé (s)" #: plugins/byenergy/byenergy.c:227 plugins/byenergy/byenergy.c:232 msgid "Select by energy" msgstr "ÅðéëïãÞ ìå âÜóç ôçí åíÝñãåéá" #: plugins/byenergy/byenergy.c:233 msgid "Select loud or quiet regions" msgstr "ÅðéëïãÞ ç÷çñþí Þ Þóõ÷ùí ðåñéï÷þí" #: plugins/echo/echo.c:53 msgid "Delay" msgstr "ÊáèõóôÝñçóç" #: plugins/echo/echo.c:54 msgid "Time to delay by" msgstr "×ñüíïò ãéá êáèõóôÝñçóç" #: plugins/echo/echo.c:62 msgid "Gain with which to mix in delayed signal" msgstr "ÊÝñäïò ìå ôï ïðïßï èá ãßíåé ìßîç ìå ôï êáèõóôåñïýìåíï óÞìá" #: plugins/echo/echo.c:107 plugins/echo/echo.c:113 msgid "Echo" msgstr "Ç÷ü" #: plugins/echo/echo.c:114 msgid "Apply an echo to selected regions of a sample" msgstr "ÅöáñìïãÞ ìéáò ç÷ïý óôéò åðéëåãìÝíåò ðåñéï÷Ýò åíüò äåßãìáôïò" #: plugins/normalise/normalise.c:128 plugins/normalise/normalise.c:133 msgid "Normalise" msgstr "Êáíïíéêïðïßçóç" #: plugins/normalise/normalise.c:134 msgid "Alter the sample's amplitude to lie between 1.0 and -1.0" msgstr "ÁëëáãÞ ôïõ ðëÜôïõò ôïõ äåßãìáôïò ìåôáîý ôùí ôéìþí 1.0 êáé -1.0" #: plugins/reverse/reverse.c:129 plugins/reverse/reverse.c:134 #: plugins/reverse/reverse.c:140 msgid "Reverse" msgstr "ÁíáóôñïöÞ" #: plugins/reverse/reverse.c:141 msgid "Reverse selected regions of a sample" msgstr "ÁíáóôñïöÞ åðéëåãìÝíùí ðåñéï÷þí åíüò äåßãìáôïò" #: plugins/example/example.c:37 plugins/example/example.c:86 msgid "With a fork" msgstr "Ìå ðçñïýíé" #: plugins/example/example.c:38 msgid "With a spoon" msgstr "Ìå êïõôÜëé" #: plugins/example/example.c:39 msgid "With false teeth" msgstr "Ìå øåýôéêá äüíôéá" #: plugins/example/example.c:40 msgid "With Nigel's bum" msgstr "Ìå ôï ðéóéíü ôïõ NáÀãêåë" #: plugins/example/example.c:56 msgid "Flim" msgstr "Flim" #: plugins/example/example.c:57 msgid "Should you manage your flim?" msgstr "Should you manage your flim?" #: plugins/example/example.c:64 msgid "Beans" msgstr "Öáóüëéá" #: plugins/example/example.c:65 msgid "Method of eating beans" msgstr "ÌÝèïäïò ãéá ôçí êáôáíÜëùóç öáóïëéþí" #: plugins/example/example.c:72 msgid "Pants methodology" msgstr "Ìåèïäïëïãßá óùâñÜêùí" #: plugins/example/example.c:73 msgid "How many pants should you wear per day?" msgstr "Ðüóá óþâñáêá ðñÝðåé íá öïñÜôå ôçí çìÝñá;" #: plugins/example/example.c:122 plugins/example/example.c:129 msgid "Example Filter Region" msgstr "ÐáñÜäåéãìá Ößëôñïõ Ðåñéï÷Þò" #: plugins/example/example.c:130 msgid "An example filter region plugin" msgstr "¸íá ðáñÜäåéãìá áñèñþìáôïò ößëôñïõ ðåñéï÷Þò" #: plugins/fade/fade.c:148 plugins/fade/fade.c:161 msgid "Fade in" msgstr "" #: plugins/fade/fade.c:156 plugins/fade/fade.c:177 msgid "Fade out" msgstr "" #: plugins/fade/fade.c:162 msgid "Apply a linear fade to the selection, fading in from silence" msgstr "" #: plugins/fade/fade.c:178 msgid "Apply a linear fade to the selection, fading out to silence" msgstr "" #~ msgid "Sweep: Load file" #~ msgstr "Sweep: ¶íïéãìá áñ÷åßïõ" #~ msgid "Go to beginning [Ctrl+Home]" #~ msgstr "Ìåôáêßíçóç óôçí áñ÷Þ [Ctrl+Home]" #~ msgid "Go to the end [Ctrl+End]" #~ msgstr "Ìåôáêßíçóç óôï ôÝëïò [Ctrl+End]" #~ msgid "About Sweep" #~ msgstr "Ðåñß Sweep" #~ msgid "Channels:" #~ msgstr "ÊáíÜëéá" #~ msgid "Mono (mixdown)" #~ msgstr "Ìïíïöùíéêü (ìßîç ðñïò êÜôù)" #~ msgid "Stereo (duplicate)" #~ msgstr "Óôåñåïöùíéêü (áíôéãñáöÞ)" #~ msgid "Bitwidth:" #~ msgstr "ÌÞêïò bit:" #~ msgid "8 bit" #~ msgstr "8 bit" #~ msgid "16 bit" #~ msgstr "16 bit" #~ msgid "24 bit" #~ msgstr "24 bit" #~ msgid "32 bit" #~ msgstr "32 bit" #~ msgid "Filename:" #~ msgstr "¼íïìá áñ÷åßïõ:" #~ msgid "Main output:" #~ msgstr "Êýñéá Ýîïäïò:" sweep-0.9.3/po/en@boldquot.header0000644000175000017500000000247110777660173015452 0ustar useruser# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # sweep-0.9.3/po/fr.gmo0000644000175000017500000000566410777670577013157 0ustar useruserÞ•3´GLh9i-£0Ñ  $ +5:?DKPUZsw€ …” š §³¼ÁÆÎÕÛâçî  ).#7[o9t® ³ÁcO7³,ë< U a f n u | ƒ — Ÿ § ¬ µ ¼ Á É å í ú ÿ    3 9 B J R Z b i q € ‰ ›   ¥ « ³ » %Æ ì ö Fú A F YZ # '/1() *2.& - !"0+$ 3%, --display Use the designated X display. -h --help Output this help. -v --version Output version info. About...AllClearCloseCopyCutDeleteDuplicateEditFileHelpInvertLeftMonoMoveMove regions in a sampleNewNew ViewNoneNormaliseOpenPastePaste as NewPlay samplePlaybackQuitRedoReverseRevertRightSampleSaveSelectSelect regions of a sampleStereoStopSweepSweep versionUndoUntitledUsage: %s [option ...] [files ...] Valid options are: ViewWith this tool you can move selected regions of a sample.ZoomZoom in & outZoom in and out of a view. Click anywhere in a view to zoom in on that part of the sample. Hold down shift and click on the view to zoom out.Project-Id-Version: sweep-0.0.8 Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/ POT-Creation-Date: 2008-04-11 15:11+0100 PO-Revision-Date: 2000-05-04 21:54+0100 Last-Translator: Mathieu ROY Language-Team: French MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8-bit --display Utilise l'affichage X dsign. -h --help Affiche cet aide. -v --version Affiche les infos sur la version. A propos...ToutEffacerFermerCopierCouperSupprimerDupliquerEditionFichierAideInverserGaucheMonoDplacerDplacer la zone un fichierNouveauNouvelle VueRienNormaliserOuvrirCollerColler en tant que NouveauJouerPlaybackQuitterRefaireReverseRevenirDroiteFichierEnregistrer...SlectionSlection de zonesStroStopSweepversionAnnulerSans titreUsage: %s [option ...] [fichier ...] Options: VueAvec cet outils, vous pouvez dplacer une zone slectionner d'un fichierZoomZoom avant & arrireZoom avant et arrire. Maintenez la touche shift enfonce en cliquant pourzoomer en arrire.sweep-0.9.3/po/pl.po0000644000175000017500000016547310777670577013024 0ustar useruser# pl.po # Copyright (C) 2001 Free Software Foundation, Inc. # Radoslaw KORZENIEWSKI , 2001. # #: src/sample-display.c:222 msgid "" msgstr "" "Project-Id-Version: sweep-0.8.3\n" "Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/\n" "POT-Creation-Date: 2008-04-11 15:11+0100\n" "PO-Revision-Date: 2001-04-08 22:23+0200\n" "Last-Translator: Radoslaw Korzeniewski \n" "Language-Team: Poland \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/main.c:89 msgid "Welcome to Sweep" msgstr "Witaj w programie Sweep" #: src/main.c:90 msgid "" "Hello, my name is Scrubby. Welcome to Sweep!\n" "\n" "Would you like to create a new file or load an existing file?" msgstr "" "Cześć, nazywam siÄ™ Scrubby. Witaj w programie Sweep!\n" "\n" "Czy chciaÅ‚byÅ› stworzyć nowy plik czy zaÅ‚adować istniejÄ…cy?" #: src/main.c:94 msgid "Create new file" msgstr "Stwórz nowy plik" #: src/main.c:94 msgid "Load existing file" msgstr "ZaÅ‚aduj istniejÄ…cy plik" #: src/main.c:129 msgid "WARNING: Build includes incomplete development code.\n" msgstr "OSTRZEÅ»ENIE: Program zawiera niekompletny deweloperski kod.\n" #: src/main.c:188 msgid "Sweep version" msgstr "Sweep w wersji" #: src/main.c:189 msgid "Sweep plugin API version" msgstr "Wersja API wtyczek Sweep" #: src/main.c:195 #, c-format msgid "Usage: %s [option ...] [files ...]\n" msgstr "WywoÅ‚anie: %s [opcja ...] [plik ...]\n" #: src/main.c:196 msgid "Valid options are:\n" msgstr "Poprawnymi opcjami sÄ…:\n" #: src/main.c:197 msgid " -h --help Output this help.\n" msgstr " -h --help WyÅ›wietla pomoc.\n" #: src/main.c:198 msgid " -v --version Output version info.\n" msgstr " -v --version WyÅ›wietla informacjÄ™ o wersji.\n" #: src/main.c:199 msgid " --display Use the designated X display.\n" msgstr " --display Użyj podanego ekranu X.\n" #: src/main.c:200 msgid "" " --ignore-failed-lock Continue when attempt to lock the\n" " preferences file fails. For use when\n" " the users home directory is on an NFS\n" " file system. (possibly unsafe) \n" msgstr "" #: src/main.c:206 msgid " --no-toolbox Do not show the toolbox window.\n" msgstr " --no-toolbox Nie pokazuj okna narzÄ™dziowego.\n" #: src/about_dialog.c:99 msgid "This is Sweep version" msgstr "To jest SWEEP w wersji" #: src/about_dialog.c:119 msgid "http://sweep.sourceforge.net/" msgstr "http://sweep.sourceforge.net/" #: src/callbacks.c:926 src/callbacks.c:939 src/edit.c:1568 src/edit.c:1642 #: src/edit.c:1726 msgid "Clipboard empty" msgstr "Schowek jest pusty" #: src/channelops.c:146 #, c-format msgid "Duplicate to %d channels" msgstr "Powiel do %d kanałów" #: src/channelops.c:148 #, c-format msgid "Duplicate from %d to %d channels" msgstr "Powiel z %d do %d kanałów" #: src/channelops.c:207 msgid "Sweep: Duplicate channel" msgstr "Sweep: Powiel kanaÅ‚" #: src/channelops.c:214 src/channelops.c:698 #, c-format msgid "Currently: %d channels" msgstr "Aktualnie: %d kanałów" #: src/channelops.c:221 src/channelops.c:704 msgid "Output channels" msgstr "KanaÅ‚y wyjÅ›ciowe" #: src/channelops.c:231 src/channelops.c:714 src/driver.c:374 #: src/file_sndfile1.c:285 src/param.c:779 src/question_dialogs.c:144 #: src/question_dialogs.c:204 src/question_dialogs.c:253 #: src/sweep_sample.c:1918 src/undo_dialog.c:440 msgid "OK" msgstr "OK" #: src/channelops.c:242 src/channelops.c:725 src/driver.c:387 #: src/file_sndfile1.c:295 src/param.c:788 src/question_dialogs.c:158 #: src/view.c:543 src/view.c:2650 msgid "Cancel" msgstr "Anuluj" #: src/channelops.c:347 src/view.c:361 msgid "Mix down to mono" msgstr "Miksuj do mono" #: src/channelops.c:445 src/view.c:340 msgid "Remove left channel" msgstr "UsuÅ„ lewy kanaÅ‚" #: src/channelops.c:455 src/view.c:349 msgid "Remove right channel" msgstr "UsuÅ„ prawy kanaÅ‚" #: src/channelops.c:539 msgid "Swap channels" msgstr "ZamieÅ„ kanaÅ‚y" #: src/channelops.c:541 msgid "Not stereo" msgstr "Nie stereo" #: src/channelops.c:643 #, c-format msgid "Convert from %d to %d channels" msgstr "Konwertuj z %d do %d kanałów" #: src/channelops.c:692 msgid "Sweep: Add/Remove channels" msgstr "Sweep: Dodaj/UsuÅ„ kanaÅ‚y" #: src/driver.c:369 msgid "Sweep: audio device configuration" msgstr "Sweep: konfiguracja urzÄ…dzenia audio" #: src/driver.c:410 msgid "Changes to device settings will take effect on next playback." msgstr "" "Zmiany w ustawieniach urzÄ…dzenia audio bÄ™dÄ… aktualne przy nastÄ™pnym " "odtwarzaniu." #: src/driver.c:424 msgid "Device name" msgstr "Nazwa urzÄ…dzenia" #: src/driver.c:430 msgid "Set the main device for playback and recording" msgstr "Ustaw główne urzÄ…dzenie dla odtwarzania i zapisywania" #: src/driver.c:440 msgid "Main device:" msgstr "Główne urzÄ…dzenie:" #: src/driver.c:454 src/driver.c:636 src/samplerate.c:570 msgid "Default" msgstr "DomyÅ›lnie" #: src/driver.c:467 msgid "Use a different device for monitoring" msgstr "Użyj innego urzÄ…dzenia dla monitorowania" #: src/driver.c:479 msgid "Monitor output:" msgstr "WyjÅ›cie monitorowania:" #: src/driver.c:504 msgid "Swap" msgstr "ZamieÅ„" #: src/driver.c:512 msgid "Swap main and monitor devices." msgstr "ZamieÅ„ urzÄ…dzenie główne i monitorowane" #: src/driver.c:521 src/driver.c:622 src/file_speex.c:1957 #: src/file_vorbis.c:1348 src/samplerate.c:556 src/sweep_sample.c:532 msgid "Reset" msgstr "Resetuj" #: src/driver.c:529 msgid "Reset to the last remembered device names." msgstr "Przestaw do ostatnio zapamiÄ™tanych nazw urzÄ…dzeÅ„." #: src/driver.c:535 src/file_speex.c:1971 src/file_vorbis.c:1362 #: src/param.c:747 src/sweep_sample.c:543 msgid "Defaults" msgstr "DomyÅ›lne" #: src/driver.c:543 msgid "Set to default device names." msgstr "Ustaw domyÅ›lne nazwy urzÄ…dzeÅ„." #: src/driver.c:554 msgid "Device buffering" msgstr "Buforowanie urzÄ…dzenia" #: src/driver.c:564 msgid "" "Low latency /\n" "More dropouts" msgstr "" "Niskie opóźnienie /\n" "WiÄ™cej przeskoków dzwiÄ™ku" #: src/driver.c:586 msgid "" "High latency /\n" "Fewer dropouts" msgstr "" "Wysokie opóźnienie /\n" "Mniej przeskoków dzwiÄ™ku" #: src/driver.c:590 msgid "" "Varying this slider controls the lag between cursor movements and playback. " "This is particularly noticeable when \"scrubbing\" during playback.\n" "\n" "Lower values improve responsiveness but may degrade audio quality on heavily-" "loaded systems." msgstr "" "UstawiajÄ…c ten suwak kontrolujesz opóźnienie pomiÄ™dzy poruszeniami kursora a " "odtwarzaniem. Jest to w szczególnoÅ›ci zauważalne podczas \"scrubbing'u\" w " "czasie odtwarzania.\n" "\n" "Zmniejszenie wartoÅ›ci zwiÄ™ksza reakcjÄ™ lecz może zmniejszyć jakość dzwiÄ™ku " "na mocno obciążonych systemach." #: src/driver.c:609 msgid "Remember these options" msgstr "ZapamiÄ™taj te opcje" #: src/driver.c:630 msgid "Reset to the last remembered device buffering." msgstr "Przestaw do ostatnio zapamiÄ™tanego buforowania urzÄ…dzenia" #: src/driver.c:644 msgid "Set to default device buffering." msgstr "Ustaw do domyÅ›lnego buforowania urzÄ…dzenia." #: src/edit.c:1291 msgid "No selection to copy" msgstr "Brak zaznaczenia do skopiowania" #: src/edit.c:1308 src/view.c:572 src/view.c:1150 msgid "Copy" msgstr "Kopiuj" #: src/edit.c:1342 msgid "No selection to cut" msgstr "Brak zaznaczenia do wyciÄ™cia" #: src/edit.c:1358 src/view.c:568 src/view.c:1144 msgid "Cut" msgstr "Wytnij" #: src/edit.c:1388 msgid "No selection to clear" msgstr "Brak zaznaczenia do wyczyszczenia" #: src/edit.c:1404 src/view.c:576 src/view.c:1156 msgid "Clear" msgstr "Wyczyść" #: src/edit.c:1430 msgid "No selection to delete" msgstr "Brak zaznaczenia do skasowania" #: src/edit.c:1447 src/view.c:564 msgid "Delete" msgstr "Kasuj" #: src/edit.c:1482 msgid "Nothing to crop out" msgstr "Nic do obciÄ™cia" #: src/edit.c:1498 src/view.c:580 src/view.c:1162 src/view.c:1868 msgid "Crop" msgstr "Obetnij" #: src/edit.c:1572 src/edit.c:1646 src/edit.c:1730 msgid "Clipboard data has incompatible format" msgstr "Dane w schowku majÄ… niekompatybilny format" #: src/edit.c:1590 msgid "Paste insert" msgstr "Wklej wstawiajÄ…c" #: src/edit.c:1669 msgid "Paste mix" msgstr "Wklej miksujÄ…c" #: src/edit.c:1757 msgid "Paste xfade" msgstr "Wklej xfade" #: src/file_dialogs.c:73 msgid "MP3 export unsupported" msgstr "Eksportowanie do MP3 niewspierane" #: src/file_dialogs.c:74 msgid "" "Export to MP3 format cannot legally be supported in free software\n" "due to patent licensing restrictions.\n" "\n" "Please use Ogg Vorbis format instead, which\n" "provides better quality and is free." msgstr "" "Eksport do formatu MP3 nie może być legalnie wspierany w wolnym " "oprogramowaniu\n" "ze wzglÄ™du na restrykcje w licencjonowaniu patentu.\n" "\n" "Zamiast tego proszÄ™ użyć formatu Ogg Vorbis, który\n" "udostÄ™pnia lepszÄ… jakość i jest za wolnodostÄ™pny." #: src/file_dialogs.c:99 msgid "Raw PCM (headerless)" msgstr "Surowe PCM (beznagłókowe)" #: src/file_dialogs.c:157 #, c-format msgid "%s does not exist." msgstr "%s nie istnieje." #: src/file_dialogs.c:158 msgid "Directory does not exist" msgstr "Katalog nie istnieje" #: src/file_dialogs.c:262 #, c-format msgid "" "Unable to read\n" "%s" msgstr "" "Nie można przeczytać\n" "%s" #: src/file_dialogs.c:289 #, fuzzy msgid "Sweep: Open Files" msgstr "Sweep: Nowy plik" #: src/file_dialogs.c:370 #, c-format msgid "" "Are you sure you want to revert %s to\n" "%s?\n" "\n" "All changes and undo information will be lost." msgstr "" "Czy jesteÅ› pewny że chcesz odwrócić %s do\n" "%s?\n" "\n" "Wszystkie zmiany i informacje undo bÄ™dÄ… stracone." #: src/file_dialogs.c:374 msgid "Revert file" msgstr "Odwróć plik" #: src/file_dialogs.c:375 src/view.c:509 msgid "Revert" msgstr "Odwróc" #: src/file_dialogs.c:375 msgid "Don't revert" msgstr "Nie odwracaj" #: src/file_dialogs.c:545 src/file_dialogs.c:824 #, c-format msgid "Save as %s cancelled" msgstr "Zapisz jako %s anulowano" #: src/file_dialogs.c:582 msgid "By extension" msgstr "Po rozszerzeniu" #: src/file_dialogs.c:640 msgid "MP3 (Use Ogg Vorbis instead)" msgstr "MP3 (zamiast tego użyj Ogg Vorbis)" #: src/file_dialogs.c:707 msgid "Sweep: Save file" msgstr "Sweep: Zapisz plik" #: src/file_dialogs.c:721 msgid "Save Options" msgstr "Zapisz Opcje" #: src/file_dialogs.c:730 msgid "Determine File Type:" msgstr "Ustal Typ Pliku:" #: src/file_dialogs.c:810 #, c-format msgid "" "You are not allowed to write to\n" "%s" msgstr "" "Nie masz prawa pisać do\n" "%s" #: src/file_dialogs.c:812 #, c-format msgid "%s exists. Overwrite?" msgstr "%s istnieje. Nadpisać?" #: src/file_dialogs.c:814 msgid "File exists" msgstr "Plik istnieje" #: src/file_dialogs.c:815 msgid "Overwrite" msgstr "Nadpisać" #: src/file_dialogs.c:815 msgid "Don't overwrite" msgstr "Nie nadpisywać" #: src/file_dialogs.c:887 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Are you sure you want to save?" msgstr "" "%s\n" " zostaÅ‚ zmieniony na dysku.\n" "\n" "Czy jesteÅ› pewny że chcesz zapisać?" #: src/file_dialogs.c:891 src/sweep_undo.c:331 src/view.c:3401 msgid "File modified" msgstr "Plik zmodyfikowany" #: src/file_dialogs.c:892 src/file_speex.c:2127 src/file_vorbis.c:1611 #: src/view.c:501 src/view.c:1782 msgid "Save" msgstr "Zapisz" #: src/file_dialogs.c:892 src/file_speex.c:2138 src/file_vorbis.c:1622 msgid "Don't save" msgstr "Nie zapisuj" #: src/file_sndfile1.c:327 msgid "Powered by libsndfile" msgstr "Powered by libsndfile" #: src/file_sndfile1.c:354 msgid "Encoding" msgstr "Zakodowanie" #: src/file_sndfile1.c:375 msgid "Encoding:" msgstr "Zakodowanie:" #: src/file_sndfile1.c:447 msgid "Sampling rate:" msgstr "CzÄ™stotliwość próbkowania:" #: src/file_sndfile1.c:480 src/file_speex.c:2078 src/file_vorbis.c:1562 #: src/samplerate.c:584 msgid "About" msgstr "O Programie" #: src/file_sndfile1.c:496 msgid "" "Libsndfile is a C library by Erik de Castro Lopo\n" "for reading and writing files containing sampled sound." msgstr "" "Libsndfile jest bibliotekÄ… C napisanÄ… przez Erik de Castro Lopo\n" "do czytania i zapisywania plików zawierajÄ…cych próbkowany dziwiÄ™k." #: src/file_sndfile1.c:507 msgid "" "This user interface by Erik de Castro Lopo\n" " and Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "Interfejs użytkownika autorstwa Erik de Castro Lopo\n" " i Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" #: src/file_sndfile1.c:550 msgid "Sweep: Save PCM options" msgstr "Sweep: Zapisz opcje PCM" #: src/file_sndfile1.c:719 msgid "Sweep: Load Raw PCM options" msgstr "Sweep: ZaÅ‚aduj opcje PCM" #: src/file_sndfile1.c:771 src/file_mad.c:435 src/file_speex.c:577 #: src/file_vorbis.c:324 #, c-format msgid "Loading %s" msgstr "Åadowanie %s" #: src/file_sndfile1.c:998 src/file_speex.c:1074 src/file_vorbis.c:702 #, c-format msgid "Saving %s" msgstr "Zapisywanie %s" #: src/file_speex.c:1016 src/file_speex.c:1036 msgid "Speex encoding results" msgstr "Rezultaty kodowania Speex" #: src/file_speex.c:1208 msgid "Narrowband ~8 kHz (telephone quality)" msgstr "Ograniczone pasmo ~8 kHz (jakość telefoniczna)" #: src/file_speex.c:1209 msgid "Wideband ~16 kHz" msgstr "Szerokie pasmo ~16kHz" #: src/file_speex.c:1211 msgid "Ultra-wideband 32-48 kHz" msgstr "Ultra-szerokie pasmo 32-48 kHz" #: src/file_speex.c:1218 msgid "Constant bitrate (CBR) with no features" msgstr "StaÅ‚a przepÅ‚ywność bitowa (CBR) bez dodatkowych cech" #: src/file_speex.c:1221 msgid "CBR with Voice Activity Detection (VAD)" msgstr "CBR z DetekcjÄ… AktywnoÅ›ci GÅ‚osu (VAD)" #: src/file_speex.c:1222 msgid "VAD generates low bitrate comfort noise to replace non-speech" msgstr "" "VAD generuje niskÄ… przepÅ‚ywność bitowÄ… o komfortowym szumie do zamiany nie-" "mowy" #: src/file_speex.c:1225 msgid "CBR with VAD and Discontinuous Transmission (DTX)" msgstr "CBR z VAD i NieciÄ…głą TransmisjÄ… (DTX)" #: src/file_speex.c:1226 msgid "DTX marks extended pauses with a minimum bitrate signal" msgstr "" "DTX zaznacza rozszerzone pauzy z minimalnym sygnaÅ‚em przepÅ‚ywnoÅ›ci bitowej" #: src/file_speex.c:1229 msgid "Variable bitrate (VBR) with VAD" msgstr "Zmienna przepÅ‚ywność bitowa (VBR) z VAD" #: src/file_speex.c:1230 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech; this " "selection uses VBR without DTX, which may improve performance compared to " "full VBR in the presence of background noise." msgstr "" "VBR pozwala przepÅ‚ywnoÅ›ci bitowej zaadoptować siÄ™ do zÅ‚ożonoÅ›ci mowy; to " "zaznaczenie używa VBR bez DTX, które może zwiÄ™kszyć wydajność w porównaniu " "do peÅ‚nego VBR w obecnoÅ›ci szumu tÅ‚a." #: src/file_speex.c:1235 msgid "Variable bitrate (VBR) with all features" msgstr "Zmienna przepÅ‚ywność bitowa (VBR) ze wszystkimi cechami" #: src/file_speex.c:1236 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech, and handles " "pauses using VAD and DTX" msgstr "" "VBR pozwala przepÅ‚ywnoÅ›ci bitowej zaadoptować siÄ™ do zÅ‚ożonoÅ›ci mowy, i " "obsÅ‚uguje pauzy wykorzystujÄ…c VAD i DTX" #: src/file_speex.c:1240 msgid "Constant bitrate (CBR)" msgstr "StaÅ‚a przepÅ‚ywnoÅ›c bitowa (CBR)" #: src/file_speex.c:1242 msgid "Variable bitrate (VBR)" msgstr "Zmienna przepÅ‚ywnoÅ›c bitowa (VBR)" #: src/file_speex.c:1243 msgid "VBR allows the bitrate to adapt to the complexity of the speech." msgstr "VBR pozwala przepÅ‚ywnoÅ›ci bitowej zaadoptować siÄ™ do zÅ‚ożonoÅ›ci mowy." #: src/file_speex.c:1298 src/file_speex.c:1803 msgid "Average bitrate" msgstr "Åšrednia przepÅ‚ywność bitowa" #: src/file_speex.c:1301 msgid "Maximum bitrate" msgstr "Maksymalna przepÅ‚ywnoÅ›c bitowa" #: src/file_speex.c:1494 src/file_vorbis.c:1013 msgid "Hack the planet!" msgstr "Hack the planet!" #: src/file_speex.c:1580 msgid "Sweep: Speex save options" msgstr "Sweep: Zapisz opcje Speex" #: src/file_speex.c:1631 msgid "Speex encoding" msgstr "Kodowanie Speex" #: src/file_speex.c:1644 msgid "Mode:" msgstr "Tryb:" #: src/file_speex.c:1670 msgid "Auto" msgstr "Auto" #: src/file_speex.c:1679 msgid "" "Automatically select the encoding mode based on the sampling rate of the " "file." msgstr "" "Automatycznie wskaż tryb kodowania bazujÄ…c na czÄ™stotliwoÅ›ci próbkowania " "pliku." #: src/file_speex.c:1732 src/file_vorbis.c:1160 msgid "Encoding quality:" msgstr "Jakość kodowania:" #: src/file_speex.c:1775 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file)." msgstr "" "Jakość kodowania pomiÄ™dzy 0 (najniższa jakość, najmniejszy plik) and 10 " "(najwyższa jakość, najwiÄ™kszy plik)." #: src/file_speex.c:1785 msgid "Enable bitrate management" msgstr "Włącz zarzÄ…dzanie przepÅ‚ywnoÅ›ciÄ… bitowÄ…" #: src/file_speex.c:1798 msgid "" "For non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For " "VBR encoding, this sets the average bitrate." msgstr "" "Dla kodowania nie-VBR (staÅ‚a przepÅ‚ywność bitowa), to ustawia maksymalnÄ… " "przepÅ‚ywność bitowÄ…. Dla kodowania VBR, to ustawia Å›redniÄ… przepÅ‚ywnoÅ›c " "bitowÄ…." #: src/file_speex.c:1821 msgid "bps" msgstr "bps" #: src/file_speex.c:1827 msgid "Extra" msgstr "Ekstra" #: src/file_speex.c:1849 msgid "Encoding complexity:" msgstr "ZÅ‚ożoność kodowania:" #: src/file_speex.c:1888 msgid "" "This sets the encoding speed/quality tradeoff between 0 (faster encoding) " "and 10 (slower encoding)" msgstr "" "To ustawia prÄ™dkość/jakość kodowania pomiÄ™dzy 0 (szybsze kodowanie) i 10 " "(wolniejsze kodowanie)" #: src/file_speex.c:1904 msgid "Speex frames per Ogg packet:" msgstr "Ramek Speex na pakiet Ogg:" #: src/file_speex.c:1930 msgid "" "Number of Speex frames to pack into each Ogg packet. Higher values save " "space at low bitrates." msgstr "" "Liczba ramek Speex zapakowana w każdy pakiet Ogg. Wyższe wartoÅ›ci " "oszczÄ™dzajÄ…miejsce przy niskich przepÅ‚ywnoÅ›ciach bitowych." #: src/file_speex.c:1945 src/file_vorbis.c:1336 msgid "Remember these encoding options" msgstr "ZapamiÄ™taj opcje kodowania" #: src/file_speex.c:1965 src/file_vorbis.c:1356 msgid "Reset to the last remembered encoding options." msgstr "Przestaw do ostatnio zapamiÄ™tanych opcji kodowania." #: src/file_speex.c:1980 msgid "Automatically select best encoding options for this file." msgstr "Automatycznie wskaż najlepsze opcje kodowania dla tego pliku." #: src/file_speex.c:1985 src/file_vorbis.c:1469 msgid "Ogg stream" msgstr "StrumieÅ„ Ogg" #: src/file_speex.c:1998 src/file_vorbis.c:1482 msgid "Ogg stream serial number:" msgstr "Numer seryjny strumienia Ogg:" #: src/file_speex.c:2019 src/file_vorbis.c:1503 msgid "Remember this serial number" msgstr "ZapamiÄ™taj numer seryjny" #: src/file_speex.c:2029 src/file_vorbis.c:1513 msgid "" "Remember this serial number for future re-use.\n" "USE OF THIS OPTION IS NOT RECOMMENDED.\n" "Each encoded file should have a different serial number; re-use of Ogg " "serial numbers in different files may create incompatabilities with " "streaming applications. This option is provided for bitstream engineering " "purposes only.\n" "If this option is not checked, new serial numbers will be randomly generated " "for each file encoded." msgstr "" "ZapamiÄ™taj numer seryjny dla przyszÅ‚ego ponownego użycia.\n" "UÅ»YWANIE TEJ OPCJI JEST NIEWSKAZANE.\n" "Każdy zakodowany plik powinien posiadać inny numer seryjny; ponowne użycie " "numeru seryjnego Ogg w różnych plikach może stworzyć niekompatybilność z " "aplikacjami strumieniowymi. Ta opcja jest udostÄ™pniana tylko z " "przeznaczeniem dla inżynierii strumieni bitowych.\n" "JeÅ›li ta opcja nie jest zaznaczona, nowe numery seryjne bÄ™dÄ… losowo " "generowane dla każdego z kodowanych plików." #: src/file_speex.c:2056 src/file_vorbis.c:1540 msgid "Randomize!" msgstr "Losowanie!" #: src/file_speex.c:2063 src/file_vorbis.c:1547 msgid "" "Generate a random serial number for the Ogg bitstream. The number will " "change while this button is held down." msgstr "" "Generuj losowy numer seryjny dla strumienia bitowego Ogg. Numer bÄ™dzie siÄ™ " "zmieniaÅ‚ w trakcie kiedy przycisk jest przytrzymany." #: src/file_speex.c:2094 msgid "" "Speex is a high quality speech codec designed for\n" "voice over IP (VoIP) and file-based compression.\n" "It is free, open and unpatented." msgstr "" "Speex jest wysoko jakoÅ›ciowym kodekiem mowy zaprojektowanym dla\n" "gÅ‚osu po IP (VoIP) i kompresji opartej o pliki.\n" "Jest wolnny/otwarty, darmowy i nieopatentowany." #: src/file_speex.c:2105 msgid "" "Ogg, Speex, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ogg, Speex, Xiph.org Foundation i ich loga\n" "sÄ… znakami towarowymi (tm) Xiph.org Foundation.\n" "Wykorzystanymi za pozwoleniem." #: src/file_speex.c:2120 src/file_vorbis.c:1604 src/samplerate.c:611 msgid "" "This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "Ten interfejs użytkownika napisany przez Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" #: src/file_vorbis.c:356 #, c-format msgid "" "Decoding %s\n" "Encoded by: %s\n" "\n" "%s" msgstr "" "Dekodowanie %s\n" "Kodowane przez: %s\n" "\n" "%s" #: src/file_vorbis.c:470 msgid "Unsupported encoding mode" msgstr "Niewspierany tryb kodowania" #: src/file_vorbis.c:473 msgid "Invalid encoding options" msgstr "Niepoprawne opcje kodowania" #: src/file_vorbis.c:643 src/file_vorbis.c:663 msgid "Ogg Vorbis encoding results" msgstr "Rezultaty kodowania Ogg Vorbis" #: src/file_vorbis.c:1089 msgid "Sweep: Ogg Vorbis save options" msgstr "Sweep: Zapis opcji Ogg Vorbis" #: src/file_vorbis.c:1148 msgid "Vorbis encoding" msgstr "Kodowanie Vorbis" #: src/file_vorbis.c:1195 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file) using variable bitrate mode (VBR)." msgstr "" "JakoÅ›c kodowania pomiÄ™dzy 0 (najniższa jakość, najmniejszy plik) i 10 " "(najwyższa jakość, najwiÄ™kszy plik) używajÄ…c trybu zmiennej przepÅ‚ywnoÅ›ci " "bitowej (VBR)." #: src/file_vorbis.c:1205 msgid "Enable bitrate management engine" msgstr "Włącz silnik zarzÄ…dzania przepÅ‚ywnoÅ›ciÄ… bitowÄ…" #: src/file_vorbis.c:1211 msgid "" "This enables average bitrate mode (ABR). You must suggest a nominal average " "bitrate and may specify minimum and maximum bounds.\n" "For best results it is generally recommended that you use the variable " "bitrate 'encoding quality' control (above) instead." msgstr "" "To włącza tryb Å›redniej przepÅ‚ywnoÅ›ci bitowej (ABR). Musisz zasugerować " "nominalnÄ… Å›redniÄ… przepÅ‚ywność bitowÄ… i możesz wyspecifikować minimalnÄ… i " "maksymalnÄ… granicÄ™.\n" "Dla najlepszych rezultatów generalnie wskazane jest żebyÅ› zamiast tego użyÅ‚ " "zmiennej przepÅ‚ywnoÅ›ci bitowej kontrolka 'jakoÅ›ci kodowania' (powyżej)." #: src/file_vorbis.c:1221 msgid "Bitrate management engine" msgstr "Silnik zarzÄ…dzania przepÅ‚ywnoÅ›ciÄ… bitowÄ…" #: src/file_vorbis.c:1247 msgid "Nominal bitrate (ABR):" msgstr "Nominalna przepÅ‚ywnoÅ›c bitowa (ABR)" #: src/file_vorbis.c:1260 msgid "" "Specify a nominal bitrate. Attempt to encode at a bitrate averaging this." msgstr "" "Wyspecyfikuj nominalnÄ… przepÅ‚ywnoÅ›c bitowÄ…. SpróbujÄ™ zakodować uÅ›redniajÄ…c " "tÄ… przepÅ‚ywnoÅ›c bitowÄ…." #: src/file_vorbis.c:1264 src/file_vorbis.c:1293 src/file_vorbis.c:1323 msgid "kbps" msgstr "kbps" #: src/file_vorbis.c:1276 msgid "Minimum bitrate:" msgstr "Minimalna przepÅ‚ywność bitowa:" #: src/file_vorbis.c:1289 msgid "" "Specify a minimum bitrate, useful for encoding for a fixed-size channel. " "(Optional)" msgstr "" "Wyspecyfikuj minimalnÄ… przepÅ‚ywność bitowÄ…, użyteczne dla kodowania z " "kanaÅ‚em o ustalonym rozmiarze. (Opcjonalne)" #: src/file_vorbis.c:1306 msgid "Maximum bitrate:" msgstr "Maksymalna przepÅ‚ywność bitowa:" #: src/file_vorbis.c:1319 msgid "" "Specify a maximum bitrate, useful for streaming applications. (Optional)" msgstr "" "Wyspecyfikuj maksymalnÄ… przepÅ‚ywność bitowÄ…, użyteczne dla aplikacji " "strumieniowych. (Opcjonalne)" #: src/file_vorbis.c:1370 msgid "Set to default encoding options." msgstr "Ustaw domyÅ›lne opcje kodowania." #: src/file_vorbis.c:1377 msgid "Metadata" msgstr "Metadane" #: src/file_vorbis.c:1399 msgid "Title:" msgstr "TytuÅ‚:" #: src/file_vorbis.c:1399 msgid "Track/Work name" msgstr "Åšcieżka/Nazwa pracy" #: src/file_vorbis.c:1401 msgid "Version:" msgstr "Wersja:" #: src/file_vorbis.c:1402 msgid "" "The version field may be used to differentiate multiple versions of the same " "track title in a single collection. (e.g. remix info)" msgstr "" "Pole z wersjÄ… może być wykorzystane do rozróżnienia wielu wersji tego samego " "tytuÅ‚u nagrania w pojedynym zbiorze. (np. informacja remiksowa)" #: src/file_vorbis.c:1406 msgid "Album:" msgstr "Album:" #: src/file_vorbis.c:1407 msgid "The collection name to which this track belongs" msgstr "Nazwa zbioru do którego należy nagranie" #: src/file_vorbis.c:1409 msgid "Artist:" msgstr "Artysta:" #: src/file_vorbis.c:1410 msgid "" "The artist generally considered responsible for the work. In popular music " "this is usually the performing band or singer. For classical music it would " "be the composer. For an audio book it would be the author of the original " "text." msgstr "" "Artysta najczęściej jest odpowiedzialny za swojÄ… pracÄ™. W muzyce popularnej " "jest to zazwyczaj zespół lub piosenkarz. Dla muzyki klasycznej to mógÅ‚by być " "kompozytor. Dla książki dzwiÄ™kowej to mógÅ‚by być autor oryginalnego tekstu." #: src/file_vorbis.c:1416 msgid "Performer:" msgstr "Wykonawca:" #: src/file_vorbis.c:1417 msgid "" "The artist(s) who performed the work. In classical music this would be the " "conductor, orchestra, soloists. In an audio book it would be the actor who " "did the reading. In popular music this is typically the same as the ARTIST " "and is omitted." msgstr "" "Artysta(ci) który wykonaÅ‚ pracÄ™. W muzyce klasycznej to mógÅ‚by być dyrygent, " "orkiestra, soliÅ›ci. W książce dzwiÄ™kowej to mógÅ‚by być aktor który odczytaÅ‚ " "tekst. W muzyce popularnej to jest zazwyczaj to samo co ARTYSTA i jest " "pomijane." #: src/file_vorbis.c:1424 msgid "Copyright:" msgstr "Copyright:" #: src/file_vorbis.c:1425 msgid "" "Copyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'" msgstr "" "Atrybut Copyright, np., '2001 CzerwonoZielonoNiebieskoCzarni' lub '1999 " "Jacek Kowalski'" #: src/file_vorbis.c:1428 msgid "License:" msgstr "Licencja:" #: src/file_vorbis.c:1429 msgid "" "License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL " "to a license such as a Creative Commons license (\"www.creativecommons.org/" "blahblah/license.html\") or the EFF Open Audio License ('distributed under " "the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/" "eff_oal.html for details'), etc." msgstr "" "Informacja licencyjna, np., 'Wszystkie prawa zastrzeżone (All Rights " "Reserved)', 'Dowolne użycie dozwolone (Any Use Permitted)', URL do licencji " "taki jak Creative Commons license (\"www.creativecommons.org/blahblah/" "license.html\") lub EFF Open Audio License ('rozpowszechnianie pod warunkami " "licencji Open Audio License. zobacz http://www.eff.org/IP/Open_licenses/" "eff_oal.html'), itp." #: src/file_vorbis.c:1438 msgid "Organization:" msgstr "Organizacja:" #: src/file_vorbis.c:1439 msgid "Name of the organization producing the track (i.e. the 'record label')" msgstr "Nazwa organizacji produkujÄ…cej nagranie (np. 'nazwa wytwórni')" #: src/file_vorbis.c:1442 msgid "Description:" msgstr "Opis:" #: src/file_vorbis.c:1443 msgid "A short text description of the contents" msgstr "Krótki tekstowy opis zawartoÅ›ci" #: src/file_vorbis.c:1445 msgid "Genre:" msgstr "Gatunek:" #: src/file_vorbis.c:1446 msgid "A short text indication of music genre" msgstr "Krótki tekst wskazujÄ…cy na gatunek muzyczny" #: src/file_vorbis.c:1448 msgid "Date:" msgstr "Data:" #: src/file_vorbis.c:1449 msgid "Date the track was recorded" msgstr "Data kiedy nazgranie zostaÅ‚o utrwalone" #: src/file_vorbis.c:1451 msgid "Location:" msgstr "Lokalizacja:" #: src/file_vorbis.c:1452 msgid "Location where track was recorded" msgstr "Lokalizacja gdzie nagranie zostaÅ‚o utrwalone" #: src/file_vorbis.c:1454 msgid "Contact:" msgstr "Kontakt:" #: src/file_vorbis.c:1455 msgid "" "Contact information for the creators or distributors of the track. This " "could be a URL, an email address, the physical address of the producing " "label." msgstr "" "Informacja o kontakcie do twórców lub dystrybutorów nagrania. To może być " "URL, adres email lub addres producenta" #: src/file_vorbis.c:1460 msgid "ISRC:" msgstr "ISRC:" #: src/file_vorbis.c:1461 msgid "" "ISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-" "content/online/isrc_intro.html) for more information on ISRC numbers." msgstr "" "Numer ISRC nagrania; zobacz stronÄ™ ISRC (http://www.ifpi.org/site-content/" "online/isrc_intro.html) aby dowiedzieć siÄ™ wiÄ™cej informacji o numerach ISRC." #: src/file_vorbis.c:1578 msgid "" "Ogg Vorbis is a high quality general purpose\n" "perceptual audio codec. It is free, open and\n" "unpatented." msgstr "" "Ogg Vorbis jest wysoko jakoÅ›ciowym percepcyjnym kodekiem audio\n" "ogólnego przeznaczenia. Jest wolny/otwarty, darmowy i\n" "nieopatentowany." #: src/file_vorbis.c:1589 msgid "" "Ogg, Vorbis, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ogg, Vorbis, Xiph.org Foundation ich loga\n" "sÄ… znakami towarowymi (tm) Xiph.org Foundation.\n" "Wykorzystanymi za pozwoleniem." #: src/head.c:408 src/view.c:2324 msgid "Cursor position (indicator)" msgstr "Pozycja kursora (wskaźnik)" #: src/head.c:449 msgid "Reverse mode (toggle)" msgstr "Tryb odwrotny (włącznik)" #: src/head.c:467 msgid "Loop mode recording (toggle)" msgstr "Zapisywanie w trybie zapÄ™tlenia (włącznik)" #: src/head.c:486 msgid "Record into selection" msgstr "Zapis w zaznaczeniu" #: src/head.c:503 src/view.c:1068 msgid "Stop" msgstr "Zatrzymaj" #: src/head.c:516 src/view.c:2469 msgid "Go to beginning" msgstr "Idź do poczÄ…tku" #: src/head.c:527 src/view.c:2480 msgid "Rewind" msgstr "PrzewiÅ„" #: src/head.c:540 src/view.c:2492 msgid "Fast forward" msgstr "PrzewiÅ„ do przodu" #: src/head.c:555 src/view.c:2505 msgid "Go to the end" msgstr "Idź do koÅ„ca" #: src/interface.c:327 msgid "Sweep" msgstr "Sweep" #: src/interface.c:352 src/view.c:446 msgid "File" msgstr "Pliki" #: src/interface.c:357 msgid "New" msgstr "Nowy" #: src/interface.c:366 msgid "Open" msgstr "Otwórz" #: src/interface.c:375 src/sweep_sample.c:800 src/sweep_sample.c:808 #: src/view.c:529 msgid "Quit" msgstr "ZakoÅ„cz" #: src/interface.c:386 src/view.c:1073 msgid "Help" msgstr "Pomoc" #: src/interface.c:391 msgid "About..." msgstr "O Programie..." #: src/interface.c:414 src/view.c:618 msgid "Select" msgstr "Zaznaczenie" #: src/interface.c:415 msgid "Select regions of a sample" msgstr "Zaznacz obszary próbki" #: src/interface.c:416 msgid "" "This tool allows you to select regions of a sample. You can then apply edits " "and effects to the: selected regions. Hold down shift whilst selecting to " "add discontinuous regions to the selection." msgstr "" "To narzÄ™dzie pozwala Ci zaznaczyć obszary próbki. Możesz wtedy zastosować " "edycjÄ™ lub efekty do zaznaczonych obszarów. Przytrzymaj klawisz shift " "podczas zaznaczania aby dodać nieciÄ…gÅ‚e obszary do zaznaczenia." #: src/interface.c:433 msgid "Move" msgstr "PrzesuÅ„" #: src/interface.c:434 msgid "Move regions in a sample" msgstr "PrzesuÅ„ obszary w próbce" #: src/interface.c:435 msgid "With this tool you can move selected regions of a sample." msgstr "Z tym narzÄ™dziem możesz przesuwać zaznaczone obszary próbki." #: src/interface.c:447 msgid "Scrub" msgstr "Scrub" #: src/interface.c:448 msgid "Locate sounds directly" msgstr "Zlokalizuj dzwiÄ™ki bezpoÅ›rednio" #: src/interface.c:449 msgid "" "Place the play marker on a sample. Click anywhere in a view to instantly " "move the playback position to that part of the sample." msgstr "" "Ustaw wskażnik odtwarzania na próbce. Kliknik gdziekolwiek w widoku aby " "natychmiastowo przesunąć pozycjÄ™ odtwarzania do tej części próbki." #: src/interface.c:466 msgid "Zoom" msgstr "PowiÄ™kszenie" #: src/interface.c:467 msgid "Zoom in & out" msgstr "PowiÄ™kszanie i Pomniejszanie" #: src/interface.c:468 msgid "" "Zoom in and out of a view. Click anywhere in a view to zoom in on that part " "of the sample. Hold down shift and click on the view to zoom out." msgstr "" "PowiÄ™kszanie i pomniejszanie widoku. Kliknij gdziekolwiek w widoku aby " "powiÄ™kszyć na tej części próbki. Przytrzymaj klawisz shift i kliknij na " "widoku aby pomniejszyć." #: src/interface.c:484 msgid "Pencil" msgstr "Ołówek" #: src/interface.c:485 msgid "Edit PCM sample values" msgstr "Edytuj wartoÅ›ci próbki PCM" #: src/interface.c:486 msgid "When zoomed down to individual samples, click to edit" msgstr "Kiedy powiÄ™kszone do pojedynczych próbek, klinkij do edycji" #: src/interface.c:497 msgid "Noise" msgstr "Szum" #: src/interface.c:498 msgid "Add noise" msgstr "Dodaj szum" #: src/interface.c:499 msgid "Randomise PCM values" msgstr "Losuj wartoÅ›ci PCM" #: src/notes.c:61 msgid "C3" msgstr "" #: src/notes.c:62 msgid "C#3" msgstr "" #: src/notes.c:63 msgid "D3" msgstr "" #: src/notes.c:64 msgid "Eb3" msgstr "" #: src/notes.c:65 msgid "E3" msgstr "" #: src/notes.c:66 msgid "F3" msgstr "" #: src/notes.c:67 msgid "F#3" msgstr "" #: src/notes.c:68 msgid "G3" msgstr "" #: src/notes.c:69 msgid "G#3" msgstr "" #: src/notes.c:70 msgid "A3" msgstr "" #: src/notes.c:71 msgid "Bb3" msgstr "" #: src/notes.c:72 msgid "B3" msgstr "" #: src/notes.c:74 msgid "C4" msgstr "" #: src/notes.c:76 msgid "C#4" msgstr "" #: src/notes.c:77 msgid "D4" msgstr "" #: src/notes.c:78 msgid "Eb4" msgstr "" #: src/notes.c:79 msgid "E4" msgstr "" #: src/notes.c:80 msgid "F4" msgstr "" #: src/notes.c:81 msgid "F#4" msgstr "" #: src/notes.c:82 msgid "G4" msgstr "" #: src/notes.c:83 msgid "G#4" msgstr "" #: src/notes.c:84 msgid "A4" msgstr "" #: src/notes.c:85 msgid "Bb4" msgstr "" #: src/notes.c:86 msgid "B4" msgstr "" #: src/notes.c:88 msgid "C5" msgstr "" #: src/notes.c:89 msgid "C#5" msgstr "" #: src/notes.c:90 msgid "D5" msgstr "" #: src/notes.c:91 msgid "D#5" msgstr "" #: src/notes.c:92 msgid "E5" msgstr "" #: src/notes.c:94 msgid "F5" msgstr "" #: src/notes.c:95 msgid "F#5" msgstr "" #: src/notes.c:96 msgid "G5" msgstr "" #: src/notes.c:97 msgid "G#5" msgstr "" #: src/notes.c:98 msgid "A5" msgstr "" #: src/notes.c:99 msgid "Bb5" msgstr "" #: src/notes.c:100 msgid "B5" msgstr "" #: src/param.c:117 #, c-format msgid "TRUE" msgstr "PRAWDA" #: src/param.c:118 #, c-format msgid "FALSE" msgstr "FAÅSZ" #: src/param.c:738 msgid "Parameters" msgstr "Parametry" #: src/param.c:769 msgid "Preview" msgstr "PodglÄ…d" #: src/paste_dialogs.c:221 msgid "Start gain" msgstr "PoczÄ…tek wzmocnienia" #: src/paste_dialogs.c:223 src/record.c:489 src/record.c:507 #: plugins/echo/echo.c:61 msgid "Gain" msgstr "Wzmocnienie" #: src/paste_dialogs.c:230 msgid "Sweep: Paste crossfade" msgstr "Sweep: Wklej z wyciszeniem" #: src/paste_dialogs.c:232 msgid "Sweep: Paste mix" msgstr "Sweep: Wklej miksujÄ…c" #: src/paste_dialogs.c:257 msgid "Source" msgstr "ŹródÅ‚o" #: src/paste_dialogs.c:257 msgid "Clipboard" msgstr "Schowek" #: src/paste_dialogs.c:279 src/paste_dialogs.c:318 msgid "End gain" msgstr "Koniec wzmocnienia" #: src/paste_dialogs.c:287 src/paste_dialogs.c:326 msgid "Invert phase" msgstr "Odwróc fazÄ™" #: src/paste_dialogs.c:295 msgid "Destination" msgstr "Cel" #: src/paste_dialogs.c:345 msgid "" "Indicates the total duration of the clipboard, which is the maximum length " "that will be pasted." msgstr "" "Wskazuje caÅ‚kowity czas trwania schowka, która jest maksymalnÄ… dÅ‚ugoÅ›ciÄ… " "jaka może być wklejona." #: src/paste_dialogs.c:362 msgid "Clipboard duration:" msgstr "Czas trwania schowka:" #: src/paste_dialogs.c:375 msgid "Crossfade" msgstr "Wyciszanie" #: src/paste_dialogs.c:375 msgid "Mix" msgstr "Miksuj" #: src/paste_dialogs.c:394 msgid "Don't crossfade" msgstr "Nie wyciszaj" #: src/paste_dialogs.c:394 msgid "Don't mix" msgstr "Nie miksuj" #: src/preferences.c:62 msgid "Error creating ~/.sweep" msgstr "Błąd w stworzeniu ~/.sweep" #: src/preferences.c:66 #, c-format msgid "Created %s/ mode %04o\n" msgstr "Stworzono %s/ z trybem %04o\n" #: src/preferences.c:73 msgid "Error on ~/.sweep" msgstr "Błąd w ~/.sweep" #: src/preferences.c:82 msgid "Error setting permissions on ~/.sweep" msgstr "Błąd w ustawianiu praw dostÄ™pu do ~/.sweep" #: src/preferences.c:89 msgid "Error accessing ~/.sweep" msgstr "Błąd w dostÄ™pie do ~/.sweep" #: src/preferences.c:124 msgid "Error opening ~/.sweep/preferences.tdb" msgstr "Błąd w otwarciu ~/.sweep/preferences.tdb" #: src/record.c:94 src/record.c:544 msgid "Ready to record" msgstr "Gotowy do zapisu" #: src/record.c:308 msgid "No selection to record into" msgstr "Brak zaznaczenia aby do niego zapisać" #: src/record.c:446 msgid "Sweep: Record" msgstr "Sweep: Zapis" #: src/record.c:459 src/undo_dialog.c:376 msgid "File:" msgstr "Plik:" #: src/record.c:482 msgid "Previous sound" msgstr "Poprzedni dzwiÄ™k" #: src/record.c:496 msgid "" "This slider allows you to mix the new recording in with the previous " "contents of the buffer. Set it to -inf dB to overwrite the previous sound." msgstr "" "Ten suwak pozwala zmiksować nowo zapisywany dzwiÄ™k z poprzedniÄ… zawartoÅ›ciÄ… " "bufora. Ustaw na -inf dB aby nadpisać poprzedni dzwiÄ™k." #: src/record.c:502 msgid "Recorded sound" msgstr "Zapisany dziÄ™k" #: src/record.c:514 msgid "" "This slider allows you to reduce the level of the recorded sound. Set it to " "0 dB to record without any reduction. Note that setting this to -inf dB will " "record silence." msgstr "" "Ten suwak pozwala zredukować poziom zapisywanego dzwiÄ™ku. Ustaw na 0 dB aby " "zapisać bez jakiejkolwiek redukcji. Zauważ że ustawienie na -inf dB " "poskutkuje zapisaniem ciszy." #: src/sample-display.c:223 msgid "New selection" msgstr "Nowe zaznaczenie" #: src/sample-display.c:224 msgid "Selection: add/modify region" msgstr "Zaznacz obszar prbki" #: src/sample-display.c:225 msgid "Selection: subtract region" msgstr "Zaznacz obszar prbki" #: src/samplerate.c:103 src/samplerate.c:167 msgid "Resample error" msgstr "Błąd resamplingu" #: src/samplerate.c:104 src/samplerate.c:168 msgid "libsamplerate error" msgstr "błąd biblioteki libsamplerate" #: src/samplerate.c:234 #, c-format msgid "Resample from %d Hz to %d Hz" msgstr "Resamplowanie z %d Hz do %d Hz" #: src/samplerate.c:445 msgid "Sweep: Resample" msgstr "Sweep: Resamplowanie" #: src/samplerate.c:467 msgid "Conversion" msgstr "Konwersja" #: src/samplerate.c:474 #, c-format msgid "Current sample rate: %d Hz" msgstr "Aktualna czÄ™stotliwość próbkowania: %d Hz" #: src/samplerate.c:483 msgid "New sample rate" msgstr "Nowa czÄ™stotliwość próbkowania" #: src/samplerate.c:494 msgid "Quality" msgstr "Jakość" #: src/samplerate.c:501 msgid "Converter" msgstr "Konwerter" #: src/samplerate.c:544 msgid "Remember this quality" msgstr "ZapamiÄ™taj tÄ… jakość" #: src/samplerate.c:564 msgid "Reset to the last remembered quality." msgstr "Powróć do ostatnio zapamiÄ™tanej jakoÅ›ci." #: src/samplerate.c:578 msgid "Set to default quality." msgstr "Ustaw domyÅ›lnÄ… jakość." #: src/samplerate.c:600 msgid "" "Secret Rabbit Code (aka libsamplerate) is a\n" "Sample Rate Converter for audio by Erik de Castro Lopo\n" msgstr "" "Secret Rabbit Code (aka libsamplerate) jest\n" "Konwerterem CzÄ™stotliwoÅ›ci Próbkowania dla sygnałów audio napisanego przez " "Erik de Castro Lopo\n" #: src/samplerate.c:620 msgid "Resample" msgstr "Resampluj" #: src/samplerate.c:633 msgid "Don't resample" msgstr "Nie resampluj" #: src/sw_chooser.c:51 src/sw_chooser.c:66 msgid "Custom" msgstr "" #: src/sw_chooser.c:52 msgid "192000 Hz (Studio quality)" msgstr "192000 Hz (Jakość studyjna)" #: src/sw_chooser.c:53 msgid " 96000 Hz (High quality)" msgstr " 96000 Hz (Wysoka jakość)" #: src/sw_chooser.c:54 msgid " 48000 Hz (DAT quality)" msgstr " 48000 Hz (Jakość DAT)" #: src/sw_chooser.c:55 msgid " 44100 Hz (CD quality)" msgstr " 44100 Hz (Jakość CD)" #: src/sw_chooser.c:56 msgid " 32000 Hz (Ultra-wideband voice quality)" msgstr " 32000 Hz (Ultra-szerokopasmowa jakość gÅ‚osowa)" #: src/sw_chooser.c:57 msgid " 22050 Hz" msgstr " 22050 Hz" #: src/sw_chooser.c:58 msgid " 16000 Hz (Wideband voice quality)" msgstr " 16000 Hz (Szerokopasmowa jakość gÅ‚osowa)" #: src/sw_chooser.c:59 msgid " 11025 Hz" msgstr " 11025 Hz" #: src/sw_chooser.c:60 msgid " 8000 Hz (Narrowband voice quality)" msgstr " 8000 Hz (WÄ…skopasmowa jakość gÅ‚osowa)" #: src/sw_chooser.c:61 msgid " 4000 Hz (Low quality)" msgstr " 4000 Hz (Niska jakość)" #: src/sw_chooser.c:67 src/view.c:3446 src/view.c:3459 src/view.c:3498 #, c-format msgid "Mono" msgstr "Mono" #: src/sw_chooser.c:68 src/view.c:3446 src/view.c:3459 src/view.c:3501 #, c-format msgid "Stereo" msgstr "Stereo" #: src/sw_chooser.c:69 msgid "Quadraphonic" msgstr "Kwadrofonia" #: src/sw_chooser.c:306 msgid "Custom: " msgstr "" #: src/sw_chooser.c:341 msgid "Sampling rate" msgstr "CzÄ™stotliwość próbkowania" #: src/sw_chooser.c:343 msgid "Hz" msgstr "" #: src/sw_chooser.c:367 src/view.c:884 msgid "Channels" msgstr "KanaÅ‚y" #: src/sw_chooser.c:369 src/view.c:3505 msgid "channels" msgstr "kanaÅ‚y" #: src/sweep_filter.c:125 msgid "No selection to process" msgstr "Brak zaznaczenia do obróbki" #: src/sweep_sample.c:119 src/view.c:3444 src/view.c:3450 src/view.c:3457 #: src/view.c:3463 msgid "Untitled" msgstr "Bez_Nazwy" #: src/sweep_sample.c:324 msgid "Overflow" msgstr "PrzepeÅ‚nienie" #: src/sweep_sample.c:407 msgid "Sweep: New file" msgstr "Sweep: Nowy plik" #: src/sweep_sample.c:435 msgid "Name:" msgstr "Nazwa:" #: src/sweep_sample.c:455 msgid "Duration:" msgstr "Czas trwania:" #: src/sweep_sample.c:471 msgid "hh:mm:ss.xxx" msgstr "gg:mm:ss.xxx" #: src/sweep_sample.c:514 msgid "Remember this format" msgstr "ZapamiÄ™taj ten format" #: src/sweep_sample.c:520 msgid "" "Remember this sampling rate and channel configuration for creating new files." msgstr "" "ZapamiÄ™taj konfiguracjÄ™ czÄ™stotliwoÅ›ci próbkowania i kanałów dla tworzenia " "nowych plików." #: src/sweep_sample.c:540 msgid "Reset to the last remembered format for new files." msgstr "Powróć do ostatnio zapamiÄ™tanego formatu dla nowych plików" #: src/sweep_sample.c:551 msgid "Set to the default format for new files." msgstr "Ustaw domyÅ›lny format dla nowych plików." #: src/sweep_sample.c:567 msgid "" "Indicates the amount of data memory which will be allocated for the selected " "duration and format. All audio data is processed internally in 32 bit " "floating point format." msgstr "" "Oznacza sumÄ™ pamiÄ™ci danych która bÄ™dzie zaalokowana dla zaznaczonego okresu " "czasu i formatu. Wszystkie dane audio sÄ… przetwarzane wewnÄ™trznie w " "32bitowym formacie zmiennopozycyjnym." #: src/sweep_sample.c:582 msgid "Data memory:" msgstr "Pamięć danych:" #: src/sweep_sample.c:594 msgid "Create" msgstr "Stwórz" #: src/sweep_sample.c:606 msgid "Don't create" msgstr "Nie twórz" #: src/sweep_sample.c:774 msgid "Excellent!!!" msgstr "Wspaniale!!!" #: src/sweep_sample.c:796 msgid "Files unsaved" msgstr "Pliki niezapisane" #: src/sweep_sample.c:797 msgid "" "Some files are unsaved. If you quit, all changes will be lost.\n" "\n" "Are you sure you want to quit?" msgstr "" "Pewne pliki sÄ… niezapisane. JeÅ›li wyjdziesz wszystkie zmiany zostanÄ… " "stracone.\n" "\n" "Czy jesteÅ› pewny że chcesz wyjść?" #: src/sweep_sample.c:800 src/sweep_sample.c:808 msgid "Don't quit" msgstr "Nie wychodź" #: src/sweep_sample.c:804 msgid "Files playing" msgstr "Pliki sÄ… odtwarzane" #: src/sweep_sample.c:805 msgid "" "No files are unsaved, but some files are currently playing.\n" "\n" "Are you sure you want to quit?" msgstr "" "Wszystkie pliki sÄ… zapisane lecz niektóre z nich sÄ… wÅ‚aÅ›nie odtwarzane.\n" "\n" "Czy jesteÅ› pewny że chcesz wyjść?" #: src/sweep_sample.c:1465 src/view.c:1206 msgid "Invert selection" msgstr "Odwróć zaznaczenie" #: src/sweep_sample.c:1485 src/view.c:1214 src/view.c:1308 msgid "Select all" msgstr "Zaznacz wszystko" #: src/sweep_sample.c:1505 src/view.c:1222 msgid "Select none" msgstr "Odznacz" #: src/sweep_sample.c:1525 msgid "Halve selection" msgstr "PoÅ‚owiczne zaznaczenie" #: src/sweep_sample.c:1545 msgid "Double selection" msgstr "Podwójne zaznaczenie" #: src/sweep_sample.c:1568 msgid "Selection left" msgstr "Zaznacz z lewa" #: src/sweep_sample.c:1590 msgid "Selection right" msgstr "Zaznacz z prawa" #: src/sweep_sample.c:1678 #, c-format msgid "Insert selection [" msgstr "Wstaw zaznaczenie [" #: src/sweep_sample.c:1731 #, c-format msgid "Subtract selection [" msgstr "Wytnij zaznaczenie [" #: src/sweep_sample.c:1776 #, c-format msgid "Set selection [" msgstr "Ustaw zaznaczenie [" #: src/sweep_sample.c:1875 msgid "Sweep: File properties" msgstr "Sweep: WÅ‚aÅ›ciwoÅ›ci pliku" #: src/sweep_sample.c:1899 msgid "Filename: " msgstr "Plik: " #: src/sweep_sample.c:1901 msgid "Sampling rate: " msgstr "CzÄ™stotliwość próbkowania:" #: src/sweep_sample.c:1903 msgid "Channels: " msgstr "KanaÅ‚y" #: src/sweep_sample.c:1905 msgid "Data memory: " msgstr "Pamięć danych: " #: src/sweep_sample.c:1907 msgid "Duration: " msgstr "Czas trwania:" #: src/sweep_undo.c:327 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Do you want to continue editing this buffer?" msgstr "" "%s\n" " zostaÅ‚ zmieniony na dysku.\n" "\n" "Czy chcesz kontynuować edycjÄ™ tego bufora?" #: src/sweep_undo.c:332 msgid "Continue editing" msgstr "Kontynuacja edycji" #: src/sweep_undo.c:332 msgid "Reread from disk" msgstr "Ponowne odczytanie z dysku" #: src/sweep_undo.c:430 src/sweep_undo.c:488 msgid "Nothing to undo" msgstr "" #: src/sweep_undo.c:511 src/sweep_undo.c:567 msgid "Nothing to redo" msgstr "" #: src/undo_dialog.c:159 msgid "Original data" msgstr "Oryginalne dane" #: src/undo_dialog.c:344 msgid "Action" msgstr "Akcja" #: src/undo_dialog.c:351 msgid "Sweep: History" msgstr "Sweep: Historia" #: src/undo_dialog.c:393 src/view.c:548 src/view.c:1887 msgid "Undo" msgstr "Undo" #: src/undo_dialog.c:401 src/view.c:552 src/view.c:1896 msgid "Redo" msgstr "Redo" #: src/undo_dialog.c:426 msgid "Revert to selected state" msgstr "Przywróć do wskazanego stanu" #: src/undo_dialog.c:452 src/view.c:525 src/view.c:3402 msgid "Close" msgstr "Zamknij" #: src/view.c:311 msgid "Duplicate to stereo" msgstr "Duplikuj" #: src/view.c:319 msgid "Duplicate to multichannel" msgstr "Zduplikuj do wielokanaÅ‚owego" #: src/view.c:331 msgid "Swap left and right" msgstr "ZamieÅ„ lewy z prawym" #: src/view.c:371 msgid "Add/Remove channels" msgstr "Dodaj/UsuÅ„ kanaÅ‚y" #: src/view.c:454 src/view.c:1768 msgid "New ..." msgstr "Nowy ..." #: src/view.c:458 src/view.c:1775 msgid "Open ..." msgstr "Otwórz ..." #: src/view.c:488 msgid "Open Recent" msgstr "" #: src/view.c:505 msgid "Save As ..." msgstr "Zapisz jako ..." #: src/view.c:517 msgid "Properties ..." msgstr "WÅ‚aÅ›ciwoÅ›ci ..." #: src/view.c:535 src/view.c:1136 msgid "Edit" msgstr "Edycja" #: src/view.c:556 msgid "Show history ..." msgstr "Pokaż historiÄ™ ..." #: src/view.c:588 src/view.c:1172 msgid "Paste: Insert" msgstr "Wklej WstawiajÄ…c" #: src/view.c:592 src/view.c:1178 msgid "Paste: Mix" msgstr "Wklej: MiksujÄ…c" #: src/view.c:596 src/view.c:1184 msgid "Paste: Crossfade" msgstr "Wklej: WyciszajÄ…c" #: src/view.c:600 msgid "Paste as New" msgstr "Wklej jako Nowy" #: src/view.c:608 msgid "Preview Cut/Cursor" msgstr "" #: src/view.c:612 msgid "Pre-roll to Cursor" msgstr "" #: src/view.c:626 msgid "Invert" msgstr "Odwróć" #: src/view.c:630 msgid "All" msgstr "Wszystko" #: src/view.c:634 msgid "None" msgstr "Brak" #: src/view.c:642 msgid "Halve" msgstr "PoÅ‚owiczne" #: src/view.c:646 msgid "Double" msgstr "Podwójne" #: src/view.c:650 msgid "Shift left" msgstr "PrzesuniÄ™cie w lewo" #: src/view.c:654 msgid "Shift right" msgstr "PrzesuniÄ™cie w prawo" #: src/view.c:659 msgid "View" msgstr "Widok" #: src/view.c:666 src/view.c:2061 msgid "Autoscroll: follow playback cursor" msgstr "Autoscroll: podążaj za kursorem odtwarzania" #: src/view.c:684 msgid "Center" msgstr "Wycentrowanie" #: src/view.c:692 src/view.c:1996 msgid "Zoom in" msgstr "PowiÄ™kszenie" #: src/view.c:696 src/view.c:2005 msgid "Zoom out" msgstr "Pomniejszenie" #: src/view.c:700 src/view.c:1111 msgid "Zoom to selection" msgstr "PowiÄ™kszenie do zaznaczenia" #: src/view.c:706 msgid "Left" msgstr "Lewy" #: src/view.c:710 msgid "Right" msgstr "Prawy" #: src/view.c:715 src/view.c:1117 src/view.c:1276 msgid "Zoom normal" msgstr "PowiÄ™kszenie normalne" #: src/view.c:719 src/view.c:1123 src/view.c:1282 src/view.c:1987 msgid "Zoom all" msgstr "PowiÄ™kszenie peÅ‚ne" #: src/view.c:723 msgid "1:1" msgstr "1:1" #: src/view.c:733 msgid "Remember as" msgstr "ZapamiÄ™taj jako" #: src/view.c:752 src/view.c:783 msgid "Area 1" msgstr "Obszar 1" #: src/view.c:753 src/view.c:784 msgid "Area 2" msgstr "Obszar 2" #: src/view.c:754 src/view.c:785 msgid "Area 3" msgstr "Obszar 3" #: src/view.c:755 src/view.c:786 msgid "Area 4" msgstr "Obszar 4" #: src/view.c:756 src/view.c:787 msgid "Area 5" msgstr "Obszar 5" #: src/view.c:757 src/view.c:788 msgid "Area 6" msgstr "Obszar 6" #: src/view.c:758 src/view.c:789 msgid "Area 7" msgstr "Obszar 7" #: src/view.c:759 src/view.c:790 msgid "Area 8" msgstr "Obszar 8" #: src/view.c:760 src/view.c:791 msgid "Area 9" msgstr "Obszar 9" #: src/view.c:761 src/view.c:792 msgid "Area 10" msgstr "Obszar 10" #: src/view.c:765 msgid "Zoom to" msgstr "Pomniejszenie do" #: src/view.c:798 msgid "Color scheme" msgstr "Schemat kolorystyczny" #: src/view.c:804 msgid "Decoder Red" msgstr "" #: src/view.c:812 msgid "Orangeboom" msgstr "" #: src/view.c:820 msgid "Lame Yellow" msgstr "" #: src/view.c:828 msgid "Coogee Bay Blue" msgstr "" #: src/view.c:836 msgid "Blackwattle" msgstr "" #: src/view.c:844 msgid "Frigid" msgstr "" #: src/view.c:852 msgid "Radar" msgstr "" #: src/view.c:860 msgid "Bluescreen" msgstr "" #: src/view.c:872 src/view.c:1236 src/view.c:1322 msgid "New View" msgstr "Nowy Widok" #: src/view.c:877 msgid "Sample" msgstr "Próbki" #: src/view.c:894 msgid "Resample ..." msgstr "Resample ..." #: src/view.c:903 msgid "Duplicate" msgstr "Powiel" #: src/view.c:908 src/view.c:1192 msgid "Process" msgstr "Proces" #: src/view.c:917 msgid "Playback" msgstr "Odtwarzanie" #: src/view.c:924 msgid "Configure audio device ..." msgstr "Konfiguracja urzÄ…dzenia audio ..." #: src/view.c:934 msgid "Transport" msgstr "Transport" #: src/view.c:943 msgid "Go to start of file" msgstr "Idź do poczÄ…tku pliku" #: src/view.c:949 msgid "Go to start of window" msgstr "Idź do poczÄ…tku okna" #: src/view.c:954 msgid "Skip back" msgstr "Przeskok do tyÅ‚u" #: src/view.c:959 msgid "Skip forward" msgstr "Przeskok do przodu" #: src/view.c:964 msgid "Go to end of window" msgstr "Idź do koÅ„ca okna" #: src/view.c:969 msgid "Go to end of file" msgstr "Idź do koÅ„ca pliku" #: src/view.c:978 msgid "Play selection" msgstr "Odtwórz zaznaczenie" #: src/view.c:984 msgid "Play sample" msgstr "Odtwórz próbkÄ™" #: src/view.c:990 msgid "Play note" msgstr "Odtwórz nutÄ™" #: src/view.c:1009 msgid "Toggle monitoring" msgstr "Włącz monitorowanie" #: src/view.c:1022 msgid "Toggle looping" msgstr "Włącz zapÄ™tlenie" #: src/view.c:1034 msgid "Toggle muting" msgstr "Włącz wyciszenie" #: src/view.c:1045 msgid "Toggle reverse playback" msgstr "Włącz odtwarzanie wspak" #: src/view.c:1063 msgid "Pause" msgstr "Pauza" #: src/view.c:1079 msgid "About MP3 export..." msgstr "O eksporcie do formatu MP3..." #: src/view.c:1085 msgid "About Sweep ..." msgstr "Sweep Informacje" #: src/view.c:1249 src/view.c:1335 msgid "File properties ..." msgstr "WÅ‚aÅ›ciwoÅ›ci pliku ..." #: src/view.c:1294 msgid "Paste" msgstr "Wklej" #: src/view.c:1791 msgid "Save as ..." msgstr "Zapisz jako ..." #: src/view.c:1811 msgid "Cut selection to clipboard" msgstr "Wytnij zaznaczenie do schowka" #: src/view.c:1821 msgid "Copy selection to clipboard" msgstr "Kopiuj zaznaczenie do schowka" #: src/view.c:1832 msgid "Paste: insert clipboard at cursor position" msgstr "Wklej: wstaw zawartość schowka na pozycjÄ™ kursora" #: src/view.c:1843 msgid "Paste: mix clipboard in from cursor position" msgstr "Wklej: miksuj zawartość schowka od pozycji kursora" #: src/view.c:1854 msgid "Paste: fade clipboard in from cursor position" msgstr "Wstaw: wyciszaj zawartość schowka od pozycji kursora" #: src/view.c:1924 #, fuzzy msgid "Hand tool" msgstr "NarzÄ™dzie ołówek" #: src/view.c:1932 msgid "Selector tool" msgstr "NarzÄ™dzie do wybierania" #: src/view.c:1944 msgid "\"Scrubby\" the scrub tool" msgstr "\"Scrubby\" narzÄ™dzie do szorowania" #: src/view.c:1954 msgid "Pencil tool" msgstr "NarzÄ™dzie ołówek" #: src/view.c:1962 msgid "Noise tool" msgstr "NarzÄ™dzie szumu" #: src/view.c:2052 msgid "Visible length" msgstr "Widoczna dÅ‚ugość" #: src/view.c:2171 msgid "Vertical zoom [Shift + Arrow Up/Down]" msgstr "PowiÄ™kszenie pionowe [Shift + Arrow Up/Down]" #: src/view.c:2301 msgid "Record ..." msgstr "Zapis ..." #: src/view.c:2377 msgid "Reverse mode playback (toggle)" msgstr "Odtwarzanie w trybie odwrotnym (włącznik)" #: src/view.c:2395 msgid "Loop mode playback (toggle)" msgstr "Odtwarzanie w trybie zapÄ™tlenia (włącznik)" #: src/view.c:2419 #, fuzzy msgid "Play all / Pause" msgstr "Odtwórz wszystko / Pauza [Ctrl+Space]" #: src/view.c:2436 #, fuzzy msgid "Play selection / Pause" msgstr "Odtwórz zaznaczenie / Pauza [Space]" #: src/view.c:2452 #, fuzzy msgid "Stop playback" msgstr "Zatrzymaj odtwarzanie [Enter]" #: src/view.c:2519 msgid "Muted playback (toggle)" msgstr "Odtwarzanie wyciszone (włącznik)" #: src/view.c:2539 src/view.c:2557 msgid "Playback gain slider (volume)" msgstr "Suwak wzmocnienia odtwarzania (gÅ‚oÅ›ność)" #: src/view.c:2569 msgid "Monitor (toggle)" msgstr "Monitor (włącznik)" #: src/view.c:2587 msgid "SYNC" msgstr "" #: src/view.c:3144 #, c-format msgid "Remembered as area %d" msgstr "ZapamiÄ™tany jako obszar %d" #: src/view.c:3162 #, c-format msgid "No area remembered as %d" msgstr "Brak obszaru zapamiÄ™tanego jako %d" #: src/view.c:3165 #, c-format msgid "Zoomed to area %d" msgstr "PowiÄ™kszenie do obszaru %d" #: src/view.c:3347 src/view.c:3351 msgid "Scrub!" msgstr "Szoruj!" #: src/view.c:3347 src/view.c:3353 msgid "Ready" msgstr "Gotowy" #: src/view.c:3399 #, c-format msgid "%s has been modified. Close anyway?" msgstr "%s zostaÅ‚ zmodyfikowany. Zamknąć mimo to?" #: src/view.c:3402 msgid "Don't close" msgstr "Nie zamykaj" #: src/view.c:3449 src/view.c:3462 msgid "*" msgstr "*" #: src/view.c:3465 msgid "Empty" msgstr "Pusty" #: plugins/byenergy/byenergy.c:58 msgid "Select regions above threshold" msgstr "Zaznacz obszary powyżej progu" #: plugins/byenergy/byenergy.c:59 msgid "" "Whether to select those regions lying above a given threshold or below it." msgstr "" "Czy zaznaczyć tamte obszary leżące powyżej podanego progu lub poniżej niego." #: plugins/byenergy/byenergy.c:66 msgid "Resolution" msgstr "Rozdzielczość" #: plugins/byenergy/byenergy.c:67 msgid "Width of energy detection window (s)" msgstr "Szerokość okna detekcji energii (s)" #: plugins/byenergy/byenergy.c:73 msgid "Threshold" msgstr "Próg" #: plugins/byenergy/byenergy.c:74 msgid "Energy level to detect [0.0 - 1.0]" msgstr "Poziom detekcji energii [0.0 - 1.0]" #: plugins/byenergy/byenergy.c:80 msgid "Minimum duration" msgstr "Minimalny czas trwania" #: plugins/byenergy/byenergy.c:81 msgid "Shortest region of selection to detect (s)" msgstr "Najkrótszy obszar zaznaczenia do detekcji (s)" #: plugins/byenergy/byenergy.c:87 msgid "Maximum interruption" msgstr "Maksymalne przerwanie" #: plugins/byenergy/byenergy.c:88 msgid "Longest length of sound above threshold to allow (s)" msgstr "NajdÅ‚uższy dzwiÄ™k powyżej progu (s)" #: plugins/byenergy/byenergy.c:227 plugins/byenergy/byenergy.c:232 msgid "Select by energy" msgstr "Zaznacz po energii" #: plugins/byenergy/byenergy.c:233 msgid "Select loud or quiet regions" msgstr "Zaznacz gÅ‚oÅ›ne lub ciche obszary" #: plugins/echo/echo.c:53 msgid "Delay" msgstr "Opóźnienie" #: plugins/echo/echo.c:54 msgid "Time to delay by" msgstr "Czas do opóźnienia przez" #: plugins/echo/echo.c:62 msgid "Gain with which to mix in delayed signal" msgstr "Wzmonienie z jakim miksować opóźniony sygnaÅ‚" #: plugins/echo/echo.c:107 plugins/echo/echo.c:113 msgid "Echo" msgstr "Echo" #: plugins/echo/echo.c:114 msgid "Apply an echo to selected regions of a sample" msgstr "Zastosuj echo do zaznaczonego obszaru próbki." #: plugins/normalise/normalise.c:128 plugins/normalise/normalise.c:133 msgid "Normalise" msgstr "Normalizacja" #: plugins/normalise/normalise.c:134 msgid "Alter the sample's amplitude to lie between 1.0 and -1.0" msgstr "Zmodyfikuj amplitudÄ™ próbki tak aby mieÅ›ciÅ‚a siÄ™ pomiÄ™dzy 1.0 a -1.0" #: plugins/reverse/reverse.c:129 plugins/reverse/reverse.c:134 #: plugins/reverse/reverse.c:140 msgid "Reverse" msgstr "Odwrócenie" #: plugins/reverse/reverse.c:141 msgid "Reverse selected regions of a sample" msgstr "Odwróć zaznaczony obszar próbki" #: plugins/example/example.c:37 plugins/example/example.c:86 msgid "With a fork" msgstr "Z widelcem" #: plugins/example/example.c:38 msgid "With a spoon" msgstr "Z Å‚yżkÄ…" #: plugins/example/example.c:39 msgid "With false teeth" msgstr "Z faÅ‚szywymi zÄ™bami" #: plugins/example/example.c:40 msgid "With Nigel's bum" msgstr "Z uderzeniem Nigela" #: plugins/example/example.c:56 msgid "Flim" msgstr "Film" #: plugins/example/example.c:57 msgid "Should you manage your flim?" msgstr "Czy nie powinieneÅ› zarzÄ…dzać swoim filmem?" #: plugins/example/example.c:64 msgid "Beans" msgstr "Fasola" #: plugins/example/example.c:65 msgid "Method of eating beans" msgstr "Metoda zjadania fasoli" #: plugins/example/example.c:72 msgid "Pants methodology" msgstr "Metodologia spodni" #: plugins/example/example.c:73 msgid "How many pants should you wear per day?" msgstr "Jak dużo spodni powinieneÅ› nosić na dzieÅ„?" #: plugins/example/example.c:122 plugins/example/example.c:129 msgid "Example Filter Region" msgstr "PrzykÅ‚adowy Filtr Regionu" #: plugins/example/example.c:130 msgid "An example filter region plugin" msgstr "PrzykÅ‚adowa wtyczka filtru regionu" #: plugins/fade/fade.c:148 plugins/fade/fade.c:161 msgid "Fade in" msgstr "ZgÅ‚aÅ›nianie" #: plugins/fade/fade.c:156 plugins/fade/fade.c:177 msgid "Fade out" msgstr "Wyciszanie" #: plugins/fade/fade.c:162 msgid "Apply a linear fade to the selection, fading in from silence" msgstr "Zastosuj liniowe zgÅ‚aÅ›nianie do zaznaczenia, zgÅ‚aÅ›niajÄ…c od ciszy" #: plugins/fade/fade.c:178 msgid "Apply a linear fade to the selection, fading out to silence" msgstr "Zastosuj liniowe wyciszenie do zaznaczenia, wyciszajÄ…c do ciszy" #~ msgid "Sweep: Load file" #~ msgstr "Sweep: ZaÅ‚aduj plik" #~ msgid "Go to beginning [Ctrl+Home]" #~ msgstr "Idź do poczÄ…tku [Ctrl+Home]" #~ msgid "Go to the end [Ctrl+End]" #~ msgstr "Idź do koÅ„ca [Ctrl+End]" sweep-0.9.3/po/hu.po0000644000175000017500000013415710777670577013020 0ustar useruser# Hungarian translation file for sweep. # Copyright (C) 2000 Free Software Foundation, Inc. # Gergely Nagy , 2000 # # #: src/sample-display.c:222 msgid "" msgstr "" "Project-Id-Version: sweep 0.0.9\n" "Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/\n" "POT-Creation-Date: 2008-04-11 15:11+0100\n" "PO-Revision-Date: 2000-05-15 22:MI+0200\n" "Last-Translator: Gergely Nagy \n" "Language-Team: Hungarian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-2\n" "Content-Transfer-Encoding: 8bit\n" #: src/main.c:89 msgid "Welcome to Sweep" msgstr "" #: src/main.c:90 msgid "" "Hello, my name is Scrubby. Welcome to Sweep!\n" "\n" "Would you like to create a new file or load an existing file?" msgstr "" #: src/main.c:94 #, fuzzy msgid "Create new file" msgstr "Beillesztés" #: src/main.c:94 msgid "Load existing file" msgstr "" #: src/main.c:129 msgid "WARNING: Build includes incomplete development code.\n" msgstr "" #: src/main.c:188 msgid "Sweep version" msgstr "Sweep verzió" #: src/main.c:189 #, fuzzy msgid "Sweep plugin API version" msgstr "Sweep verzió" #: src/main.c:195 #, c-format msgid "Usage: %s [option ...] [files ...]\n" msgstr "Használat: %s [opció ...] [fájlok ...]\n" #: src/main.c:196 msgid "Valid options are:\n" msgstr "Opciók:\n" #: src/main.c:197 msgid " -h --help Output this help.\n" msgstr " -h --help Ez a képernyõ.\n" #: src/main.c:198 msgid " -v --version Output version info.\n" msgstr " -v --version Verziószám kírása.\n" #: src/main.c:199 msgid " --display Use the designated X display.\n" msgstr " --display A jelzett X kijelzõ használata.\n" #: src/main.c:200 msgid "" " --ignore-failed-lock Continue when attempt to lock the\n" " preferences file fails. For use when\n" " the users home directory is on an NFS\n" " file system. (possibly unsafe) \n" msgstr "" #: src/main.c:206 msgid " --no-toolbox Do not show the toolbox window.\n" msgstr "" #: src/about_dialog.c:99 #, fuzzy msgid "This is Sweep version" msgstr "Sweep verzió" #: src/about_dialog.c:119 msgid "http://sweep.sourceforge.net/" msgstr "" #: src/callbacks.c:926 src/callbacks.c:939 src/edit.c:1568 src/edit.c:1642 #: src/edit.c:1726 msgid "Clipboard empty" msgstr "" #: src/channelops.c:146 #, fuzzy, c-format msgid "Duplicate to %d channels" msgstr "Duplázás" #: src/channelops.c:148 #, c-format msgid "Duplicate from %d to %d channels" msgstr "" #: src/channelops.c:207 #, fuzzy msgid "Sweep: Duplicate channel" msgstr "Beillesztés" #: src/channelops.c:214 src/channelops.c:698 #, c-format msgid "Currently: %d channels" msgstr "" #: src/channelops.c:221 src/channelops.c:704 msgid "Output channels" msgstr "" #: src/channelops.c:231 src/channelops.c:714 src/driver.c:374 #: src/file_sndfile1.c:285 src/param.c:779 src/question_dialogs.c:144 #: src/question_dialogs.c:204 src/question_dialogs.c:253 #: src/sweep_sample.c:1918 src/undo_dialog.c:440 msgid "OK" msgstr "" #: src/channelops.c:242 src/channelops.c:725 src/driver.c:387 #: src/file_sndfile1.c:295 src/param.c:788 src/question_dialogs.c:158 #: src/view.c:543 src/view.c:2650 msgid "Cancel" msgstr "" #: src/channelops.c:347 src/view.c:361 msgid "Mix down to mono" msgstr "" #: src/channelops.c:445 src/view.c:340 msgid "Remove left channel" msgstr "" #: src/channelops.c:455 src/view.c:349 msgid "Remove right channel" msgstr "" #: src/channelops.c:539 msgid "Swap channels" msgstr "" #: src/channelops.c:541 #, fuzzy msgid "Not stereo" msgstr "Stereo" #: src/channelops.c:643 #, c-format msgid "Convert from %d to %d channels" msgstr "" #: src/channelops.c:692 msgid "Sweep: Add/Remove channels" msgstr "" #: src/driver.c:369 msgid "Sweep: audio device configuration" msgstr "" #: src/driver.c:410 msgid "Changes to device settings will take effect on next playback." msgstr "" #: src/driver.c:424 #, fuzzy msgid "Device name" msgstr "Fájl" #: src/driver.c:430 msgid "Set the main device for playback and recording" msgstr "" #: src/driver.c:440 msgid "Main device:" msgstr "" #: src/driver.c:454 src/driver.c:636 src/samplerate.c:570 #, fuzzy msgid "Default" msgstr "Törlés" #: src/driver.c:467 msgid "Use a different device for monitoring" msgstr "" #: src/driver.c:479 msgid "Monitor output:" msgstr "" #: src/driver.c:504 #, fuzzy msgid "Swap" msgstr "Sweep" #: src/driver.c:512 msgid "Swap main and monitor devices." msgstr "" #: src/driver.c:521 src/driver.c:622 src/file_speex.c:1957 #: src/file_vorbis.c:1348 src/samplerate.c:556 src/sweep_sample.c:532 #, fuzzy msgid "Reset" msgstr "Visszaállítás" #: src/driver.c:529 msgid "Reset to the last remembered device names." msgstr "" #: src/driver.c:535 src/file_speex.c:1971 src/file_vorbis.c:1362 #: src/param.c:747 src/sweep_sample.c:543 msgid "Defaults" msgstr "" #: src/driver.c:543 msgid "Set to default device names." msgstr "" #: src/driver.c:554 msgid "Device buffering" msgstr "" #: src/driver.c:564 msgid "" "Low latency /\n" "More dropouts" msgstr "" #: src/driver.c:586 msgid "" "High latency /\n" "Fewer dropouts" msgstr "" #: src/driver.c:590 msgid "" "Varying this slider controls the lag between cursor movements and playback. " "This is particularly noticeable when \"scrubbing\" during playback.\n" "\n" "Lower values improve responsiveness but may degrade audio quality on heavily-" "loaded systems." msgstr "" #: src/driver.c:609 msgid "Remember these options" msgstr "" #: src/driver.c:630 msgid "Reset to the last remembered device buffering." msgstr "" #: src/driver.c:644 msgid "Set to default device buffering." msgstr "" #: src/edit.c:1291 #, fuzzy msgid "No selection to copy" msgstr "Kiválasztott rész ciklikus lejátszása" #: src/edit.c:1308 src/view.c:572 src/view.c:1150 msgid "Copy" msgstr "Másolás" #: src/edit.c:1342 #, fuzzy msgid "No selection to cut" msgstr "Kiválasztott rész ciklikus lejátszása" #: src/edit.c:1358 src/view.c:568 src/view.c:1144 msgid "Cut" msgstr "Kivágás" #: src/edit.c:1388 #, fuzzy msgid "No selection to clear" msgstr "Kiválasztott rész ciklikus lejátszása" #: src/edit.c:1404 src/view.c:576 src/view.c:1156 msgid "Clear" msgstr "Törlés" #: src/edit.c:1430 #, fuzzy msgid "No selection to delete" msgstr "Kiválasztás" #: src/edit.c:1447 src/view.c:564 msgid "Delete" msgstr "Törlés" #: src/edit.c:1482 msgid "Nothing to crop out" msgstr "" #: src/edit.c:1498 src/view.c:580 src/view.c:1162 src/view.c:1868 #, fuzzy msgid "Crop" msgstr "Másolás" #: src/edit.c:1572 src/edit.c:1646 src/edit.c:1730 msgid "Clipboard data has incompatible format" msgstr "" #: src/edit.c:1590 #, fuzzy msgid "Paste insert" msgstr "Beillesztés mint új anyag" #: src/edit.c:1669 #, fuzzy msgid "Paste mix" msgstr "Beillesztés" #: src/edit.c:1757 #, fuzzy msgid "Paste xfade" msgstr "Beillesztés mint új anyag" #: src/file_dialogs.c:73 msgid "MP3 export unsupported" msgstr "" #: src/file_dialogs.c:74 msgid "" "Export to MP3 format cannot legally be supported in free software\n" "due to patent licensing restrictions.\n" "\n" "Please use Ogg Vorbis format instead, which\n" "provides better quality and is free." msgstr "" #: src/file_dialogs.c:99 msgid "Raw PCM (headerless)" msgstr "" #: src/file_dialogs.c:157 #, c-format msgid "%s does not exist." msgstr "" #: src/file_dialogs.c:158 msgid "Directory does not exist" msgstr "" #: src/file_dialogs.c:262 #, c-format msgid "" "Unable to read\n" "%s" msgstr "" #: src/file_dialogs.c:289 #, fuzzy msgid "Sweep: Open Files" msgstr "Beillesztés" #: src/file_dialogs.c:370 #, c-format msgid "" "Are you sure you want to revert %s to\n" "%s?\n" "\n" "All changes and undo information will be lost." msgstr "" #: src/file_dialogs.c:374 #, fuzzy msgid "Revert file" msgstr "Visszaállítás" #: src/file_dialogs.c:375 src/view.c:509 msgid "Revert" msgstr "Visszaállítás" #: src/file_dialogs.c:375 msgid "Don't revert" msgstr "" #: src/file_dialogs.c:545 src/file_dialogs.c:824 #, c-format msgid "Save as %s cancelled" msgstr "" #: src/file_dialogs.c:582 msgid "By extension" msgstr "" #: src/file_dialogs.c:640 msgid "MP3 (Use Ogg Vorbis instead)" msgstr "" #: src/file_dialogs.c:707 #, fuzzy msgid "Sweep: Save file" msgstr "Beillesztés" #: src/file_dialogs.c:721 msgid "Save Options" msgstr "" #: src/file_dialogs.c:730 msgid "Determine File Type:" msgstr "" #: src/file_dialogs.c:810 #, c-format msgid "" "You are not allowed to write to\n" "%s" msgstr "" #: src/file_dialogs.c:812 #, c-format msgid "%s exists. Overwrite?" msgstr "" #: src/file_dialogs.c:814 msgid "File exists" msgstr "" #: src/file_dialogs.c:815 msgid "Overwrite" msgstr "" #: src/file_dialogs.c:815 msgid "Don't overwrite" msgstr "" #: src/file_dialogs.c:887 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Are you sure you want to save?" msgstr "" #: src/file_dialogs.c:891 src/sweep_undo.c:331 src/view.c:3401 msgid "File modified" msgstr "" #: src/file_dialogs.c:892 src/file_speex.c:2127 src/file_vorbis.c:1611 #: src/view.c:501 src/view.c:1782 msgid "Save" msgstr "Mentés" #: src/file_dialogs.c:892 src/file_speex.c:2138 src/file_vorbis.c:1622 msgid "Don't save" msgstr "" #: src/file_sndfile1.c:327 msgid "Powered by libsndfile" msgstr "" #: src/file_sndfile1.c:354 msgid "Encoding" msgstr "" #: src/file_sndfile1.c:375 msgid "Encoding:" msgstr "" #: src/file_sndfile1.c:447 #, fuzzy msgid "Sampling rate:" msgstr "Hanganyag" #: src/file_sndfile1.c:480 src/file_speex.c:2078 src/file_vorbis.c:1562 #: src/samplerate.c:584 #, fuzzy msgid "About" msgstr "Névjegy..." #: src/file_sndfile1.c:496 msgid "" "Libsndfile is a C library by Erik de Castro Lopo\n" "for reading and writing files containing sampled sound." msgstr "" #: src/file_sndfile1.c:507 msgid "" "This user interface by Erik de Castro Lopo\n" " and Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" #: src/file_sndfile1.c:550 #, fuzzy msgid "Sweep: Save PCM options" msgstr "Sweep verzió" #: src/file_sndfile1.c:719 msgid "Sweep: Load Raw PCM options" msgstr "" #: src/file_sndfile1.c:771 src/file_mad.c:435 src/file_speex.c:577 #: src/file_vorbis.c:324 #, c-format msgid "Loading %s" msgstr "" #: src/file_sndfile1.c:998 src/file_speex.c:1074 src/file_vorbis.c:702 #, c-format msgid "Saving %s" msgstr "" #: src/file_speex.c:1016 src/file_speex.c:1036 msgid "Speex encoding results" msgstr "" #: src/file_speex.c:1208 msgid "Narrowband ~8 kHz (telephone quality)" msgstr "" #: src/file_speex.c:1209 msgid "Wideband ~16 kHz" msgstr "" #: src/file_speex.c:1211 msgid "Ultra-wideband 32-48 kHz" msgstr "" #: src/file_speex.c:1218 msgid "Constant bitrate (CBR) with no features" msgstr "" #: src/file_speex.c:1221 msgid "CBR with Voice Activity Detection (VAD)" msgstr "" #: src/file_speex.c:1222 msgid "VAD generates low bitrate comfort noise to replace non-speech" msgstr "" #: src/file_speex.c:1225 msgid "CBR with VAD and Discontinuous Transmission (DTX)" msgstr "" #: src/file_speex.c:1226 msgid "DTX marks extended pauses with a minimum bitrate signal" msgstr "" #: src/file_speex.c:1229 msgid "Variable bitrate (VBR) with VAD" msgstr "" #: src/file_speex.c:1230 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech; this " "selection uses VBR without DTX, which may improve performance compared to " "full VBR in the presence of background noise." msgstr "" #: src/file_speex.c:1235 msgid "Variable bitrate (VBR) with all features" msgstr "" #: src/file_speex.c:1236 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech, and handles " "pauses using VAD and DTX" msgstr "" #: src/file_speex.c:1240 msgid "Constant bitrate (CBR)" msgstr "" #: src/file_speex.c:1242 msgid "Variable bitrate (VBR)" msgstr "" #: src/file_speex.c:1243 msgid "VBR allows the bitrate to adapt to the complexity of the speech." msgstr "" #: src/file_speex.c:1298 src/file_speex.c:1803 msgid "Average bitrate" msgstr "" #: src/file_speex.c:1301 msgid "Maximum bitrate" msgstr "" #: src/file_speex.c:1494 src/file_vorbis.c:1013 msgid "Hack the planet!" msgstr "" #: src/file_speex.c:1580 #, fuzzy msgid "Sweep: Speex save options" msgstr "Sweep verzió" #: src/file_speex.c:1631 msgid "Speex encoding" msgstr "" #: src/file_speex.c:1644 #, fuzzy msgid "Mode:" msgstr "Mozgatás" #: src/file_speex.c:1670 #, fuzzy msgid "Auto" msgstr "Névjegy..." #: src/file_speex.c:1679 msgid "" "Automatically select the encoding mode based on the sampling rate of the " "file." msgstr "" #: src/file_speex.c:1732 src/file_vorbis.c:1160 msgid "Encoding quality:" msgstr "" #: src/file_speex.c:1775 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file)." msgstr "" #: src/file_speex.c:1785 msgid "Enable bitrate management" msgstr "" #: src/file_speex.c:1798 msgid "" "For non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For " "VBR encoding, this sets the average bitrate." msgstr "" #: src/file_speex.c:1821 msgid "bps" msgstr "" #: src/file_speex.c:1827 msgid "Extra" msgstr "" #: src/file_speex.c:1849 msgid "Encoding complexity:" msgstr "" #: src/file_speex.c:1888 msgid "" "This sets the encoding speed/quality tradeoff between 0 (faster encoding) " "and 10 (slower encoding)" msgstr "" #: src/file_speex.c:1904 msgid "Speex frames per Ogg packet:" msgstr "" #: src/file_speex.c:1930 msgid "" "Number of Speex frames to pack into each Ogg packet. Higher values save " "space at low bitrates." msgstr "" #: src/file_speex.c:1945 src/file_vorbis.c:1336 msgid "Remember these encoding options" msgstr "" #: src/file_speex.c:1965 src/file_vorbis.c:1356 msgid "Reset to the last remembered encoding options." msgstr "" #: src/file_speex.c:1980 msgid "Automatically select best encoding options for this file." msgstr "" #: src/file_speex.c:1985 src/file_vorbis.c:1469 msgid "Ogg stream" msgstr "" #: src/file_speex.c:1998 src/file_vorbis.c:1482 msgid "Ogg stream serial number:" msgstr "" #: src/file_speex.c:2019 src/file_vorbis.c:1503 msgid "Remember this serial number" msgstr "" #: src/file_speex.c:2029 src/file_vorbis.c:1513 msgid "" "Remember this serial number for future re-use.\n" "USE OF THIS OPTION IS NOT RECOMMENDED.\n" "Each encoded file should have a different serial number; re-use of Ogg " "serial numbers in different files may create incompatabilities with " "streaming applications. This option is provided for bitstream engineering " "purposes only.\n" "If this option is not checked, new serial numbers will be randomly generated " "for each file encoded." msgstr "" #: src/file_speex.c:2056 src/file_vorbis.c:1540 msgid "Randomize!" msgstr "" #: src/file_speex.c:2063 src/file_vorbis.c:1547 msgid "" "Generate a random serial number for the Ogg bitstream. The number will " "change while this button is held down." msgstr "" #: src/file_speex.c:2094 msgid "" "Speex is a high quality speech codec designed for\n" "voice over IP (VoIP) and file-based compression.\n" "It is free, open and unpatented." msgstr "" #: src/file_speex.c:2105 msgid "" "Ogg, Speex, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" #: src/file_speex.c:2120 src/file_vorbis.c:1604 src/samplerate.c:611 msgid "" "This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" #: src/file_vorbis.c:356 #, c-format msgid "" "Decoding %s\n" "Encoded by: %s\n" "\n" "%s" msgstr "" #: src/file_vorbis.c:470 msgid "Unsupported encoding mode" msgstr "" #: src/file_vorbis.c:473 msgid "Invalid encoding options" msgstr "" #: src/file_vorbis.c:643 src/file_vorbis.c:663 msgid "Ogg Vorbis encoding results" msgstr "" #: src/file_vorbis.c:1089 #, fuzzy msgid "Sweep: Ogg Vorbis save options" msgstr "Sweep verzió" #: src/file_vorbis.c:1148 msgid "Vorbis encoding" msgstr "" #: src/file_vorbis.c:1195 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file) using variable bitrate mode (VBR)." msgstr "" #: src/file_vorbis.c:1205 msgid "Enable bitrate management engine" msgstr "" #: src/file_vorbis.c:1211 msgid "" "This enables average bitrate mode (ABR). You must suggest a nominal average " "bitrate and may specify minimum and maximum bounds.\n" "For best results it is generally recommended that you use the variable " "bitrate 'encoding quality' control (above) instead." msgstr "" #: src/file_vorbis.c:1221 msgid "Bitrate management engine" msgstr "" #: src/file_vorbis.c:1247 msgid "Nominal bitrate (ABR):" msgstr "" #: src/file_vorbis.c:1260 msgid "" "Specify a nominal bitrate. Attempt to encode at a bitrate averaging this." msgstr "" #: src/file_vorbis.c:1264 src/file_vorbis.c:1293 src/file_vorbis.c:1323 msgid "kbps" msgstr "" #: src/file_vorbis.c:1276 msgid "Minimum bitrate:" msgstr "" #: src/file_vorbis.c:1289 msgid "" "Specify a minimum bitrate, useful for encoding for a fixed-size channel. " "(Optional)" msgstr "" #: src/file_vorbis.c:1306 msgid "Maximum bitrate:" msgstr "" #: src/file_vorbis.c:1319 msgid "" "Specify a maximum bitrate, useful for streaming applications. (Optional)" msgstr "" #: src/file_vorbis.c:1370 msgid "Set to default encoding options." msgstr "" #: src/file_vorbis.c:1377 msgid "Metadata" msgstr "" #: src/file_vorbis.c:1399 #, fuzzy msgid "Title:" msgstr "Fájl" #: src/file_vorbis.c:1399 msgid "Track/Work name" msgstr "" #: src/file_vorbis.c:1401 msgid "Version:" msgstr "" #: src/file_vorbis.c:1402 msgid "" "The version field may be used to differentiate multiple versions of the same " "track title in a single collection. (e.g. remix info)" msgstr "" #: src/file_vorbis.c:1406 msgid "Album:" msgstr "" #: src/file_vorbis.c:1407 msgid "The collection name to which this track belongs" msgstr "" #: src/file_vorbis.c:1409 msgid "Artist:" msgstr "" #: src/file_vorbis.c:1410 msgid "" "The artist generally considered responsible for the work. In popular music " "this is usually the performing band or singer. For classical music it would " "be the composer. For an audio book it would be the author of the original " "text." msgstr "" #: src/file_vorbis.c:1416 msgid "Performer:" msgstr "" #: src/file_vorbis.c:1417 msgid "" "The artist(s) who performed the work. In classical music this would be the " "conductor, orchestra, soloists. In an audio book it would be the actor who " "did the reading. In popular music this is typically the same as the ARTIST " "and is omitted." msgstr "" #: src/file_vorbis.c:1424 msgid "Copyright:" msgstr "" #: src/file_vorbis.c:1425 msgid "" "Copyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'" msgstr "" #: src/file_vorbis.c:1428 msgid "License:" msgstr "" #: src/file_vorbis.c:1429 msgid "" "License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL " "to a license such as a Creative Commons license (\"www.creativecommons.org/" "blahblah/license.html\") or the EFF Open Audio License ('distributed under " "the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/" "eff_oal.html for details'), etc." msgstr "" #: src/file_vorbis.c:1438 msgid "Organization:" msgstr "" #: src/file_vorbis.c:1439 msgid "Name of the organization producing the track (i.e. the 'record label')" msgstr "" #: src/file_vorbis.c:1442 msgid "Description:" msgstr "" #: src/file_vorbis.c:1443 msgid "A short text description of the contents" msgstr "" #: src/file_vorbis.c:1445 msgid "Genre:" msgstr "" #: src/file_vorbis.c:1446 msgid "A short text indication of music genre" msgstr "" #: src/file_vorbis.c:1448 #, fuzzy msgid "Date:" msgstr "Beillesztés" #: src/file_vorbis.c:1449 msgid "Date the track was recorded" msgstr "" #: src/file_vorbis.c:1451 #, fuzzy msgid "Location:" msgstr "Kiválasztott rész ciklikus lejátszása" #: src/file_vorbis.c:1452 msgid "Location where track was recorded" msgstr "" #: src/file_vorbis.c:1454 msgid "Contact:" msgstr "" #: src/file_vorbis.c:1455 msgid "" "Contact information for the creators or distributors of the track. This " "could be a URL, an email address, the physical address of the producing " "label." msgstr "" #: src/file_vorbis.c:1460 msgid "ISRC:" msgstr "" #: src/file_vorbis.c:1461 msgid "" "ISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-" "content/online/isrc_intro.html) for more information on ISRC numbers." msgstr "" #: src/file_vorbis.c:1578 msgid "" "Ogg Vorbis is a high quality general purpose\n" "perceptual audio codec. It is free, open and\n" "unpatented." msgstr "" #: src/file_vorbis.c:1589 msgid "" "Ogg, Vorbis, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" #: src/head.c:408 src/view.c:2324 msgid "Cursor position (indicator)" msgstr "" #: src/head.c:449 msgid "Reverse mode (toggle)" msgstr "" #: src/head.c:467 msgid "Loop mode recording (toggle)" msgstr "" #: src/head.c:486 #, fuzzy msgid "Record into selection" msgstr "A kiválasztott rész méretére nagyítás" #: src/head.c:503 src/view.c:1068 msgid "Stop" msgstr "Állj" #: src/head.c:516 src/view.c:2469 msgid "Go to beginning" msgstr "" #: src/head.c:527 src/view.c:2480 #, fuzzy msgid "Rewind" msgstr "Visszavonás semlegesítése" #: src/head.c:540 src/view.c:2492 msgid "Fast forward" msgstr "" #: src/head.c:555 src/view.c:2505 msgid "Go to the end" msgstr "" #: src/interface.c:327 msgid "Sweep" msgstr "Sweep" #: src/interface.c:352 src/view.c:446 msgid "File" msgstr "Fájl" #: src/interface.c:357 msgid "New" msgstr "Új" #: src/interface.c:366 msgid "Open" msgstr "Megnyitás" #: src/interface.c:375 src/sweep_sample.c:800 src/sweep_sample.c:808 #: src/view.c:529 msgid "Quit" msgstr "Kilépés" #: src/interface.c:386 src/view.c:1073 msgid "Help" msgstr "Segítség" #: src/interface.c:391 msgid "About..." msgstr "Névjegy..." #: src/interface.c:414 src/view.c:618 msgid "Select" msgstr "Kiválasztás" #: src/interface.c:415 msgid "Select regions of a sample" msgstr "A hanganyag egyes részeinek kiválasztása" #: src/interface.c:416 msgid "" "This tool allows you to select regions of a sample. You can then apply edits " "and effects to the: selected regions. Hold down shift whilst selecting to " "add discontinuous regions to the selection." msgstr "" "Ez az eszköz lehetõvé teszi a hanganyag egyes részeinek kiválasztását. Ezek " "után minden mûvelet erre a részre fog korlátozódni. Tartsa nyomva a shift-et " "választás közben, hogy nem folyotnos részeket tudnjon kiválasztani." #: src/interface.c:433 msgid "Move" msgstr "Mozgatás" #: src/interface.c:434 msgid "Move regions in a sample" msgstr "A hanganyag egyes részeinek mozgatása" #: src/interface.c:435 msgid "With this tool you can move selected regions of a sample." msgstr "Ezzel az eszközzel a hanganyag kiválasztott részeit lehet mozgatni." #: src/interface.c:447 msgid "Scrub" msgstr "" #: src/interface.c:448 msgid "Locate sounds directly" msgstr "" #: src/interface.c:449 msgid "" "Place the play marker on a sample. Click anywhere in a view to instantly " "move the playback position to that part of the sample." msgstr "" #: src/interface.c:466 msgid "Zoom" msgstr "Nagyítás" #: src/interface.c:467 msgid "Zoom in & out" msgstr "Nagyítás és kicsinyítés" #: src/interface.c:468 msgid "" "Zoom in and out of a view. Click anywhere in a view to zoom in on that part " "of the sample. Hold down shift and click on the view to zoom out." msgstr "" "Nézet kicsínyítése és nagyítása. Villantson bárhova a nézeten belül, hogy " "arraa részre fokuszálodjón a nagyítás. Tartsa lenyomva a shift-et klikkelés " "közben a kicsinyítéshez" #: src/interface.c:484 msgid "Pencil" msgstr "" #: src/interface.c:485 msgid "Edit PCM sample values" msgstr "" #: src/interface.c:486 msgid "When zoomed down to individual samples, click to edit" msgstr "" #: src/interface.c:497 #, fuzzy msgid "Noise" msgstr "Normalizálás" #: src/interface.c:498 msgid "Add noise" msgstr "" #: src/interface.c:499 msgid "Randomise PCM values" msgstr "" #: src/notes.c:61 msgid "C3" msgstr "" #: src/notes.c:62 msgid "C#3" msgstr "" #: src/notes.c:63 msgid "D3" msgstr "" #: src/notes.c:64 msgid "Eb3" msgstr "" #: src/notes.c:65 msgid "E3" msgstr "" #: src/notes.c:66 msgid "F3" msgstr "" #: src/notes.c:67 msgid "F#3" msgstr "" #: src/notes.c:68 msgid "G3" msgstr "" #: src/notes.c:69 msgid "G#3" msgstr "" #: src/notes.c:70 msgid "A3" msgstr "" #: src/notes.c:71 msgid "Bb3" msgstr "" #: src/notes.c:72 msgid "B3" msgstr "" #: src/notes.c:74 msgid "C4" msgstr "" #: src/notes.c:76 msgid "C#4" msgstr "" #: src/notes.c:77 msgid "D4" msgstr "" #: src/notes.c:78 msgid "Eb4" msgstr "" #: src/notes.c:79 msgid "E4" msgstr "" #: src/notes.c:80 msgid "F4" msgstr "" #: src/notes.c:81 msgid "F#4" msgstr "" #: src/notes.c:82 msgid "G4" msgstr "" #: src/notes.c:83 msgid "G#4" msgstr "" #: src/notes.c:84 msgid "A4" msgstr "" #: src/notes.c:85 msgid "Bb4" msgstr "" #: src/notes.c:86 msgid "B4" msgstr "" #: src/notes.c:88 msgid "C5" msgstr "" #: src/notes.c:89 msgid "C#5" msgstr "" #: src/notes.c:90 msgid "D5" msgstr "" #: src/notes.c:91 msgid "D#5" msgstr "" #: src/notes.c:92 msgid "E5" msgstr "" #: src/notes.c:94 msgid "F5" msgstr "" #: src/notes.c:95 msgid "F#5" msgstr "" #: src/notes.c:96 msgid "G5" msgstr "" #: src/notes.c:97 msgid "G#5" msgstr "" #: src/notes.c:98 msgid "A5" msgstr "" #: src/notes.c:99 msgid "Bb5" msgstr "" #: src/notes.c:100 msgid "B5" msgstr "" #: src/param.c:117 #, c-format msgid "TRUE" msgstr "" #: src/param.c:118 #, c-format msgid "FALSE" msgstr "" #: src/param.c:738 msgid "Parameters" msgstr "" #: src/param.c:769 msgid "Preview" msgstr "" #: src/paste_dialogs.c:221 msgid "Start gain" msgstr "" #: src/paste_dialogs.c:223 src/record.c:489 src/record.c:507 #: plugins/echo/echo.c:61 msgid "Gain" msgstr "" #: src/paste_dialogs.c:230 #, fuzzy msgid "Sweep: Paste crossfade" msgstr "Beillesztés" #: src/paste_dialogs.c:232 #, fuzzy msgid "Sweep: Paste mix" msgstr "Beillesztés" #: src/paste_dialogs.c:257 msgid "Source" msgstr "" #: src/paste_dialogs.c:257 msgid "Clipboard" msgstr "" #: src/paste_dialogs.c:279 src/paste_dialogs.c:318 msgid "End gain" msgstr "" #: src/paste_dialogs.c:287 src/paste_dialogs.c:326 #, fuzzy msgid "Invert phase" msgstr "Megfordítás" #: src/paste_dialogs.c:295 msgid "Destination" msgstr "" #: src/paste_dialogs.c:345 msgid "" "Indicates the total duration of the clipboard, which is the maximum length " "that will be pasted." msgstr "" #: src/paste_dialogs.c:362 msgid "Clipboard duration:" msgstr "" #: src/paste_dialogs.c:375 msgid "Crossfade" msgstr "" #: src/paste_dialogs.c:375 msgid "Mix" msgstr "" #: src/paste_dialogs.c:394 msgid "Don't crossfade" msgstr "" #: src/paste_dialogs.c:394 msgid "Don't mix" msgstr "" #: src/preferences.c:62 msgid "Error creating ~/.sweep" msgstr "" #: src/preferences.c:66 #, c-format msgid "Created %s/ mode %04o\n" msgstr "" #: src/preferences.c:73 msgid "Error on ~/.sweep" msgstr "" #: src/preferences.c:82 msgid "Error setting permissions on ~/.sweep" msgstr "" #: src/preferences.c:89 msgid "Error accessing ~/.sweep" msgstr "" #: src/preferences.c:124 msgid "Error opening ~/.sweep/preferences.tdb" msgstr "" #: src/record.c:94 src/record.c:544 msgid "Ready to record" msgstr "" #: src/record.c:308 #, fuzzy msgid "No selection to record into" msgstr "Kiválasztott rész ciklikus lejátszása" #: src/record.c:446 #, fuzzy msgid "Sweep: Record" msgstr "Visszavonás semlegesítése" #: src/record.c:459 src/undo_dialog.c:376 #, fuzzy msgid "File:" msgstr "Fájl" #: src/record.c:482 msgid "Previous sound" msgstr "" #: src/record.c:496 msgid "" "This slider allows you to mix the new recording in with the previous " "contents of the buffer. Set it to -inf dB to overwrite the previous sound." msgstr "" #: src/record.c:502 #, fuzzy msgid "Recorded sound" msgstr "Visszavonás semlegesítése" #: src/record.c:514 msgid "" "This slider allows you to reduce the level of the recorded sound. Set it to " "0 dB to record without any reduction. Note that setting this to -inf dB will " "record silence." msgstr "" #: src/sample-display.c:223 #, fuzzy msgid "New selection" msgstr "Kiválasztott rész lejátszása" #: src/sample-display.c:224 #, fuzzy msgid "Selection: add/modify region" msgstr "A hanganyag egyes részeinek kiválasztása" #: src/sample-display.c:225 #, fuzzy msgid "Selection: subtract region" msgstr "A hanganyag egyes részeinek kiválasztása" #: src/samplerate.c:103 src/samplerate.c:167 #, fuzzy msgid "Resample error" msgstr "Megnyitás..." #: src/samplerate.c:104 src/samplerate.c:168 msgid "libsamplerate error" msgstr "" #: src/samplerate.c:234 #, c-format msgid "Resample from %d Hz to %d Hz" msgstr "" #: src/samplerate.c:445 #, fuzzy msgid "Sweep: Resample" msgstr "Beillesztés" #: src/samplerate.c:467 #, fuzzy msgid "Conversion" msgstr "Kiválasztott rész ciklikus lejátszása" #: src/samplerate.c:474 #, c-format msgid "Current sample rate: %d Hz" msgstr "" #: src/samplerate.c:483 #, fuzzy msgid "New sample rate" msgstr "Hanganyag" #: src/samplerate.c:494 #, fuzzy msgid "Quality" msgstr "Kilépés" #: src/samplerate.c:501 #, fuzzy msgid "Converter" msgstr "Megfordítás" #: src/samplerate.c:544 msgid "Remember this quality" msgstr "" #: src/samplerate.c:564 msgid "Reset to the last remembered quality." msgstr "" #: src/samplerate.c:578 msgid "Set to default quality." msgstr "" #: src/samplerate.c:600 msgid "" "Secret Rabbit Code (aka libsamplerate) is a\n" "Sample Rate Converter for audio by Erik de Castro Lopo\n" msgstr "" #: src/samplerate.c:620 #, fuzzy msgid "Resample" msgstr "Megnyitás..." #: src/samplerate.c:633 #, fuzzy msgid "Don't resample" msgstr "Hanganyag ciklusos lejátszása" #: src/sw_chooser.c:51 src/sw_chooser.c:66 #, fuzzy msgid "Custom" msgstr "Kivágás" #: src/sw_chooser.c:52 msgid "192000 Hz (Studio quality)" msgstr "" #: src/sw_chooser.c:53 msgid " 96000 Hz (High quality)" msgstr "" #: src/sw_chooser.c:54 msgid " 48000 Hz (DAT quality)" msgstr "" #: src/sw_chooser.c:55 msgid " 44100 Hz (CD quality)" msgstr "" #: src/sw_chooser.c:56 msgid " 32000 Hz (Ultra-wideband voice quality)" msgstr "" #: src/sw_chooser.c:57 msgid " 22050 Hz" msgstr "" #: src/sw_chooser.c:58 msgid " 16000 Hz (Wideband voice quality)" msgstr "" #: src/sw_chooser.c:59 msgid " 11025 Hz" msgstr "" #: src/sw_chooser.c:60 msgid " 8000 Hz (Narrowband voice quality)" msgstr "" #: src/sw_chooser.c:61 msgid " 4000 Hz (Low quality)" msgstr "" #: src/sw_chooser.c:67 src/view.c:3446 src/view.c:3459 src/view.c:3498 #, c-format msgid "Mono" msgstr "Mono" #: src/sw_chooser.c:68 src/view.c:3446 src/view.c:3459 src/view.c:3501 #, c-format msgid "Stereo" msgstr "Stereo" #: src/sw_chooser.c:69 msgid "Quadraphonic" msgstr "" #: src/sw_chooser.c:306 msgid "Custom: " msgstr "" #: src/sw_chooser.c:341 #, fuzzy msgid "Sampling rate" msgstr "Hanganyag" #: src/sw_chooser.c:343 msgid "Hz" msgstr "" #: src/sw_chooser.c:367 src/view.c:884 msgid "Channels" msgstr "" #: src/sw_chooser.c:369 src/view.c:3505 msgid "channels" msgstr "" #: src/sweep_filter.c:125 msgid "No selection to process" msgstr "" #: src/sweep_sample.c:119 src/view.c:3444 src/view.c:3450 src/view.c:3457 #: src/view.c:3463 msgid "Untitled" msgstr "Névtelen" #: src/sweep_sample.c:324 msgid "Overflow" msgstr "" #: src/sweep_sample.c:407 #, fuzzy msgid "Sweep: New file" msgstr "Beillesztés" #: src/sweep_sample.c:435 #, fuzzy msgid "Name:" msgstr "Hanganyag" #: src/sweep_sample.c:455 msgid "Duration:" msgstr "" #: src/sweep_sample.c:471 msgid "hh:mm:ss.xxx" msgstr "" #: src/sweep_sample.c:514 msgid "Remember this format" msgstr "" #: src/sweep_sample.c:520 msgid "" "Remember this sampling rate and channel configuration for creating new files." msgstr "" #: src/sweep_sample.c:540 msgid "Reset to the last remembered format for new files." msgstr "" #: src/sweep_sample.c:551 msgid "Set to the default format for new files." msgstr "" #: src/sweep_sample.c:567 msgid "" "Indicates the amount of data memory which will be allocated for the selected " "duration and format. All audio data is processed internally in 32 bit " "floating point format." msgstr "" #: src/sweep_sample.c:582 msgid "Data memory:" msgstr "" #: src/sweep_sample.c:594 msgid "Create" msgstr "" #: src/sweep_sample.c:606 msgid "Don't create" msgstr "" #: src/sweep_sample.c:774 msgid "Excellent!!!" msgstr "" #: src/sweep_sample.c:796 #, fuzzy msgid "Files unsaved" msgstr "Fájl" #: src/sweep_sample.c:797 msgid "" "Some files are unsaved. If you quit, all changes will be lost.\n" "\n" "Are you sure you want to quit?" msgstr "" #: src/sweep_sample.c:800 src/sweep_sample.c:808 msgid "Don't quit" msgstr "" #: src/sweep_sample.c:804 msgid "Files playing" msgstr "" #: src/sweep_sample.c:805 msgid "" "No files are unsaved, but some files are currently playing.\n" "\n" "Are you sure you want to quit?" msgstr "" #: src/sweep_sample.c:1465 src/view.c:1206 #, fuzzy msgid "Invert selection" msgstr "Kiválasztott rész ciklikus lejátszása" #: src/sweep_sample.c:1485 src/view.c:1214 src/view.c:1308 #, fuzzy msgid "Select all" msgstr "Kiválasztás" #: src/sweep_sample.c:1505 src/view.c:1222 #, fuzzy msgid "Select none" msgstr "Kiválasztás" #: src/sweep_sample.c:1525 #, fuzzy msgid "Halve selection" msgstr "Kiválasztott rész lejátszása" #: src/sweep_sample.c:1545 #, fuzzy msgid "Double selection" msgstr "Kiválasztott rész lejátszása" #: src/sweep_sample.c:1568 #, fuzzy msgid "Selection left" msgstr "Kiválasztás" #: src/sweep_sample.c:1590 #, fuzzy msgid "Selection right" msgstr "Kiválasztás" #: src/sweep_sample.c:1678 #, fuzzy, c-format msgid "Insert selection [" msgstr "Kiválasztott rész ciklikus lejátszása" #: src/sweep_sample.c:1731 #, fuzzy, c-format msgid "Subtract selection [" msgstr "Kiválasztott rész lejátszása" #: src/sweep_sample.c:1776 #, fuzzy, c-format msgid "Set selection [" msgstr "Kiválasztott rész lejátszása" #: src/sweep_sample.c:1875 msgid "Sweep: File properties" msgstr "" #: src/sweep_sample.c:1899 #, fuzzy msgid "Filename: " msgstr "Fájl" #: src/sweep_sample.c:1901 #, fuzzy msgid "Sampling rate: " msgstr "Hanganyag" #: src/sweep_sample.c:1903 msgid "Channels: " msgstr "" #: src/sweep_sample.c:1905 msgid "Data memory: " msgstr "" #: src/sweep_sample.c:1907 #, fuzzy msgid "Duration: " msgstr "Kiválasztott rész ciklikus lejátszása" #: src/sweep_undo.c:327 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Do you want to continue editing this buffer?" msgstr "" #: src/sweep_undo.c:332 msgid "Continue editing" msgstr "" #: src/sweep_undo.c:332 msgid "Reread from disk" msgstr "" #: src/sweep_undo.c:430 src/sweep_undo.c:488 msgid "Nothing to undo" msgstr "" #: src/sweep_undo.c:511 src/sweep_undo.c:567 msgid "Nothing to redo" msgstr "" #: src/undo_dialog.c:159 msgid "Original data" msgstr "" #: src/undo_dialog.c:344 msgid "Action" msgstr "" #: src/undo_dialog.c:351 msgid "Sweep: History" msgstr "" #: src/undo_dialog.c:393 src/view.c:548 src/view.c:1887 msgid "Undo" msgstr "Visszavonás" #: src/undo_dialog.c:401 src/view.c:552 src/view.c:1896 msgid "Redo" msgstr "Visszavonás semlegesítése" #: src/undo_dialog.c:426 #, fuzzy msgid "Revert to selected state" msgstr "A hanganyag egyes részeinek kiválasztása" #: src/undo_dialog.c:452 src/view.c:525 src/view.c:3402 msgid "Close" msgstr "Bezárás" #: src/view.c:311 #, fuzzy msgid "Duplicate to stereo" msgstr "Duplázás" #: src/view.c:319 msgid "Duplicate to multichannel" msgstr "" #: src/view.c:331 #, fuzzy msgid "Swap left and right" msgstr "Kiválasztás" #: src/view.c:371 msgid "Add/Remove channels" msgstr "" #: src/view.c:454 src/view.c:1768 #, fuzzy msgid "New ..." msgstr "Megnyitás..." #: src/view.c:458 src/view.c:1775 #, fuzzy msgid "Open ..." msgstr "Megnyitás..." #: src/view.c:488 msgid "Open Recent" msgstr "" #: src/view.c:505 #, fuzzy msgid "Save As ..." msgstr "Mentés másként..." #: src/view.c:517 msgid "Properties ..." msgstr "" #: src/view.c:535 src/view.c:1136 msgid "Edit" msgstr "Szerkesztés" #: src/view.c:556 msgid "Show history ..." msgstr "" #: src/view.c:588 src/view.c:1172 #, fuzzy msgid "Paste: Insert" msgstr "Beillesztés mint új anyag" #: src/view.c:592 src/view.c:1178 #, fuzzy msgid "Paste: Mix" msgstr "Beillesztés" #: src/view.c:596 src/view.c:1184 #, fuzzy msgid "Paste: Crossfade" msgstr "Beillesztés mint új anyag" #: src/view.c:600 msgid "Paste as New" msgstr "Beillesztés mint új anyag" #: src/view.c:608 msgid "Preview Cut/Cursor" msgstr "" #: src/view.c:612 msgid "Pre-roll to Cursor" msgstr "" #: src/view.c:626 msgid "Invert" msgstr "Megfordítás" #: src/view.c:630 msgid "All" msgstr "Mindent" #: src/view.c:634 msgid "None" msgstr "Semmit" #: src/view.c:642 #, fuzzy msgid "Halve" msgstr "Mentés" #: src/view.c:646 msgid "Double" msgstr "" #: src/view.c:650 msgid "Shift left" msgstr "" #: src/view.c:654 msgid "Shift right" msgstr "" #: src/view.c:659 msgid "View" msgstr "Nézet" #: src/view.c:666 src/view.c:2061 msgid "Autoscroll: follow playback cursor" msgstr "" #: src/view.c:684 msgid "Center" msgstr "" #: src/view.c:692 src/view.c:1996 #, fuzzy msgid "Zoom in" msgstr "Nagyítás" #: src/view.c:696 src/view.c:2005 #, fuzzy msgid "Zoom out" msgstr "Kicsinyítés" #: src/view.c:700 src/view.c:1111 msgid "Zoom to selection" msgstr "A kiválasztott rész méretére nagyítás" #: src/view.c:706 msgid "Left" msgstr "Bal" #: src/view.c:710 msgid "Right" msgstr "Jobb" #: src/view.c:715 src/view.c:1117 src/view.c:1276 #, fuzzy msgid "Zoom normal" msgstr "Nagyítás" #: src/view.c:719 src/view.c:1123 src/view.c:1282 src/view.c:1987 #, fuzzy msgid "Zoom all" msgstr "Nagyítás" #: src/view.c:723 msgid "1:1" msgstr "" #: src/view.c:733 msgid "Remember as" msgstr "" #: src/view.c:752 src/view.c:783 msgid "Area 1" msgstr "" #: src/view.c:753 src/view.c:784 msgid "Area 2" msgstr "" #: src/view.c:754 src/view.c:785 msgid "Area 3" msgstr "" #: src/view.c:755 src/view.c:786 msgid "Area 4" msgstr "" #: src/view.c:756 src/view.c:787 msgid "Area 5" msgstr "" #: src/view.c:757 src/view.c:788 msgid "Area 6" msgstr "" #: src/view.c:758 src/view.c:789 msgid "Area 7" msgstr "" #: src/view.c:759 src/view.c:790 msgid "Area 8" msgstr "" #: src/view.c:760 src/view.c:791 msgid "Area 9" msgstr "" #: src/view.c:761 src/view.c:792 msgid "Area 10" msgstr "" #: src/view.c:765 #, fuzzy msgid "Zoom to" msgstr "Kicsinyítés" #: src/view.c:798 msgid "Color scheme" msgstr "" #: src/view.c:804 msgid "Decoder Red" msgstr "" #: src/view.c:812 msgid "Orangeboom" msgstr "" #: src/view.c:820 msgid "Lame Yellow" msgstr "" #: src/view.c:828 msgid "Coogee Bay Blue" msgstr "" #: src/view.c:836 msgid "Blackwattle" msgstr "" #: src/view.c:844 msgid "Frigid" msgstr "" #: src/view.c:852 msgid "Radar" msgstr "" #: src/view.c:860 msgid "Bluescreen" msgstr "" #: src/view.c:872 src/view.c:1236 src/view.c:1322 msgid "New View" msgstr "Új nézet" #: src/view.c:877 msgid "Sample" msgstr "Hanganyag" #: src/view.c:894 #, fuzzy msgid "Resample ..." msgstr "Megnyitás..." #: src/view.c:903 msgid "Duplicate" msgstr "Duplázás" #: src/view.c:908 src/view.c:1192 msgid "Process" msgstr "" #: src/view.c:917 msgid "Playback" msgstr "Lejátszás" #: src/view.c:924 msgid "Configure audio device ..." msgstr "" #: src/view.c:934 msgid "Transport" msgstr "" #: src/view.c:943 msgid "Go to start of file" msgstr "" #: src/view.c:949 msgid "Go to start of window" msgstr "" #: src/view.c:954 msgid "Skip back" msgstr "" #: src/view.c:959 msgid "Skip forward" msgstr "" #: src/view.c:964 msgid "Go to end of window" msgstr "" #: src/view.c:969 msgid "Go to end of file" msgstr "" #: src/view.c:978 msgid "Play selection" msgstr "Kiválasztott rész lejátszása" #: src/view.c:984 msgid "Play sample" msgstr "Hanganyag lejátszása" #: src/view.c:990 #, fuzzy msgid "Play note" msgstr "Hanganyag lejátszása" #: src/view.c:1009 msgid "Toggle monitoring" msgstr "" #: src/view.c:1022 msgid "Toggle looping" msgstr "" #: src/view.c:1034 msgid "Toggle muting" msgstr "" #: src/view.c:1045 msgid "Toggle reverse playback" msgstr "" #: src/view.c:1063 #, fuzzy msgid "Pause" msgstr "Beillesztés" #: src/view.c:1079 #, fuzzy msgid "About MP3 export..." msgstr "Névjegy..." #: src/view.c:1085 #, fuzzy msgid "About Sweep ..." msgstr "Sweep" #: src/view.c:1249 src/view.c:1335 msgid "File properties ..." msgstr "" #: src/view.c:1294 msgid "Paste" msgstr "Beillesztés" #: src/view.c:1791 #, fuzzy msgid "Save as ..." msgstr "Mentés másként..." #: src/view.c:1811 msgid "Cut selection to clipboard" msgstr "" #: src/view.c:1821 msgid "Copy selection to clipboard" msgstr "" #: src/view.c:1832 msgid "Paste: insert clipboard at cursor position" msgstr "" #: src/view.c:1843 msgid "Paste: mix clipboard in from cursor position" msgstr "" #: src/view.c:1854 msgid "Paste: fade clipboard in from cursor position" msgstr "" #: src/view.c:1924 msgid "Hand tool" msgstr "" #: src/view.c:1932 #, fuzzy msgid "Selector tool" msgstr "Kiválasztás" #: src/view.c:1944 msgid "\"Scrubby\" the scrub tool" msgstr "" #: src/view.c:1954 msgid "Pencil tool" msgstr "" #: src/view.c:1962 #, fuzzy msgid "Noise tool" msgstr "Normalizálás" #: src/view.c:2052 msgid "Visible length" msgstr "" #: src/view.c:2171 msgid "Vertical zoom [Shift + Arrow Up/Down]" msgstr "" #: src/view.c:2301 #, fuzzy msgid "Record ..." msgstr "Visszavonás semlegesítése" #: src/view.c:2377 msgid "Reverse mode playback (toggle)" msgstr "" #: src/view.c:2395 msgid "Loop mode playback (toggle)" msgstr "" #: src/view.c:2419 msgid "Play all / Pause" msgstr "" #: src/view.c:2436 #, fuzzy msgid "Play selection / Pause" msgstr "Kiválasztott rész lejátszása" #: src/view.c:2452 #, fuzzy msgid "Stop playback" msgstr "Lejátszás" #: src/view.c:2519 msgid "Muted playback (toggle)" msgstr "" #: src/view.c:2539 src/view.c:2557 msgid "Playback gain slider (volume)" msgstr "" #: src/view.c:2569 msgid "Monitor (toggle)" msgstr "" #: src/view.c:2587 msgid "SYNC" msgstr "" #: src/view.c:3144 #, c-format msgid "Remembered as area %d" msgstr "" #: src/view.c:3162 #, c-format msgid "No area remembered as %d" msgstr "" #: src/view.c:3165 #, c-format msgid "Zoomed to area %d" msgstr "" #: src/view.c:3347 src/view.c:3351 msgid "Scrub!" msgstr "" #: src/view.c:3347 src/view.c:3353 #, fuzzy msgid "Ready" msgstr "Visszavonás semlegesítése" #: src/view.c:3399 #, c-format msgid "%s has been modified. Close anyway?" msgstr "" #: src/view.c:3402 msgid "Don't close" msgstr "" #: src/view.c:3449 src/view.c:3462 msgid "*" msgstr "" #: src/view.c:3465 msgid "Empty" msgstr "" #: plugins/byenergy/byenergy.c:58 #, fuzzy msgid "Select regions above threshold" msgstr "A hanganyag egyes részeinek kiválasztása" #: plugins/byenergy/byenergy.c:59 msgid "" "Whether to select those regions lying above a given threshold or below it." msgstr "" #: plugins/byenergy/byenergy.c:66 msgid "Resolution" msgstr "" #: plugins/byenergy/byenergy.c:67 msgid "Width of energy detection window (s)" msgstr "" #: plugins/byenergy/byenergy.c:73 msgid "Threshold" msgstr "" #: plugins/byenergy/byenergy.c:74 msgid "Energy level to detect [0.0 - 1.0]" msgstr "" #: plugins/byenergy/byenergy.c:80 msgid "Minimum duration" msgstr "" #: plugins/byenergy/byenergy.c:81 msgid "Shortest region of selection to detect (s)" msgstr "" #: plugins/byenergy/byenergy.c:87 msgid "Maximum interruption" msgstr "" #: plugins/byenergy/byenergy.c:88 msgid "Longest length of sound above threshold to allow (s)" msgstr "" #: plugins/byenergy/byenergy.c:227 plugins/byenergy/byenergy.c:232 #, fuzzy msgid "Select by energy" msgstr "Kiválasztás" #: plugins/byenergy/byenergy.c:233 #, fuzzy msgid "Select loud or quiet regions" msgstr "A hanganyag egyes részeinek kiválasztása" #: plugins/echo/echo.c:53 msgid "Delay" msgstr "" #: plugins/echo/echo.c:54 msgid "Time to delay by" msgstr "" #: plugins/echo/echo.c:62 msgid "Gain with which to mix in delayed signal" msgstr "" #: plugins/echo/echo.c:107 plugins/echo/echo.c:113 msgid "Echo" msgstr "" #: plugins/echo/echo.c:114 #, fuzzy msgid "Apply an echo to selected regions of a sample" msgstr "Ezzel az eszközzel a hanganyag kiválasztott részeit lehet mozgatni." #: plugins/normalise/normalise.c:128 plugins/normalise/normalise.c:133 msgid "Normalise" msgstr "Normalizálás" #: plugins/normalise/normalise.c:134 msgid "Alter the sample's amplitude to lie between 1.0 and -1.0" msgstr "" #: plugins/reverse/reverse.c:129 plugins/reverse/reverse.c:134 #: plugins/reverse/reverse.c:140 msgid "Reverse" msgstr "Megfordítás" #: plugins/reverse/reverse.c:141 #, fuzzy msgid "Reverse selected regions of a sample" msgstr "A hanganyag egyes részeinek kiválasztása" #: plugins/example/example.c:37 plugins/example/example.c:86 msgid "With a fork" msgstr "" #: plugins/example/example.c:38 msgid "With a spoon" msgstr "" #: plugins/example/example.c:39 msgid "With false teeth" msgstr "" #: plugins/example/example.c:40 msgid "With Nigel's bum" msgstr "" #: plugins/example/example.c:56 msgid "Flim" msgstr "" #: plugins/example/example.c:57 msgid "Should you manage your flim?" msgstr "" #: plugins/example/example.c:64 msgid "Beans" msgstr "" #: plugins/example/example.c:65 msgid "Method of eating beans" msgstr "" #: plugins/example/example.c:72 msgid "Pants methodology" msgstr "" #: plugins/example/example.c:73 msgid "How many pants should you wear per day?" msgstr "" #: plugins/example/example.c:122 plugins/example/example.c:129 msgid "Example Filter Region" msgstr "" #: plugins/example/example.c:130 msgid "An example filter region plugin" msgstr "" #: plugins/fade/fade.c:148 plugins/fade/fade.c:161 msgid "Fade in" msgstr "" #: plugins/fade/fade.c:156 plugins/fade/fade.c:177 msgid "Fade out" msgstr "" #: plugins/fade/fade.c:162 msgid "Apply a linear fade to the selection, fading in from silence" msgstr "" #: plugins/fade/fade.c:178 msgid "Apply a linear fade to the selection, fading out to silence" msgstr "" #, fuzzy #~ msgid "Sweep: Load file" #~ msgstr "Beillesztés" #, fuzzy #~ msgid "About Sweep" #~ msgstr "Sweep" #, fuzzy #~ msgid "Filename:" #~ msgstr "Fájl" #, fuzzy #~ msgid "Sample:" #~ msgstr "Hanganyag" #~ msgid "Open..." #~ msgstr "Megnyitás..." #, fuzzy #~ msgid " Invert selection" #~ msgstr "Kiválasztott rész ciklikus lejátszása" #, fuzzy #~ msgid " Select all" #~ msgstr "Kiválasztás" #, fuzzy #~ msgid " Select none" #~ msgstr "Kiválasztás" #~ msgid "Zoom In" #~ msgstr "Nagyítás" #~ msgid "Zoom Out" #~ msgstr "Kicsinyítés" #~ msgid "50%" #~ msgstr "50%" #, fuzzy #~ msgid "Normal" #~ msgstr "Normalizálás" #~ msgid "Filters" #~ msgstr "Szûrõk" #, fuzzy #~ msgid "selecta selecta" #~ msgstr "Kiválasztott rész lejátszása" #~ msgid "Note" #~ msgstr "Hangjegy" #~ msgid "100%" #~ msgstr "100%" sweep-0.9.3/po/it.po0000644000175000017500000016551310777670577013020 0ustar useruser# Sweep Italian Translation. # Copyright @ 2007 Free Software Foundation, Inc. # Current translator: Yuri Bongiorno http://yuri.webhop.org, 2007. # Traduttori Italiani GNU: http://www.linux.it/tp # #: src/sample-display.c:222 msgid "" msgstr "" "Project-Id-Version: sweep-0.9.2\n" "Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/\n" "POT-Creation-Date: 2008-04-11 15:11+0100\n" "PO-Revision-Date: 2007-12-24 19:13+0200\n" "Last-Translator: Yuri Bongiorno http://yuri.webhop.org\n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/main.c:89 msgid "Welcome to Sweep" msgstr "benvenuto in Sweep" #: src/main.c:90 msgid "" "Hello, my name is Scrubby. Welcome to Sweep!\n" "\n" "Would you like to create a new file or load an existing file?" msgstr "" "Ciao, il mio nome è Scrubby. Benvenuto in Sweep.\n" "\n" "Creo un nuovo file o ne carico uno esistente?" #: src/main.c:94 msgid "Create new file" msgstr "Crea un nuovo file" #: src/main.c:94 msgid "Load existing file" msgstr "Carica un file esistente" #: src/main.c:129 msgid "WARNING: Build includes incomplete development code.\n" msgstr "ATTENZIONE: Build include codice (incompleto) di sviluppo.\n" #: src/main.c:188 msgid "Sweep version" msgstr "Versione di Sweep" #: src/main.c:189 msgid "Sweep plugin API version" msgstr "Versione delle API dei plugin di Sweep" #: src/main.c:195 #, c-format msgid "Usage: %s [option ...] [files ...]\n" msgstr "Uso: %s [opzione...] [file...]\n" #: src/main.c:196 msgid "Valid options are:\n" msgstr "Le opzioni valide sono:\n" #: src/main.c:197 msgid " -h --help Output this help.\n" msgstr " -h --help mostra questo aiuto.\n" #: src/main.c:198 msgid " -v --version Output version info.\n" msgstr " -v --version mostra le informazioni sulla versione.\n" #: src/main.c:199 msgid " --display Use the designated X display.\n" msgstr " --display usa il display X designato.\n" #: src/main.c:200 msgid "" " --ignore-failed-lock Continue when attempt to lock the\n" " preferences file fails. For use when\n" " the users home directory is on an NFS\n" " file system. (possibly unsafe) \n" msgstr "" " --ignore-failed-lock continua quando il tentativo di fare il\n" " lock al file delle preferenze fallisce.\n" " Questa opzione è sconsigliata se le home\n" " degli utenti sono su un file system NFS.\n" #: src/main.c:206 msgid " --no-toolbox Do not show the toolbox window.\n" msgstr " --no-toolbox non mostrare la finestra degli strumenti.\n" #: src/about_dialog.c:99 msgid "This is Sweep version" msgstr "Questa è la versione" #: src/about_dialog.c:119 msgid "http://sweep.sourceforge.net/" msgstr "http://sweep.sourceforge.net/" #: src/callbacks.c:926 src/callbacks.c:939 src/edit.c:1568 src/edit.c:1642 #: src/edit.c:1726 msgid "Clipboard empty" msgstr "Appunti vuoti" #: src/channelops.c:146 #, c-format msgid "Duplicate to %d channels" msgstr "Duplica in %d canali" #: src/channelops.c:148 #, c-format msgid "Duplicate from %d to %d channels" msgstr "Duplica da %d a %d canali" #: src/channelops.c:207 msgid "Sweep: Duplicate channel" msgstr "Sweep: duplica canale" #: src/channelops.c:214 src/channelops.c:698 #, c-format msgid "Currently: %d channels" msgstr "Attualmente: %d canali" #: src/channelops.c:221 src/channelops.c:704 msgid "Output channels" msgstr "Output canali" #: src/channelops.c:231 src/channelops.c:714 src/driver.c:374 #: src/file_sndfile1.c:285 src/param.c:779 src/question_dialogs.c:144 #: src/question_dialogs.c:204 src/question_dialogs.c:253 #: src/sweep_sample.c:1918 src/undo_dialog.c:440 msgid "OK" msgstr "Ok" #: src/channelops.c:242 src/channelops.c:725 src/driver.c:387 #: src/file_sndfile1.c:295 src/param.c:788 src/question_dialogs.c:158 #: src/view.c:543 src/view.c:2650 msgid "Cancel" msgstr "Annulla" #: src/channelops.c:347 src/view.c:361 msgid "Mix down to mono" msgstr "Riduci in mono mescolando" #: src/channelops.c:445 src/view.c:340 msgid "Remove left channel" msgstr "Rimuovi il canale sinistro" #: src/channelops.c:455 src/view.c:349 msgid "Remove right channel" msgstr "Rimuovi il canale destro" #: src/channelops.c:539 msgid "Swap channels" msgstr "Scambia i canali" #: src/channelops.c:541 msgid "Not stereo" msgstr "Non stereo" #: src/channelops.c:643 #, c-format msgid "Convert from %d to %d channels" msgstr "Converte da %d a %d canali" #: src/channelops.c:692 msgid "Sweep: Add/Remove channels" msgstr "Sweep: aggiunge/rimuove canali" #: src/driver.c:369 msgid "Sweep: audio device configuration" msgstr "Sweep: configurazione del device audio" #: src/driver.c:410 msgid "Changes to device settings will take effect on next playback." msgstr "" "Le modifiche alle impostazioni del device avranno effetto alla prossima " "riproduzione." #: src/driver.c:424 msgid "Device name" msgstr "Nome device:" #: src/driver.c:430 msgid "Set the main device for playback and recording" msgstr "Imposta il device principale di riproduzione e di registrazione" #: src/driver.c:440 msgid "Main device:" msgstr "Device principale:" #: src/driver.c:454 src/driver.c:636 src/samplerate.c:570 msgid "Default" msgstr "Predefinito" #: src/driver.c:467 msgid "Use a different device for monitoring" msgstr "Usa un diverso device per il preascolto" #: src/driver.c:479 msgid "Monitor output:" msgstr "Output di preascolto:" #: src/driver.c:504 msgid "Swap" msgstr "Scambia" #: src/driver.c:512 msgid "Swap main and monitor devices." msgstr "Scambia il device principale con quello di preascolto." #: src/driver.c:521 src/driver.c:622 src/file_speex.c:1957 #: src/file_vorbis.c:1348 src/samplerate.c:556 src/sweep_sample.c:532 msgid "Reset" msgstr "Reimposta" #: src/driver.c:529 msgid "Reset to the last remembered device names." msgstr "Ritorna agli ultimi nomi di device memorizzati." #: src/driver.c:535 src/file_speex.c:1971 src/file_vorbis.c:1362 #: src/param.c:747 src/sweep_sample.c:543 msgid "Defaults" msgstr "Predefiniti" #: src/driver.c:543 msgid "Set to default device names." msgstr "Imposta i nomi di device predefiniti." #: src/driver.c:554 msgid "Device buffering" msgstr "Device buffering" #: src/driver.c:564 msgid "" "Low latency /\n" "More dropouts" msgstr "" "Bassa latenza /\n" "Più interruzioni" #: src/driver.c:586 msgid "" "High latency /\n" "Fewer dropouts" msgstr "" "Alta latenza /\n" "Meno interruzioni" #: src/driver.c:590 msgid "" "Varying this slider controls the lag between cursor movements and playback. " "This is particularly noticeable when \"scrubbing\" during playback.\n" "\n" "Lower values improve responsiveness but may degrade audio quality on heavily-" "loaded systems." msgstr "" "Variando questa barra si modifica il ritardo tra i movimenti del cursore e " "la riproduzione. Questo si nota particolarmente nella riproduzione durante " "l'«audioscandaglio».\n" "\n" "Bassi valori migliorano la risposta, ma possono degradare la " "qualità dell'audio su sistemi caricati pesantemente." #: src/driver.c:609 msgid "Remember these options" msgstr "Memorizza queste opzioni" #: src/driver.c:630 msgid "Reset to the last remembered device buffering." msgstr "Ritorna all'ultimo device buffering memorizzato." #: src/driver.c:644 msgid "Set to default device buffering." msgstr "Imposta il device buffering predefinito." #: src/edit.c:1291 msgid "No selection to copy" msgstr "Nessuna selezione da copiare" #: src/edit.c:1308 src/view.c:572 src/view.c:1150 msgid "Copy" msgstr "Copia" #: src/edit.c:1342 msgid "No selection to cut" msgstr "Nessuna selezione da tagliare" #: src/edit.c:1358 src/view.c:568 src/view.c:1144 msgid "Cut" msgstr "Taglia" #: src/edit.c:1388 msgid "No selection to clear" msgstr "Nessuna selezione da cancellare" #: src/edit.c:1404 src/view.c:576 src/view.c:1156 msgid "Clear" msgstr "Cancella" #: src/edit.c:1430 msgid "No selection to delete" msgstr "Nessuna selezione da eliminare" #: src/edit.c:1447 src/view.c:564 msgid "Delete" msgstr "Elimina" #: src/edit.c:1482 msgid "Nothing to crop out" msgstr "Niente da ritagliare" #: src/edit.c:1498 src/view.c:580 src/view.c:1162 src/view.c:1868 msgid "Crop" msgstr "Ritaglia" #: src/edit.c:1572 src/edit.c:1646 src/edit.c:1730 msgid "Clipboard data has incompatible format" msgstr "Gli appunti hanno un formato non compatibile" #: src/edit.c:1590 msgid "Paste insert" msgstr "Incolla inserendo" #: src/edit.c:1669 msgid "Paste mix" msgstr "Incolla mescolando" #: src/edit.c:1757 msgid "Paste xfade" msgstr "Incolla con dissolvenza incrociata" #: src/file_dialogs.c:73 msgid "MP3 export unsupported" msgstr "esportazione in MP3 non supportata" #: src/file_dialogs.c:74 msgid "" "Export to MP3 format cannot legally be supported in free software\n" "due to patent licensing restrictions.\n" "\n" "Please use Ogg Vorbis format instead, which\n" "provides better quality and is free." msgstr "" "L'esportazione nel formato MP3 non può essere legalmente supportata\n" "nel software libero a causa dei brevetti.\n" "\n" "Il formato Ogg Vorbis fornisce una qualità migliore ed è libero.\n" " " #: src/file_dialogs.c:99 msgid "Raw PCM (headerless)" msgstr "Raw PCM (senza intestazione)" #: src/file_dialogs.c:157 #, c-format msgid "%s does not exist." msgstr "%s non esiste." #: src/file_dialogs.c:158 msgid "Directory does not exist" msgstr "La directory non esiste" #: src/file_dialogs.c:262 #, c-format msgid "" "Unable to read\n" "%s" msgstr "" "Impossibile leggere\n" "%s" #: src/file_dialogs.c:289 msgid "Sweep: Open Files" msgstr "Sweep: apri file" #: src/file_dialogs.c:370 #, c-format msgid "" "Are you sure you want to revert %s to\n" "%s?\n" "\n" "All changes and undo information will be lost." msgstr "" "Ripristinare %s in\n" "%s?\n" "\n" "Si perdono tutte le modifiche e le informazioni di annullamento." #: src/file_dialogs.c:374 msgid "Revert file" msgstr "ripristina il file" #: src/file_dialogs.c:375 src/view.c:509 msgid "Revert" msgstr "Ripristina" #: src/file_dialogs.c:375 msgid "Don't revert" msgstr "Non ripristinare" #: src/file_dialogs.c:545 src/file_dialogs.c:824 #, c-format msgid "Save as %s cancelled" msgstr "Salvataggio come %s annullato" #: src/file_dialogs.c:582 msgid "By extension" msgstr "Per estensione" #: src/file_dialogs.c:640 msgid "MP3 (Use Ogg Vorbis instead)" msgstr "MP3 (usa invece Ogg Vorbis)" #: src/file_dialogs.c:707 msgid "Sweep: Save file" msgstr "Sweep: salva file" #: src/file_dialogs.c:721 msgid "Save Options" msgstr "Salva le opzioni" #: src/file_dialogs.c:730 msgid "Determine File Type:" msgstr "Determina il tipo di file:" #: src/file_dialogs.c:810 #, c-format msgid "" "You are not allowed to write to\n" "%s" msgstr "" "Non ci sono i permessi per scrivere\n" "%s" #: src/file_dialogs.c:812 #, c-format msgid "%s exists. Overwrite?" msgstr "%s esiste. Sovrascrivere?" #: src/file_dialogs.c:814 msgid "File exists" msgstr "il file esiste" #: src/file_dialogs.c:815 msgid "Overwrite" msgstr "Sovrascrivi" #: src/file_dialogs.c:815 msgid "Don't overwrite" msgstr "Non sovrascrivere" #: src/file_dialogs.c:887 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Are you sure you want to save?" msgstr "" "%s\n" " è cambiato nel disco.\n" "\n" "Salvare veramente?" #: src/file_dialogs.c:891 src/sweep_undo.c:331 src/view.c:3401 msgid "File modified" msgstr "File modificato" #: src/file_dialogs.c:892 src/file_speex.c:2127 src/file_vorbis.c:1611 #: src/view.c:501 src/view.c:1782 msgid "Save" msgstr "Salva" #: src/file_dialogs.c:892 src/file_speex.c:2138 src/file_vorbis.c:1622 msgid "Don't save" msgstr "Non salvare" #: src/file_sndfile1.c:327 msgid "Powered by libsndfile" msgstr "Basato su libsndfile" #: src/file_sndfile1.c:354 msgid "Encoding" msgstr "Codifica" #: src/file_sndfile1.c:375 msgid "Encoding:" msgstr "Codifica:" #: src/file_sndfile1.c:447 msgid "Sampling rate:" msgstr "Frequenza di campionamento:" #: src/file_sndfile1.c:480 src/file_speex.c:2078 src/file_vorbis.c:1562 #: src/samplerate.c:584 msgid "About" msgstr "Informazioni" #: src/file_sndfile1.c:496 msgid "" "Libsndfile is a C library by Erik de Castro Lopo\n" "for reading and writing files containing sampled sound." msgstr "" "Libsndfile è una libreria C di Erik de Castro Lopo\n" "per leggere e scrivere file contenenti suoni campionati." #: src/file_sndfile1.c:507 msgid "" "This user interface by Erik de Castro Lopo\n" " and Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "Questa interfaccia utente è di Erik de Castro Lopo\n" " e Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" #: src/file_sndfile1.c:550 msgid "Sweep: Save PCM options" msgstr "Sweep: opzioni PCM di salvataggio" #: src/file_sndfile1.c:719 msgid "Sweep: Load Raw PCM options" msgstr "Sweep: opzioni Raw PCM di caricamento" #: src/file_sndfile1.c:771 src/file_mad.c:435 src/file_speex.c:577 #: src/file_vorbis.c:324 #, c-format msgid "Loading %s" msgstr "Caricamento di %s" #: src/file_sndfile1.c:998 src/file_speex.c:1074 src/file_vorbis.c:702 #, c-format msgid "Saving %s" msgstr "Salvataggio di %s" #: src/file_speex.c:1016 src/file_speex.c:1036 msgid "Speex encoding results" msgstr "risultati della codifica Speex" #: src/file_speex.c:1208 msgid "Narrowband ~8 kHz (telephone quality)" msgstr "Banda stretta 8 kHz (qualità del telefono)" #: src/file_speex.c:1209 msgid "Wideband ~16 kHz" msgstr "Banda larga ~16 kHz" #: src/file_speex.c:1211 msgid "Ultra-wideband 32-48 kHz" msgstr "Banda larghissima 32-48 kHz" #: src/file_speex.c:1218 msgid "Constant bitrate (CBR) with no features" msgstr "Bit rate costante (CBR)" #: src/file_speex.c:1221 msgid "CBR with Voice Activity Detection (VAD)" msgstr "CBR con soppressione dei silenzi (VAD)" #: src/file_speex.c:1222 msgid "VAD generates low bitrate comfort noise to replace non-speech" msgstr "" "VAD genera un rumore di sottofondo a basso bit rate per rimpiazzare le pause " "del discorso" #: src/file_speex.c:1225 msgid "CBR with VAD and Discontinuous Transmission (DTX)" msgstr "CBR con VAD e trasmissione discontinua (DTX)" #: src/file_speex.c:1226 msgid "DTX marks extended pauses with a minimum bitrate signal" msgstr "DTX marca le pause prolungate con un segnale a minimo bit rate" #: src/file_speex.c:1229 msgid "Variable bitrate (VBR) with VAD" msgstr "Bit rate variabile (VBR) con VAD" #: src/file_speex.c:1230 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech; this " "selection uses VBR without DTX, which may improve performance compared to " "full VBR in the presence of background noise." msgstr "" "VBR adatta il bit rate alla complessità del parlato, questa selezione usa " "VBR senza DTX e in presenza di rumore di fondo le prestazioni possono " "migliorare rispetto all'uso del normale VBR." #: src/file_speex.c:1235 msgid "Variable bitrate (VBR) with all features" msgstr "Bit rate variabile (VBR)" #: src/file_speex.c:1236 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech, and handles " "pauses using VAD and DTX" msgstr "" "VBR adatta il bit rate alla complessità del parlato e gestendo i silenzi " "tramite VAD e DTX" #: src/file_speex.c:1240 msgid "Constant bitrate (CBR)" msgstr "Bit rate costante (CBR)" #: src/file_speex.c:1242 msgid "Variable bitrate (VBR)" msgstr "Bit rate variabile (VBR)" #: src/file_speex.c:1243 msgid "VBR allows the bitrate to adapt to the complexity of the speech." msgstr "VBR adatta il bit rate alla complessità del parlato." #: src/file_speex.c:1298 src/file_speex.c:1803 msgid "Average bitrate" msgstr "Bit rate medio" #: src/file_speex.c:1301 msgid "Maximum bitrate" msgstr "Bit rate massimo" #: src/file_speex.c:1494 src/file_vorbis.c:1013 msgid "Hack the planet!" msgstr "Spacca il mondo" #: src/file_speex.c:1580 msgid "Sweep: Speex save options" msgstr "Sweep: opzioni di salvataggio di Speex" #: src/file_speex.c:1631 msgid "Speex encoding" msgstr "Codifica Speex" #: src/file_speex.c:1644 msgid "Mode:" msgstr "Modalità:" #: src/file_speex.c:1670 msgid "Auto" msgstr "Auto" #: src/file_speex.c:1679 msgid "" "Automatically select the encoding mode based on the sampling rate of the " "file." msgstr "" "Seleziona automaticamente la modalità di codifica basata sulla frequenza di " "campionamento del file." #: src/file_speex.c:1732 src/file_vorbis.c:1160 msgid "Encoding quality:" msgstr "Qualità di codifica:" #: src/file_speex.c:1775 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file)." msgstr "" "Qualità di codifica tra 0 (bassa qualità, file piccolo) e 10 (alta qualità, " "file grande)." #: src/file_speex.c:1785 msgid "Enable bitrate management" msgstr "Attiva la gestione del bit rate" #: src/file_speex.c:1798 msgid "" "For non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For " "VBR encoding, this sets the average bitrate." msgstr "" "Imposta il bit rate massimo per le codifiche non VBR e il bit rate medio per " "VBR." #: src/file_speex.c:1821 msgid "bps" msgstr "bps" #: src/file_speex.c:1827 msgid "Extra" msgstr "Extra" #: src/file_speex.c:1849 msgid "Encoding complexity:" msgstr "Complessità di codifica:" #: src/file_speex.c:1888 msgid "" "This sets the encoding speed/quality tradeoff between 0 (faster encoding) " "and 10 (slower encoding)" msgstr "" "Imposta il compromesso velocità/qualità di codifica tra 0 (codifica veloce) " "e 10 (codifica lenta)" #: src/file_speex.c:1904 msgid "Speex frames per Ogg packet:" msgstr "Numero di frame Speex per ogni pacchetto Ogg:" #: src/file_speex.c:1930 msgid "" "Number of Speex frames to pack into each Ogg packet. Higher values save " "space at low bitrates." msgstr "" "Numero di frame Speex da inserire in ciascun pacchetto Ogg. Valori elevati " "risparmiano spazio a bassi bit rate." #: src/file_speex.c:1945 src/file_vorbis.c:1336 msgid "Remember these encoding options" msgstr "Memorizza queste opzioni di codifica" #: src/file_speex.c:1965 src/file_vorbis.c:1356 msgid "Reset to the last remembered encoding options." msgstr "Ritorna alle ultime opzioni di codifica memorizzate" #: src/file_speex.c:1980 msgid "Automatically select best encoding options for this file." msgstr "" "Seleziona automaticamente le opzioni per la migliore codifica di questo file." #: src/file_speex.c:1985 src/file_vorbis.c:1469 msgid "Ogg stream" msgstr "Flusso Ogg" #: src/file_speex.c:1998 src/file_vorbis.c:1482 msgid "Ogg stream serial number:" msgstr "Numero di serie del flusso Ogg:" #: src/file_speex.c:2019 src/file_vorbis.c:1503 msgid "Remember this serial number" msgstr "Memorizza questo numero di serie" #: src/file_speex.c:2029 src/file_vorbis.c:1513 msgid "" "Remember this serial number for future re-use.\n" "USE OF THIS OPTION IS NOT RECOMMENDED.\n" "Each encoded file should have a different serial number; re-use of Ogg " "serial numbers in different files may create incompatabilities with " "streaming applications. This option is provided for bitstream engineering " "purposes only.\n" "If this option is not checked, new serial numbers will be randomly generated " "for each file encoded." msgstr "" "Ricorda questo numero di serie per un riutilizzo futuro.\n" "L'USO DI QUESTA OPZIONE NON È RACCOMANDATO.\n" "Ciascun file codificato dovrebbe avere un numero di serie diverso, " "riutilizzare numeri di serie di Ogg in file diversi può creare " "incompatibilità con applicazioni di streaming. Questa opzione è fornita solo " "per scopi di progettazione di flussi.\n" "Se questa opzione non è attivata, nuovi numeri di serie sono creati " "casualmente per ciascun file codificato." #: src/file_speex.c:2056 src/file_vorbis.c:1540 msgid "Randomize!" msgstr "Casuale" #: src/file_speex.c:2063 src/file_vorbis.c:1547 msgid "" "Generate a random serial number for the Ogg bitstream. The number will " "change while this button is held down." msgstr "" "Genera un numero di serie casuale per il flusso Ogg. Il numero cambia finché " "questo bottone è premuto." #: src/file_speex.c:2094 msgid "" "Speex is a high quality speech codec designed for\n" "voice over IP (VoIP) and file-based compression.\n" "It is free, open and unpatented." msgstr "" "Speex è un codec di alta qualità vocale progettato per\n" "voice over IP (VoIP) e compressione di file.\n" "È gratuito, aperto e non brevettato." #: src/file_speex.c:2105 msgid "" "Ogg, Speex, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ogg, Speex, Xiph.org Foundation e i loro loghi\n" "sono marchi registrati(tm) della Xiph.org Foundation.\n" "Sono usati con il loro permesso." #: src/file_speex.c:2120 src/file_vorbis.c:1604 src/samplerate.c:611 msgid "" "This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" "Questa interfaccia utente è di Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" #: src/file_vorbis.c:356 #, c-format msgid "" "Decoding %s\n" "Encoded by: %s\n" "\n" "%s" msgstr "" "Decodifica di %s\n" "Codificato da: %s\n" "\n" "%s" #: src/file_vorbis.c:470 msgid "Unsupported encoding mode" msgstr "Modalità di codifica non supportata" #: src/file_vorbis.c:473 msgid "Invalid encoding options" msgstr "Opzioni di codifica non valide" #: src/file_vorbis.c:643 src/file_vorbis.c:663 msgid "Ogg Vorbis encoding results" msgstr "risultati della codifica Ogg Vorbis" #: src/file_vorbis.c:1089 msgid "Sweep: Ogg Vorbis save options" msgstr "Sweep: opzioni di salvataggio di Ogg Vorbis" #: src/file_vorbis.c:1148 msgid "Vorbis encoding" msgstr "Codifica Vorbis" #: src/file_vorbis.c:1195 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file) using variable bitrate mode (VBR)." msgstr "" "Qualità di codifica tra 0 (bassa qualità, file piccolo) e 10 (alta qualità, " "file grande) che usa la modalità con bit rate variabile (VBR)." #: src/file_vorbis.c:1205 msgid "Enable bitrate management engine" msgstr "Attiva il motore di gestione del bit rate" #: src/file_vorbis.c:1211 msgid "" "This enables average bitrate mode (ABR). You must suggest a nominal average " "bitrate and may specify minimum and maximum bounds.\n" "For best results it is generally recommended that you use the variable " "bitrate 'encoding quality' control (above) instead." msgstr "" "Attiva il bit rate medio (ABR). Si deve suggerire un bit rate nominale medio " "e specificare il limite massimo e minimo.\n" "Per migliori risultati si raccomanda di utilizzare il controllo «qualità di " "codifica» del bit rate variabile (vedi sopra)" #: src/file_vorbis.c:1221 msgid "Bitrate management engine" msgstr "Motore di gestione del bit rate" #: src/file_vorbis.c:1247 msgid "Nominal bitrate (ABR):" msgstr "Bit rate nominale (ABR):" #: src/file_vorbis.c:1260 msgid "" "Specify a nominal bitrate. Attempt to encode at a bitrate averaging this." msgstr "" "Specifica un bit rate nominale. Si tenta di codificare con questo bit rate " "medio." #: src/file_vorbis.c:1264 src/file_vorbis.c:1293 src/file_vorbis.c:1323 msgid "kbps" msgstr "kbps" #: src/file_vorbis.c:1276 msgid "Minimum bitrate:" msgstr "Bit rate minimo:" #: src/file_vorbis.c:1289 msgid "" "Specify a minimum bitrate, useful for encoding for a fixed-size channel. " "(Optional)" msgstr "" "Specifica un bit rate minimo, utile per codificare per un canale di " "dimensione fissata (opzionale)." #: src/file_vorbis.c:1306 msgid "Maximum bitrate:" msgstr "Bit rate massimo:" #: src/file_vorbis.c:1319 msgid "" "Specify a maximum bitrate, useful for streaming applications. (Optional)" msgstr "" "Specifica un bit rate massimo, utile per applicazioni di streaming " "(opzionale)." #: src/file_vorbis.c:1370 msgid "Set to default encoding options." msgstr "Imposta le opzioni di codifica predefinite." #: src/file_vorbis.c:1377 msgid "Metadata" msgstr "Metadata" #: src/file_vorbis.c:1399 msgid "Title:" msgstr "Titolo:" #: src/file_vorbis.c:1399 msgid "Track/Work name" msgstr "Nome del brano o dell'opera" #: src/file_vorbis.c:1401 msgid "Version:" msgstr "Versione:" #: src/file_vorbis.c:1402 msgid "" "The version field may be used to differentiate multiple versions of the same " "track title in a single collection. (e.g. remix info)" msgstr "" "Il campo versione può essere usato per differenziare le diverse versioni " "dello stesso brano di una singola raccolta (es. informazioni di remix)." #: src/file_vorbis.c:1406 msgid "Album:" msgstr "Album:" #: src/file_vorbis.c:1407 msgid "The collection name to which this track belongs" msgstr "Il nome della raccolta a cui il brano appartiene" #: src/file_vorbis.c:1409 msgid "Artist:" msgstr "Artista:" #: src/file_vorbis.c:1410 msgid "" "The artist generally considered responsible for the work. In popular music " "this is usually the performing band or singer. For classical music it would " "be the composer. For an audio book it would be the author of the original " "text." msgstr "" "L'artista è generalmente considerato il responsabile dell'opera. Nella " "musica popolare è normalmente la banda che suona o il cantante. Per la " "musica classica sarebbe il compositore. Per un libro vocale sarebbe l'autore " "del testo originale." #: src/file_vorbis.c:1416 msgid "Performer:" msgstr "Esecutore:" #: src/file_vorbis.c:1417 msgid "" "The artist(s) who performed the work. In classical music this would be the " "conductor, orchestra, soloists. In an audio book it would be the actor who " "did the reading. In popular music this is typically the same as the ARTIST " "and is omitted." msgstr "" "L'artista che ha eseguito l'opera. Nella musica classica sarebbe il " "direttore, l'orchestra, i solisti. In un libro vocale sarebbero gli attori " "che leggono. Nella musica popolare è normalmente uguale all'Artista ed è " "omesso." #: src/file_vorbis.c:1424 msgid "Copyright:" msgstr "Copyright:" #: src/file_vorbis.c:1425 msgid "" "Copyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'" msgstr "" "Assegnazione del Copyright, es. «2001 I cavalieri del re» o «1999 Riccardo " "Zara»" #: src/file_vorbis.c:1428 msgid "License:" msgstr "Licenza:" #: src/file_vorbis.c:1429 msgid "" "License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL " "to a license such as a Creative Commons license (\"www.creativecommons.org/" "blahblah/license.html\") or the EFF Open Audio License ('distributed under " "the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/" "eff_oal.html for details'), etc." msgstr "" "Informazione sulla licenza, es. «Tutti i diritti riservati», «Tutti gli usi " "consentiti», una URL per la licenza come la Creative Commons license («www." "creativecommons.org/blahblah/license.html») o la EFF Open Audio License " "(«distribuita secondo i termini della Open Audio License. Vedere http://www." "eff.org/IP/Open_licenses/eff_oal.html per i dettagli»), ecc." #: src/file_vorbis.c:1438 msgid "Organization:" msgstr "Organizzazione:" #: src/file_vorbis.c:1439 msgid "Name of the organization producing the track (i.e. the 'record label')" msgstr "" "Nome dell'organizzazione che produce il brano (cioè la «casa discografica»)" #: src/file_vorbis.c:1442 msgid "Description:" msgstr "Descrizione:" #: src/file_vorbis.c:1443 msgid "A short text description of the contents" msgstr "Una breve descrizione dei contenuti" #: src/file_vorbis.c:1445 msgid "Genre:" msgstr "Genere:" #: src/file_vorbis.c:1446 msgid "A short text indication of music genre" msgstr "Una breve indicazione del genere musicale" #: src/file_vorbis.c:1448 msgid "Date:" msgstr "Data:" #: src/file_vorbis.c:1449 msgid "Date the track was recorded" msgstr "Data in cui il brano è stato registrato" #: src/file_vorbis.c:1451 msgid "Location:" msgstr "Località:" #: src/file_vorbis.c:1452 msgid "Location where track was recorded" msgstr "Località dove il brano è stato registrato" #: src/file_vorbis.c:1454 msgid "Contact:" msgstr "Contatti:" #: src/file_vorbis.c:1455 msgid "" "Contact information for the creators or distributors of the track. This " "could be a URL, an email address, the physical address of the producing " "label." msgstr "" "Informazione per contattare i creatori o i distributori del brano. Potrebbe " "essere un URL, un indirizzo email, un indirizzo fisico della casa " "discografica." #: src/file_vorbis.c:1460 msgid "ISRC:" msgstr "ISRC:" #: src/file_vorbis.c:1461 msgid "" "ISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-" "content/online/isrc_intro.html) for more information on ISRC numbers." msgstr "" "Numero ISRC del brano; vedere la pagina introduttiva di ISRC (http://www." "ifpi.org/site-content/online/isrc_intro.html) per maggiori informazioni sui " "numeri ISRC." #: src/file_vorbis.c:1578 msgid "" "Ogg Vorbis is a high quality general purpose\n" "perceptual audio codec. It is free, open and\n" "unpatented." msgstr "" "Ogg Vorbis è un codec audio universale di alta qualità.\n" "È gratuito, aperto e non brevettato." #: src/file_vorbis.c:1589 msgid "" "Ogg, Vorbis, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" "Ogg, Vorbis, Xiph.org Foundation e i loro loghi\n" "sono marchi registrati(tm) della Xiph.org Foundation.\n" "Sono usati con il loro permesso." #: src/head.c:408 src/view.c:2324 msgid "Cursor position (indicator)" msgstr "Posizione del cursore (indicatore)" #: src/head.c:449 msgid "Reverse mode (toggle)" msgstr "Modalità invertita (attiva/disattiva)" #: src/head.c:467 msgid "Loop mode recording (toggle)" msgstr "Registrazione in modalità ciclica (attiva/disattiva)" #: src/head.c:486 msgid "Record into selection" msgstr "Registra nella selezione" #: src/head.c:503 src/view.c:1068 msgid "Stop" msgstr "Stop" #: src/head.c:516 src/view.c:2469 msgid "Go to beginning" msgstr "Va all'inizio" #: src/head.c:527 src/view.c:2480 msgid "Rewind" msgstr "Riavvolge" #: src/head.c:540 src/view.c:2492 msgid "Fast forward" msgstr "Avanzamento veloce" #: src/head.c:555 src/view.c:2505 msgid "Go to the end" msgstr "Va alla fine" #: src/interface.c:327 msgid "Sweep" msgstr "Sweep" #: src/interface.c:352 src/view.c:446 msgid "File" msgstr "File" #: src/interface.c:357 msgid "New" msgstr "Nuovo" #: src/interface.c:366 msgid "Open" msgstr "Apri" #: src/interface.c:375 src/sweep_sample.c:800 src/sweep_sample.c:808 #: src/view.c:529 msgid "Quit" msgstr "Esci" #: src/interface.c:386 src/view.c:1073 msgid "Help" msgstr "Aiuto" #: src/interface.c:391 msgid "About..." msgstr "Informazioni" #: src/interface.c:414 src/view.c:618 msgid "Select" msgstr "Seleziona" #: src/interface.c:415 msgid "Select regions of a sample" msgstr "Seleziona le regioni di un campione" #: src/interface.c:416 msgid "" "This tool allows you to select regions of a sample. You can then apply edits " "and effects to the: selected regions. Hold down shift whilst selecting to " "add discontinuous regions to the selection." msgstr "" "Questo strumento permette di selezionare le regioni di un campione. Si " "possono quindi applicare le modifiche e gli effetti alle regioni " "selezionate. Tenere premuto «shift» durante la selezione per aggiungere " "regioni discontinue alla selezione." #: src/interface.c:433 msgid "Move" msgstr "Sposta" #: src/interface.c:434 msgid "Move regions in a sample" msgstr "Sposta le regioni in un campione" #: src/interface.c:435 msgid "With this tool you can move selected regions of a sample." msgstr "" "Con questo strumento si possono spostare le regioni selezionate di un " "campione." #: src/interface.c:447 msgid "Scrub" msgstr "Audioscandaglio" #: src/interface.c:448 msgid "Locate sounds directly" msgstr "Localizza i suoni direttamente" #: src/interface.c:449 msgid "" "Place the play marker on a sample. Click anywhere in a view to instantly " "move the playback position to that part of the sample." msgstr "" "Posizionare il segnapunti sul campione. Cliccare in qualunque punto della " "vista per muovere istantaneamente la posizione di riproduzione in quella " "parte del campione." #: src/interface.c:466 msgid "Zoom" msgstr "Ingrandimento" #: src/interface.c:467 msgid "Zoom in & out" msgstr "Aumenta e riduci ingrandimento" #: src/interface.c:468 msgid "" "Zoom in and out of a view. Click anywhere in a view to zoom in on that part " "of the sample. Hold down shift and click on the view to zoom out." msgstr "" "Aumenta e riduce l'ingrandimento. Cliccare in qualunque punto della vista " "per aumentare l'ingrandimento in quella parte del campione. Per ridurlo, " "tenere premuto «shift» e cliccare." #: src/interface.c:484 msgid "Pencil" msgstr "Matita" #: src/interface.c:485 msgid "Edit PCM sample values" msgstr "Modifica i valori del campione PCM" #: src/interface.c:486 msgid "When zoomed down to individual samples, click to edit" msgstr "Quando è rimpicciolito a campioni individuali, cliccare per modificare" #: src/interface.c:497 msgid "Noise" msgstr "Rumore" #: src/interface.c:498 msgid "Add noise" msgstr "Aggiungi rumore" #: src/interface.c:499 msgid "Randomise PCM values" msgstr "Valori PCM casuali" #: src/notes.c:61 msgid "C3" msgstr "Do 3" #: src/notes.c:62 msgid "C#3" msgstr "Do# 3" #: src/notes.c:63 msgid "D3" msgstr "Re 3" #: src/notes.c:64 msgid "Eb3" msgstr "Mib 3" #: src/notes.c:65 msgid "E3" msgstr "Mi 3" #: src/notes.c:66 msgid "F3" msgstr "Fa 3" #: src/notes.c:67 msgid "F#3" msgstr "Fa# 3" #: src/notes.c:68 msgid "G3" msgstr "Sol 3" #: src/notes.c:69 msgid "G#3" msgstr "Sol# 3" #: src/notes.c:70 msgid "A3" msgstr "La 3" #: src/notes.c:71 msgid "Bb3" msgstr "Sib 3" #: src/notes.c:72 msgid "B3" msgstr "Si 3" #: src/notes.c:74 msgid "C4" msgstr "Do 4" #: src/notes.c:76 msgid "C#4" msgstr "Do# 4" #: src/notes.c:77 msgid "D4" msgstr "Re 4" #: src/notes.c:78 msgid "Eb4" msgstr "Mib 4" #: src/notes.c:79 msgid "E4" msgstr "Mi 4" #: src/notes.c:80 msgid "F4" msgstr "Fa 4" #: src/notes.c:81 msgid "F#4" msgstr "Fa# 4" #: src/notes.c:82 msgid "G4" msgstr "Sol 4" #: src/notes.c:83 msgid "G#4" msgstr "Sol# 4" #: src/notes.c:84 msgid "A4" msgstr "La 4" #: src/notes.c:85 msgid "Bb4" msgstr "Sib 4" #: src/notes.c:86 msgid "B4" msgstr "Si 4" #: src/notes.c:88 msgid "C5" msgstr "Do 5" #: src/notes.c:89 msgid "C#5" msgstr "Do# 5" #: src/notes.c:90 msgid "D5" msgstr "Re 5" #: src/notes.c:91 msgid "D#5" msgstr "Re# 5" #: src/notes.c:92 msgid "E5" msgstr "Mi 5" #: src/notes.c:94 msgid "F5" msgstr "Fa 5" #: src/notes.c:95 msgid "F#5" msgstr "Fa# 5" #: src/notes.c:96 msgid "G5" msgstr "Sol 5" #: src/notes.c:97 msgid "G#5" msgstr "Sol# 5" #: src/notes.c:98 msgid "A5" msgstr "La 5" #: src/notes.c:99 msgid "Bb5" msgstr "Sib 5" #: src/notes.c:100 msgid "B5" msgstr "Si 5" #: src/param.c:117 #, c-format msgid "TRUE" msgstr "VERO" #: src/param.c:118 #, c-format msgid "FALSE" msgstr "FALSO" #: src/param.c:738 msgid "Parameters" msgstr "Parametri" #: src/param.c:769 msgid "Preview" msgstr "Anteprima" #: src/paste_dialogs.c:221 msgid "Start gain" msgstr "Guadagno iniziale" #: src/paste_dialogs.c:223 src/record.c:489 src/record.c:507 #: plugins/echo/echo.c:61 msgid "Gain" msgstr "Guadagno" #: src/paste_dialogs.c:230 msgid "Sweep: Paste crossfade" msgstr "Sweep: incolla dissolvenza incrociata" #: src/paste_dialogs.c:232 msgid "Sweep: Paste mix" msgstr "Sweep: incolla mescolando" #: src/paste_dialogs.c:257 msgid "Source" msgstr "Sorgente" #: src/paste_dialogs.c:257 msgid "Clipboard" msgstr "Appunti" #: src/paste_dialogs.c:279 src/paste_dialogs.c:318 msgid "End gain" msgstr "Guadagno finale" #: src/paste_dialogs.c:287 src/paste_dialogs.c:326 msgid "Invert phase" msgstr "Inverte la fase" #: src/paste_dialogs.c:295 msgid "Destination" msgstr "Destinazione" #: src/paste_dialogs.c:345 msgid "" "Indicates the total duration of the clipboard, which is the maximum length " "that will be pasted." msgstr "" "Indica la durata totale degli appunti, che è la lunghezza massima che sarà " "incollata." #: src/paste_dialogs.c:362 msgid "Clipboard duration:" msgstr "Durata appunti:" #: src/paste_dialogs.c:375 msgid "Crossfade" msgstr "Dissolvenza incrociata" #: src/paste_dialogs.c:375 msgid "Mix" msgstr "Mescola" #: src/paste_dialogs.c:394 msgid "Don't crossfade" msgstr "Nessuna dissolvenza incrociata" #: src/paste_dialogs.c:394 msgid "Don't mix" msgstr "Non mescolare" #: src/preferences.c:62 msgid "Error creating ~/.sweep" msgstr "Errore durante la creazione di ~/.sweep" #: src/preferences.c:66 #, c-format msgid "Created %s/ mode %04o\n" msgstr "Creato %s/ con permessi %04o\n" #: src/preferences.c:73 msgid "Error on ~/.sweep" msgstr "Errore in ~/.sweep" #: src/preferences.c:82 msgid "Error setting permissions on ~/.sweep" msgstr "Errore nell'impostazione dei permessi su ~/.sweep" #: src/preferences.c:89 msgid "Error accessing ~/.sweep" msgstr "Errore nell'accesso in ~/.sweep" #: src/preferences.c:124 msgid "Error opening ~/.sweep/preferences.tdb" msgstr "Errore nell'aprire ~/.sweep/preferences.tdb" #: src/record.c:94 src/record.c:544 msgid "Ready to record" msgstr "Pronto per registrare" #: src/record.c:308 msgid "No selection to record into" msgstr "Nessuna selezione da registrarci dentro" #: src/record.c:446 msgid "Sweep: Record" msgstr "Sweep: registra" #: src/record.c:459 src/undo_dialog.c:376 msgid "File:" msgstr "File:" #: src/record.c:482 msgid "Previous sound" msgstr "Suono precedente" #: src/record.c:496 msgid "" "This slider allows you to mix the new recording in with the previous " "contents of the buffer. Set it to -inf dB to overwrite the previous sound." msgstr "" "Questo cursore permette di mescolare la nuova registrazione con i contenuti " "precedenti del buffer. Impostarlo a -inf dB per sovrascrivere il suono " "precedente." #: src/record.c:502 msgid "Recorded sound" msgstr "Suono registrato" #: src/record.c:514 msgid "" "This slider allows you to reduce the level of the recorded sound. Set it to " "0 dB to record without any reduction. Note that setting this to -inf dB will " "record silence." msgstr "" "Questo cursore permette di ridurre il livello del suono registrato. " "Impostarlo a 0 dB per registrare senza nessuna riduzione. Notare che " "impostando questo a -inf dB registrerà il silenzio." #: src/sample-display.c:223 msgid "New selection" msgstr "Nuova selezione" #: src/sample-display.c:224 msgid "Selection: add/modify region" msgstr "Selezione: aggiunge/modifica la regione" #: src/sample-display.c:225 msgid "Selection: subtract region" msgstr "Selezione: sottrae la regione" #: src/samplerate.c:103 src/samplerate.c:167 msgid "Resample error" msgstr "Errore di ricampionamento" #: src/samplerate.c:104 src/samplerate.c:168 msgid "libsamplerate error" msgstr "errore di libsamplerate" #: src/samplerate.c:234 #, c-format msgid "Resample from %d Hz to %d Hz" msgstr "Ricampiona da %d Hz a %d Hz" #: src/samplerate.c:445 msgid "Sweep: Resample" msgstr "Sweep: ricampiona" #: src/samplerate.c:467 msgid "Conversion" msgstr "Conversione" #: src/samplerate.c:474 #, c-format msgid "Current sample rate: %d Hz" msgstr "Frequenza attuale di campionamento: %d Hz" #: src/samplerate.c:483 msgid "New sample rate" msgstr "Nuova frequenza di campionamento" #: src/samplerate.c:494 msgid "Quality" msgstr "Qualità" #: src/samplerate.c:501 msgid "Converter" msgstr "Convertitore" #: src/samplerate.c:544 msgid "Remember this quality" msgstr "Memorizza questa qualità" #: src/samplerate.c:564 msgid "Reset to the last remembered quality." msgstr "Ritorna all'ultima qualità memorizzata." #: src/samplerate.c:578 msgid "Set to default quality." msgstr "Imposta la qualità predefinita." #: src/samplerate.c:600 msgid "" "Secret Rabbit Code (aka libsamplerate) is a\n" "Sample Rate Converter for audio by Erik de Castro Lopo\n" msgstr "" "Il codice del coniglio segreto (cioè libsamplerate) è un\n" "convertitore di frequenza di campionamento audio di Erik de Castro Lopo\n" #: src/samplerate.c:620 msgid "Resample" msgstr "Ricampiona" #: src/samplerate.c:633 msgid "Don't resample" msgstr "Non ricampionare" #: src/sw_chooser.c:51 src/sw_chooser.c:66 msgid "Custom" msgstr "Personalizzato" #: src/sw_chooser.c:52 msgid "192000 Hz (Studio quality)" msgstr "192000 Hz (qualità studio)" #: src/sw_chooser.c:53 msgid " 96000 Hz (High quality)" msgstr " 96000 Hz (qualità alta)" #: src/sw_chooser.c:54 msgid " 48000 Hz (DAT quality)" msgstr " 48000 Hz (qualità DAT)" #: src/sw_chooser.c:55 msgid " 44100 Hz (CD quality)" msgstr " 44100 Hz (qualità CD)" #: src/sw_chooser.c:56 msgid " 32000 Hz (Ultra-wideband voice quality)" msgstr " 32000 Hz (qualità voce a banda larghissima)" #: src/sw_chooser.c:57 msgid " 22050 Hz" msgstr " 22050 Hz" #: src/sw_chooser.c:58 msgid " 16000 Hz (Wideband voice quality)" msgstr " 16000 Hz (qualità voce a banda larga)" #: src/sw_chooser.c:59 msgid " 11025 Hz" msgstr " 11025 Hz" #: src/sw_chooser.c:60 msgid " 8000 Hz (Narrowband voice quality)" msgstr " 8000 Hz (qualità voce a banda stretta)" #: src/sw_chooser.c:61 msgid " 4000 Hz (Low quality)" msgstr " 4000 Hz (qualità bassa)" #: src/sw_chooser.c:67 src/view.c:3446 src/view.c:3459 src/view.c:3498 #, c-format msgid "Mono" msgstr "Mono" #: src/sw_chooser.c:68 src/view.c:3446 src/view.c:3459 src/view.c:3501 #, c-format msgid "Stereo" msgstr "Stereo" #: src/sw_chooser.c:69 msgid "Quadraphonic" msgstr "Quadrifonia" #: src/sw_chooser.c:306 msgid "Custom: " msgstr "Personalizzato: " #: src/sw_chooser.c:341 msgid "Sampling rate" msgstr "Frequenza di campionamento" #: src/sw_chooser.c:343 msgid "Hz" msgstr "Hz" #: src/sw_chooser.c:367 src/view.c:884 msgid "Channels" msgstr "Canali" #: src/sw_chooser.c:369 src/view.c:3505 msgid "channels" msgstr "canali" #: src/sweep_filter.c:125 msgid "No selection to process" msgstr "Nessuna selezione da elaborare" #: src/sweep_sample.c:119 src/view.c:3444 src/view.c:3450 src/view.c:3457 #: src/view.c:3463 msgid "Untitled" msgstr "Senzatitolo" #: src/sweep_sample.c:324 msgid "Overflow" msgstr "Overflow" #: src/sweep_sample.c:407 msgid "Sweep: New file" msgstr "Sweep: nuovo file" #: src/sweep_sample.c:435 msgid "Name:" msgstr "Nome:" #: src/sweep_sample.c:455 msgid "Duration:" msgstr "Durata:" #: src/sweep_sample.c:471 msgid "hh:mm:ss.xxx" msgstr "hh:mm:ss.xxx" #: src/sweep_sample.c:514 msgid "Remember this format" msgstr "Memorizza questo formato" #: src/sweep_sample.c:520 msgid "" "Remember this sampling rate and channel configuration for creating new files." msgstr "" "Memorizza questa frequenza di campionamento e questa configurazione dei " "canali per creare nuovi file." #: src/sweep_sample.c:540 msgid "Reset to the last remembered format for new files." msgstr "Ritorna all'ultimo formato memorizzato per i nuovi file." #: src/sweep_sample.c:551 msgid "Set to the default format for new files." msgstr "Imposta il formato predefinito per i nuovi file." #: src/sweep_sample.c:567 msgid "" "Indicates the amount of data memory which will be allocated for the selected " "duration and format. All audio data is processed internally in 32 bit " "floating point format." msgstr "" "Indica il valore della memoria che sarà allocata per la durata e il formato " "selezionato. Tutti i dati audio sono elaborati internamente nel formato a 32 " "bit a virgola mobile." #: src/sweep_sample.c:582 msgid "Data memory:" msgstr "Memoria dati:" #: src/sweep_sample.c:594 msgid "Create" msgstr "Crea" #: src/sweep_sample.c:606 msgid "Don't create" msgstr "Non creare" #: src/sweep_sample.c:774 msgid "Excellent!!!" msgstr "Eccellente" #: src/sweep_sample.c:796 msgid "Files unsaved" msgstr "File non salvati" #: src/sweep_sample.c:797 msgid "" "Some files are unsaved. If you quit, all changes will be lost.\n" "\n" "Are you sure you want to quit?" msgstr "" "Alcuni file non sono stati salvati. Uscendo, si perdono tutte le modifiche.\n" "\n" "Uscire veramente?" #: src/sweep_sample.c:800 src/sweep_sample.c:808 msgid "Don't quit" msgstr "Non uscire" #: src/sweep_sample.c:804 msgid "Files playing" msgstr "I file sono in riproduzione" #: src/sweep_sample.c:805 msgid "" "No files are unsaved, but some files are currently playing.\n" "\n" "Are you sure you want to quit?" msgstr "" "Non ci sono file modificati, ma qualche file è attualmente in riproduzione.\n" "\n" "Uscire veramente?" #: src/sweep_sample.c:1465 src/view.c:1206 msgid "Invert selection" msgstr "Inverte la selezione" #: src/sweep_sample.c:1485 src/view.c:1214 src/view.c:1308 msgid "Select all" msgstr "Seleziona tutto" #: src/sweep_sample.c:1505 src/view.c:1222 msgid "Select none" msgstr "Seleziona niente" #: src/sweep_sample.c:1525 msgid "Halve selection" msgstr "Dimezza la selezione" #: src/sweep_sample.c:1545 msgid "Double selection" msgstr "Raddoppia la selezione" #: src/sweep_sample.c:1568 msgid "Selection left" msgstr "Selezione sinistra" #: src/sweep_sample.c:1590 msgid "Selection right" msgstr "Selezione destra" #: src/sweep_sample.c:1678 #, c-format msgid "Insert selection [" msgstr "Inverti selezione [" #: src/sweep_sample.c:1731 #, c-format msgid "Subtract selection [" msgstr "Togli selezione [" #: src/sweep_sample.c:1776 #, c-format msgid "Set selection [" msgstr "Imposta selezione [" #: src/sweep_sample.c:1875 msgid "Sweep: File properties" msgstr "Sweep: proprietà del file" #: src/sweep_sample.c:1899 msgid "Filename: " msgstr "Nome file: " #: src/sweep_sample.c:1901 msgid "Sampling rate: " msgstr "Frequenza: " #: src/sweep_sample.c:1903 msgid "Channels: " msgstr "Canali: " #: src/sweep_sample.c:1905 msgid "Data memory: " msgstr "Memoria dati: " #: src/sweep_sample.c:1907 msgid "Duration: " msgstr "Durata: " #: src/sweep_undo.c:327 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Do you want to continue editing this buffer?" msgstr "" "%s\n" " è cambiato nel disco.\n" "\n" "Continuare a modificare questo buffer?" #: src/sweep_undo.c:332 msgid "Continue editing" msgstr "Continua a modificare" #: src/sweep_undo.c:332 msgid "Reread from disk" msgstr "Rilegge dal disco" #: src/sweep_undo.c:430 src/sweep_undo.c:488 msgid "Nothing to undo" msgstr "Niente da annullare" #: src/sweep_undo.c:511 src/sweep_undo.c:567 msgid "Nothing to redo" msgstr "Niente da ripristinare" #: src/undo_dialog.c:159 msgid "Original data" msgstr "Dati originali" #: src/undo_dialog.c:344 msgid "Action" msgstr "Azione" #: src/undo_dialog.c:351 msgid "Sweep: History" msgstr "Sweep: cronologia" #: src/undo_dialog.c:393 src/view.c:548 src/view.c:1887 msgid "Undo" msgstr "Annulla" #: src/undo_dialog.c:401 src/view.c:552 src/view.c:1896 msgid "Redo" msgstr "Ripeti" #: src/undo_dialog.c:426 msgid "Revert to selected state" msgstr "Inverte lo stato selezionato" #: src/undo_dialog.c:452 src/view.c:525 src/view.c:3402 msgid "Close" msgstr "Chiudi" #: src/view.c:311 msgid "Duplicate to stereo" msgstr "Duplica in stereo" #: src/view.c:319 msgid "Duplicate to multichannel" msgstr "Duplica in multicanale" #: src/view.c:331 msgid "Swap left and right" msgstr "Scambia destra e sinistra" #: src/view.c:371 msgid "Add/Remove channels" msgstr "Aggiungi/rimuovi canali" #: src/view.c:454 src/view.c:1768 msgid "New ..." msgstr "Nuovo" #: src/view.c:458 src/view.c:1775 msgid "Open ..." msgstr "Apri" #: src/view.c:488 msgid "Open Recent" msgstr "Apri recenti" #: src/view.c:505 msgid "Save As ..." msgstr "Salva come..." #: src/view.c:517 msgid "Properties ..." msgstr "Proprietà" #: src/view.c:535 src/view.c:1136 msgid "Edit" msgstr "Modifica" #: src/view.c:556 msgid "Show history ..." msgstr "Mostra cronologia" #: src/view.c:588 src/view.c:1172 msgid "Paste: Insert" msgstr "Incolla: inserisci" #: src/view.c:592 src/view.c:1178 msgid "Paste: Mix" msgstr "Incolla: mescola" #: src/view.c:596 src/view.c:1184 msgid "Paste: Crossfade" msgstr "Incolla: dissolvenza incrociata" #: src/view.c:600 msgid "Paste as New" msgstr "Incolla come nuovo" #: src/view.c:608 msgid "Preview Cut/Cursor" msgstr "Anteprima taglia/cursore" #: src/view.c:612 msgid "Pre-roll to Cursor" msgstr "Prearrotola il cursore" #: src/view.c:626 msgid "Invert" msgstr "Inverti" #: src/view.c:630 msgid "All" msgstr "Tutto" #: src/view.c:634 msgid "None" msgstr "Niente" #: src/view.c:642 msgid "Halve" msgstr "Dimezza" #: src/view.c:646 msgid "Double" msgstr "Raddoppia" #: src/view.c:650 msgid "Shift left" msgstr "Sposta a sinistra" #: src/view.c:654 msgid "Shift right" msgstr "Sposta a destra" #: src/view.c:659 msgid "View" msgstr "Visualizza" #: src/view.c:666 src/view.c:2061 msgid "Autoscroll: follow playback cursor" msgstr "Autoscroll: segue il cursore di riproduzione" #: src/view.c:684 msgid "Center" msgstr "Centra" #: src/view.c:692 src/view.c:1996 msgid "Zoom in" msgstr "Aumenta ingrandimento" #: src/view.c:696 src/view.c:2005 msgid "Zoom out" msgstr "Riduci ingrandimento" #: src/view.c:700 src/view.c:1111 msgid "Zoom to selection" msgstr "Ingrandisci la selezione" #: src/view.c:706 msgid "Left" msgstr "Sinistra" #: src/view.c:710 msgid "Right" msgstr "Destra" #: src/view.c:715 src/view.c:1117 src/view.c:1276 msgid "Zoom normal" msgstr "Dimensioni normali" #: src/view.c:719 src/view.c:1123 src/view.c:1282 src/view.c:1987 msgid "Zoom all" msgstr "Visualizza tutto" #: src/view.c:723 msgid "1:1" msgstr "1:1" #: src/view.c:733 msgid "Remember as" msgstr "Memorizza come" #: src/view.c:752 src/view.c:783 msgid "Area 1" msgstr "Area 1" #: src/view.c:753 src/view.c:784 msgid "Area 2" msgstr "Area 2" #: src/view.c:754 src/view.c:785 msgid "Area 3" msgstr "Area 3" #: src/view.c:755 src/view.c:786 msgid "Area 4" msgstr "Area 4" #: src/view.c:756 src/view.c:787 msgid "Area 5" msgstr "Area 5" #: src/view.c:757 src/view.c:788 msgid "Area 6" msgstr "Area 6" #: src/view.c:758 src/view.c:789 msgid "Area 7" msgstr "Area 7" #: src/view.c:759 src/view.c:790 msgid "Area 8" msgstr "Area 8" #: src/view.c:760 src/view.c:791 msgid "Area 9" msgstr "Area 9" #: src/view.c:761 src/view.c:792 msgid "Area 10" msgstr "Area 10" #: src/view.c:765 msgid "Zoom to" msgstr "Vai in" #: src/view.c:798 msgid "Color scheme" msgstr "Schema di colore" #: src/view.c:804 msgid "Decoder Red" msgstr "Profondo rosso" #: src/view.c:812 msgid "Orangeboom" msgstr "Arancio meccanico" #: src/view.c:820 msgid "Lame Yellow" msgstr "Giallo cedrone" #: src/view.c:828 msgid "Coogee Bay Blue" msgstr "Azzurro sussurro" #: src/view.c:836 msgid "Blackwattle" msgstr "Maron glacé" #: src/view.c:844 msgid "Frigid" msgstr "Biancaneve" #: src/view.c:852 msgid "Radar" msgstr "Verdicchio" #: src/view.c:860 msgid "Bluescreen" msgstr "Tuono blu" #: src/view.c:872 src/view.c:1236 src/view.c:1322 msgid "New View" msgstr "Nuova vista" #: src/view.c:877 msgid "Sample" msgstr "Campione" #: src/view.c:894 msgid "Resample ..." msgstr "Ricampiona" #: src/view.c:903 msgid "Duplicate" msgstr "Duplica" #: src/view.c:908 src/view.c:1192 msgid "Process" msgstr "Elabora" #: src/view.c:917 msgid "Playback" msgstr "Riproduci" #: src/view.c:924 msgid "Configure audio device ..." msgstr "Configura il device audio" #: src/view.c:934 msgid "Transport" msgstr "Spostamento" #: src/view.c:943 msgid "Go to start of file" msgstr "Va all'inizio del file" #: src/view.c:949 msgid "Go to start of window" msgstr "Va all'inizio della finestra" #: src/view.c:954 msgid "Skip back" msgstr "Salta indietro" #: src/view.c:959 msgid "Skip forward" msgstr "Salta avanti" #: src/view.c:964 msgid "Go to end of window" msgstr "Va alla fine della finestra" #: src/view.c:969 msgid "Go to end of file" msgstr "Va alla fine del file" #: src/view.c:978 msgid "Play selection" msgstr "Suona la selezione" #: src/view.c:984 msgid "Play sample" msgstr "Suona il campione" #: src/view.c:990 msgid "Play note" msgstr "Suona la nota" #: src/view.c:1009 msgid "Toggle monitoring" msgstr "Attiva/Disattiva preascolto" #: src/view.c:1022 msgid "Toggle looping" msgstr "Attiva/Disattiva la modalità ciclica" #: src/view.c:1034 msgid "Toggle muting" msgstr "Attiva/Disattiva muto" #: src/view.c:1045 msgid "Toggle reverse playback" msgstr "Attiva/Disattiva la riproduzione invertita" #: src/view.c:1063 msgid "Pause" msgstr "Pausa" #: src/view.c:1079 msgid "About MP3 export..." msgstr "Informazioni sull'esportazione in MP3" #: src/view.c:1085 msgid "About Sweep ..." msgstr "Informazioni su Sweep" #: src/view.c:1249 src/view.c:1335 msgid "File properties ..." msgstr "Proprietà del file" #: src/view.c:1294 msgid "Paste" msgstr "Incolla" #: src/view.c:1791 msgid "Save as ..." msgstr "Salva come..." #: src/view.c:1811 msgid "Cut selection to clipboard" msgstr "Taglia la selezione negli appunti" #: src/view.c:1821 msgid "Copy selection to clipboard" msgstr "Copia la selezione negli appunti" #: src/view.c:1832 msgid "Paste: insert clipboard at cursor position" msgstr "Incolla: inserisce gli appunti nella posizione del cursore" #: src/view.c:1843 msgid "Paste: mix clipboard in from cursor position" msgstr "Incolla: mescola gli appunti dalla posizione del cursore" #: src/view.c:1854 msgid "Paste: fade clipboard in from cursor position" msgstr "Incolla: dissolve gli appunti dalla posizione del cursore" #: src/view.c:1924 msgid "Hand tool" msgstr "A mano" #: src/view.c:1932 msgid "Selector tool" msgstr "Selezionatore" #: src/view.c:1944 msgid "\"Scrubby\" the scrub tool" msgstr "«Scrubby» lo strumento per l'audioscandaglio" #: src/view.c:1954 msgid "Pencil tool" msgstr "Matita" #: src/view.c:1962 msgid "Noise tool" msgstr "Strumento di rumore" #: src/view.c:2052 msgid "Visible length" msgstr "Lunghezza visibile" #: src/view.c:2171 msgid "Vertical zoom [Shift + Arrow Up/Down]" msgstr "Ingrandimento verticale [shift + freccia su/giù]" #: src/view.c:2301 msgid "Record ..." msgstr "Registra" #: src/view.c:2377 msgid "Reverse mode playback (toggle)" msgstr "Modalità di riproduzione invertita (attiva/disattiva)" #: src/view.c:2395 msgid "Loop mode playback (toggle)" msgstr "Modalità di riproduzione ciclica (attiva/disattiva)" #: src/view.c:2419 msgid "Play all / Pause" msgstr "Suona tutto / Pausa" #: src/view.c:2436 msgid "Play selection / Pause" msgstr "Suona la selezione / Pausa" #: src/view.c:2452 msgid "Stop playback" msgstr "Ferma la riproduzione" #: src/view.c:2519 msgid "Muted playback (toggle)" msgstr "Riproduzione muta (attiva/disattiva)" #: src/view.c:2539 src/view.c:2557 msgid "Playback gain slider (volume)" msgstr "Cursore di guadagno di riproduzione (volume)" #: src/view.c:2569 msgid "Monitor (toggle)" msgstr "Preascolto (attiva/disattiva)" #: src/view.c:2587 msgid "SYNC" msgstr "SYNC" #: src/view.c:3144 #, c-format msgid "Remembered as area %d" msgstr "Memorizza come area %d" #: src/view.c:3162 #, c-format msgid "No area remembered as %d" msgstr "Nessuna area memorizzata come %d" #: src/view.c:3165 #, c-format msgid "Zoomed to area %d" msgstr "Visualizzata l'area %d" #: src/view.c:3347 src/view.c:3351 msgid "Scrub!" msgstr "Audioscandaglio" #: src/view.c:3347 src/view.c:3353 msgid "Ready" msgstr "Pronto" #: src/view.c:3399 #, c-format msgid "%s has been modified. Close anyway?" msgstr "%s è stato modificato. Chiudere comunque?" #: src/view.c:3402 msgid "Don't close" msgstr "Non chiudere" #: src/view.c:3449 src/view.c:3462 msgid "*" msgstr "*" #: src/view.c:3465 msgid "Empty" msgstr "Vuoto" #: plugins/byenergy/byenergy.c:58 msgid "Select regions above threshold" msgstr "Seleziona le regioni sopra la soglia" #: plugins/byenergy/byenergy.c:59 msgid "" "Whether to select those regions lying above a given threshold or below it." msgstr "Se selezionare quelle regioni sopra o sotto una data soglia." #: plugins/byenergy/byenergy.c:66 msgid "Resolution" msgstr "Risoluzione" #: plugins/byenergy/byenergy.c:67 msgid "Width of energy detection window (s)" msgstr "Finestra di rilevamento della larghezza di energia (s)" #: plugins/byenergy/byenergy.c:73 msgid "Threshold" msgstr "Soglia" #: plugins/byenergy/byenergy.c:74 msgid "Energy level to detect [0.0 - 1.0]" msgstr "Livello di energia da rilevare [0.0 - 1.0]" #: plugins/byenergy/byenergy.c:80 msgid "Minimum duration" msgstr "Durata minima" #: plugins/byenergy/byenergy.c:81 msgid "Shortest region of selection to detect (s)" msgstr "La più breve regione di selezione da rilevare (s)" #: plugins/byenergy/byenergy.c:87 msgid "Maximum interruption" msgstr "Interruzione massima" #: plugins/byenergy/byenergy.c:88 msgid "Longest length of sound above threshold to allow (s)" msgstr "Lunghezza massima di suono sopra la soglia da permettere (s)" #: plugins/byenergy/byenergy.c:227 plugins/byenergy/byenergy.c:232 msgid "Select by energy" msgstr "Seleziona per energia" #: plugins/byenergy/byenergy.c:233 msgid "Select loud or quiet regions" msgstr "Seleziona regioni rumorose o silenziose" #: plugins/echo/echo.c:53 msgid "Delay" msgstr "Ritardo" #: plugins/echo/echo.c:54 msgid "Time to delay by" msgstr "Tempo di ritardo da" #: plugins/echo/echo.c:62 msgid "Gain with which to mix in delayed signal" msgstr "Guadagno con cui mescolare il segnale ritardato" #: plugins/echo/echo.c:107 plugins/echo/echo.c:113 msgid "Echo" msgstr "Eco" #: plugins/echo/echo.c:114 msgid "Apply an echo to selected regions of a sample" msgstr "Applica l'eco alle regioni selezionate di un campione" #: plugins/normalise/normalise.c:128 plugins/normalise/normalise.c:133 msgid "Normalise" msgstr "Normalizza" #: plugins/normalise/normalise.c:134 msgid "Alter the sample's amplitude to lie between 1.0 and -1.0" msgstr "Altera l'ampiezza del campione per stare tra 1.0 e -1.0" #: plugins/reverse/reverse.c:129 plugins/reverse/reverse.c:134 #: plugins/reverse/reverse.c:140 msgid "Reverse" msgstr "Inverte" #: plugins/reverse/reverse.c:141 msgid "Reverse selected regions of a sample" msgstr "Inverte le regioni selezionate di un campione" #: plugins/example/example.c:37 plugins/example/example.c:86 msgid "With a fork" msgstr "Con una forchetta" #: plugins/example/example.c:38 msgid "With a spoon" msgstr "Con un cucchiaio" #: plugins/example/example.c:39 msgid "With false teeth" msgstr "Con una dentiera" #: plugins/example/example.c:40 msgid "With Nigel's bum" msgstr "Con un vagabondo di Nigel" #: plugins/example/example.c:56 msgid "Flim" msgstr "Satira" #: plugins/example/example.c:57 msgid "Should you manage your flim?" msgstr "Domeresti la tua satira?" #: plugins/example/example.c:64 msgid "Beans" msgstr "Fagioli" #: plugins/example/example.c:65 msgid "Method of eating beans" msgstr "Metodo di mangiare fagioli" #: plugins/example/example.c:72 msgid "Pants methodology" msgstr "Metodologia delle mutande" #: plugins/example/example.c:73 msgid "How many pants should you wear per day?" msgstr "Quante mutande dovresti indossare al giorno?" #: plugins/example/example.c:122 plugins/example/example.c:129 msgid "Example Filter Region" msgstr "Regione filtro di esempio" #: plugins/example/example.c:130 msgid "An example filter region plugin" msgstr "Un plugin della regione filtro di esempio" #: plugins/fade/fade.c:148 plugins/fade/fade.c:161 msgid "Fade in" msgstr "Dissolvenza in apertura" #: plugins/fade/fade.c:156 plugins/fade/fade.c:177 msgid "Fade out" msgstr "Dissolvenza in chiusura" #: plugins/fade/fade.c:162 msgid "Apply a linear fade to the selection, fading in from silence" msgstr "Applica una dissolvenza lineare alla selezione, iniziando dal silenzio" #: plugins/fade/fade.c:178 msgid "Apply a linear fade to the selection, fading out to silence" msgstr "Applica una dissolvenza lineare alla selezione, finendo in silenzio" sweep-0.9.3/po/stamp-po0000644000175000017500000000001210777670663013501 0ustar userusertimestamp sweep-0.9.3/po/sweep.pot0000644000175000017500000012301510777670576013701 0ustar useruser# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Conrad Parker # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #: src/sample-display.c:222 #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/\n" "POT-Creation-Date: 2008-04-11 15:11+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: src/main.c:89 msgid "Welcome to Sweep" msgstr "" #: src/main.c:90 msgid "" "Hello, my name is Scrubby. Welcome to Sweep!\n" "\n" "Would you like to create a new file or load an existing file?" msgstr "" #: src/main.c:94 msgid "Create new file" msgstr "" #: src/main.c:94 msgid "Load existing file" msgstr "" #: src/main.c:129 msgid "WARNING: Build includes incomplete development code.\n" msgstr "" #: src/main.c:188 msgid "Sweep version" msgstr "" #: src/main.c:189 msgid "Sweep plugin API version" msgstr "" #: src/main.c:195 #, c-format msgid "Usage: %s [option ...] [files ...]\n" msgstr "" #: src/main.c:196 msgid "Valid options are:\n" msgstr "" #: src/main.c:197 msgid " -h --help Output this help.\n" msgstr "" #: src/main.c:198 msgid " -v --version Output version info.\n" msgstr "" #: src/main.c:199 msgid " --display Use the designated X display.\n" msgstr "" #: src/main.c:200 msgid "" " --ignore-failed-lock Continue when attempt to lock the\n" " preferences file fails. For use when\n" " the users home directory is on an NFS\n" " file system. (possibly unsafe) \n" msgstr "" #: src/main.c:206 msgid " --no-toolbox Do not show the toolbox window.\n" msgstr "" #: src/about_dialog.c:99 msgid "This is Sweep version" msgstr "" #: src/about_dialog.c:119 msgid "http://sweep.sourceforge.net/" msgstr "" #: src/callbacks.c:926 src/callbacks.c:939 src/edit.c:1568 src/edit.c:1642 #: src/edit.c:1726 msgid "Clipboard empty" msgstr "" #: src/channelops.c:146 #, c-format msgid "Duplicate to %d channels" msgstr "" #: src/channelops.c:148 #, c-format msgid "Duplicate from %d to %d channels" msgstr "" #: src/channelops.c:207 msgid "Sweep: Duplicate channel" msgstr "" #: src/channelops.c:214 src/channelops.c:698 #, c-format msgid "Currently: %d channels" msgstr "" #: src/channelops.c:221 src/channelops.c:704 msgid "Output channels" msgstr "" #: src/channelops.c:231 src/channelops.c:714 src/driver.c:374 #: src/file_sndfile1.c:285 src/param.c:779 src/question_dialogs.c:144 #: src/question_dialogs.c:204 src/question_dialogs.c:253 #: src/sweep_sample.c:1918 src/undo_dialog.c:440 msgid "OK" msgstr "" #: src/channelops.c:242 src/channelops.c:725 src/driver.c:387 #: src/file_sndfile1.c:295 src/param.c:788 src/question_dialogs.c:158 #: src/view.c:543 src/view.c:2650 msgid "Cancel" msgstr "" #: src/channelops.c:347 src/view.c:361 msgid "Mix down to mono" msgstr "" #: src/channelops.c:445 src/view.c:340 msgid "Remove left channel" msgstr "" #: src/channelops.c:455 src/view.c:349 msgid "Remove right channel" msgstr "" #: src/channelops.c:539 msgid "Swap channels" msgstr "" #: src/channelops.c:541 msgid "Not stereo" msgstr "" #: src/channelops.c:643 #, c-format msgid "Convert from %d to %d channels" msgstr "" #: src/channelops.c:692 msgid "Sweep: Add/Remove channels" msgstr "" #: src/driver.c:369 msgid "Sweep: audio device configuration" msgstr "" #: src/driver.c:410 msgid "Changes to device settings will take effect on next playback." msgstr "" #: src/driver.c:424 msgid "Device name" msgstr "" #: src/driver.c:430 msgid "Set the main device for playback and recording" msgstr "" #: src/driver.c:440 msgid "Main device:" msgstr "" #: src/driver.c:454 src/driver.c:636 src/samplerate.c:570 msgid "Default" msgstr "" #: src/driver.c:467 msgid "Use a different device for monitoring" msgstr "" #: src/driver.c:479 msgid "Monitor output:" msgstr "" #: src/driver.c:504 msgid "Swap" msgstr "" #: src/driver.c:512 msgid "Swap main and monitor devices." msgstr "" #: src/driver.c:521 src/driver.c:622 src/file_speex.c:1957 #: src/file_vorbis.c:1348 src/samplerate.c:556 src/sweep_sample.c:532 msgid "Reset" msgstr "" #: src/driver.c:529 msgid "Reset to the last remembered device names." msgstr "" #: src/driver.c:535 src/file_speex.c:1971 src/file_vorbis.c:1362 #: src/param.c:747 src/sweep_sample.c:543 msgid "Defaults" msgstr "" #: src/driver.c:543 msgid "Set to default device names." msgstr "" #: src/driver.c:554 msgid "Device buffering" msgstr "" #: src/driver.c:564 msgid "" "Low latency /\n" "More dropouts" msgstr "" #: src/driver.c:586 msgid "" "High latency /\n" "Fewer dropouts" msgstr "" #: src/driver.c:590 msgid "" "Varying this slider controls the lag between cursor movements and playback. " "This is particularly noticeable when \"scrubbing\" during playback.\n" "\n" "Lower values improve responsiveness but may degrade audio quality on heavily-" "loaded systems." msgstr "" #: src/driver.c:609 msgid "Remember these options" msgstr "" #: src/driver.c:630 msgid "Reset to the last remembered device buffering." msgstr "" #: src/driver.c:644 msgid "Set to default device buffering." msgstr "" #: src/edit.c:1291 msgid "No selection to copy" msgstr "" #: src/edit.c:1308 src/view.c:572 src/view.c:1150 msgid "Copy" msgstr "" #: src/edit.c:1342 msgid "No selection to cut" msgstr "" #: src/edit.c:1358 src/view.c:568 src/view.c:1144 msgid "Cut" msgstr "" #: src/edit.c:1388 msgid "No selection to clear" msgstr "" #: src/edit.c:1404 src/view.c:576 src/view.c:1156 msgid "Clear" msgstr "" #: src/edit.c:1430 msgid "No selection to delete" msgstr "" #: src/edit.c:1447 src/view.c:564 msgid "Delete" msgstr "" #: src/edit.c:1482 msgid "Nothing to crop out" msgstr "" #: src/edit.c:1498 src/view.c:580 src/view.c:1162 src/view.c:1868 msgid "Crop" msgstr "" #: src/edit.c:1572 src/edit.c:1646 src/edit.c:1730 msgid "Clipboard data has incompatible format" msgstr "" #: src/edit.c:1590 msgid "Paste insert" msgstr "" #: src/edit.c:1669 msgid "Paste mix" msgstr "" #: src/edit.c:1757 msgid "Paste xfade" msgstr "" #: src/file_dialogs.c:73 msgid "MP3 export unsupported" msgstr "" #: src/file_dialogs.c:74 msgid "" "Export to MP3 format cannot legally be supported in free software\n" "due to patent licensing restrictions.\n" "\n" "Please use Ogg Vorbis format instead, which\n" "provides better quality and is free." msgstr "" #: src/file_dialogs.c:99 msgid "Raw PCM (headerless)" msgstr "" #: src/file_dialogs.c:157 #, c-format msgid "%s does not exist." msgstr "" #: src/file_dialogs.c:158 msgid "Directory does not exist" msgstr "" #: src/file_dialogs.c:262 #, c-format msgid "" "Unable to read\n" "%s" msgstr "" #: src/file_dialogs.c:289 msgid "Sweep: Open Files" msgstr "" #: src/file_dialogs.c:370 #, c-format msgid "" "Are you sure you want to revert %s to\n" "%s?\n" "\n" "All changes and undo information will be lost." msgstr "" #: src/file_dialogs.c:374 msgid "Revert file" msgstr "" #: src/file_dialogs.c:375 src/view.c:509 msgid "Revert" msgstr "" #: src/file_dialogs.c:375 msgid "Don't revert" msgstr "" #: src/file_dialogs.c:545 src/file_dialogs.c:824 #, c-format msgid "Save as %s cancelled" msgstr "" #: src/file_dialogs.c:582 msgid "By extension" msgstr "" #: src/file_dialogs.c:640 msgid "MP3 (Use Ogg Vorbis instead)" msgstr "" #: src/file_dialogs.c:707 msgid "Sweep: Save file" msgstr "" #: src/file_dialogs.c:721 msgid "Save Options" msgstr "" #: src/file_dialogs.c:730 msgid "Determine File Type:" msgstr "" #: src/file_dialogs.c:810 #, c-format msgid "" "You are not allowed to write to\n" "%s" msgstr "" #: src/file_dialogs.c:812 #, c-format msgid "%s exists. Overwrite?" msgstr "" #: src/file_dialogs.c:814 msgid "File exists" msgstr "" #: src/file_dialogs.c:815 msgid "Overwrite" msgstr "" #: src/file_dialogs.c:815 msgid "Don't overwrite" msgstr "" #: src/file_dialogs.c:887 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Are you sure you want to save?" msgstr "" #: src/file_dialogs.c:891 src/sweep_undo.c:331 src/view.c:3401 msgid "File modified" msgstr "" #: src/file_dialogs.c:892 src/file_speex.c:2127 src/file_vorbis.c:1611 #: src/view.c:501 src/view.c:1782 msgid "Save" msgstr "" #: src/file_dialogs.c:892 src/file_speex.c:2138 src/file_vorbis.c:1622 msgid "Don't save" msgstr "" #: src/file_sndfile1.c:327 msgid "Powered by libsndfile" msgstr "" #: src/file_sndfile1.c:354 msgid "Encoding" msgstr "" #: src/file_sndfile1.c:375 msgid "Encoding:" msgstr "" #: src/file_sndfile1.c:447 msgid "Sampling rate:" msgstr "" #: src/file_sndfile1.c:480 src/file_speex.c:2078 src/file_vorbis.c:1562 #: src/samplerate.c:584 msgid "About" msgstr "" #: src/file_sndfile1.c:496 msgid "" "Libsndfile is a C library by Erik de Castro Lopo\n" "for reading and writing files containing sampled sound." msgstr "" #: src/file_sndfile1.c:507 msgid "" "This user interface by Erik de Castro Lopo\n" " and Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" #: src/file_sndfile1.c:550 msgid "Sweep: Save PCM options" msgstr "" #: src/file_sndfile1.c:719 msgid "Sweep: Load Raw PCM options" msgstr "" #: src/file_sndfile1.c:771 src/file_mad.c:435 src/file_speex.c:577 #: src/file_vorbis.c:324 #, c-format msgid "Loading %s" msgstr "" #: src/file_sndfile1.c:998 src/file_speex.c:1074 src/file_vorbis.c:702 #, c-format msgid "Saving %s" msgstr "" #: src/file_speex.c:1016 src/file_speex.c:1036 msgid "Speex encoding results" msgstr "" #: src/file_speex.c:1208 msgid "Narrowband ~8 kHz (telephone quality)" msgstr "" #: src/file_speex.c:1209 msgid "Wideband ~16 kHz" msgstr "" #: src/file_speex.c:1211 msgid "Ultra-wideband 32-48 kHz" msgstr "" #: src/file_speex.c:1218 msgid "Constant bitrate (CBR) with no features" msgstr "" #: src/file_speex.c:1221 msgid "CBR with Voice Activity Detection (VAD)" msgstr "" #: src/file_speex.c:1222 msgid "VAD generates low bitrate comfort noise to replace non-speech" msgstr "" #: src/file_speex.c:1225 msgid "CBR with VAD and Discontinuous Transmission (DTX)" msgstr "" #: src/file_speex.c:1226 msgid "DTX marks extended pauses with a minimum bitrate signal" msgstr "" #: src/file_speex.c:1229 msgid "Variable bitrate (VBR) with VAD" msgstr "" #: src/file_speex.c:1230 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech; this " "selection uses VBR without DTX, which may improve performance compared to " "full VBR in the presence of background noise." msgstr "" #: src/file_speex.c:1235 msgid "Variable bitrate (VBR) with all features" msgstr "" #: src/file_speex.c:1236 msgid "" "VBR allows the bitrate to adapt to the complexity of the speech, and handles " "pauses using VAD and DTX" msgstr "" #: src/file_speex.c:1240 msgid "Constant bitrate (CBR)" msgstr "" #: src/file_speex.c:1242 msgid "Variable bitrate (VBR)" msgstr "" #: src/file_speex.c:1243 msgid "VBR allows the bitrate to adapt to the complexity of the speech." msgstr "" #: src/file_speex.c:1298 src/file_speex.c:1803 msgid "Average bitrate" msgstr "" #: src/file_speex.c:1301 msgid "Maximum bitrate" msgstr "" #: src/file_speex.c:1494 src/file_vorbis.c:1013 msgid "Hack the planet!" msgstr "" #: src/file_speex.c:1580 msgid "Sweep: Speex save options" msgstr "" #: src/file_speex.c:1631 msgid "Speex encoding" msgstr "" #: src/file_speex.c:1644 msgid "Mode:" msgstr "" #: src/file_speex.c:1670 msgid "Auto" msgstr "" #: src/file_speex.c:1679 msgid "" "Automatically select the encoding mode based on the sampling rate of the " "file." msgstr "" #: src/file_speex.c:1732 src/file_vorbis.c:1160 msgid "Encoding quality:" msgstr "" #: src/file_speex.c:1775 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file)." msgstr "" #: src/file_speex.c:1785 msgid "Enable bitrate management" msgstr "" #: src/file_speex.c:1798 msgid "" "For non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For " "VBR encoding, this sets the average bitrate." msgstr "" #: src/file_speex.c:1821 msgid "bps" msgstr "" #: src/file_speex.c:1827 msgid "Extra" msgstr "" #: src/file_speex.c:1849 msgid "Encoding complexity:" msgstr "" #: src/file_speex.c:1888 msgid "" "This sets the encoding speed/quality tradeoff between 0 (faster encoding) " "and 10 (slower encoding)" msgstr "" #: src/file_speex.c:1904 msgid "Speex frames per Ogg packet:" msgstr "" #: src/file_speex.c:1930 msgid "" "Number of Speex frames to pack into each Ogg packet. Higher values save " "space at low bitrates." msgstr "" #: src/file_speex.c:1945 src/file_vorbis.c:1336 msgid "Remember these encoding options" msgstr "" #: src/file_speex.c:1965 src/file_vorbis.c:1356 msgid "Reset to the last remembered encoding options." msgstr "" #: src/file_speex.c:1980 msgid "Automatically select best encoding options for this file." msgstr "" #: src/file_speex.c:1985 src/file_vorbis.c:1469 msgid "Ogg stream" msgstr "" #: src/file_speex.c:1998 src/file_vorbis.c:1482 msgid "Ogg stream serial number:" msgstr "" #: src/file_speex.c:2019 src/file_vorbis.c:1503 msgid "Remember this serial number" msgstr "" #: src/file_speex.c:2029 src/file_vorbis.c:1513 msgid "" "Remember this serial number for future re-use.\n" "USE OF THIS OPTION IS NOT RECOMMENDED.\n" "Each encoded file should have a different serial number; re-use of Ogg " "serial numbers in different files may create incompatabilities with " "streaming applications. This option is provided for bitstream engineering " "purposes only.\n" "If this option is not checked, new serial numbers will be randomly generated " "for each file encoded." msgstr "" #: src/file_speex.c:2056 src/file_vorbis.c:1540 msgid "Randomize!" msgstr "" #: src/file_speex.c:2063 src/file_vorbis.c:1547 msgid "" "Generate a random serial number for the Ogg bitstream. The number will " "change while this button is held down." msgstr "" #: src/file_speex.c:2094 msgid "" "Speex is a high quality speech codec designed for\n" "voice over IP (VoIP) and file-based compression.\n" "It is free, open and unpatented." msgstr "" #: src/file_speex.c:2105 msgid "" "Ogg, Speex, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" #: src/file_speex.c:2120 src/file_vorbis.c:1604 src/samplerate.c:611 msgid "" "This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n" "\n" msgstr "" #: src/file_vorbis.c:356 #, c-format msgid "" "Decoding %s\n" "Encoded by: %s\n" "\n" "%s" msgstr "" #: src/file_vorbis.c:470 msgid "Unsupported encoding mode" msgstr "" #: src/file_vorbis.c:473 msgid "Invalid encoding options" msgstr "" #: src/file_vorbis.c:643 src/file_vorbis.c:663 msgid "Ogg Vorbis encoding results" msgstr "" #: src/file_vorbis.c:1089 msgid "Sweep: Ogg Vorbis save options" msgstr "" #: src/file_vorbis.c:1148 msgid "Vorbis encoding" msgstr "" #: src/file_vorbis.c:1195 msgid "" "Encoding quality between 0 (lowest quality, smallest file) and 10 (highest " "quality, largest file) using variable bitrate mode (VBR)." msgstr "" #: src/file_vorbis.c:1205 msgid "Enable bitrate management engine" msgstr "" #: src/file_vorbis.c:1211 msgid "" "This enables average bitrate mode (ABR). You must suggest a nominal average " "bitrate and may specify minimum and maximum bounds.\n" "For best results it is generally recommended that you use the variable " "bitrate 'encoding quality' control (above) instead." msgstr "" #: src/file_vorbis.c:1221 msgid "Bitrate management engine" msgstr "" #: src/file_vorbis.c:1247 msgid "Nominal bitrate (ABR):" msgstr "" #: src/file_vorbis.c:1260 msgid "" "Specify a nominal bitrate. Attempt to encode at a bitrate averaging this." msgstr "" #: src/file_vorbis.c:1264 src/file_vorbis.c:1293 src/file_vorbis.c:1323 msgid "kbps" msgstr "" #: src/file_vorbis.c:1276 msgid "Minimum bitrate:" msgstr "" #: src/file_vorbis.c:1289 msgid "" "Specify a minimum bitrate, useful for encoding for a fixed-size channel. " "(Optional)" msgstr "" #: src/file_vorbis.c:1306 msgid "Maximum bitrate:" msgstr "" #: src/file_vorbis.c:1319 msgid "" "Specify a maximum bitrate, useful for streaming applications. (Optional)" msgstr "" #: src/file_vorbis.c:1370 msgid "Set to default encoding options." msgstr "" #: src/file_vorbis.c:1377 msgid "Metadata" msgstr "" #: src/file_vorbis.c:1399 msgid "Title:" msgstr "" #: src/file_vorbis.c:1399 msgid "Track/Work name" msgstr "" #: src/file_vorbis.c:1401 msgid "Version:" msgstr "" #: src/file_vorbis.c:1402 msgid "" "The version field may be used to differentiate multiple versions of the same " "track title in a single collection. (e.g. remix info)" msgstr "" #: src/file_vorbis.c:1406 msgid "Album:" msgstr "" #: src/file_vorbis.c:1407 msgid "The collection name to which this track belongs" msgstr "" #: src/file_vorbis.c:1409 msgid "Artist:" msgstr "" #: src/file_vorbis.c:1410 msgid "" "The artist generally considered responsible for the work. In popular music " "this is usually the performing band or singer. For classical music it would " "be the composer. For an audio book it would be the author of the original " "text." msgstr "" #: src/file_vorbis.c:1416 msgid "Performer:" msgstr "" #: src/file_vorbis.c:1417 msgid "" "The artist(s) who performed the work. In classical music this would be the " "conductor, orchestra, soloists. In an audio book it would be the actor who " "did the reading. In popular music this is typically the same as the ARTIST " "and is omitted." msgstr "" #: src/file_vorbis.c:1424 msgid "Copyright:" msgstr "" #: src/file_vorbis.c:1425 msgid "" "Copyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'" msgstr "" #: src/file_vorbis.c:1428 msgid "License:" msgstr "" #: src/file_vorbis.c:1429 msgid "" "License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL " "to a license such as a Creative Commons license (\"www.creativecommons.org/" "blahblah/license.html\") or the EFF Open Audio License ('distributed under " "the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/" "eff_oal.html for details'), etc." msgstr "" #: src/file_vorbis.c:1438 msgid "Organization:" msgstr "" #: src/file_vorbis.c:1439 msgid "Name of the organization producing the track (i.e. the 'record label')" msgstr "" #: src/file_vorbis.c:1442 msgid "Description:" msgstr "" #: src/file_vorbis.c:1443 msgid "A short text description of the contents" msgstr "" #: src/file_vorbis.c:1445 msgid "Genre:" msgstr "" #: src/file_vorbis.c:1446 msgid "A short text indication of music genre" msgstr "" #: src/file_vorbis.c:1448 msgid "Date:" msgstr "" #: src/file_vorbis.c:1449 msgid "Date the track was recorded" msgstr "" #: src/file_vorbis.c:1451 msgid "Location:" msgstr "" #: src/file_vorbis.c:1452 msgid "Location where track was recorded" msgstr "" #: src/file_vorbis.c:1454 msgid "Contact:" msgstr "" #: src/file_vorbis.c:1455 msgid "" "Contact information for the creators or distributors of the track. This " "could be a URL, an email address, the physical address of the producing " "label." msgstr "" #: src/file_vorbis.c:1460 msgid "ISRC:" msgstr "" #: src/file_vorbis.c:1461 msgid "" "ISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-" "content/online/isrc_intro.html) for more information on ISRC numbers." msgstr "" #: src/file_vorbis.c:1578 msgid "" "Ogg Vorbis is a high quality general purpose\n" "perceptual audio codec. It is free, open and\n" "unpatented." msgstr "" #: src/file_vorbis.c:1589 msgid "" "Ogg, Vorbis, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission." msgstr "" #: src/head.c:408 src/view.c:2324 msgid "Cursor position (indicator)" msgstr "" #: src/head.c:449 msgid "Reverse mode (toggle)" msgstr "" #: src/head.c:467 msgid "Loop mode recording (toggle)" msgstr "" #: src/head.c:486 msgid "Record into selection" msgstr "" #: src/head.c:503 src/view.c:1068 msgid "Stop" msgstr "" #: src/head.c:516 src/view.c:2469 msgid "Go to beginning" msgstr "" #: src/head.c:527 src/view.c:2480 msgid "Rewind" msgstr "" #: src/head.c:540 src/view.c:2492 msgid "Fast forward" msgstr "" #: src/head.c:555 src/view.c:2505 msgid "Go to the end" msgstr "" #: src/interface.c:327 msgid "Sweep" msgstr "" #: src/interface.c:352 src/view.c:446 msgid "File" msgstr "" #: src/interface.c:357 msgid "New" msgstr "" #: src/interface.c:366 msgid "Open" msgstr "" #: src/interface.c:375 src/sweep_sample.c:800 src/sweep_sample.c:808 #: src/view.c:529 msgid "Quit" msgstr "" #: src/interface.c:386 src/view.c:1073 msgid "Help" msgstr "" #: src/interface.c:391 msgid "About..." msgstr "" #: src/interface.c:414 src/view.c:618 msgid "Select" msgstr "" #: src/interface.c:415 msgid "Select regions of a sample" msgstr "" #: src/interface.c:416 msgid "" "This tool allows you to select regions of a sample. You can then apply edits " "and effects to the: selected regions. Hold down shift whilst selecting to " "add discontinuous regions to the selection." msgstr "" #: src/interface.c:433 msgid "Move" msgstr "" #: src/interface.c:434 msgid "Move regions in a sample" msgstr "" #: src/interface.c:435 msgid "With this tool you can move selected regions of a sample." msgstr "" #: src/interface.c:447 msgid "Scrub" msgstr "" #: src/interface.c:448 msgid "Locate sounds directly" msgstr "" #: src/interface.c:449 msgid "" "Place the play marker on a sample. Click anywhere in a view to instantly " "move the playback position to that part of the sample." msgstr "" #: src/interface.c:466 msgid "Zoom" msgstr "" #: src/interface.c:467 msgid "Zoom in & out" msgstr "" #: src/interface.c:468 msgid "" "Zoom in and out of a view. Click anywhere in a view to zoom in on that part " "of the sample. Hold down shift and click on the view to zoom out." msgstr "" #: src/interface.c:484 msgid "Pencil" msgstr "" #: src/interface.c:485 msgid "Edit PCM sample values" msgstr "" #: src/interface.c:486 msgid "When zoomed down to individual samples, click to edit" msgstr "" #: src/interface.c:497 msgid "Noise" msgstr "" #: src/interface.c:498 msgid "Add noise" msgstr "" #: src/interface.c:499 msgid "Randomise PCM values" msgstr "" #: src/notes.c:61 msgid "C3" msgstr "" #: src/notes.c:62 msgid "C#3" msgstr "" #: src/notes.c:63 msgid "D3" msgstr "" #: src/notes.c:64 msgid "Eb3" msgstr "" #: src/notes.c:65 msgid "E3" msgstr "" #: src/notes.c:66 msgid "F3" msgstr "" #: src/notes.c:67 msgid "F#3" msgstr "" #: src/notes.c:68 msgid "G3" msgstr "" #: src/notes.c:69 msgid "G#3" msgstr "" #: src/notes.c:70 msgid "A3" msgstr "" #: src/notes.c:71 msgid "Bb3" msgstr "" #: src/notes.c:72 msgid "B3" msgstr "" #: src/notes.c:74 msgid "C4" msgstr "" #: src/notes.c:76 msgid "C#4" msgstr "" #: src/notes.c:77 msgid "D4" msgstr "" #: src/notes.c:78 msgid "Eb4" msgstr "" #: src/notes.c:79 msgid "E4" msgstr "" #: src/notes.c:80 msgid "F4" msgstr "" #: src/notes.c:81 msgid "F#4" msgstr "" #: src/notes.c:82 msgid "G4" msgstr "" #: src/notes.c:83 msgid "G#4" msgstr "" #: src/notes.c:84 msgid "A4" msgstr "" #: src/notes.c:85 msgid "Bb4" msgstr "" #: src/notes.c:86 msgid "B4" msgstr "" #: src/notes.c:88 msgid "C5" msgstr "" #: src/notes.c:89 msgid "C#5" msgstr "" #: src/notes.c:90 msgid "D5" msgstr "" #: src/notes.c:91 msgid "D#5" msgstr "" #: src/notes.c:92 msgid "E5" msgstr "" #: src/notes.c:94 msgid "F5" msgstr "" #: src/notes.c:95 msgid "F#5" msgstr "" #: src/notes.c:96 msgid "G5" msgstr "" #: src/notes.c:97 msgid "G#5" msgstr "" #: src/notes.c:98 msgid "A5" msgstr "" #: src/notes.c:99 msgid "Bb5" msgstr "" #: src/notes.c:100 msgid "B5" msgstr "" #: src/param.c:117 #, c-format msgid "TRUE" msgstr "" #: src/param.c:118 #, c-format msgid "FALSE" msgstr "" #: src/param.c:738 msgid "Parameters" msgstr "" #: src/param.c:769 msgid "Preview" msgstr "" #: src/paste_dialogs.c:221 msgid "Start gain" msgstr "" #: src/paste_dialogs.c:223 src/record.c:489 src/record.c:507 #: plugins/echo/echo.c:61 msgid "Gain" msgstr "" #: src/paste_dialogs.c:230 msgid "Sweep: Paste crossfade" msgstr "" #: src/paste_dialogs.c:232 msgid "Sweep: Paste mix" msgstr "" #: src/paste_dialogs.c:257 msgid "Source" msgstr "" #: src/paste_dialogs.c:257 msgid "Clipboard" msgstr "" #: src/paste_dialogs.c:279 src/paste_dialogs.c:318 msgid "End gain" msgstr "" #: src/paste_dialogs.c:287 src/paste_dialogs.c:326 msgid "Invert phase" msgstr "" #: src/paste_dialogs.c:295 msgid "Destination" msgstr "" #: src/paste_dialogs.c:345 msgid "" "Indicates the total duration of the clipboard, which is the maximum length " "that will be pasted." msgstr "" #: src/paste_dialogs.c:362 msgid "Clipboard duration:" msgstr "" #: src/paste_dialogs.c:375 msgid "Crossfade" msgstr "" #: src/paste_dialogs.c:375 msgid "Mix" msgstr "" #: src/paste_dialogs.c:394 msgid "Don't crossfade" msgstr "" #: src/paste_dialogs.c:394 msgid "Don't mix" msgstr "" #: src/preferences.c:62 msgid "Error creating ~/.sweep" msgstr "" #: src/preferences.c:66 #, c-format msgid "Created %s/ mode %04o\n" msgstr "" #: src/preferences.c:73 msgid "Error on ~/.sweep" msgstr "" #: src/preferences.c:82 msgid "Error setting permissions on ~/.sweep" msgstr "" #: src/preferences.c:89 msgid "Error accessing ~/.sweep" msgstr "" #: src/preferences.c:124 msgid "Error opening ~/.sweep/preferences.tdb" msgstr "" #: src/record.c:94 src/record.c:544 msgid "Ready to record" msgstr "" #: src/record.c:308 msgid "No selection to record into" msgstr "" #: src/record.c:446 msgid "Sweep: Record" msgstr "" #: src/record.c:459 src/undo_dialog.c:376 msgid "File:" msgstr "" #: src/record.c:482 msgid "Previous sound" msgstr "" #: src/record.c:496 msgid "" "This slider allows you to mix the new recording in with the previous " "contents of the buffer. Set it to -inf dB to overwrite the previous sound." msgstr "" #: src/record.c:502 msgid "Recorded sound" msgstr "" #: src/record.c:514 msgid "" "This slider allows you to reduce the level of the recorded sound. Set it to " "0 dB to record without any reduction. Note that setting this to -inf dB will " "record silence." msgstr "" #: src/sample-display.c:223 msgid "New selection" msgstr "" #: src/sample-display.c:224 msgid "Selection: add/modify region" msgstr "" #: src/sample-display.c:225 msgid "Selection: subtract region" msgstr "" #: src/samplerate.c:103 src/samplerate.c:167 msgid "Resample error" msgstr "" #: src/samplerate.c:104 src/samplerate.c:168 msgid "libsamplerate error" msgstr "" #: src/samplerate.c:234 #, c-format msgid "Resample from %d Hz to %d Hz" msgstr "" #: src/samplerate.c:445 msgid "Sweep: Resample" msgstr "" #: src/samplerate.c:467 msgid "Conversion" msgstr "" #: src/samplerate.c:474 #, c-format msgid "Current sample rate: %d Hz" msgstr "" #: src/samplerate.c:483 msgid "New sample rate" msgstr "" #: src/samplerate.c:494 msgid "Quality" msgstr "" #: src/samplerate.c:501 msgid "Converter" msgstr "" #: src/samplerate.c:544 msgid "Remember this quality" msgstr "" #: src/samplerate.c:564 msgid "Reset to the last remembered quality." msgstr "" #: src/samplerate.c:578 msgid "Set to default quality." msgstr "" #: src/samplerate.c:600 msgid "" "Secret Rabbit Code (aka libsamplerate) is a\n" "Sample Rate Converter for audio by Erik de Castro Lopo\n" msgstr "" #: src/samplerate.c:620 msgid "Resample" msgstr "" #: src/samplerate.c:633 msgid "Don't resample" msgstr "" #: src/sw_chooser.c:51 src/sw_chooser.c:66 msgid "Custom" msgstr "" #: src/sw_chooser.c:52 msgid "192000 Hz (Studio quality)" msgstr "" #: src/sw_chooser.c:53 msgid " 96000 Hz (High quality)" msgstr "" #: src/sw_chooser.c:54 msgid " 48000 Hz (DAT quality)" msgstr "" #: src/sw_chooser.c:55 msgid " 44100 Hz (CD quality)" msgstr "" #: src/sw_chooser.c:56 msgid " 32000 Hz (Ultra-wideband voice quality)" msgstr "" #: src/sw_chooser.c:57 msgid " 22050 Hz" msgstr "" #: src/sw_chooser.c:58 msgid " 16000 Hz (Wideband voice quality)" msgstr "" #: src/sw_chooser.c:59 msgid " 11025 Hz" msgstr "" #: src/sw_chooser.c:60 msgid " 8000 Hz (Narrowband voice quality)" msgstr "" #: src/sw_chooser.c:61 msgid " 4000 Hz (Low quality)" msgstr "" #: src/sw_chooser.c:67 src/view.c:3446 src/view.c:3459 src/view.c:3498 #, c-format msgid "Mono" msgstr "" #: src/sw_chooser.c:68 src/view.c:3446 src/view.c:3459 src/view.c:3501 #, c-format msgid "Stereo" msgstr "" #: src/sw_chooser.c:69 msgid "Quadraphonic" msgstr "" #: src/sw_chooser.c:306 msgid "Custom: " msgstr "" #: src/sw_chooser.c:341 msgid "Sampling rate" msgstr "" #: src/sw_chooser.c:343 msgid "Hz" msgstr "" #: src/sw_chooser.c:367 src/view.c:884 msgid "Channels" msgstr "" #: src/sw_chooser.c:369 src/view.c:3505 msgid "channels" msgstr "" #: src/sweep_filter.c:125 msgid "No selection to process" msgstr "" #: src/sweep_sample.c:119 src/view.c:3444 src/view.c:3450 src/view.c:3457 #: src/view.c:3463 msgid "Untitled" msgstr "" #: src/sweep_sample.c:324 msgid "Overflow" msgstr "" #: src/sweep_sample.c:407 msgid "Sweep: New file" msgstr "" #: src/sweep_sample.c:435 msgid "Name:" msgstr "" #: src/sweep_sample.c:455 msgid "Duration:" msgstr "" #: src/sweep_sample.c:471 msgid "hh:mm:ss.xxx" msgstr "" #: src/sweep_sample.c:514 msgid "Remember this format" msgstr "" #: src/sweep_sample.c:520 msgid "" "Remember this sampling rate and channel configuration for creating new files." msgstr "" #: src/sweep_sample.c:540 msgid "Reset to the last remembered format for new files." msgstr "" #: src/sweep_sample.c:551 msgid "Set to the default format for new files." msgstr "" #: src/sweep_sample.c:567 msgid "" "Indicates the amount of data memory which will be allocated for the selected " "duration and format. All audio data is processed internally in 32 bit " "floating point format." msgstr "" #: src/sweep_sample.c:582 msgid "Data memory:" msgstr "" #: src/sweep_sample.c:594 msgid "Create" msgstr "" #: src/sweep_sample.c:606 msgid "Don't create" msgstr "" #: src/sweep_sample.c:774 msgid "Excellent!!!" msgstr "" #: src/sweep_sample.c:796 msgid "Files unsaved" msgstr "" #: src/sweep_sample.c:797 msgid "" "Some files are unsaved. If you quit, all changes will be lost.\n" "\n" "Are you sure you want to quit?" msgstr "" #: src/sweep_sample.c:800 src/sweep_sample.c:808 msgid "Don't quit" msgstr "" #: src/sweep_sample.c:804 msgid "Files playing" msgstr "" #: src/sweep_sample.c:805 msgid "" "No files are unsaved, but some files are currently playing.\n" "\n" "Are you sure you want to quit?" msgstr "" #: src/sweep_sample.c:1465 src/view.c:1206 msgid "Invert selection" msgstr "" #: src/sweep_sample.c:1485 src/view.c:1214 src/view.c:1308 msgid "Select all" msgstr "" #: src/sweep_sample.c:1505 src/view.c:1222 msgid "Select none" msgstr "" #: src/sweep_sample.c:1525 msgid "Halve selection" msgstr "" #: src/sweep_sample.c:1545 msgid "Double selection" msgstr "" #: src/sweep_sample.c:1568 msgid "Selection left" msgstr "" #: src/sweep_sample.c:1590 msgid "Selection right" msgstr "" #: src/sweep_sample.c:1678 #, c-format msgid "Insert selection [" msgstr "" #: src/sweep_sample.c:1731 #, c-format msgid "Subtract selection [" msgstr "" #: src/sweep_sample.c:1776 #, c-format msgid "Set selection [" msgstr "" #: src/sweep_sample.c:1875 msgid "Sweep: File properties" msgstr "" #: src/sweep_sample.c:1899 msgid "Filename: " msgstr "" #: src/sweep_sample.c:1901 msgid "Sampling rate: " msgstr "" #: src/sweep_sample.c:1903 msgid "Channels: " msgstr "" #: src/sweep_sample.c:1905 msgid "Data memory: " msgstr "" #: src/sweep_sample.c:1907 msgid "Duration: " msgstr "" #: src/sweep_undo.c:327 #, c-format msgid "" "%s\n" " has changed on disk.\n" "\n" "Do you want to continue editing this buffer?" msgstr "" #: src/sweep_undo.c:332 msgid "Continue editing" msgstr "" #: src/sweep_undo.c:332 msgid "Reread from disk" msgstr "" #: src/sweep_undo.c:430 src/sweep_undo.c:488 msgid "Nothing to undo" msgstr "" #: src/sweep_undo.c:511 src/sweep_undo.c:567 msgid "Nothing to redo" msgstr "" #: src/undo_dialog.c:159 msgid "Original data" msgstr "" #: src/undo_dialog.c:344 msgid "Action" msgstr "" #: src/undo_dialog.c:351 msgid "Sweep: History" msgstr "" #: src/undo_dialog.c:393 src/view.c:548 src/view.c:1887 msgid "Undo" msgstr "" #: src/undo_dialog.c:401 src/view.c:552 src/view.c:1896 msgid "Redo" msgstr "" #: src/undo_dialog.c:426 msgid "Revert to selected state" msgstr "" #: src/undo_dialog.c:452 src/view.c:525 src/view.c:3402 msgid "Close" msgstr "" #: src/view.c:311 msgid "Duplicate to stereo" msgstr "" #: src/view.c:319 msgid "Duplicate to multichannel" msgstr "" #: src/view.c:331 msgid "Swap left and right" msgstr "" #: src/view.c:371 msgid "Add/Remove channels" msgstr "" #: src/view.c:454 src/view.c:1768 msgid "New ..." msgstr "" #: src/view.c:458 src/view.c:1775 msgid "Open ..." msgstr "" #: src/view.c:488 msgid "Open Recent" msgstr "" #: src/view.c:505 msgid "Save As ..." msgstr "" #: src/view.c:517 msgid "Properties ..." msgstr "" #: src/view.c:535 src/view.c:1136 msgid "Edit" msgstr "" #: src/view.c:556 msgid "Show history ..." msgstr "" #: src/view.c:588 src/view.c:1172 msgid "Paste: Insert" msgstr "" #: src/view.c:592 src/view.c:1178 msgid "Paste: Mix" msgstr "" #: src/view.c:596 src/view.c:1184 msgid "Paste: Crossfade" msgstr "" #: src/view.c:600 msgid "Paste as New" msgstr "" #: src/view.c:608 msgid "Preview Cut/Cursor" msgstr "" #: src/view.c:612 msgid "Pre-roll to Cursor" msgstr "" #: src/view.c:626 msgid "Invert" msgstr "" #: src/view.c:630 msgid "All" msgstr "" #: src/view.c:634 msgid "None" msgstr "" #: src/view.c:642 msgid "Halve" msgstr "" #: src/view.c:646 msgid "Double" msgstr "" #: src/view.c:650 msgid "Shift left" msgstr "" #: src/view.c:654 msgid "Shift right" msgstr "" #: src/view.c:659 msgid "View" msgstr "" #: src/view.c:666 src/view.c:2061 msgid "Autoscroll: follow playback cursor" msgstr "" #: src/view.c:684 msgid "Center" msgstr "" #: src/view.c:692 src/view.c:1996 msgid "Zoom in" msgstr "" #: src/view.c:696 src/view.c:2005 msgid "Zoom out" msgstr "" #: src/view.c:700 src/view.c:1111 msgid "Zoom to selection" msgstr "" #: src/view.c:706 msgid "Left" msgstr "" #: src/view.c:710 msgid "Right" msgstr "" #: src/view.c:715 src/view.c:1117 src/view.c:1276 msgid "Zoom normal" msgstr "" #: src/view.c:719 src/view.c:1123 src/view.c:1282 src/view.c:1987 msgid "Zoom all" msgstr "" #: src/view.c:723 msgid "1:1" msgstr "" #: src/view.c:733 msgid "Remember as" msgstr "" #: src/view.c:752 src/view.c:783 msgid "Area 1" msgstr "" #: src/view.c:753 src/view.c:784 msgid "Area 2" msgstr "" #: src/view.c:754 src/view.c:785 msgid "Area 3" msgstr "" #: src/view.c:755 src/view.c:786 msgid "Area 4" msgstr "" #: src/view.c:756 src/view.c:787 msgid "Area 5" msgstr "" #: src/view.c:757 src/view.c:788 msgid "Area 6" msgstr "" #: src/view.c:758 src/view.c:789 msgid "Area 7" msgstr "" #: src/view.c:759 src/view.c:790 msgid "Area 8" msgstr "" #: src/view.c:760 src/view.c:791 msgid "Area 9" msgstr "" #: src/view.c:761 src/view.c:792 msgid "Area 10" msgstr "" #: src/view.c:765 msgid "Zoom to" msgstr "" #: src/view.c:798 msgid "Color scheme" msgstr "" #: src/view.c:804 msgid "Decoder Red" msgstr "" #: src/view.c:812 msgid "Orangeboom" msgstr "" #: src/view.c:820 msgid "Lame Yellow" msgstr "" #: src/view.c:828 msgid "Coogee Bay Blue" msgstr "" #: src/view.c:836 msgid "Blackwattle" msgstr "" #: src/view.c:844 msgid "Frigid" msgstr "" #: src/view.c:852 msgid "Radar" msgstr "" #: src/view.c:860 msgid "Bluescreen" msgstr "" #: src/view.c:872 src/view.c:1236 src/view.c:1322 msgid "New View" msgstr "" #: src/view.c:877 msgid "Sample" msgstr "" #: src/view.c:894 msgid "Resample ..." msgstr "" #: src/view.c:903 msgid "Duplicate" msgstr "" #: src/view.c:908 src/view.c:1192 msgid "Process" msgstr "" #: src/view.c:917 msgid "Playback" msgstr "" #: src/view.c:924 msgid "Configure audio device ..." msgstr "" #: src/view.c:934 msgid "Transport" msgstr "" #: src/view.c:943 msgid "Go to start of file" msgstr "" #: src/view.c:949 msgid "Go to start of window" msgstr "" #: src/view.c:954 msgid "Skip back" msgstr "" #: src/view.c:959 msgid "Skip forward" msgstr "" #: src/view.c:964 msgid "Go to end of window" msgstr "" #: src/view.c:969 msgid "Go to end of file" msgstr "" #: src/view.c:978 msgid "Play selection" msgstr "" #: src/view.c:984 msgid "Play sample" msgstr "" #: src/view.c:990 msgid "Play note" msgstr "" #: src/view.c:1009 msgid "Toggle monitoring" msgstr "" #: src/view.c:1022 msgid "Toggle looping" msgstr "" #: src/view.c:1034 msgid "Toggle muting" msgstr "" #: src/view.c:1045 msgid "Toggle reverse playback" msgstr "" #: src/view.c:1063 msgid "Pause" msgstr "" #: src/view.c:1079 msgid "About MP3 export..." msgstr "" #: src/view.c:1085 msgid "About Sweep ..." msgstr "" #: src/view.c:1249 src/view.c:1335 msgid "File properties ..." msgstr "" #: src/view.c:1294 msgid "Paste" msgstr "" #: src/view.c:1791 msgid "Save as ..." msgstr "" #: src/view.c:1811 msgid "Cut selection to clipboard" msgstr "" #: src/view.c:1821 msgid "Copy selection to clipboard" msgstr "" #: src/view.c:1832 msgid "Paste: insert clipboard at cursor position" msgstr "" #: src/view.c:1843 msgid "Paste: mix clipboard in from cursor position" msgstr "" #: src/view.c:1854 msgid "Paste: fade clipboard in from cursor position" msgstr "" #: src/view.c:1924 msgid "Hand tool" msgstr "" #: src/view.c:1932 msgid "Selector tool" msgstr "" #: src/view.c:1944 msgid "\"Scrubby\" the scrub tool" msgstr "" #: src/view.c:1954 msgid "Pencil tool" msgstr "" #: src/view.c:1962 msgid "Noise tool" msgstr "" #: src/view.c:2052 msgid "Visible length" msgstr "" #: src/view.c:2171 msgid "Vertical zoom [Shift + Arrow Up/Down]" msgstr "" #: src/view.c:2301 msgid "Record ..." msgstr "" #: src/view.c:2377 msgid "Reverse mode playback (toggle)" msgstr "" #: src/view.c:2395 msgid "Loop mode playback (toggle)" msgstr "" #: src/view.c:2419 msgid "Play all / Pause" msgstr "" #: src/view.c:2436 msgid "Play selection / Pause" msgstr "" #: src/view.c:2452 msgid "Stop playback" msgstr "" #: src/view.c:2519 msgid "Muted playback (toggle)" msgstr "" #: src/view.c:2539 src/view.c:2557 msgid "Playback gain slider (volume)" msgstr "" #: src/view.c:2569 msgid "Monitor (toggle)" msgstr "" #: src/view.c:2587 msgid "SYNC" msgstr "" #: src/view.c:3144 #, c-format msgid "Remembered as area %d" msgstr "" #: src/view.c:3162 #, c-format msgid "No area remembered as %d" msgstr "" #: src/view.c:3165 #, c-format msgid "Zoomed to area %d" msgstr "" #: src/view.c:3347 src/view.c:3351 msgid "Scrub!" msgstr "" #: src/view.c:3347 src/view.c:3353 msgid "Ready" msgstr "" #: src/view.c:3399 #, c-format msgid "%s has been modified. Close anyway?" msgstr "" #: src/view.c:3402 msgid "Don't close" msgstr "" #: src/view.c:3449 src/view.c:3462 msgid "*" msgstr "" #: src/view.c:3465 msgid "Empty" msgstr "" #: plugins/byenergy/byenergy.c:58 msgid "Select regions above threshold" msgstr "" #: plugins/byenergy/byenergy.c:59 msgid "" "Whether to select those regions lying above a given threshold or below it." msgstr "" #: plugins/byenergy/byenergy.c:66 msgid "Resolution" msgstr "" #: plugins/byenergy/byenergy.c:67 msgid "Width of energy detection window (s)" msgstr "" #: plugins/byenergy/byenergy.c:73 msgid "Threshold" msgstr "" #: plugins/byenergy/byenergy.c:74 msgid "Energy level to detect [0.0 - 1.0]" msgstr "" #: plugins/byenergy/byenergy.c:80 msgid "Minimum duration" msgstr "" #: plugins/byenergy/byenergy.c:81 msgid "Shortest region of selection to detect (s)" msgstr "" #: plugins/byenergy/byenergy.c:87 msgid "Maximum interruption" msgstr "" #: plugins/byenergy/byenergy.c:88 msgid "Longest length of sound above threshold to allow (s)" msgstr "" #: plugins/byenergy/byenergy.c:227 plugins/byenergy/byenergy.c:232 msgid "Select by energy" msgstr "" #: plugins/byenergy/byenergy.c:233 msgid "Select loud or quiet regions" msgstr "" #: plugins/echo/echo.c:53 msgid "Delay" msgstr "" #: plugins/echo/echo.c:54 msgid "Time to delay by" msgstr "" #: plugins/echo/echo.c:62 msgid "Gain with which to mix in delayed signal" msgstr "" #: plugins/echo/echo.c:107 plugins/echo/echo.c:113 msgid "Echo" msgstr "" #: plugins/echo/echo.c:114 msgid "Apply an echo to selected regions of a sample" msgstr "" #: plugins/normalise/normalise.c:128 plugins/normalise/normalise.c:133 msgid "Normalise" msgstr "" #: plugins/normalise/normalise.c:134 msgid "Alter the sample's amplitude to lie between 1.0 and -1.0" msgstr "" #: plugins/reverse/reverse.c:129 plugins/reverse/reverse.c:134 #: plugins/reverse/reverse.c:140 msgid "Reverse" msgstr "" #: plugins/reverse/reverse.c:141 msgid "Reverse selected regions of a sample" msgstr "" #: plugins/example/example.c:37 plugins/example/example.c:86 msgid "With a fork" msgstr "" #: plugins/example/example.c:38 msgid "With a spoon" msgstr "" #: plugins/example/example.c:39 msgid "With false teeth" msgstr "" #: plugins/example/example.c:40 msgid "With Nigel's bum" msgstr "" #: plugins/example/example.c:56 msgid "Flim" msgstr "" #: plugins/example/example.c:57 msgid "Should you manage your flim?" msgstr "" #: plugins/example/example.c:64 msgid "Beans" msgstr "" #: plugins/example/example.c:65 msgid "Method of eating beans" msgstr "" #: plugins/example/example.c:72 msgid "Pants methodology" msgstr "" #: plugins/example/example.c:73 msgid "How many pants should you wear per day?" msgstr "" #: plugins/example/example.c:122 plugins/example/example.c:129 msgid "Example Filter Region" msgstr "" #: plugins/example/example.c:130 msgid "An example filter region plugin" msgstr "" #: plugins/fade/fade.c:148 plugins/fade/fade.c:161 msgid "Fade in" msgstr "" #: plugins/fade/fade.c:156 plugins/fade/fade.c:177 msgid "Fade out" msgstr "" #: plugins/fade/fade.c:162 msgid "Apply a linear fade to the selection, fading in from silence" msgstr "" #: plugins/fade/fade.c:178 msgid "Apply a linear fade to the selection, fading out to silence" msgstr "" sweep-0.9.3/po/remove-potcdate.sin0000644000175000017500000000066010777660173015633 0ustar useruser# Sed script that remove the POT-Creation-Date line in the header entry # from a POT file. # # The distinction between the first and the following occurrences of the # pattern is achieved by looking at the hold space. /^"POT-Creation-Date: .*"$/{ x # Test if the hold space is empty. s/P/P/ ta # Yes it was empty. First occurrence. Remove the line. g d bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } sweep-0.9.3/po/en_AU.gmo0000644000175000017500000000072510777670600013513 0ustar useruserÞ•,<P Qh^ ÇColor schemeProject-Id-Version: sweep-0.0.0 Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/ POT-Creation-Date: 2008-04-11 15:11+0100 PO-Revision-Date: 2002-07-11 17:58+1000 Last-Translator: joe bloggs Language-Team: English/Australia MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Colour schemesweep-0.9.3/po/it.gmo0000644000175000017500000012731610777670577013163 0ustar useruserÞ•ôÏÌ!-9 -úC-;>.-z.0¨.Ù.$ñ. /" / C/(M/v//¥/¾/8×/F0W0j0#€0¤0¦0Á0(Å0&î01111$181H1Q1 X1b1v1}181º1<Ú1;2-S2Y2Û2â2ê2ñ2ø2ÿ23 333"3*39/3Ni3"¸3Û3ë3î3ñ3ô3ø3ü344 4 ,4 74D4H4L4P4S4V41Y4'‹4³4º4=Á4ÿ4 55 5&#5J5^5n5 t55œ5'³5–Û5r6{6 Œ6—6 ¶6À6Ð6Õ6Hñ6 :7E7L7\7s7 x7‚77´7Ð7×7à7ä7ÿ788 87 8 D8 Q8_8{8 88¬8´8½8Ã8 Ê8 ×8ã8ø8 99 .9 :9G9 W9a9 q9|9 ‹9 ˜9£9ª9 »9 Å9æ9ÿ9: -: 7:B:E:H:K:O:S:X:]:t:z: ”:µ:¾:„Ó:bX;»; Í;×;"à;<<4<&F<%m<“< ©<¹¶<p=v=z=~=‚=…=ˆ=‹=‘=™= ¢=¯= ´= À=Î=â= è= ó= >>w>Œ>“>—>›>Ÿ>¢>¥>¨>(­>mÖ>D?K?[?m??•? «?¹?Ê?Ð? à?kê?V@[@'y@¡@’¤@7A©=A_çAGBZBsB zB‡B ˜B¤Bh©BLC_DhD {D†D!D ¿D4ÉDþDE7ESEpE ‡E”E¤EµEÊEÓEêEûE FF!F'F8FHFMFRFkFFƒFÊF%ÐFöFúFG G G)G[BGžG´GÉGÝGôG H(H .H9HPH UH _HjH~HŽH^žHýHIeI ‚IIu§IvJ”J™J ¢J ®J ¹J ÇJÕJåJ îJøJ KK K (K 5K ?KKK \K jK-uK*£K,ÎKûKL L LLŸL °L ºLÆLÕLìLõLM)MY]YoY†Y —Y¥YµYÍYÞY!øYZæZð[/÷[‚'\úª\¥]b»]^¨®^ÂW_K`‹f` ò`ü` aa#a 5aCa[a kauaŽa a¥a¿a#Èa%ìa=bePb@¶b½÷bµcÉcàc(dë)de%eDeIeXe5heže6¯eJæe1f$Bfgf xf „f‘f9¢f"Üfÿfg g g#g ±g½gÆgÎgàgògög ÿg h*h/hlCh7°ièiEøj0>kBok²k)Ík ÷k'l )l-3lalyl’l.¬l.ÛlB mMm\m*vm¡m£m¿m#Ãm)çmnn!n )n%6n\n rnn†n–n®nµn7»n)ónFoCdo5¨oXÞo7p>pFpMpTp[pbpipppwp~p‡pMŒpdÚp,?qlq{q„qq•qq¥q­qµq Õq âqìqûqr rrr r,(r&Ur|r„rU‹rárèrñrúr,s/s ?sMsTsess—s›¯s KtUt ktwt ’tŸt°t ¶tT×t ,u7uYv ˜v¦v(µvÞväv&óv w &w2w:w Bw Ow\www ˆw•w ­w ºwÅw äwòw xx x 1x =xGx^xfx€x•x¬x¾xÆxÏx×xßxçxîxõxùx"y%y+y)Kyuy~yŽ˜y\'z„z šz¤z*´zßz'ÿz'{+:{1f{˜{ ²{´½{r|x||†||•||¥|«|Ã|Û|î|ó|}}&} ,}8}T}e}Ql} ¾}É}Ð}×}Þ}æ}î}ö}/ÿ}h/~˜~  ~®~Ä~à~÷~ !19N`U¶ ¼,Ý €¡ €¯€¯µ€We½Ñðø‚‚,‚l5‚o¢‚„„4„F„+e„ ‘„<œ„4Ù„5…!D…f…"‚…¥…¸…É…Û…ð…ù…† %†3†;† U†`†~†”†™†  †$Á†Næ†5‡,;‡h‡n‡ t‡ €‡¡‡ ±‡_Ò‡2ˆRˆoˆˆ¬ˆ'ˈóˆúˆ‰'‰ .‰ 9‰D‰Y‰p‰o„‰ô‰#÷‰_Š {ІЅ¦Š†,‹³‹¸‹ ½‹Ê‹Ü‹ì‹ û‹ Œ ŒŒ 8ŒBŒJŒ]ŒoŒ"‚Œ¥ŒÅŒØŒ9éŒ:#8^—¤ «¦¶]Ž qŽŽ‘Ž¤Ž ¿Ž,ÉŽöŽ ",EV ^ iu~ ƒŽ¡©ÆÍãì$,Qjƒe ‘Ë$‘ð’“"“;“ M“ X“c“}“ ™“0£“/Ô“3”88”(q” 𔦔&®”6Õ”- • :•E•X• u••†•‹•”•¯• Ë•ו Ý•ë•ü• –(–:–J–ƒZ– Þ–è–ø–'—6—$G—#l——£—'´—Ü— ú—˜?˜(\˜%…˜+«˜ ט0ø˜)™;™2K™~™—™©™ ¸™^Å™$šO-šc}šQáš3›B›-a›‹›œ-œ4œ9œOœaœiœzœ6”œËœ&Ñœøœ )?Z%l’+¤Ð%áž!ž1ž!Cžež&wž&žžÅžñʞ἟0ž ‘Ï óa¡U¢ck¢žÏ¢½n£õ,¤S"¥‘v¥¦¦#¦%+¦Q¦m¦*ƒ¦®¦ ʦÖ¦ò¦ §$§ 6§B§'b§YЧ[ä§5@¨½v¨4©M© f©‡©! © ª1̪ þª ««;,«h«G{«<ë¬6¬K¬e¬w¬ˆ¬O™¬&é¬ ­­/­E­·d­®/®D®K®d®{®® †®“®±®¶®×…½n¤Ä µü­0, '©!Þâ%uÖzO 7|cí <‰ Çi[ÙäR´<.æœÂÅÐ ˜"Xô—‘d€Ðj9á^TZ£`ÖG{âoʃ=öq5l•°‚LX£ä¬Å1ÑðEv´ªÈ*û‡Eaà˜øtî’ë~–Ýz¶)rïdºP§ÿàƒš ŸVá@&% TpYòm²›ç2²‚}Ï’®~"_Cb:ñˆ¨sw/ÇÆ¢;>¨µŒ¤ ”ØõÊrå±qú{‰S_KV-/23456™ÒZÁ‘·\…-ë$4U^ñvÏ÷g¾`J7#};8ßÔoUÛsb p±‡ g]ß—¼Î3¬=>?³œå n¿KLMQì® AN¸?Ùwxy\Éjê¦]Ž)†À€RžŸÌPêtÜ.˼½¾ÃÛÚaIÝÑÒÓ ìó'ûù“‹Žô¹§ùJDl|×8kþãiÉÁ&³HIGO¿:h¡˰›6Œí  žF÷“@ABó©»ú¦B湺»õW!üÔ(¯¶Ä¢ÕÞç«  ¡ãèuØÜÃÓ彩¥9ÆH¸k+ø+Sf,ò[h„šéþe*è m­é«$ˆÿÌYQf‹ý(öyxŠ•W·–†Ne¯È™Í#cDŠÚÀM01ýÍ”FðîÕC¥Î --display Use the designated X display. --ignore-failed-lock Continue when attempt to lock the preferences file fails. For use when the users home directory is on an NFS file system. (possibly unsafe) --no-toolbox Do not show the toolbox window. -h --help Output this help. -v --version Output version info. 4000 Hz (Low quality) 8000 Hz (Narrowband voice quality) 11025 Hz 16000 Hz (Wideband voice quality) 22050 Hz 32000 Hz (Ultra-wideband voice quality) 44100 Hz (CD quality) 48000 Hz (DAT quality) 96000 Hz (High quality)"Scrubby" the scrub tool%s has changed on disk. Are you sure you want to save?%s has changed on disk. Do you want to continue editing this buffer?%s does not exist.%s exists. Overwrite?%s has been modified. Close anyway?*192000 Hz (Studio quality)1:1A short text description of the contentsA short text indication of music genreA3A4A5AboutAbout MP3 export...About Sweep ...About...ActionAdd noiseAdd/Remove channelsAlbum:AllAlter the sample's amplitude to lie between 1.0 and -1.0An example filter region pluginApply a linear fade to the selection, fading in from silenceApply a linear fade to the selection, fading out to silenceApply an echo to selected regions of a sampleAre you sure you want to revert %s to %s? All changes and undo information will be lost.Area 1Area 10Area 2Area 3Area 4Area 5Area 6Area 7Area 8Area 9Artist:AutoAutomatically select best encoding options for this file.Automatically select the encoding mode based on the sampling rate of the file.Autoscroll: follow playback cursorAverage bitrateB3B4B5Bb3Bb4Bb5BeansBitrate management engineBlackwattleBluescreenBy extensionC#3C#4C#5C3C4C5CBR with VAD and Discontinuous Transmission (DTX)CBR with Voice Activity Detection (VAD)CancelCenterChanges to device settings will take effect on next playback.ChannelsChannels: ClearClipboardClipboard data has incompatible formatClipboard duration:Clipboard emptyCloseColor schemeConfigure audio device ...Constant bitrate (CBR)Constant bitrate (CBR) with no featuresContact information for the creators or distributors of the track. This could be a URL, an email address, the physical address of the producing label.Contact:Continue editingConversionConvert from %d to %d channelsConverterCoogee Bay BlueCopyCopy selection to clipboardCopyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'Copyright:CreateCreate new fileCreated %s/ mode %04o CropCrossfadeCurrent sample rate: %d HzCurrently: %d channelsCursor position (indicator)CustomCustom: CutCut selection to clipboardD#5D3D4D5DTX marks extended pauses with a minimum bitrate signalData memory:Data memory: Date the track was recordedDate:Decoder RedDecoding %s Encoded by: %s %sDefaultDefaultsDelayDeleteDescription:DestinationDetermine File Type:Device bufferingDevice nameDirectory does not existDon't closeDon't createDon't crossfadeDon't mixDon't overwriteDon't quitDon't resampleDon't revertDon't saveDoubleDouble selectionDuplicateDuplicate from %d to %d channelsDuplicate to %d channelsDuplicate to multichannelDuplicate to stereoDuration:Duration: E3E4E5Eb3Eb4EchoEditEdit PCM sample valuesEmptyEnable bitrate managementEnable bitrate management engineEncodingEncoding complexity:Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file) using variable bitrate mode (VBR).Encoding quality between 0 (lowest quality, smallest file) and 10 (highest quality, largest file).Encoding quality:Encoding:End gainEnergy level to detect [0.0 - 1.0]Error accessing ~/.sweepError creating ~/.sweepError on ~/.sweepError opening ~/.sweep/preferences.tdbError setting permissions on ~/.sweepExample Filter RegionExcellent!!!Export to MP3 format cannot legally be supported in free software due to patent licensing restrictions. Please use Ogg Vorbis format instead, which provides better quality and is free.ExtraF#3F#4F#5F3F4F5FALSEFade inFade outFast forwardFileFile existsFile modifiedFile properties ...File:Filename: Files playingFiles unsavedFlimFor non-VBR (constant bitrate) encoding, this sets the maximum bitrate.For VBR encoding, this sets the average bitrate.FrigidG#3G#4G#5G3G4G5GainGain with which to mix in delayed signalGenerate a random serial number for the Ogg bitstream. The number will change while this button is held down.Genre:Go to beginningGo to end of fileGo to end of windowGo to start of fileGo to start of windowGo to the endHack the planet!HalveHalve selectionHand toolHello, my name is Scrubby. Welcome to Sweep! Would you like to create a new file or load an existing file?HelpHigh latency / Fewer dropoutsHow many pants should you wear per day?HzISRC number for the track; see the ISRC intro page (http://www.ifpi.org/site-content/online/isrc_intro.html) for more information on ISRC numbers.ISRC:Indicates the amount of data memory which will be allocated for the selected duration and format. All audio data is processed internally in 32 bit floating point format.Indicates the total duration of the clipboard, which is the maximum length that will be pasted.Insert selection [Invalid encoding optionsInvertInvert phaseInvert selectionLame YellowLeftLibsndfile is a C library by Erik de Castro Lopo for reading and writing files containing sampled sound.License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL to a license such as a Creative Commons license ("www.creativecommons.org/blahblah/license.html") or the EFF Open Audio License ('distributed under the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/eff_oal.html for details'), etc.License:Load existing fileLoading %sLocate sounds directlyLocation where track was recordedLocation:Longest length of sound above threshold to allow (s)Loop mode playback (toggle)Loop mode recording (toggle)Low latency / More dropoutsMP3 (Use Ogg Vorbis instead)MP3 export unsupportedMain device:Maximum bitrateMaximum bitrate:Maximum interruptionMetadataMethod of eating beansMinimum bitrate:Minimum durationMixMix down to monoMode:Monitor (toggle)Monitor output:MonoMoveMove regions in a sampleMuted playback (toggle)Name of the organization producing the track (i.e. the 'record label')Name:Narrowband ~8 kHz (telephone quality)NewNew ...New ViewNew sample rateNew selectionNo area remembered as %dNo files are unsaved, but some files are currently playing. Are you sure you want to quit?No selection to clearNo selection to copyNo selection to cutNo selection to deleteNo selection to processNo selection to record intoNoiseNoise toolNominal bitrate (ABR):NoneNormaliseNot stereoNothing to crop outNothing to redoNothing to undoNumber of Speex frames to pack into each Ogg packet. Higher values save space at low bitrates.OKOgg Vorbis encoding resultsOgg Vorbis is a high quality general purpose perceptual audio codec. It is free, open and unpatented.Ogg streamOgg stream serial number:Ogg, Speex, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.Ogg, Vorbis, Xiph.org Foundation and their logos are trademarks (tm) of the Xiph.org Foundation. Used with permission.OpenOpen ...Open RecentOrangeboomOrganization:Original dataOutput channelsOverflowOverwritePants methodologyParametersPastePaste as NewPaste insertPaste mixPaste xfadePaste: CrossfadePaste: InsertPaste: MixPaste: fade clipboard in from cursor positionPaste: insert clipboard at cursor positionPaste: mix clipboard in from cursor positionPausePencilPencil toolPerformer:Place the play marker on a sample. Click anywhere in a view to instantly move the playback position to that part of the sample.Play all / PausePlay notePlay samplePlay selectionPlay selection / PausePlaybackPlayback gain slider (volume)Powered by libsndfilePre-roll to CursorPreviewPreview Cut/CursorPrevious soundProcessProperties ...QuadraphonicQualityQuitRadarRandomise PCM valuesRandomize!Raw PCM (headerless)ReadyReady to recordRecord ...Record into selectionRecorded soundRedoRemember asRemember these encoding optionsRemember these optionsRemember this formatRemember this qualityRemember this sampling rate and channel configuration for creating new files.Remember this serial numberRemember this serial number for future re-use. USE OF THIS OPTION IS NOT RECOMMENDED. Each encoded file should have a different serial number; re-use of Ogg serial numbers in different files may create incompatabilities with streaming applications. This option is provided for bitstream engineering purposes only. If this option is not checked, new serial numbers will be randomly generated for each file encoded.Remembered as area %dRemove left channelRemove right channelReread from diskResampleResample ...Resample errorResample from %d Hz to %d HzResetReset to the last remembered device buffering.Reset to the last remembered device names.Reset to the last remembered encoding options.Reset to the last remembered format for new files.Reset to the last remembered quality.ResolutionReverseReverse mode (toggle)Reverse mode playback (toggle)Reverse selected regions of a sampleRevertRevert fileRevert to selected stateRewindRightSYNCSampleSampling rateSampling rate:Sampling rate: SaveSave As ...Save OptionsSave as %s cancelledSave as ...Saving %sScrubScrub!Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio by Erik de Castro Lopo SelectSelect allSelect by energySelect loud or quiet regionsSelect noneSelect regions above thresholdSelect regions of a sampleSelection leftSelection rightSelection: add/modify regionSelection: subtract regionSelector toolSet selection [Set the main device for playback and recordingSet to default device buffering.Set to default device names.Set to default encoding options.Set to default quality.Set to the default format for new files.Shift leftShift rightShortest region of selection to detect (s)Should you manage your flim?Show history ...Skip backSkip forwardSome files are unsaved. If you quit, all changes will be lost. Are you sure you want to quit?SourceSpecify a maximum bitrate, useful for streaming applications. (Optional)Specify a minimum bitrate, useful for encoding for a fixed-size channel. (Optional)Specify a nominal bitrate. Attempt to encode at a bitrate averaging this.Speex encodingSpeex encoding resultsSpeex frames per Ogg packet:Speex is a high quality speech codec designed for voice over IP (VoIP) and file-based compression. It is free, open and unpatented.Start gainStereoStopStop playbackSubtract selection [SwapSwap channelsSwap left and rightSwap main and monitor devices.SweepSweep plugin API versionSweep versionSweep: Add/Remove channelsSweep: Duplicate channelSweep: File propertiesSweep: HistorySweep: Load Raw PCM optionsSweep: New fileSweep: Ogg Vorbis save optionsSweep: Open FilesSweep: Paste crossfadeSweep: Paste mixSweep: RecordSweep: ResampleSweep: Save PCM optionsSweep: Save fileSweep: Speex save optionsSweep: audio device configurationTRUEThe artist generally considered responsible for the work. In popular music this is usually the performing band or singer. For classical music it would be the composer. For an audio book it would be the author of the original text.The artist(s) who performed the work. In classical music this would be the conductor, orchestra, soloists. In an audio book it would be the actor who did the reading. In popular music this is typically the same as the ARTIST and is omitted.The collection name to which this track belongsThe version field may be used to differentiate multiple versions of the same track title in a single collection. (e.g. remix info)This enables average bitrate mode (ABR). You must suggest a nominal average bitrate and may specify minimum and maximum bounds. For best results it is generally recommended that you use the variable bitrate 'encoding quality' control (above) instead.This is Sweep versionThis sets the encoding speed/quality tradeoff between 0 (faster encoding) and 10 (slower encoding)This slider allows you to mix the new recording in with the previous contents of the buffer. Set it to -inf dB to overwrite the previous sound.This slider allows you to reduce the level of the recorded sound. Set it to 0 dB to record without any reduction. Note that setting this to -inf dB will record silence.This tool allows you to select regions of a sample. You can then apply edits and effects to the: selected regions. Hold down shift whilst selecting to add discontinuous regions to the selection.This user interface by Conrad Parker, Copyright (C) 2002 CSIRO Australia. This user interface by Erik de Castro Lopo and Conrad Parker, Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO Australia. ThresholdTime to delay byTitle:Toggle loopingToggle monitoringToggle mutingToggle reverse playbackTrack/Work nameTransportUltra-wideband 32-48 kHzUnable to read %sUndoUnsupported encoding modeUntitledUsage: %s [option ...] [files ...] Use a different device for monitoringVAD generates low bitrate comfort noise to replace non-speechVBR allows the bitrate to adapt to the complexity of the speech, and handles pauses using VAD and DTXVBR allows the bitrate to adapt to the complexity of the speech.VBR allows the bitrate to adapt to the complexity of the speech; this selection uses VBR without DTX, which may improve performance compared to full VBR in the presence of background noise.Valid options are: Variable bitrate (VBR)Variable bitrate (VBR) with VADVariable bitrate (VBR) with all featuresVarying this slider controls the lag between cursor movements and playback. This is particularly noticeable when "scrubbing" during playback. Lower values improve responsiveness but may degrade audio quality on heavily-loaded systems.Version:Vertical zoom [Shift + Arrow Up/Down]ViewVisible lengthVorbis encodingWARNING: Build includes incomplete development code. Welcome to SweepWhen zoomed down to individual samples, click to editWhether to select those regions lying above a given threshold or below it.Wideband ~16 kHzWidth of energy detection window (s)With Nigel's bumWith a forkWith a spoonWith false teethWith this tool you can move selected regions of a sample.You are not allowed to write to %sZoomZoom allZoom inZoom in & outZoom in and out of a view. Click anywhere in a view to zoom in on that part of the sample. Hold down shift and click on the view to zoom out.Zoom normalZoom outZoom toZoom to selectionZoomed to area %dbpschannelshh:mm:ss.xxxhttp://sweep.sourceforge.net/kbpslibsamplerate errorProject-Id-Version: sweep-0.9.2 Report-Msgid-Bugs-To: http://www.metadecks.org/software/sweep/ POT-Creation-Date: 2008-04-11 15:11+0100 PO-Revision-Date: 2007-12-24 19:13+0200 Last-Translator: Yuri Bongiorno http://yuri.webhop.org Language-Team: Italian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --display usa il display X designato. --ignore-failed-lock continua quando il tentativo di fare il lock al file delle preferenze fallisce. Questa opzione è sconsigliata se le home degli utenti sono su un file system NFS. --no-toolbox non mostrare la finestra degli strumenti. -h --help mostra questo aiuto. -v --version mostra le informazioni sulla versione. 4000 Hz (qualità bassa) 8000 Hz (qualità voce a banda stretta) 11025 Hz 16000 Hz (qualità voce a banda larga) 22050 Hz 32000 Hz (qualità voce a banda larghissima) 44100 Hz (qualità CD) 48000 Hz (qualità DAT) 96000 Hz (qualità alta)«Scrubby» lo strumento per l'audioscandaglio%s è cambiato nel disco. Salvare veramente?%s è cambiato nel disco. Continuare a modificare questo buffer?%s non esiste.%s esiste. Sovrascrivere?%s è stato modificato. Chiudere comunque?*192000 Hz (qualità studio)1:1Una breve descrizione dei contenutiUna breve indicazione del genere musicaleLa 3La 4La 5InformazioniInformazioni sull'esportazione in MP3Informazioni su SweepInformazioniAzioneAggiungi rumoreAggiungi/rimuovi canaliAlbum:TuttoAltera l'ampiezza del campione per stare tra 1.0 e -1.0Un plugin della regione filtro di esempioApplica una dissolvenza lineare alla selezione, iniziando dal silenzioApplica una dissolvenza lineare alla selezione, finendo in silenzioApplica l'eco alle regioni selezionate di un campioneRipristinare %s in %s? Si perdono tutte le modifiche e le informazioni di annullamento.Area 1Area 10Area 2Area 3Area 4Area 5Area 6Area 7Area 8Area 9Artista:AutoSeleziona automaticamente le opzioni per la migliore codifica di questo file.Seleziona automaticamente la modalità di codifica basata sulla frequenza di campionamento del file.Autoscroll: segue il cursore di riproduzioneBit rate medioSi 3Si 4Si 5Sib 3Sib 4Sib 5FagioliMotore di gestione del bit rateMaron glacéTuono bluPer estensioneDo# 3Do# 4Do# 5Do 3Do 4Do 5CBR con VAD e trasmissione discontinua (DTX)CBR con soppressione dei silenzi (VAD)AnnullaCentraLe modifiche alle impostazioni del device avranno effetto alla prossima riproduzione.CanaliCanali: CancellaAppuntiGli appunti hanno un formato non compatibileDurata appunti:Appunti vuotiChiudiSchema di coloreConfigura il device audioBit rate costante (CBR)Bit rate costante (CBR)Informazione per contattare i creatori o i distributori del brano. Potrebbe essere un URL, un indirizzo email, un indirizzo fisico della casa discografica.Contatti:Continua a modificareConversioneConverte da %d a %d canaliConvertitoreAzzurro sussurroCopiaCopia la selezione negli appuntiAssegnazione del Copyright, es. «2001 I cavalieri del re» o «1999 Riccardo Zara»Copyright:CreaCrea un nuovo fileCreato %s/ con permessi %04o RitagliaDissolvenza incrociataFrequenza attuale di campionamento: %d HzAttualmente: %d canaliPosizione del cursore (indicatore)PersonalizzatoPersonalizzato: TagliaTaglia la selezione negli appuntiRe# 5Re 3Re 4Re 5DTX marca le pause prolungate con un segnale a minimo bit rateMemoria dati:Memoria dati: Data in cui il brano è stato registratoData:Profondo rossoDecodifica di %s Codificato da: %s %sPredefinitoPredefinitiRitardoEliminaDescrizione:DestinazioneDetermina il tipo di file:Device bufferingNome device:La directory non esisteNon chiudereNon creareNessuna dissolvenza incrociataNon mescolareNon sovrascrivereNon uscireNon ricampionareNon ripristinareNon salvareRaddoppiaRaddoppia la selezioneDuplicaDuplica da %d a %d canaliDuplica in %d canaliDuplica in multicanaleDuplica in stereoDurata:Durata: Mi 3Mi 4Mi 5Mib 3Mib 4EcoModificaModifica i valori del campione PCMVuotoAttiva la gestione del bit rateAttiva il motore di gestione del bit rateCodificaComplessità di codifica:Qualità di codifica tra 0 (bassa qualità, file piccolo) e 10 (alta qualità, file grande) che usa la modalità con bit rate variabile (VBR).Qualità di codifica tra 0 (bassa qualità, file piccolo) e 10 (alta qualità, file grande).Qualità di codifica:Codifica:Guadagno finaleLivello di energia da rilevare [0.0 - 1.0]Errore nell'accesso in ~/.sweepErrore durante la creazione di ~/.sweepErrore in ~/.sweepErrore nell'aprire ~/.sweep/preferences.tdbErrore nell'impostazione dei permessi su ~/.sweepRegione filtro di esempioEccellenteL'esportazione nel formato MP3 non può essere legalmente supportata nel software libero a causa dei brevetti. Il formato Ogg Vorbis fornisce una qualità migliore ed è libero. ExtraFa# 3Fa# 4Fa# 5Fa 3Fa 4Fa 5FALSODissolvenza in aperturaDissolvenza in chiusuraAvanzamento veloceFileil file esisteFile modificatoProprietà del fileFile:Nome file: I file sono in riproduzioneFile non salvatiSatiraImposta il bit rate massimo per le codifiche non VBR e il bit rate medio per VBR.BiancaneveSol# 3Sol# 4Sol# 5Sol 3Sol 4Sol 5GuadagnoGuadagno con cui mescolare il segnale ritardatoGenera un numero di serie casuale per il flusso Ogg. Il numero cambia finché questo bottone è premuto.Genere:Va all'inizioVa alla fine del fileVa alla fine della finestraVa all'inizio del fileVa all'inizio della finestraVa alla fineSpacca il mondoDimezzaDimezza la selezioneA manoCiao, il mio nome è Scrubby. Benvenuto in Sweep. Creo un nuovo file o ne carico uno esistente?AiutoAlta latenza / Meno interruzioniQuante mutande dovresti indossare al giorno?HzNumero ISRC del brano; vedere la pagina introduttiva di ISRC (http://www.ifpi.org/site-content/online/isrc_intro.html) per maggiori informazioni sui numeri ISRC.ISRC:Indica il valore della memoria che sarà allocata per la durata e il formato selezionato. Tutti i dati audio sono elaborati internamente nel formato a 32 bit a virgola mobile.Indica la durata totale degli appunti, che è la lunghezza massima che sarà incollata.Inverti selezione [Opzioni di codifica non valideInvertiInverte la faseInverte la selezioneGiallo cedroneSinistraLibsndfile è una libreria C di Erik de Castro Lopo per leggere e scrivere file contenenti suoni campionati.Informazione sulla licenza, es. «Tutti i diritti riservati», «Tutti gli usi consentiti», una URL per la licenza come la Creative Commons license («www.creativecommons.org/blahblah/license.html») o la EFF Open Audio License («distribuita secondo i termini della Open Audio License. Vedere http://www.eff.org/IP/Open_licenses/eff_oal.html per i dettagli»), ecc.Licenza:Carica un file esistenteCaricamento di %sLocalizza i suoni direttamenteLocalità dove il brano è stato registratoLocalità:Lunghezza massima di suono sopra la soglia da permettere (s)Modalità di riproduzione ciclica (attiva/disattiva)Registrazione in modalità ciclica (attiva/disattiva)Bassa latenza / Più interruzioniMP3 (usa invece Ogg Vorbis)esportazione in MP3 non supportataDevice principale:Bit rate massimoBit rate massimo:Interruzione massimaMetadataMetodo di mangiare fagioliBit rate minimo:Durata minimaMescolaRiduci in mono mescolandoModalità:Preascolto (attiva/disattiva)Output di preascolto:MonoSpostaSposta le regioni in un campioneRiproduzione muta (attiva/disattiva)Nome dell'organizzazione che produce il brano (cioè la «casa discografica»)Nome:Banda stretta 8 kHz (qualità del telefono)NuovoNuovoNuova vistaNuova frequenza di campionamentoNuova selezioneNessuna area memorizzata come %dNon ci sono file modificati, ma qualche file è attualmente in riproduzione. Uscire veramente?Nessuna selezione da cancellareNessuna selezione da copiareNessuna selezione da tagliareNessuna selezione da eliminareNessuna selezione da elaborareNessuna selezione da registrarci dentroRumoreStrumento di rumoreBit rate nominale (ABR):NienteNormalizzaNon stereoNiente da ritagliareNiente da ripristinareNiente da annullareNumero di frame Speex da inserire in ciascun pacchetto Ogg. Valori elevati risparmiano spazio a bassi bit rate.Okrisultati della codifica Ogg VorbisOgg Vorbis è un codec audio universale di alta qualità. È gratuito, aperto e non brevettato.Flusso OggNumero di serie del flusso Ogg:Ogg, Speex, Xiph.org Foundation e i loro loghi sono marchi registrati(tm) della Xiph.org Foundation. Sono usati con il loro permesso.Ogg, Vorbis, Xiph.org Foundation e i loro loghi sono marchi registrati(tm) della Xiph.org Foundation. Sono usati con il loro permesso.ApriApriApri recentiArancio meccanicoOrganizzazione:Dati originaliOutput canaliOverflowSovrascriviMetodologia delle mutandeParametriIncollaIncolla come nuovoIncolla inserendoIncolla mescolandoIncolla con dissolvenza incrociataIncolla: dissolvenza incrociataIncolla: inserisciIncolla: mescolaIncolla: dissolve gli appunti dalla posizione del cursoreIncolla: inserisce gli appunti nella posizione del cursoreIncolla: mescola gli appunti dalla posizione del cursorePausaMatitaMatitaEsecutore:Posizionare il segnapunti sul campione. Cliccare in qualunque punto della vista per muovere istantaneamente la posizione di riproduzione in quella parte del campione.Suona tutto / PausaSuona la notaSuona il campioneSuona la selezioneSuona la selezione / PausaRiproduciCursore di guadagno di riproduzione (volume)Basato su libsndfilePrearrotola il cursoreAnteprimaAnteprima taglia/cursoreSuono precedenteElaboraProprietàQuadrifoniaQualitàEsciVerdicchioValori PCM casualiCasualeRaw PCM (senza intestazione)ProntoPronto per registrareRegistraRegistra nella selezioneSuono registratoRipetiMemorizza comeMemorizza queste opzioni di codificaMemorizza queste opzioniMemorizza questo formatoMemorizza questa qualitàMemorizza questa frequenza di campionamento e questa configurazione dei canali per creare nuovi file.Memorizza questo numero di serieRicorda questo numero di serie per un riutilizzo futuro. L'USO DI QUESTA OPZIONE NON È RACCOMANDATO. Ciascun file codificato dovrebbe avere un numero di serie diverso, riutilizzare numeri di serie di Ogg in file diversi può creare incompatibilità con applicazioni di streaming. Questa opzione è fornita solo per scopi di progettazione di flussi. Se questa opzione non è attivata, nuovi numeri di serie sono creati casualmente per ciascun file codificato.Memorizza come area %dRimuovi il canale sinistroRimuovi il canale destroRilegge dal discoRicampionaRicampionaErrore di ricampionamentoRicampiona da %d Hz a %d HzReimpostaRitorna all'ultimo device buffering memorizzato.Ritorna agli ultimi nomi di device memorizzati.Ritorna alle ultime opzioni di codifica memorizzateRitorna all'ultimo formato memorizzato per i nuovi file.Ritorna all'ultima qualità memorizzata.RisoluzioneInverteModalità invertita (attiva/disattiva)Modalità di riproduzione invertita (attiva/disattiva)Inverte le regioni selezionate di un campioneRipristinaripristina il fileInverte lo stato selezionatoRiavvolgeDestraSYNCCampioneFrequenza di campionamentoFrequenza di campionamento:Frequenza: SalvaSalva come...Salva le opzioniSalvataggio come %s annullatoSalva come...Salvataggio di %sAudioscandaglioAudioscandaglioIl codice del coniglio segreto (cioè libsamplerate) è un convertitore di frequenza di campionamento audio di Erik de Castro Lopo SelezionaSeleziona tuttoSeleziona per energiaSeleziona regioni rumorose o silenzioseSeleziona nienteSeleziona le regioni sopra la sogliaSeleziona le regioni di un campioneSelezione sinistraSelezione destraSelezione: aggiunge/modifica la regioneSelezione: sottrae la regioneSelezionatoreImposta selezione [Imposta il device principale di riproduzione e di registrazioneImposta il device buffering predefinito.Imposta i nomi di device predefiniti.Imposta le opzioni di codifica predefinite.Imposta la qualità predefinita.Imposta il formato predefinito per i nuovi file.Sposta a sinistraSposta a destraLa più breve regione di selezione da rilevare (s)Domeresti la tua satira?Mostra cronologiaSalta indietroSalta avantiAlcuni file non sono stati salvati. Uscendo, si perdono tutte le modifiche. Uscire veramente?SorgenteSpecifica un bit rate massimo, utile per applicazioni di streaming (opzionale).Specifica un bit rate minimo, utile per codificare per un canale di dimensione fissata (opzionale).Specifica un bit rate nominale. Si tenta di codificare con questo bit rate medio.Codifica Speexrisultati della codifica SpeexNumero di frame Speex per ogni pacchetto Ogg:Speex è un codec di alta qualità vocale progettato per voice over IP (VoIP) e compressione di file. È gratuito, aperto e non brevettato.Guadagno inizialeStereoStopFerma la riproduzioneTogli selezione [ScambiaScambia i canaliScambia destra e sinistraScambia il device principale con quello di preascolto.SweepVersione delle API dei plugin di SweepVersione di SweepSweep: aggiunge/rimuove canaliSweep: duplica canaleSweep: proprietà del fileSweep: cronologiaSweep: opzioni Raw PCM di caricamentoSweep: nuovo fileSweep: opzioni di salvataggio di Ogg VorbisSweep: apri fileSweep: incolla dissolvenza incrociataSweep: incolla mescolandoSweep: registraSweep: ricampionaSweep: opzioni PCM di salvataggioSweep: salva fileSweep: opzioni di salvataggio di SpeexSweep: configurazione del device audioVEROL'artista è generalmente considerato il responsabile dell'opera. Nella musica popolare è normalmente la banda che suona o il cantante. Per la musica classica sarebbe il compositore. Per un libro vocale sarebbe l'autore del testo originale.L'artista che ha eseguito l'opera. Nella musica classica sarebbe il direttore, l'orchestra, i solisti. In un libro vocale sarebbero gli attori che leggono. Nella musica popolare è normalmente uguale all'Artista ed è omesso.Il nome della raccolta a cui il brano appartieneIl campo versione può essere usato per differenziare le diverse versioni dello stesso brano di una singola raccolta (es. informazioni di remix).Attiva il bit rate medio (ABR). Si deve suggerire un bit rate nominale medio e specificare il limite massimo e minimo. Per migliori risultati si raccomanda di utilizzare il controllo «qualità di codifica» del bit rate variabile (vedi sopra)Questa è la versioneImposta il compromesso velocità/qualità di codifica tra 0 (codifica veloce) e 10 (codifica lenta)Questo cursore permette di mescolare la nuova registrazione con i contenuti precedenti del buffer. Impostarlo a -inf dB per sovrascrivere il suono precedente.Questo cursore permette di ridurre il livello del suono registrato. Impostarlo a 0 dB per registrare senza nessuna riduzione. Notare che impostando questo a -inf dB registrerà il silenzio.Questo strumento permette di selezionare le regioni di un campione. Si possono quindi applicare le modifiche e gli effetti alle regioni selezionate. Tenere premuto «shift» durante la selezione per aggiungere regioni discontinue alla selezione.Questa interfaccia utente è di Conrad Parker, Copyright (C) 2002 CSIRO Australia. Questa interfaccia utente è di Erik de Castro Lopo e Conrad Parker, Copyright (C) 2002 Erik de Castro Lopo Copyright (C) 2002 CSIRO Australia. SogliaTempo di ritardo daTitolo:Attiva/Disattiva la modalità ciclicaAttiva/Disattiva preascoltoAttiva/Disattiva mutoAttiva/Disattiva la riproduzione invertitaNome del brano o dell'operaSpostamentoBanda larghissima 32-48 kHzImpossibile leggere %sAnnullaModalità di codifica non supportataSenzatitoloUso: %s [opzione...] [file...] Usa un diverso device per il preascoltoVAD genera un rumore di sottofondo a basso bit rate per rimpiazzare le pause del discorsoVBR adatta il bit rate alla complessità del parlato e gestendo i silenzi tramite VAD e DTXVBR adatta il bit rate alla complessità del parlato.VBR adatta il bit rate alla complessità del parlato, questa selezione usa VBR senza DTX e in presenza di rumore di fondo le prestazioni possono migliorare rispetto all'uso del normale VBR.Le opzioni valide sono: Bit rate variabile (VBR)Bit rate variabile (VBR) con VADBit rate variabile (VBR)Variando questa barra si modifica il ritardo tra i movimenti del cursore e la riproduzione. Questo si nota particolarmente nella riproduzione durante l'«audioscandaglio». Bassi valori migliorano la risposta, ma possono degradare la qualità dell'audio su sistemi caricati pesantemente.Versione:Ingrandimento verticale [shift + freccia su/giù]VisualizzaLunghezza visibileCodifica VorbisATTENZIONE: Build include codice (incompleto) di sviluppo. benvenuto in SweepQuando è rimpicciolito a campioni individuali, cliccare per modificareSe selezionare quelle regioni sopra o sotto una data soglia.Banda larga ~16 kHzFinestra di rilevamento della larghezza di energia (s)Con un vagabondo di NigelCon una forchettaCon un cucchiaioCon una dentieraCon questo strumento si possono spostare le regioni selezionate di un campione.Non ci sono i permessi per scrivere %sIngrandimentoVisualizza tuttoAumenta ingrandimentoAumenta e riduci ingrandimentoAumenta e riduce l'ingrandimento. Cliccare in qualunque punto della vista per aumentare l'ingrandimento in quella parte del campione. Per ridurlo, tenere premuto «shift» e cliccare.Dimensioni normaliRiduci ingrandimentoVai inIngrandisci la selezioneVisualizzata l'area %dbpscanalihh:mm:ss.xxxhttp://sweep.sourceforge.net/kbpserrore di libsampleratesweep-0.9.3/mkinstalldirs0000755000175000017500000000653510777660176014224 0ustar useruser#! /bin/sh # mkinstalldirs --- make directory hierarchy scriptversion=2004-02-15.20 # Original author: Noah Friedman # Created: 1993-05-16 # Public domain. # # This file is maintained in Automake, please report # bugs to or send patches to # . errstatus=0 dirmode="" usage="\ Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... Create each directory DIR (with mode MODE, if specified), including all leading file name components. Report bugs to ." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" exit 0 ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --version) echo "$0 $scriptversion" exit 0 ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and # mkdir -p a/c at the same time, both will detect that a is missing, # one will create a, then the other will try to create a and die with # a "File exists" error. This is a problem when calling mkinstalldirs # from a parallel make. We use --version in the probe to restrict # ourselves to GNU mkdir, which is thread-safe. case $dirmode in '') if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -p -- $*" exec mkdir -p -- "$@" else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. test -d ./-p && rmdir ./-p test -d ./--version && rmdir ./--version fi ;; *) if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@" else # Clean up after NextStep and OpenStep mkdir. for d in ./-m ./-p ./--version "./$dirmode"; do test -d $d && rmdir $d done fi ;; esac for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d do pathcomp="$pathcomp$d" case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr="" chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp="$pathcomp/" done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: sweep-0.9.3/ChangeLog0000644000175000017500000004515110777702740013157 0ustar useruserFri Apr 11 00:00:00 GMT 2008 Peter Shorthose This is a bug fix release, containing the following changes: * Fixed bounds checking of mode in speex header. relates to: http://www.ocert.org/advisories/ocert-2008-2.html * Fixed bug preventing device dialog being reopened when closed via the window manager. All users with speex handling enabled should upgrade. Tue Jan 30 00:00:00 GMT 2007 Peter Shorthose * ALSA is now the default driver. see README.OSS for oss * minimum supported gtk version raised to 2.4 * added the "hand tool" for panning the display with inertia (Radoslaw Korzeniewski) * can now open multiple files via the gtk file selector * implemented accel editing via the usual gtk method * added tdb lock override (Takashi Iwai) * remove support for libsndfile0 (Erik de Castro Lopo) * remove direct flac support as it's supported by libsndfile now (Erik de Castro Lopo) * added a new splash screen (Pascal Klein) * fix segfault when closing windows while others were still loading * other bugs addressed and changes made. run "svn log" on a copy of svn trunk for details, or check http://trac.metadecks.org/timeline * released 0.9.2 Mon Jan 30 23:58:00 GMT 2006 Peter Shorthose * fixed --enable-alsa configure option * released 0.9.1 Wed Jan 18 04:10:00 GMT 2006 Peter Shorthose * ported the interface to gtk+-2.0 * mp3 loading and playback whilst loading bugs fixed * corrected a note to key mapping for pc keyboard playback (Paul Brossier) * a new SVG icon for sweep (Alex Kloss) * an updated spanish translation (Waldo Ramirez Montano) * an updated Polish translation (Radoslaw Korzeniewski) * more minor tweaks and improvements. * released 0.9.0 Mon Aug 22 21:54:30 EST 2005 Conrad Parker * updated for ALSA 1.0 (Daniel Dreschers, Charles Turner) * a new Polish translation (Radoslaw Korzeniewski) * an updated russian translation (Alex Prokoudine) * moved sources into svn.metadecks.org; check SVN logs for full changes; see also http://trac.metadecks.org/. * released 0.8.4 Fri Apr 30 15:06:10 EST 2004 Conrad Parker * a new Spanish translation by Juan Manuel Martinez * an updated Italian translation by Yuri Bongiorno * resampler bug fixed by Erik de Castro Lopo * made main scrollbar arrows useful (bug #821596) * compile warning fixes for GCC3 * moved sources back into CVS; check CVS logs for full changes * released 0.8.3 Thu Sep 4 11:54:23 EST 2003 Conrad Parker * added es_ES translation by Juan Manuel Mart\xednez * updated it translation from Yuri Bongiorno Sat Apr 29 02:48:14 EST 2003 Silvia Pfeiffer * driver_alsa.c: deleting double line #include * fixed files in src directory with config.h includes * fixed inclusion of licensing info GPL in some src files * fixed static string i18n also including _(...) for them * added some strings to i18n Tue Apr 15 09:43:58 EST 2003 Conrad Parker * driver_alsa.c: changed alsa init to use *_near functions Tue Apr 1 18:10:06 EST 2003 Conrad Parker * driver_alsa.c: added endianness patch from Erik de Castro Lopo * file_speex.c: added VBR without DTX option for speex-1.0rc3 Tue Feb 18 06:59:23 EST 2003 Conrad Parker * sample-display.c: added Super_L (new Logo mapping) to scrubbing keys * driver_alsa.c: merged in ALSA 0.9 code from Zenaan Harkness * driver.c: abstracted out config dialog for both OSS and ALSA Tue Feb 11 22:00:36 EST 2003 Conrad Parker * el.po: new file -- Greek translation by Dokianakis Fanis * param.c: fixed granularity of sliders in process dialogs Thu Feb 6 20:44:05 EST 2003 Conrad Parker * file_speex.c: added stereo handling and skipping of extra headers Mon Feb 3 22:33:04 EST 2003 Conrad Parker * edit.c: updated splice_in_eb to use realloc Wed Jan 29 23:51:02 EST 2003 Conrad Parker * edit.c: added refcounting to edit buffers * edit.c: removed edit_buffer_copy calls in copy and paste insert ops * edit.c: switched edit region allocations to mmap temp files * file_dialogs.c: modified load to create new for nonexistant files * file_dialogs.c: added pathname arg to new dialog * main.c: prepended cwd to naked filenames before loading * file_sndfile1.c: updated raw error string for recent libsndfile1 Sat Jan 18 16:49:49 EST 2003 Conrad Parker * added monitoring functionality * it.po: updated from Yuri Bongiorno * fixed wacky play/play sel keyboard interaction (thx Heimo!) Fri Dec 20 17:36:27 EST 2002 Conrad Parker * notes.c, param.c, view.c: pasting preprocessor fixes and note cleanups by Erik de Castro Lopo * src/Makefile.am: added EXPORT_SYMBOLS_LDFLAGS to sweep_LDFLAGS for NetBSD (should be empty string on Solaris) -- by Julio Merino * byenergy.c: fixed spelling error (reported by Yuri Bongiorno) * fade.c: new file -- fade in and out filters Fri Dec 6 14:54:33 EST 2002 Conrad Parker * README.i18n: new file from Silvia Pfeiffer * it.po: updated from Yuri Bongiorno * byenergy.c: fixed typo "threshholdor" Thu Dec 5 14:47:11 EST 2002 Conrad Parker * file_dialogs.c: fixed stupid bug in mp3 extension checking * play.c, notes.c: fixed bug in pitched playback * callbacks.c, view.c: fixed overzealous setting of playmarker on refresh of scrollbar adjustment * play.c: fixed preview cut and preroll, moved out of experimental Thu Nov 28 14:49:48 EST 2002 Conrad Parker * about_dialogs.c, file_dialogs.c, main.c, preferences.c: applied patch from Andre Pang to fix some compile warnings on OS X * driver_alsa.c: removed naked #include Wed Nov 27 23:59:00 EST 2002 Conrad Parker * sweep_sample.c: fixed bug in descriptions of selection actions * paste_dialogs.c, edit.c: fixed paste_mix and paste_xfade, moved out of experimental * sample-display.c, sweep_sample.c: added Ctrl-Arrow Left/Right to move cursor between selection edges * view.c: added remember/zoom to area functionality * view.c: included full first word of plugin names in process menu Tue Nov 26 12:19:21 EST 2002 Conrad Parker * samplerate.c: updated for libsamplerate-0.0.11 Mon Nov 25 22:44:26 EST 2002 Conrad Parker * configure.in: moved ALSA build out of experimental * driver_alsa.c: updates from Zenaan Harkness Sat Nov 23 14:35:33 EST 2002 Conrad Parker * file_dialogs.c: added check of pathname extension before attempting load as mp3; workaround inaccurate guessing of mp3 files (raw PCM is sometimes guessed as mp3 otherwise) * file_speex.c: updated to allow ultra wideband mode (speex-1.0beta3) * sw_chooser.c: added 32 kHz (uwb) mode to samplerate chooser * samplerate.c: updated for libsamplerate-0.0.9, added quality menu Fri Nov 1 23:09:12 EST 2002 Conrad Parker * question_dialogs.c: switched from syserr_r (broken in glibc) to g_strerror Thu Oct 31 11:07:29 EST 2002 Conrad Parker * channelops.c: removed broken reference to Wed Oct 30 18:37:01 EST 2002 Conrad Parker * question_dialogs.c: changed syserror_dialog to use strerror_r * preferences.c, driver.c: Solaris compile fixes as outlined in Sourceforge bug report #625528 * src/Makefile.am: commented out sweep_LDFLAGS = -Wl,--export as requested by #625528; this was originally in place for Solaris anyway, please advise if this breaks anything. Wed Oct 30 09:45:33 EST 2002 Conrad Parker * file_*.c: added file_method to load functions; fixes a 'save' bug * db_ruler.[ch]: new file -- dB ruler * view.c, db_ruler.c: vertical zoom * chanelsops.c: added channel duplicate ops Sun Oct 27 14:28:27 EST 2002 Conrad Parker * channelops.[ch]: new files -- channel operations * resample.c: added undo for resampling; moved out of experimental Tue Oct 22 23:58:05 EST 2002 Conrad Parker * configure.in: fixed 'other libs' in check for libspeex * resample.c: new file -- preliminary support for secret rabbit code 21 Oct 2002 07:36:38 +1100 Zenaan Harkness * view.c: nicer volume & pitch slider adjustments Sat Oct 19 03:16:19 EST 2002 Conrad Parker * file_speex.c: new file -- Speex import/export Thu Oct 17 16:40:53 EST 2002 Conrad Parker * file_dialogs.c: added "MP3 export unsupported" dialog Wed Oct 16 10:16:17 EST 2002 Conrad Parker * sweep_sample.c: added check for IDLE in sample_set_progress_ready() * record.c: moved select out of ops_mutex lock * head.c, sample-display.c: fixed tracking of record marker * main.c: added initial question (new file or load file) * question_dialogs.c: added quit_if_no_files stuff * file_sndfile[01].c: added try_raw flags * play.c: fixed rounding error in mixing files of different rate Mon Oct 14 18:58:21 EST 2002 Conrad Parker * sample-display.c: added lock on ops_mutex in draw_data_channel Mon Oct 14 00:37:44 EST 2002 Conrad Parker * file_mad.c: new file -- mpeg audio import via libmad Thu Oct 10 11:38:24 EST 2002 Conrad Parker * file_sndfile0.c: backported all error checking etc. Wed Oct 9 18:14:05 EST 2002 Conrad Parker * configure: filled out ogg vorbis checks, and ov_read_float args * file_vorbis.c: put metadata handling in experimental branch, put in support for old 3 arg ov_read_float () Wed Oct 9 00:29:06 EST 2002 Conrad Parker * sweep_sample.c: prettied up "new file" dialog, added remember functionality, added memory size calculation and filename input * file_sndfile1.c, file_vorbis.c: moved setting of pathname to occur after a successful save only * file_sndfile1.c, file_vorbis.c: added sweep_perror()s throughout * file_vorbis.c: added stats on file size * question_dialogs.c: added pixmap field (suggested by Silvia) Tue Oct 8 00:38:13 EST 2002 Conrad Parker * sweep_sample.c: fixed mtime copying in sample_copy * question_dialogs.c: added sweep_perror errno info dialog * file_sndfile1.c: moved perror reporting to sweep_perror * timeouts.c: new file -- thread safe wrapper around gtk_timeout * sweep_sample.c, question_dialogs.c: switched tmp_message and dialogs to use sweep_timeout to invoke gtk stuff * file_dialogs.c: added file access and dir existence checks * sw_chooser.[ch]: new files -- widgets for choosing samplerate and channels * sweep_sample.c, file_sndfile1.c: updated to use sw_chooser Sat Oct 5 11:09:07 EST 2002 Conrad Parker * file_vorbis.c: added full vorbis encoding options * file_sndfile1.c: added logo etc., turned on DITHER_ON_WRITE Wed Oct 2 23:44:34 EST 2002 Conrad Parker * file_vorbis.c: new file -- added Ogg Vorbis import/export * file_dialogs.c, sweep_app.h: made file handling method generic Sun Sep 29 23:27:02 EST 2002 Conrad Parker * sweep_sample.c: clamped percentage between 0 and 100 * play.c: fixed bug in starting position of pitched playback * file_sndfile[01].c: added entry for samplerate in raw PCM load Wed Sep 25 22:42:12 EST 2002 Conrad Parker * sweep_sample.c: added check for files playing to quit dialogs Wed Sep 25 17:40:55 EST 2002 Conrad Parker * file_sndfile0.c: updates for libsndfile0 (for purposes of backporting -- not recommended and must be explicitly enabled) * edit.c: added check for format compatability in paste ops Mon Sep 23 23:13:07 EST 2002 Conrad Parker * file_sndfile1.c: fixed percent bug in load/save of very short files * view.c: fixed "ruler assumes 44100 samples/sec" (Debian bug #161721) * sweep_filter.c: fixed cancelling of SweepFilter plugins * ladspameta.c, normalise.c, reverse.c: fixed cancelation of plugins Sat Sep 21 21:39:22 EST 2002 Conrad Parker * question_dialogs.c: new file -- dialogs for info and questions, with sample locking * file_*.c: fixed revert, moved back into non-experimental mainline * file_*.c: added monitoring of mtime, and dialogs on save and edit if file has changed on disk * callbacks.c, view.c: added "are you sure" dialogs when closing or quitting with modified files Wed Sep 18 22:20:01 EST 2002 Conrad Parker * play.c: made scrubbing independent of nr. channels (scrub_rate) * ladspameta.c: fixed segv in handling of mono files and filters * callbacks.c: made scrubby stop if space is pressed (so you don't lose your position by playback continuing when scrubby is released, suggestion from swh) Tue Sep 17 21:57:52 EST 2002 Conrad Parker * ladspameta.c: fixed channel de-interleaving/interleaving * ladspameta.c: switched to SweepFilter, instantiated separate LADSPA_Handle for each iteration & internalised processing loop * ladspameta.c: fixed detection of upper and lower bounds * param.c: changed step relative to upper and lower bounds * ladspameta.c, reverse.c, normalise.c: fixed divide by 0 bug in calculating percent for regions shorter than 100(ish) samples Wed Sep 11 00:20:36 EST 2002 Conrad Parker * play.c: made scrubbing independent of sample rate (scrub_rate) * play.c: fixed reverse scrubbing * edit.c, record.c, sweep_filter.c: fixed divide by 0 bug in calculating percent for regions shorter than 100 samples * edit.c: fixed handling of crop for selections starting at 0 and/or ending at nr_frames * sweep_undo.c: fixed crash when playing during ALLOC operation (eg. crop, paste, cut) -- forced stop of sample playback before op. Sun Sep 8 11:25:43 EST 2002 Conrad Parker * configure: fixed unreported failure in libsndfile detection * configure: added warning if libsndfile0 detected * driver_oss.c: put DEBUG around naked g_print on GETOPTR failure * sample-display.c: reverted Scrubby to always play_all, even when started within a selection (restricted scrubbing was wierd). * callbacks.c: removed old play_{all,sel}_{looped,once}_cb callbacks * callbacks.c: changed play callbacks to not stop if the play head is already going, ie. just changing the restriction Thu Sep 5 21:31:18 EST 2002 Conrad Parker * modified selection modification to invoke scrubbing Wed Sep 4 15:05:04 EST 2002 Conrad Parker * fixed bug in save as handling reported by Pauline Mak Tue Sep 3 20:19:49 EST 2002 Conrad Parker * changed storing of last load and save directories to use preferences functions for persistence * added configure summary info for GTK+ and GLib * commented out pixmaps inst hook in toplevel Makefile.am * added non-failing check for gnome-moz-remote * added check for strchr (for NetBSD, from Julio Merino Vidal) Mon Sep 2 21:35:57 EST 2002 Conrad Parker * added missing third arg to some ioctls, required for NetBSD port (patch from Julio Merino Vidal) * fixed configure.in to fail when libtdb is not found * added configuration summaries to configure * changed --enable-devel to --enable-experimental Sun Aug 25 20:18:25 EST 2002 Conrad Parker * added preferences loading/saving (preferences.[ch]) * added dependency on libtdb Tue Aug 13 02:03:08 EST 2002 Conrad Parker * version 0.5.0 * Everything has changed. Scrubby has you. Sat May 5 20:51:26 -0500 2001 * fixed bug in save as handling Fri Apr 27 13:22:44 EST 2001 Radoslaw Korzeniewski * added Polish translation * fixed bug #414942 (segfault after revert) * removed duplicate memory allocation in file loading Wed Oct 25 22:18:39 EST 2000 Conrad Parker * fixed compile bug on Solaris (API change in driver.c) * fixed gtk assertion when zooming too far; created new zoom functions in view.c * added new zoom types (norm and 1:1) from Steve Harris Mon Oct 16 18:07:23 EST 2000 Conrad Parker * fixed PACKAGE_PLUGIN_DIR defines in configure.in Sun Oct 8 14:55:21 EST 2000 Conrad Parker * merged in new native plugin interface * merged in ALSA 0.6.0 support from Paul Barton-Davis * added ladspameta plugin for LADSPA support * added byenergy plugin * added Hungarian translation by Gergely Nagy * added Italian translation by Yuri Bongiorno * added German translation by Silvia Pfeiffer * added plugin_writers_guide.txt in doc/ * set up include/ directory, moved sweep*.h header files to it * changed colour scheme * changed sweep.png desktop icon to match new colours * many small changes since version 0.0.9 * released version 0.1.0 Thu Oct 05 20:48.03 GMT+2 2000 Nicolas Léveillé * src/file_dialogs.c: file selection now has a memory for the current directory. * src/file_dialogs.c+src/file_ops.c: fixed seg faults when user presses 'ok' without having selected anything. Thu May 11 22:49:08 EST 2000 Conrad Parker * merged in Solaris audio driver code from Mattias Engdegård * added autoconf tests for OSS and Solaris detection * renamed driver-oss.* to driver.* * fixed buglet giving gtk assertion when starting playmarker after a device open had failed on a preceding playback. * added RPM .spec file, created redhat RPM and SRPM packages. Wed May 10 23:31:01 EST 2000 Conrad Parker * added French translations by mathieu ROY * changed to colourful button pixmaps by mathieu ROY Fri May 5 00:17:56 EST 2000 Conrad Parker * fixed bug in overrunning playback buffer in some situations * corrected display of large samples * limited zoom out to handle multiplication overflow * added help menu and about dialog box Wed May 3 09:56:09 EST 2000 Conrad Parker * fixed bug in loading samples without complete pathname, tracked down by Mark Taylor Tue May 2 20:27:02 EST 2000 Conrad Parker * cleaned up layout of main sample views * updated basic documentation (README, man page) Thu Apr 27 09:03:24 EST 2000 Conrad Parker * fixed playmarker update bug when closing a sample * added position indicator * added button pixmaps to toolbox and play/stop buttons sweep-0.9.3/compile0000755000175000017500000000717310777670414012767 0ustar useruser#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. scriptversion=2005-05-14.22 # Copyright (C) 1999, 2000, 2003, 2004, 2005 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, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . 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 $? ;; esac ofile= cfile= eat= 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 -e 's|^.*/||' -e '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 mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then 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-end: "$" # End: sweep-0.9.3/ltmain.sh0000644000175000017500000060512310660364710013216 0ustar useruser# ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, # 2007 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 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 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. basename="s,^.*/,,g" # 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" # The name of this program: progname=`echo "$progpath" | $SED $basename` modename="$progname" # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 PROGRAM=ltmain.sh PACKAGE=libtool VERSION="1.5.24 Debian 1.5.24-1ubuntu1" TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)" # Be Bourne compatible (taken from Autoconf:_AS_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 # Check that we have a working $echo. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then # Yippee, $echo works! : else # Restart under the correct shell, and then maybe $echo will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE fi # Global variables. mode=$default_mode nonopt= prev= prevopt= run= show="$echo" show_help= execute_dlfiles= duplicate_deps=no preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 ##################################### # Shell function definitions: # This seems to be the best place for them # 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 "$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" || { $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2 exit $EXIT_FAILURE } fi $echo "X$my_tmpdir" | $Xsed } # 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. func_win32_libid () { 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 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ $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_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 () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done 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 "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; # 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. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac CC_quoted="$CC_quoted $arg" done case "$@ " in " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) # 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 $echo "$modename: unable to infer tagged configuration" $echo "$modename: specify a tag with \`--tag'" 1>&2 exit $EXIT_FAILURE # else # $echo "$modename: using $tagname tagged configuration" fi ;; esac fi } # func_extract_an_archive dir oldlib func_extract_an_archive () { f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 exit $EXIT_FAILURE fi } # func_extract_archives gentop oldlib ... func_extract_archives () { my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" my_status="" $show "${rm}r $my_gentop" $run ${rm}r "$my_gentop" $show "$mkdir $my_gentop" $run $mkdir "$my_gentop" my_status=$? if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then exit $my_status fi 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 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) extracted_serial=`expr $extracted_serial + 1` 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" $show "${rm}r $my_xdir" $run ${rm}r "$my_xdir" $show "$mkdir $my_xdir" $run $mkdir "$my_xdir" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then exit $exit_status fi case $host in *-darwin*) $show "Extracting $my_xabs" # Do not bother doing anything if just a dry run if test -z "$run"; then darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` if test -n "$darwin_arches"; then darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= $show "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do 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 have a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` lipo -create -output "$darwin_file" $darwin_files done # $darwin_filelist ${rm}r unfat-$$ cd "$darwin_orig_dir" else cd "$darwin_orig_dir" func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches fi # $run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # End of Shell function definitions ##################################### # Darwin sucks eval std_shrext=\"$shrext_cmds\" disable_libs=no # Parse our command line options once, thoroughly. while test "$#" -gt 0 do arg="$1" shift case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; tag) tagname="$arg" preserve_args="${preserve_args}=$arg" # Check whether tagname contains only valid characters case $tagname in *[!-_A-Za-z0-9,/]*) $echo "$progname: invalid tag name: $tagname" 1>&2 exit $EXIT_FAILURE ;; esac case $tagname in CC) # Don't test for the "default" C tag, as we know, it's there, but # not specially marked. ;; *) if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then taglist="$taglist $tagname" # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" else $echo "$progname: ignoring unknown tag $tagname" 1>&2 fi ;; esac ;; *) eval "$prev=\$arg" ;; esac prev= prevopt= continue fi # Have we seen a non-optional argument yet? case $arg in --help) show_help=yes ;; --version) echo "\ $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP Copyright (C) 2007 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." exit $? ;; --config) ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath # Now print the configurations for the tags. for tagname in $taglist; do ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" done exit $? ;; --debug) $echo "$progname: enabling shell trace mode" set -x preserve_args="$preserve_args $arg" ;; --dry-run | -n) run=: ;; --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 $? ;; --finish) mode="finish" ;; --mode) prevopt="--mode" prev=mode ;; --mode=*) mode="$optarg" ;; --preserve-dup-deps) duplicate_deps="yes" ;; --quiet | --silent) show=: preserve_args="$preserve_args $arg" ;; --tag) prevopt="--tag" prev=tag preserve_args="$preserve_args --tag" ;; --tag=*) set tag "$optarg" ${1+"$@"} shift prev=tag preserve_args="$preserve_args --tag" ;; -dlopen) prevopt="-dlopen" prev=execute_dlfiles ;; -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *) nonopt="$arg" break ;; esac done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi case $disable_libs in no) ;; shared) build_libtool_libs=no build_old_libs=yes ;; static) build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` ;; esac # 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= if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 case $nonopt in *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do case $arg in -c) mode=compile break ;; esac done ;; *db | *dbx | *strace | *truss) mode=execute ;; *install*|cp|mv) mode=install ;; *rm) mode=uninstall ;; *) # If we have no mode, but dlfiles were specified, then do execute mode. test -n "$execute_dlfiles" && mode=execute # Just use the default operation mode. if test -z "$mode"; then if test -n "$nonopt"; then $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 else $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 fi fi ;; esac fi # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$modename --help --mode=$mode' for more information." # These modes are in order of execution frequency so that they run quickly. case $mode in # libtool compile mode compile) modename="$modename: compile" # 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= 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) if test -n "$libobj" ; then $echo "$modename: you cannot specify \`-o' more than once" 1>&2 exit $EXIT_FAILURE fi arg_mode=target continue ;; -static | -prefer-pic | -prefer-non-pic) later="$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,*) args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac lastarg="$lastarg $arg" done IFS="$save_ifs" lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` # Add the arguments to base_compile. base_compile="$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. lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` case $lastarg in # Double-quote args containing other shell metacharacters. # Many Bourne shells cannot handle close brackets correctly # in scan sets, and some SunOS ksh mistreat backslash-escaping # in scan sets (worked around with variable expansion), # and furthermore cannot handle '|' '&' '(' ')' in scan sets # at all, so we specify them separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") lastarg="\"$lastarg\"" ;; esac base_compile="$base_compile $lastarg" done # for arg case $arg_mode in arg) $echo "$modename: you must specify an argument for -Xcompile" exit $EXIT_FAILURE ;; target) $echo "$modename: you must specify a target with \`-o'" 1>&2 exit $EXIT_FAILURE ;; *) # Get the name of the library object. [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo xform='[cCFSifmso]' case $libobj in *.ada) xform=ada ;; *.adb) xform=adb ;; *.ads) xform=ads ;; *.asm) xform=asm ;; *.c++) xform=c++ ;; *.cc) xform=cc ;; *.ii) xform=ii ;; *.class) xform=class ;; *.cpp) xform=cpp ;; *.cxx) xform=cxx ;; *.[fF][09]?) xform=[fF][09]. ;; *.for) xform=for ;; *.java) xform=java ;; *.obj) xform=obj ;; esac libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` case $libobj in *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; *) $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 exit $EXIT_FAILURE ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -static) build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` case $qlibobj in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qlibobj="\"$qlibobj\"" ;; esac test "X$libobj" != "X$qlibobj" \ && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \ && $echo "$modename: libobj name \`$libobj' may not contain shell special characters." objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$obj"; then xdir= else xdir=$xdir/ fi lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # 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 $run $rm $removelist trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2*) 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 "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 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 $run ln "$progpath" "$lockfile" 2>/dev/null; do $show "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." $run $rm $removelist exit $EXIT_FAILURE fi $echo "$srcfile" > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` case $qsrcfile in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qsrcfile="\"$qsrcfile\"" ;; esac $run $rm "$libobj" "${libobj}T" # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. test -z "$run" && cat > ${libobj}T </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." $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 $show "$mv $output_obj $lobj" if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the PIC object to the libtool object file. test -z "$run" && cat >> ${libobj}T <> ${libobj}T </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." $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 $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else error=$? $run $rm $removelist exit $error fi fi # Append the name of the non-PIC object the libtool object file. # Only append if the libtool object file exists. test -z "$run" && cat >> ${libobj}T <> ${libobj}T <&2 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 case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; esac libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) compile_command="$compile_command @OUTPUT@" finalize_command="$finalize_command @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. compile_command="$compile_command @SYMFILE@" finalize_command="$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 dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" exit $EXIT_FAILURE fi prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat $save_arg` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi 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 dlfiles="$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. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$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 non_pic_objects="$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" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi done else $echo "$modename: link input file \`$save_arg' does not exist" exit $EXIT_FAILURE fi arg=$save_arg prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= compile_command="$compile_command $wl$qarg" finalize_command="$finalize_command $wl$qarg" continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= compile_command="$compile_command $qarg" finalize_command="$finalize_command $qarg" continue ;; shrext) shrext_cmds="$arg" prev= continue ;; darwin_framework|darwin_framework_skip) test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" prev= 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 compile_command="$compile_command $link_static_flag" finalize_command="$finalize_command $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 continue ;; -avoid-version) avoid_version=yes 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 $echo "$modename: more than one -exported-symbols argument is not allowed" exit $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework|-arch|-isysroot) case " $CC " in *" ${arg} ${1} "* | *" ${arg} ${1} "*) prev=darwin_framework_skip ;; *) compiler_flags="$compiler_flags $arg" prev=darwin_framework ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" 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*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; esac continue ;; -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" notinst_path="$notinst_path $dir" fi dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$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*) # 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 deplibs="$deplibs -framework System" 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 deplibs="$deplibs $arg" continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. -model) compile_command="$compile_command $arg" compiler_flags="$compiler_flags $arg" finalize_command="$finalize_command $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" continue ;; -module) module=yes continue ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m* pass through architecture-specific compiler args for GCC # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC # -F/path gives path to uninstalled frameworks, gcc on darwin # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" compiler_flags="$compiler_flags $arg" continue ;; -shrext) prev=shrext continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 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*) dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 exit $EXIT_FAILURE ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac 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 ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Wl,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" case $flag in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") flag="\"$flag\"" ;; esac arg="$arg $wl$flag" compiler_flags="$compiler_flags $wl$flag" linker_flags="$linker_flags $flag" done IFS="$save_ifs" arg=`$echo "X$arg" | $Xsed -e "s/^ //"` ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then pic_object= non_pic_object= # Read the .lo file # If there is no directory component, then add one. case $arg in */* | *\\*) . $arg ;; *) . ./$arg ;; esac if test -z "$pic_object" || \ test -z "$non_pic_object" || test "$pic_object" = none && \ test "$non_pic_object" = none; then $echo "$modename: cannot find name of object for \`$arg'" 1>&2 exit $EXIT_FAILURE fi # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi 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 dlfiles="$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. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. libobjs="$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 non_pic_objects="$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" non_pic_objects="$non_pic_objects $non_pic_object" fi else # Only an error if not doing a dry-run. if test -z "$run"; then $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 exit $EXIT_FAILURE else # Dry-run case. # Extract subdirectory from the argument. xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` if test "X$xdir" = "X$arg"; then xdir= else xdir="$xdir/" fi pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` libobjs="$libobjs $pic_object" non_pic_objects="$non_pic_objects $non_pic_object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" 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. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi done # argument parsing loop if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" fi oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'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\" output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` if test "X$output_objdir" = "X$output"; then output_objdir="$objdir" else output_objdir="$output_objdir/$objdir" fi # Create the object directory. if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then exit $exit_status fi fi # Determine the type of output case $output in "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac case $host in *cygwin* | *mingw* | *pw32*) # don't eliminate duplications in $postdeps and $predeps duplicate_compiler_generated_deps=yes ;; *) duplicate_compiler_generated_deps=$duplicate_deps ;; 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 test "X$duplicate_deps" = "Xyes" ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$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 test "X$duplicate_compiler_generated_deps" = "Xyes" ; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$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 case $linkmode in lib) passes="conv link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 exit $EXIT_FAILURE ;; 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 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 "$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) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; 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 (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then library_names= old_library= case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac 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 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." 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 -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; 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 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` 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 used here." else $echo $echo "*** Warning: Linking the shared library $output against the" $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi 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. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2 exit $EXIT_FAILURE fi # Check to see that this really is a libtool archive. if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` test "X$ladir" = "X$lib" && ladir="." dlname= dlopen= dlpreopen= libdir= library_names= old_library= # 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 case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$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 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 exit $EXIT_FAILURE fi continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 exit $EXIT_FAILURE fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE 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. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$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 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 abs_ladir="$ladir" fi ;; esac laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then $echo "$modename: warning: library \`$lib' was moved." 1>&2 dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$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 notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 exit $EXIT_FAILURE fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi 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 newlib_search_path="$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*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test 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 test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$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 *" $dir "*) ;; *" $absdir "*) ;; *) temp_rpath="$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 "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$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 if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi # This is a shared library # Warn about portability, can't link against -module's on # some systems (darwin) if 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 "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names realname="$2" shift; 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*) major=`expr $current - $age` versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" soname=`$echo $soroot | ${SED} -e 's/^.*\///'` newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" 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 "$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 module then we can not link against # it, someone is ignoring the new warnings I added if /usr/bin/file -L $add 2> /dev/null | $EGREP ": [^:]* bundle" >/dev/null ; 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 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; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$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 $echo "$modename: configuration error: unsupported hardcode properties" exit $EXIT_FAILURE fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$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:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes; 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:"*) ;; *) finalize_shlibpath="$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 [\\/]*) add_dir="$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*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$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" if test "X$duplicate_deps" = "Xyes" ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$deplib" && dir="." # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 absdir="$dir" fi ;; esac if grep "^installed=no" $deplib > /dev/null; then path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi path="$absdir" fi depdepl= case $host in *-*-darwin*) # we do not want to link against static libs, # but need to link against shared 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 "$path/$depdepl" ; then depdepl="$path/$depdepl" fi # do not add paths which are already there case " $newlib_search_path " in *" $path "*) ;; *) newlib_search_path="$newlib_search_path $path";; esac fi path="" ;; *) path="-L$path" ;; esac ;; -l*) case $host in *-*-darwin*) # Again, we only want to link against shared libraries eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` for tmp in $newlib_search_path ; do if test -f "$tmp/lib$tmp_libs.dylib" ; then eval depdepl="$tmp/lib$tmp_libs.dylib" break fi done path="" ;; *) continue ;; esac ;; *) continue ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac case " $deplibs " in *" $depdepl "*) ;; *) deplibs="$depdepl $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs 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 "*) ;; *) lib_search_path="$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 "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$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 tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 fi if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 fi # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 exit $EXIT_FAILURE else $echo $echo "*** Warning: Linking the shared library $output against the non-libtool" $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi if test "$dlself" != no; then $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 fi set dummy $rpath if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" 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 if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 fi else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 IFS="$save_ifs" if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # 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="$2" number_minor="$3" number_revision="$4" # # 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 darwin|linux|osf|windows|none) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) current=`expr $number_major + $number_minor` age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; esac ;; no) current="$2" revision="$3" age="$4" ;; 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]) ;; *) $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; 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]) ;; *) $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; 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]) ;; *) $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE ;; esac if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 exit $EXIT_FAILURE 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 major=.`expr $current - $age` versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` 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 major=`expr $current - $age` else major=`expr $current - $age + 1` fi 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 iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) major=.`expr $current - $age` versuffix="$major.$age.$revision" ;; osf) major=.`expr $current - $age` 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 iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. major=`expr $current - $age` versuffix="-$major" ;; *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 exit $EXIT_FAILURE ;; 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 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi if test "$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) ;; $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 removelist="$removelist $p" ;; *) ;; esac done if test -n "$removelist"; then $show "${rm}r $removelist" $run ${rm}r $removelist fi fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"` # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"` # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "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 temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$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 "*) ;; *) dlfiles="$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 "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs -framework System" ;; *-*-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 deplibs="$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. $rm conftest.c cat > conftest.c </dev/null` 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 "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$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 else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` for a_deplib in $deplibs; do name=`expr $a_deplib : '-l\(.*\)'` # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$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 newdeplibs="$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 else # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" fi done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ -e '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 "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` done fi if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ | grep . >/dev/null; then $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 fi ;; 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 is the System framework newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; 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 # 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 "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$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 if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$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 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"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$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" if test -n "$hardcode_libdir_flag_spec_ld"; then case $archive_cmds in *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;; *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;; esac else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$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 "$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 realname="$2" shift; 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 linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" if len=`expr "X$cmd" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then $show "$cmd" $run eval "$cmd" || exit $? skipped_export=false else # The command line is too long to execute in one step. $show "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"; then $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $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:" && len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise. $echo "creating reloadable object files..." # 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 output_la=`$echo "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= delfiles= last_robj= k=1 output=$output_objdir/$output_la-${k}.$objext # Loop over the list of objects to be linked. for obj in $save_libobjs do eval test_cmds=\"$reload_cmds $objlist $last_robj\" if test "X$objlist" = X || { len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$max_cmd_len"; }; then objlist="$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. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext k=`expr $k + 1` output=$output_objdir/$output_la-${k}.$objext objlist=$obj len=1 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~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if ${skipped_export-false}; then $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols libobjs=$output # Append the command to create the export file. eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" fi # Set up a command to remove the reloadable object files # after they are used. i=0 while test "$i" -lt "$k" do i=`expr $i + 1` delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" done $echo "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" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" 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\" 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 # Append the command to remove the reloadable object files # to the just-reset $cmds. eval cmds=\"\$cmds~\$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(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 "$mode" = relink; then $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 $show "${rm}r $gentop" $run ${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 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" $run 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 "$deplibs"; then $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 fi if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 fi if test -n "$rpath"; then $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 fi if test -n "$xrpath"; then $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 fi if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 fi case $output in *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 exit $EXIT_FAILURE fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $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 "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then $show "${rm}r $gentop" $run ${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" # $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" cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" fi if test -n "$gentop"; then $show "${rm}r $gentop" $run ${rm}r $gentop fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 fi if test -n "$release"; then $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 fi if test "$preload" = yes; then if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && test "$dlopen_self_static" = unknown; then $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." fi fi case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` ;; esac case $host in *darwin*) # Don't allow lazy linking, it breaks C++ global constructors if test "$tagname" = CXX ; then compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" fi ;; 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 "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$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 "*) ;; *) finalize_rpath="$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"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; *) dllsearchpath="$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"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$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 "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then dlsyms="${outputname}S.c" else $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 fi fi if test -n "$dlsyms"; then case $dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${outputname}.nm" $show "$rm $nlist ${nlist}S ${nlist}T" $run $rm "$nlist" "${nlist}S" "${nlist}T" # Parse the name list into a source file. $show "creating $output_objdir/$dlsyms" test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ #ifdef __cplusplus extern \"C\" { #endif /* Prevent the only kind of declaration conflicts we can make. */ #define lt_preloaded_symbols some_other_symbol /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then $show "generating symbol list for \`$output'" test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for arg in $progfiles; do $show "extracting global C symbols from \`$arg'" $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac else $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' case $host in *cygwin* | *mingw* ) $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done if test -z "$run"; then # 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/$dlsyms"' else $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ #undef lt_preloaded_symbols #if defined (__STDC__) && __STDC__ # define lt_ptr void * #else # define lt_ptr char * # define const #endif /* The mapping between symbol names and symbols. */ " case $host in *cygwin* | *mingw* ) $echo >> "$output_objdir/$dlsyms" "\ /* DATA imports from DLLs on WIN32 can't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs */ struct { " ;; * ) $echo >> "$output_objdir/$dlsyms" "\ const struct { " ;; esac $echo >> "$output_objdir/$dlsyms" "\ const char *name; lt_ptr address; } lt_preloaded_symbols[] = {\ " eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" $echo >> "$output_objdir/$dlsyms" "\ {0, (lt_ptr) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " fi pic_flag_for_symtable= 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*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" # Transform the symbol file into the correct name. case $host in *cygwin* | *mingw* ) if test -f "$output_objdir/${outputname}.def" ; then compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP` else compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` fi ;; * ) compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP` ;; esac ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 exit $EXIT_FAILURE ;; 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 "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP` fi if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. $show "$link_command" $run eval "$link_command" exit_status=$? # Delete the generated files. if test -n "$dlsyms"; then $show "$rm $output_objdir/${outputname}S.${objext}" $run $rm "$output_objdir/${outputname}S.${objext}" fi exit $exit_status fi if test -n "$shlibpath_var"; then # We should set the shlibpath_var rpath= for dir in $temp_rpath; do case $dir in [\\/]* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *) # Relative path: add a thisdir entry. rpath="$rpath\$thisdir/$dir:" ;; esac done temp_rpath="$rpath" 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 rpath="$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 rpath="$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 "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $run $rm $output # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? 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" $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP` 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 "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname $show "$link_command" $run eval "$link_command" || exit $? # Now create the wrapper script. $show "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}\" || 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 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` fi # Quote $echo for shipping. if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if our run command is non-null. if test -z "$run"; then # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) output_name=`basename $output` output_path=`dirname $output` 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 cat > $cwrappersource <> $cwrappersource<<"EOF" #include #include #include #include #include #include #include #include #include #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #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 # 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 */ #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) /* -DDEBUG is fairly common in CFLAGS. */ #undef DEBUG #if defined DEBUGWRAPPER # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__) #else # define DEBUG(format, ...) #endif const char *program_name = NULL; void * xmalloc (size_t num); char * xstrdup (const char *string); const char * base_name (const char *name); char * find_executable(const char *wrapper); int check_executable(const char *path); char * strendzap(char *str, const char *pat); void lt_fatal (const char *message, ...); int main (int argc, char *argv[]) { char **newargz; int i; program_name = (char *) xstrdup (base_name (argv[0])); DEBUG("(main) argv[0] : %s\n",argv[0]); DEBUG("(main) program_name : %s\n",program_name); newargz = XMALLOC(char *, argc+2); EOF cat >> $cwrappersource <> $cwrappersource <<"EOF" newargz[1] = find_executable(argv[0]); if (newargz[1] == NULL) lt_fatal("Couldn't find %s", argv[0]); DEBUG("(main) found exe at : %s\n",newargz[1]); /* we know the script has the same name, without the .exe */ /* so make sure newargz[1] doesn't end in .exe */ strendzap(newargz[1],".exe"); for (i = 1; i < argc; i++) newargz[i+1] = xstrdup(argv[i]); newargz[argc+1] = NULL; for (i=0; i> $cwrappersource <> $cwrappersource <> $cwrappersource <<"EOF" return 127; } void * xmalloc (size_t num) { void * p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL ; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char)name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable(const char * path) { struct stat st; DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!"); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && ( /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */ #if defined (S_IXOTH) ((st.st_mode & S_IXOTH) == S_IXOTH) || #endif #if defined (S_IXGRP) ((st.st_mode & S_IXGRP) == S_IXGRP) || #endif ((st.st_mode & S_IXUSR) == S_IXUSR)) ) return 1; else return 0; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise */ 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; DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"); 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 ("getcwd failed"); 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 ("getcwd failed"); 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 * 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; } static void lt_error_core (int exit_status, const char * mode, const char * message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } EOF # we should really use a build-platform specific compiler # here, but OTOH, the wrappers (shell script and this C one) # are only useful if you want to execute the "real" binary. # Since the "real" binary is built for $host, then this # wrapper might as well be built for $host, too. $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource ;; esac $rm $output trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 $echo > $output "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # 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. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible (taken from Autoconf:_AS_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 variable: 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 echo=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then # Yippee, \$echo works! : else # Restart under the correct shell, and then maybe \$echo will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $echo >> $output "\ # Find the directory that this script lives in. thisdir=\`\$echo \"X\$file\" | \$Xsed -e '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 \"X\$file\" | \$Xsed -e '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 \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $echo >> $output "\ 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 >> $output "\ # 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 $EXIT_FAILURE fi fi $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $rm \"\$progdir/\$program\"; $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } $rm \"\$progdir/\$file\" fi" else $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $echo >> $output "\ # 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 \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $echo >> $output "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $echo >> $output "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $echo >> $output "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \$*\" exit $EXIT_FAILURE 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 $EXIT_FAILURE fi fi\ " chmod +x $output fi 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" 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" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$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 # 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 $echo "X$obj" | $Xsed -e 's%^.*/%%' done | sort | sort -uc >/dev/null 2>&1); then : else $echo "copying selected object files to avoid basename conflicts..." if test -z "$gentop"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" $show "${rm}r $gentop" $run ${rm}r "$gentop" $show "$mkdir $gentop" $run $mkdir "$gentop" exit_status=$? if test "$exit_status" -ne 0 && test ! -d "$gentop"; then exit $exit_status fi fi save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase counter=`expr $counter + 1` case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" $run ln "$obj" "$gentop/$newobj" || $run cp "$obj" "$gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" if len=`expr "X$cmds" : ".*"` && test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts $echo "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_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 for obj in $save_oldobjs do oldobjs="$objlist $obj" objlist="$objlist $obj" eval test_cmds=\"$old_archive_cmds\" if len=`expr "X$test_cmds" : ".*" 2>/dev/null` && test "$len" -le "$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= 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 save_ifs="$IFS"; IFS='~' for cmd in $cmds; do eval cmd=\"$cmd\" IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$generated"; then $show "${rm}r$generated" $run ${rm}r$generated fi # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" $show "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}\" || 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 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` relink_command="$var=\"$var_value\"; 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 "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. if test -z "$run"; then 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) name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlfiles="$newdlfiles $libdir/$name" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 exit $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP # # 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' # Libraries that this one depends upon. dependency_libs='$dependency_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 fi # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac exit $EXIT_SUCCESS ;; # libtool install mode install) modename="$modename: install" # 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. $echo "X$nonopt" | grep shtool > /dev/null; then # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$arg " arg="$1" shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog$arg" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") arg="\"$arg\"" ;; esac install_prog="$install_prog $arg" done if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi if test -z "$files"; then if test -z "$dest"; then $echo "$modename: no file or destination specified" 1>&2 else $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Strip any trailing slash from the destination. dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` test "X$destdir" = "X$dest" && destdir=. destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` # Not a directory, so check to see that there is only one file specified. set dummy $files if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; 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. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi library_names= old_library= relink_command= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ test "X$dir" = "X$file/" && dir= dir="$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 "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. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 exit $EXIT_FAILURE fi if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP` else relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP` fi $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 exit $EXIT_FAILURE fi fi # See the names of the shared library. set dummy $library_names if test -n "$2"; then realname="$2" shift shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. $show "$install_prog $dir/$srcname $destdir/$realname" $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? if test -n "$stripme" && test -n "$striplib"; then $show "$striplib $destdir/$realname" $run 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 if test "$linkname" != "$realname"; then $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" fi done fi # Do each command in the postinstall commands. lib="$destdir/$realname" cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)' fi exit $lt_exit } done IFS="$save_ifs" fi # Install the pseudo-library for information purposes. name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` instname="$dir/$name"i $show "$install_prog $instname $destdir/$name" $run eval "$install_prog $instname $destdir/$name" || exit $? # Maybe install the static library, too. test -n "$old_library" && staticlibs="$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 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` ;; *.$objext) staticdest="$destfile" destfile= ;; *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac # Install the libtool object if requested. if test -n "$destfile"; then $show "$install_prog $file $destfile" $run eval "$install_prog $file $destfile" || exit $? fi # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` $show "$install_prog $staticobj $staticdest" $run 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 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` 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 file=`$echo $file|${SED} 's,.exe$,,'` stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo 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. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 exit $EXIT_FAILURE fi finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then # If there is no directory component, then add one. case $lib in */* | *\\*) . $lib ;; *) . ./$lib ;; esac fi libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 finalize=no fi done relink_command= # Note that it is not necessary on cygwin/mingw to append a dot to # foo even if both foo 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. # # If there is no directory component, then add one. case $wrapper in */* | *\\*) . ${wrapper} ;; *) . ./${wrapper} ;; esac outputname= if test "$fast_install" = no && test -n "$relink_command"; then if test "$finalize" = yes && test -z "$run"; then tmpdir=`func_mktempdir` file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP` $show "$relink_command" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 ${rm}r "$tmpdir" continue fi file="$outputname" else $echo "$modename: warning: cannot relink \`$file'" 1>&2 fi else # Install the binary that we compiled earlier. file=`$echo "X$file$stripped_ext" | $Xsed -e "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) destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; esac $show "$install_prog$stripme $file $destfile" $run eval "$install_prog\$stripme \$file \$destfile" || exit $? test -n "$outputname" && ${rm}r "$tmpdir" ;; esac done for file in $staticlibs; do name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` # Set up the ranlib parameters. oldlib="$destdir/$name" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? if test -n "$stripme" && test -n "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" done if test -n "$future_libdirs"; then $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 fi if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi ;; # libtool finish mode finish) modename="$modename: finish" libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" done IFS="$save_ifs" fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $run eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. test "$show" = : && exit $EXIT_SUCCESS $echo "X----------------------------------------------------------------------" | $Xsed $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" $echo "more information, such as the ld(1) and ld.so(8) manual pages." $echo "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS ;; # libtool execute mode execute) modename="$modename: execute" # The first argument is the command name. cmd="$nonopt" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" exit $EXIT_FAILURE fi # Handle -dlopen flags immediately. for file in $execute_dlfiles; do if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi dir= case $file in *.la) # Check to see that this really is a libtool archive. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi # Read the libtool library. dlname= library_names= # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" continue fi dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else if test ! -f "$dir/$dlname"; then $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 exit $EXIT_FAILURE fi fi ;; *.lo) # Just add the directory containing the .lo file. dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` test "X$dir" = "X$file" && dir=. ;; *) $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 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 -*) ;; *) # Do a test to see if this is really a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; *) . ./$file ;; esac # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` args="$args \"$file\"" done if test -z "$run"; 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 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 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 ;; # libtool clean and uninstall mode clean | uninstall) modename="$modename: $mode" 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) rm="$rm $arg"; rmforce=yes ;; -*) rm="$rm $arg" ;; *) files="$files $arg" ;; esac done if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE fi rmdirs= origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. objdir="$origobjdir" else objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; 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 (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done IFS="$save_ifs" fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # Read the .lo file . $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" \ && test "$pic_object" != none; then rmfiles="$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 rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) file=`$echo $file|${SED} 's,.exe$,,'` noexename=`$echo $name|${SED} 's,.exe$,,'` # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then relink_command= . $dir/$noexename # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then $show "rmdir $dir" $run rmdir $dir >/dev/null 2>&1 fi done exit $exit_status ;; "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd exit $EXIT_FAILURE fi # We need to display help for each of the modes. case $mode in "") $echo \ "Usage: $modename [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 --finish same as \`--mode=finish' --help display this help message and exit --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages --tag=TAG use configuration variables from tag TAG --version print version information 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. Try \`$modename --help --mode=MODE' for a more detailed description of MODE. Report bugs to ." exit $EXIT_SUCCESS ;; clean) $echo \ "Usage: $modename [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: $modename [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 -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -static always build a \`.o' file suitable for static linking 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: $modename [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: $modename [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: $modename [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 rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $echo \ "Usage: $modename [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 -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 -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] 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: $modename [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." ;; *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 exit $EXIT_FAILURE ;; esac $echo $echo "Try \`$modename --help' for more information about other modes." exit $? # 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 disable_libs=shared # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static disable_libs=static # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: sweep-0.9.3/sweep_splash.png0000644000175000017500000007072210777660176014620 0ustar useruser‰PNG  IHDR,í·åÂsBIT|dˆtEXtSoftwarewww.inkscape.org›î<qdIDATxÚí½uŸI’çoé`ïönŸÝٽřåÝá™fµZRw‹ZÌÌÌÌ*1333s•T’º{f_‚?fžP ‘áì‘•اJ¥¬Ê̈Hÿ†ý~fæ¡Ñá¼abwä»ÇHsŒB÷-ŠÅ¸k;ÇFI,&£Ô=Æ1ÊRb2%ÊÝc"9*c*%*ÓÇd4ª|ÇtBT³ÇTrÔdÃ5’ŽÏñŽ;_SL¹6ü\GI×Þ¤k$]Ë^×}ÒgdÂ1J½?Ÿ×ñ„(vÿ컬ñë‰çºã°Náúå¹¾Ù½6‡ ÈÁ×1AxŒû…‡pL²ƒC0Ì-Æ3è…$“æAâ ‘qAˆŒi†ˆ'Hì]ŸCYx(Î:ŒC~¶Á MÀð·Ø×jÓÀ 'L³’À€„!YŠ cð×¹ÊppAC!0Ì‚Ahì LLDTÖR(i1Bd,€ e<<”JVº² àà‚F•Qhd$äÀÅ,LªÁ„$³=’Vð! >§1Ì€†(j`ÂQYK¤%Ç\Ï,ˆ„tÂc4 ´V2å*càP ³pP s0±$>²‘,D´n« ‡ˆß¡/ë03ÐŬ! Ûa¢$&³f_$h± ,Ò•ix˜ð;Ôfö€C0 €‘” €ÄÖlDf…–ˆ(ÎBBVù™ Y‡ pèƒ0¤.ÜM BTäEL$ƒDI6’‰Ñl4̓vÉJnÖ᧪J8Ã*0X¥@Q ª-µÙˆ?I+p±ÄTeááœð°!뇔lÃ42ŠÁ¢&þ³y Ñ”0C¤" #É`xL©„‡¬Ã8$CcÉÃBTTÃÄ ¤ÏF”ù" c‘Wqe’+­„%+N¹ŠÃçPYÐнH7 „¥@‘ ™ ñçˆe#¼’–x…–ÍQQ™²¡â*sàaÖ¡üÐÐ…ya6¢0±$Ve#K"¥¬Wà1a 2²à†ZHÌ[êá¢&zA"š(È„1]™2â{ÀcÜ<*µÂCyÖ¡òaÁ¼€Ïi )`QM Ñšh3×ÕAdÜ8D”D¥ižððô;|KV6ÃÃÛP XÌ(¸ ¢&ì^‰>ðKZi|‘LˆfS=dµïa+<Òšåf%+Ùà`Ë6Ä!-„<°ÈŠª¬DHLIZéÍu» b‡²ÅK®’•ô¬CÒ³ Ð $ÂELx²F(ÉFTIZ¶B¤ØZˆ„tûJ*®l†‡&ÉÊ 8ø¡ÁŒ–%¢@Q—•è‰ZIËNˆ¨®Ì’+e…l7ÍýÁƒaª®<ªôÀC»\¥¼ÐhÉF:¨H‡‰l¨–µT@¤J2DX§øÚT™% •Ò•ür]»à¡V²Ï:T‚Ã6h´ˆ ÃD!H@„_Ò²"*Ë{KY¡L2ÍuÂcZü’•,¹J>8ÒxÊ!¶à¿a»àâ&|ž HTËZ$-iZz!b«©²Æ÷P qËáa:ë}Єy !8ºa"$¶d#Ö@dÜvˆˆKY!eÙ‡4ßCfÅU†ÁÃVpH‡(æ- .°¨…‰­ Y ®ÌRà‡°f!¡ÀùÆáÁ^¦+êwÈÈ:üÉU²³ ùÀE›†‹ ÈÎJdÉZª$­t¾g™¯ˆØë‡„l’®–&a 4FPdg%e#Yˆh—²BÒG´«ò=<Ëu ÁcÊVx˜‡h°£-ƒBPäf%úAb"S¶A$}y¯j?Äïè÷ö¡Rº’Uqe’$+#r• pˆ@£m †.˜È‰zYK/b"2LuÝR–+@TIW&àQ¾Äà!+ëÐŽ,0ä%( Q›Ø ‘ò@„]Ê É®º2ê{¤…G…xµU`ááO®’›¡Ñ®02&~@Â!k"¬ÕYܱÍIg¨‡´KW̾‡˜iž•–ÃQ²’•uHGzy*h€°0¬2—8Häf#>%-+!Rɉ¦:«"SÊ SºRg𫇭Y‡p(…ÃÂýƼõ–¿c,,Y‰AèÎFTCDµ©n©”²Cº ŠinˆhóCTIYjÊzC¦²iƹéJØ÷˜aô=4ÀƒO²’‘u¨È6äã‚°(~²Ùˆ—¤¥ " !Âê‡H’²LêαlÞ•ªª+þ‡YxèÈ:dƒCî‹}Â)0‘‰Ùˆ­1î‡È¨Ê27'+dUö!aÖ•°t•Æ÷îP‰Y H2"Òý…R–±,„ Í>´ç*}´ƒuÂC$ëP1`ˆB4Äb$¼Ùˆ.ˆ4 CÄŒ”e£¡.–…d@2-’á¡!ë>h˜„…T¨ÁÄ/HÔf#r Ò² d€,x°„[ºòišóT\qÁã<äfêÀ!º /¼í±&‚ ‘žð@äbˆøªÌâôC¸¥,[ u¹ e³‘죑1û૸ÒÉJ8ëð Ù‹ø•KGésZŸpDF6â%iÙß•Y,“{³Yˆ7@–­þúnýWd׎uäÖÍS¯n˜ˆËZ€‡"]Êʘ,D%@²Ù‡ýÒ•¯ñ$áÁ(WÍL·Ó»öÙ™òüéuòõŠOàšjõá/„æÞÞjR •W|‚#ÏŠ}Ÿ—{—TV<ó||<_x`>LÄ3xøË¿üio/! õy“cžçÎì_”À”€Äˆ´K‚ˆ­RÖÒ0ÓCzå«¥’}ˆJW²àÑÁ.¿Ãþ:Â{ɪ•ŸÄË}{7€üsÝÉ‹ûÝÛg¹‚χߗ?"CƒõžG °¤«£,@=‰zúôz,3i¨Ï¥d;¶­/¦ÃCââ DÞq™ëné0URV€² 2–@–|ö!Gºòï{pšæÊá!j’/.Œ˜uDKi_<¿A} 'ãÛmqøà"ŸŸð¤qóÚI8Ýôû*›-þŸS ì´jÅÇdÓ†•°Ð¯!ûöl$Gm#Çí"§Nî!gNï#çÏ$‡m¥€ÿíÅçÅl# _|ö+øœ5ÇÞÛ5ðaðçḩ÷JTe#z!âßTçðCŒIYAÍBDbJ¾ÊØìC¥t%«Ã\¾dÅ\U äÍ'I__ý¾¤ä1˜Ðk˜ü 4À«*_8‚"!>,Bg¼“øŸyÅNð+ê)ÿ—ô]ådÝš/S^coOU@P¶Š‡LOW9ý9f"ããÍ>LwµÙDÞ CÄ ”¸,ÄœŒZªæ¹rxÌꮂ gc|` –6ö…arŠì€*&9 ÿÞ½;çAá/žß$-¾ûŽè¿%s`ø§{lAþ}rìÈö$°„_çÛghæ xôðrÂ{Àb‚(\Љ7ÞE@²4!"Ö`¸4²~+dïG&fœÒ‹i® Ì’Uúª*ìßÀ…K`¯ƒ\Ä"Gaäà‚ì3›À(Ocd¸Ñ×cQâÚ¼i•¯Ç^¼p8õµÄ½Îw }ðykNy/èÁÄû#Qã+ÌòR{Ld-oIË$DXýR–YˆÍ=!¡¥hžKºbñ=Ü*®ôÀƒ7ëHö8ª«^Ppàš*G¹HSq‹tcC>Mâ •ð`œJˆ÷ðw_¾¸ENÀ<­;`Î÷õÕBVñ€\À->nñï  ÖÒ\ǽ—þ{Íê/èkq}n‡ÌãU\W}MÕËØÏÜ¿H–óð’ÂlD!D|Vf1û!ÖKY™k¦‡2A¾ ~ö¡Fº <=ŽYXˆ£ÞÀìL§;8Zù²UðxË^¿#}Ö‘ ìň.Ö~¡±rf.hˆcŽ»ça ¬´*+yBr\‚j§C¤ ïäÇ`sŸSYîÈNñ««Íu|ÜæMß$A+=HpŒÊ²ÏÃMŠXÕ•ÖóqóGx%-ŸZ<}"j ¢¢Á0¨Yˆ~+¤L¾2nž=ûà®|ù¶Àý² Ëbq=wv?)-~œÖ o![6}íXÙô½<°9q׎µ om-NyÜΤÇ`¬‡ªªäÇ558§Ç?ÎLŽÝg ?O‘·Ü!2`9DØýùR–Yˆ5fº‹ Á4Ï3Sº÷=”ÂÃgÖ €.žöm¦†5~ÿݺåäØÑ]\r”„ðNÝiÇ~ '€œ=½?å±ÃCðà ‘Ÿ{?åq(U…ÿñýÕ—¿OylKK±ãóï£ý]:^~ö>Òyóú) Ùˆ.ˆ¨òC‚.eÀL—ÙòUå’–¯¬®xš}Ã/눚и€¢Œõ42îw Ä »k¾ý‚ŒAÓ]¼4…eµNél/sX¼‡¡pUÂãÎ=@¾ÿ~Ø1r_ߥϽbùïiuØÂBâc"°©(}¿ŠýMl"tƒ‡L°¯³&üÝÝ;×SI‚ÙRôoâ÷*³vO¤[DTIYK×L×%c…‚,_e³Õ¦¹^x \SéÒni)"‡n%_¯ú2†}0Òä&]P ¡ä3ˆøø8d'ñ@@óúÖÓ1`Ä"²è×ÕæÑá“'öÐ*/7xÄ…UšÇŒ‚7òòÅmR^öÞKüs»Ã£»«"A¶Z¿î«0(’úIª«_¦˜í¶@D©¾”³`ÈX!Ûª¯²Ù‡ éÊ<<|õqÀ98PÓÿ7~·‚–´bYìÁ[è‹îùs‡ïàáwËKŸÀִǨ)Þ×[“ +"”»Ú`‹ÝB€Â‘ÃÛcàøfÕ§äì¦ø2_¦»ooÄFˆ¨’²–bb¶+”yòUó4Ò/ü?p„T ø€‰H6âè‹°B$me– )+ȆúÒ“±BÆF·Ë”¯²Ù‡„~à‘Øô7?×C¥ìi¨Ë§9¶R˜ÒË 4„L|Ad(8y+ "™ž…ØÞTÈ [f_Ù&_ÙÖìƒUºR¬Ã[ÊY\d±”öt’ûÆL„³‘!e‰6ê€H†ÉX}-å»úä«%”}°JW¾|Ýð†©¶GÈ·_F u\\{{jèöµâàuÂëñ*@’FÖÒ 6?D•” ,$P2¿2âd”|tãœÓ4—¡´ðÀ…áÞ–½â¿å\] {8 ‘¢ÁvðJZ<é“Û õ¬ŒÅ僄TúkÌÐìCºtÅTmÅÄʪǮ’åË~K·xÅ&½®®JŸàP @ñ lD "ýüQ%e$ fS¡\$$ÍÿÄì+ÍòUPŒsððãuÄÇêÉYGZpü`QH £¤e "öê™(c™,ç¯ÿaAùî5Ïådr|ðHö9!‚ˆJ?$ÐYˆí2–x9/« ’ÿ‘Yò•.x¨Ê>dÂëÐÏ!²¨I˜pf#i%-YÏBÌBd©ËXj}•þG`å«àf¶ÃC^Æ‘?z„t |ï$Á†ˆýYHe,ó>HÈ´ÿ¡böUæÈW¦sVßC0@äƒDl²td!vËXôA¸¢eþ•MþGðå+ý҇ ñ£ÂðõQà‡¨²2AƲÀÑ?Ë 1Ð3^¾²-ûPé{ˆÀƒ?Y Q R–Ö,$Se¬`é!mºfÿãåóKdïÞµ‘X—û|Çz²c_4¾óŽýß‘}ûÖÁ× ±Àç ¿1b±É=¤‹Í)qÆç8[bìOc;ì´ç;ÈáÃ2cgšØ‹Cô¹ÿ}ðàö„ë‹t¯YâñÁ÷ìpÑH:g.çö ­áë*îzØצóuw}¹]ƒ×l8Ò\ë^Ÿ“ÈgiBlpˆðç3íg8úY‡Ïý>þÖŠ½Ž^ƒp= †¢ ú t{ý™é†ÈI³k‚ÿîë-L¸óiªÏñ•}ŒÖh3Ïýdoáï¿‹üÌÿ¾ì¦9[æ‘.ëHÌ8ðq£# ™AG[>|H‰à¹§ÿžív|œ{ðg$¾²ÏL„ÅTŸ«¸&h–ñnÀ5Áó?4X™…´6¿ð•…LŽ7Ze¦ÏÎD>·³-ÁöA,2Ò¥DŸ®ßÿ˜˜¨†ßm¢á&_VÁìiÂ…ûøÁ~_éh{ »Õùjv®.2ø»üÒ•·i.ÎRÕ@ §«$òïðBÿüÉ G¼} ÛçÂócà¿{{Êá8 3BÄL\@""iLõ¹¹¸úh¸djª…t´ç&äé£#¾ÒÙžŸkd¬ÉÉºØ  T˸¢ÚHçˆât“ó¯XýÙéFzAÁ{˜ÂçjtHOw©«¾›páž>þ%¼Æ´ÞGeÙ 8Öu†ÌóEx„ïLûÉôL ¼f|®±ª+ðpY¬‡‡jIKÓ«„ÅýÜ©oà8 ÅþýÃ÷cäðõ k|ÿn^óýw]Í#º+"~ïâ Ñ‘Äs‚›qáùš™…köM7=ßn~È`9i¬’à…œ9±ŽKgZˆTUÜÏ~“!3}ñó77ÛB¿NŒÃúB׆&…#Þƒ4K¼#] Ú t3ýÑ hj²†^P£#åá‹pªÞ MõIyÉÕ„ xÏöÿ„»ÙBO€`z÷ê4¬Hˆþìcn¾ƒ~œ‚lk¶ ^O7öáÛ4—\À;Ú HMÕÄE}ßÎ_‘ÑáúÞ- Яs³xÌ1Û†!EùWáÚmƒÿ›Œ‹ N ¨…‹©ŽÐÀó55 7Gspâ ‚ @Z›_’Êò; ٻ㖠O€ÌÃ5”ÿúça3]TÆÂÏ+~­„5ª†JÑìÕXfúAì5ÒSbgº©ùWT¦‚ gfªŒWÒ‹ix¸”ŒŽ–Ó,Ämt{yÉ5’Ÿ{6 ë¾ù¤¾æ¾'@†Ê@Z9Jz» %ÊWþáñn¡/æ{Ì@æÚøÄD=¼×&š…H¯º‚ÿƒÇxZx`ÔVç’¢ôûè"¿þÛ¿!­•à÷ß…sÒKá03ݲN¼wX\'ÛHîËsdAó‡ÉÄøq2-T’òÃl’–DR‚çfpžggÛé÷“pGÞŠsUfÅ—*²Öó×p£ôij"kd¸š¼|vœô÷–ºTd©•±æç}‰ñúýÈH³9#Þ×Ùés±ìéHiá®»]‚ÿ19YÎ>&j!ó(£Óà`* ÿ_xÆ—ï¾~q@p$!}^öñ'¹ç’’øhÿãx%m¯ŒÈWT’€Åï'AnÃcl¬àYGul™Ù.vøwÒ„߃¿pæ_!y‚èŽϵìãÿAŠ ®R ,øý$èýÓ3mpœÉ@%õJúzËSâ.0‰¾Ž¨¯âšð@„AÊz Äó‚Ùäôt ý~ Îí8Ü$ÌÏwÆÎå»…Ä‚‰ü×çÉ«ç§bA¹ ¯ç"„Š@:;rÉ㜃ÔÑÙÈôtc$ûh ™~?8XLoñPv9ï d9úŒt=éÒÂ^¥¿]öü«±Ñ záLŒU4Šà9êI>é(€;óš@Ð4HÎý½äáÝÝ1€ ”’/>úoð³=žþGuå-rïÖÒÔðØHõÞ‰âº8.,è{ŒŒTBÆU l»x$e|¬LxàâŒOEj\ÀŸ=>Fžä‰,è ¤èù¸·Ÿ.üoßö”ÓJøñ‰F¸+o‚cŠ•F¯á\¹À@Ò€dd2ú^CÄ (UáyAã3KÌDFG«!jèÏ¢çsfº-! y’snlÄúBFGjéñßy¤¦ú¹gin|fd´I8ëh‡ó]K¡ŠÂÀ@!D½” ɉ*š…ˆéz:ÒeVb…U¥ÑÿÀL/œ1¬úúò¨÷ÑÛ›Kc|¼*Þž‚€Ü¸²Üº¶9æÆGôwéÜjO€ä½> ¿»$—{Úå+Œñ‰: ©ixïÕÔû*§•a2³ŒY¸ÓGÃ:tŌёƹêÎæÝáEø®Ž"z>.ž]Mÿ»ŽO4PŒŽÕÑÀï«*î‘»7wÃù{ ›bƒˆHæ!ËÁ2á´¾ˆ'Dø¥,ô³ð¼ÌÀ¹©¢Ð®€s]AÏuô|U'äÖµ­p ·ÇÒÖò’¿+Öy6æç#7¯n&uµ= Ed,o€Œ€_‰‡Àþþ üÓÏ2TS²v¥§ÈèH)¬cµ ÍTb…LÌÀ²¿½™ô÷åÃ몣ÙGw÷KÐtËè×®®TG„–ìÆ/9{r¹|~u %…—èîðþ<òèÁ>XÔ¾%å¥×T_ C¶ñæMdµe¡L×wk%ðáÃì«Å üUW°hã¢êciáAKo»Kãîü'É…3kȵ˛b ;‚ÏÇÁ½¿ƒ×?L³á¸ÆÀ@ǯCÃpsrOAî%rýÊú£@ÜÂH°ö-õZ&|BdÌ?D|HY£ G.@ÖÇ}`°Œz[øÏõÌÌ"@º: rþô×äêÅõ1€”—Þ ÇïèO<ò8g?½iª,¿¥q´É"@0Ó˜›!Ì>zz^S à×îîWpX-}.Ö(¨Z¯#]l&VÈÄ ,Û t¼PXuÕ×—K::žP骳ë9iïx iE µUwÆ—Ú÷;ræøò@žä ¸­ßý£«ÿwJ7®n §Ž-ƒÊŸ ú›!óè,‰d¤§7ŸJW}}…ð¡Ë§òköÿï|ÜÈH5½+– \œ[0cˆÀð£?…EðÛØ‚þòÙ)z>6¯ÿ)Í>ÆÆà½CuÝ$x\C•pžËèÏŸä…p,˜·Ó$ôù] ‚¯st¬Žc«‹É."É„LAǽÎ+JW}ýÅp® è늞S,Ù7ÓìÿnŠVÆ€òìñÑðõ¼áŸâÆ›$IXpýݸ¶‰–¯^Ö>¡?g= ŒUÓ죣ó9JW×Køþü¼Êa¬Iš d¦É ¸¶ôô¾¹ºÐ2#]ýL¬Í%¼¦ t¼P:ÚŸ€‘Z@ºº_–Ö‡°¾x‚î˜<€0”îv÷æ‘„,*/Áp,%Ý=yÍWpÎ}d1ëx¯Ó-ûX‰¨þþ0,f ðü¾¤+ðÀ¨®¸ƒÆ®­ÿIŽú<öï[×·Óó±ÎBcª…º{‹à½ƒÄðèïg!3º}},œ«HaÞ_Á¾·¬úÁ¡ X´ëè÷¼‘²˜]ÀqïìÊ¥@Axtu¿†l¤9vN+Ên%dç–§Žäƕ͑ëùÿºÎÇš¿åÜéUäÈÁÁ€?7KŸÒ7{hšcÆÑÚöˆ¥£ã|ÿ˜Þ²ÎÅšßÓMÆšI¬£ó)ô€½¤³ÇHW_Ê« ¬À ¥¥å!•«ÚÚ“Ʀ»°¨>'Íð³¦æûTÎÂE°¿„¼†H<@°Äëä£9~ø3úØš¬Ofhø>ð{²o×/¨ ¯ÛÿÀ… ½óÀîÒ­mOé‚ÓщïÿÈYÌÞÇôL«Kö†îlÀ)ŸÂj´xðÀrÜ©‰ÖÈ‚¿¸x÷íß’ý»~ù÷dy_ÅÎGOO1¼†RXlrÉdÝЫÓ ³ g]8³ÎÝPUw–ü~/9’27ßí(máëÃŒ¦§¯ ÎnÜË}!âή×¶öçô\wtâMÑ *gaáÀdIù¹çJz±äûf¢9ytYìø…}¬D€àu‡o†öíú%ÉÊBï‹>ˆ€´4ºŽíFøÌvvá`|†Dü6€ á\SFGËèMf;¬X±™•XL±aˆ¢=Xx¡44Þlã!\p÷ImýM üY}Ãmj°·6?ƒÊ©ÛäÑý} ùê³ÿE¶mü§@vnù·Ø®»37 Xf8<\Nvmûw²cË¿Âòf#ÝçÍ­a!Åå9|à‡/>Oàý?¢U;¬ÁòP'€¼yÓ@j"m°páó¡¶êÊGæÑÛ]Fš^ÐÒÛx€|õùÿ&Û7ý[laß½íç±óQUy€‘À| ,¨m/Aêi'Ç~FíýÆvsH2L¦¦Z3“èúFŸ¥ðN€– 'WiyBD *+ ­p#Ð紲˦æGàx£Ðç}ÎAWg!i¨{Dǔįçí›þ%][ÿ#vüúzKR2†<–ïÞþdçÖ%·olÑ<â= Ææ{4ÛhnÉ!uõ·¨ôÜØt~†‡áiX¨<å (¨„c×xŽë]P-òõUbY0T1dEˆ¦X~+°pTIMí5€Å-U5WiöQ[w“ÔÔÝ€S© ãöõÍôBÄŠ˜aàë;¸k‹dõÊ¿ˆ}àjÀ/IÈ(Ô¨÷õMëÿžlþîÈ¥ «½"Íÿˆ]ÒCêï‘&€£®þÍ>›†¦û´Ä o@òIÎ>°’ËI¾B3yª€šNM-éãØ² G€ éqÿÎ^ ޱQ¡1Hû†5[Ð׬üËØùxñâ8FcSÈX…p× YfëSxýí4{vü’<¸»üñÓÎÈ$øFcÝk¬ØŠ6£ï\ º{^Àß½kÃuÒ ™ÎœÕ3±äö‚(ˆ­Cý—ðb5EEå%RY}™Â£¤ì,,¤wIUõØPxîÔJZv{éÜ·ôBÄŠ“îÎ<úÁúúË?£(‚(úaÃÈ{u*i|I 5÷ÐäCÐ|·ú¯Éé“˵ûh’W#ëo“º†»¤¢ê ܽ=á¨{ewoîLÊ`½ ‘8ÍÛÇNµð\½ íDò#gö‹1ÞwoîÏi#] ñëðP=îß,ÿÿèbþd®øóqóÆf¸S}LªkoQ«¶á>,´94c@èlßáµíî‰Do_1ÈCåŽòšô˜Ý4Â]}ã}ðYJ“*´Ø³Óäî­] AÉ0znñ5TT_£Yþo°¬ù6”ë^ÁŠ+8Çøµæ`ÑëyùŸQx`büñC¹+ 8±Ë¾ÑW _ÏCΜü*iŸõ>öiUâgÀQ]{”–Ÿ§Ù~–1Љß$ ·   ­m9àŸ×áîí&m8ñÞNy ’¾öÁþÊ@ªjnPÉ3‘äyW°ÀàxuÝ-R kIEDºÂEe«-PåvêØrj|ãâ¼iÝOÉ㇇cçóqÈJâÏÂáQ^u˜ÇäÆuèÃi¸Ge&4Ù7­ýXH7¤ã후×ÔߥÌü\w DФomASUj™¯ˆ”•˜(Œçch *vܱ1¡ï¿––_¤Ù&ž§êÚ›œP•ö3ròÈ2¨œúŠžãðÞsîï?Èð`UÂñ»}c[ s³áÙW}ý…ôÚÁ×°fÕOȱߤl455Ù¤ ˜”Vœ‡ëø…GaÉ)åmúÙÅC¼i XL­Äš‚Ò}|íÝ¡ER ½ô7’³¬Ì¬ƒl§Œ>ßÒYzAd5†Ì4ÚÝÒ ¥~…E'H~Ñ1R_~á1šy—ž!Ožì‰}€ðÎöÛuòëè¿×~½(L‡¶¡öAÂîÀa$W’ûòÍ^:¡´lZÙòåÿ¡Mx,烮ðóPÍ‚%“ÓhtFÒP—Cëóe óbx E¥géâRTr†fe—àCw…ú#‘(@°áñêÅ RVr¾ö' ÓŽg˜³TTz~ @s–í∠”zú ð  ­2ø»%ð\ø·E2Ø_;¾ß~õçdõŠŸ›×¶Å¤«èÿ½7LÚ[óÎÇþ½¿"ùgÈã§ûÉíÛ[É‘CÑE¾¹õYø|®ú+ ¢}»~MËy»{‹©¹¾mã¿Ä ò*Êî݃MšöÿŽåÔÔ¡ãá13©®»‹7,ÜW¨”¥ µ59±>ìÀ¤$%<ÖŸ Â9Å󃙞Ûç//^Ïôøýô¿lŠ\Ïg˜·Ó®ò„ëùð§Ð¨W‹m…Ç¥ókà†(®¡K‘ëùÿÒ¿±¤À¢‚Kt$^·x=Ï@Ö½f£×³,#Kðñs[P|Þëø§™Gq^ß稂‰e ‘ýAž==£oÎÑמsoÈØXýüWV]¦…5¸>àZ2Mƒ8+3KËÏÂó$ð<µñ˜ìÑÝL¨ z¦ðŠõ€4‚nŠ ¸(ð+£ rüèÇ "·¸w;­ƒÿÙ¶MÿH ïÜÞ¢Ÿ‘µßühīɃ‡áÒÒåŸþÏØcW€ù‹%”Ñ=ø )-º3åñ®ð2|`Û`sŸ¡œàÛÅÕÿºx!@ÁQ\z–~-‡l¤¸ô\(¥g©äôìéQR Ã"ÑŒ­‡=¾œ+Eß qŽ•>¸@aTV_§ šµíà5ÔÔݦPAXE%‘ìãуƒ¾ÎG) TÄl"þg[á|ì£÷Ê•µT¯ÇÅîÌé¯È£Çûèÿãhô±hÆo\÷÷‹ðÙýkRwÞ÷?GŽÃ'‡þž´µæÂbsÞïk€è=ZÙU *.à à·87²A³¹Ò⛤¹é%­ êî*¢¯áËOÂ×Ðží¿ˆ«®¢ç$|£pŽfœøýÉãŸû:~ì¡M²‰×ó?AµÕÇä\ë[áü¯ƒëùÊ¥µ$'g§¿ë¹8ñzFµ6?§#äßÌwr+% è à øz’~E%¡”„¢’Óô3^æ“GûHQá9(–y 7bç1Üçò3*Uct-(…¿òú¢X™‰ŠÙä%y‘¨¬º¤¤ÄŽfBß1ß…®§‰Ð¹ M·@’bí×?ñõÃl"ùgÑ‹?,ñ?ÿ2îƒÆ9÷ö‘úø± G¡HJ<^¾> ÄÏ_/¼þ•Ëþ4å5¼|}”J"±Å* x`””]Hø7JH"ÙºáŸ}ŸÕqæyêùH<þË%œS'—‘»w·Ñ»ñ(<0PÊÈ4L Æ¿Å×û' ÿEÊk˜o¢A£‡×ùÿÎáJɵËõšÉ×øúÕÿεO:^W›6}J6&Ä'±øŽ™ûgõ'±X»öçŽë€Wàó:íŽë‘õÍ„R2žÉ@j É+ˆÞUK,·õs…UÉ?[ùÅÿ†»¶ÿF}“/"woÉÞ‰W,‹ûxi`5”V6¾ë£`Øòl]Í@œSÿSää‰ÏékÆ»µÍP¢¹qÝß%ÞuÂ]|~á)êoÄßá–”_€¯çã~–ø=f ¼ÙÞ½Üó;_ÇnÇæw8>Xjwlqÿç#õg˜½ öïþvòêõ1ȸ )Ã,,5à‡8ÎÐbÈB0«x †—Á¹ÀìãÀîßRŸ!ñuü ˜ÃÝÈÙ„@éÎ×õ¼æo®ç¿¾žÑªâ2Ò±¤6šqä&Ç úÙ>qì“Øõ¼iýßAÑÀߦ\ϯrWw!¼„³™¼‚c±/~„†¯ d&sÆ™,=€øj"¼éލwþìr_ŽÜ×Ç¡ºe[â"¶åŸaBéFò4ö}»AuÖׯŽCJ} ¢¹ÿI€þ66ãîÍÐÌTçFú!Ã@c»E÷>z …É ¿–EÌVþ=,yÅYQØÅÜ_­ø<\iƒ¯oßî_AµO²rz ؈îXy…ý‹9fî}ßI†Fþ닾ÎGg{!ôíœNøÙö-ÿžÖ§äÎmd÷Žÿ$[à|ä<ÞK^爌;ùÓ„óqôÈ'±_†Â‰.ð.@ùör8oŽ›P‡ãä±·½¬èêê.H€H}ãC÷AŒŽq÷AÆFqŠpxLüäD —ƒÕøúŽþ<Îyç„!‚E (!^8ÿµ¯ã—Ÿª w'ü o]ßBž‚ù¼ÎÿÖÿHòrO‘/G|£øëùï`¨å¢…•_CåI×óE:-X´«©ùA‚d…à@o¿/¤E1Ç©ÌU žŽ:é‚2úvðéVÀëÅJH|}{wþ®å°õ@`jV]54Ý¡•WMP†H ¾<,@ìÙ‰PEz'Œ?ÀŠ ¸àðkTa!D^½:L ¼sÁÒ]ÊWV|…Þ â÷Ñn£ÙÜø8áwòØçt*RU~“Vo့Ҳ‹‘ª®?£^~¸Ú[_ÐLþë³ä ³C“ÜC3"l$üfùŸÓÞˆk—6“ÿú¯Yç€ DÐï‚j«ùù^úïø‰c[jAºª®‰ö¸Œƒç©ÆJ*çÅãçc¶çd<¡ä*…ISKN¬·ؽí?ÉYXØ1ð<ïØüoЙ~&v=cÈXd3©X¥!d$Ñk¯»Úªûá>(wÅë NŽù4ázŸ‰• ƒ0jËuK"Qéã*¯À>‹´º áàÔŽkÀ4G`¼P´™°´âœkHö4ܤÒ®˜™ ¶dÒ€Ì1$܉v¢W/v¢WB·)^€˜=ܹ¹6ÖYK/Ä{·wÄ€ýáíl[é\ôGGµ']ìýðë€ùSX ³tæs§–ëÈûŘ‚ý>p!Á¬£C„HK´½!¾Ýyþno?º½ %ÂݸӖµ«Þh'zý]ÚÅͧ‘éS´÷ãá½0`+È£‡`æVØ‚‹ùð»ñçãÎØ;Ñiyqi„æ: e‚ðÀ›„;7vº$‘^è4ÇQðŒ% 8ë e¿&Ú‰þ€NüõÜO$öžÅc\Tp%a.v¢£\ƒ’!‚³±ê£èµpÜ6öëÐÁçù!Tõáôàðñû ÜÅ0þø•@Yyüu„×ÕÐP)íDÇ’Þðõ¼B;@&` ömTb':4Ã"D:чŠc£†œÆ™äÂĈøyX‰èÍIè¯i÷yU 4á‚_ÒÖþ(¶ÖXÉ,@´/ÜšrqÖm:¦ï@p¾N5¤¨C°wF!츖ä¼Ça€Nè 7°ýmäâl'ë¾^4dê¦\ì¸_s/ÌÂڲ᧠àì 5Ú‚û\£‘Þ7 §´âPÅú„YXΡ?êØÃ8ãÊ ¸7nÚ„³°ÐSÁïyýx€`£_Iá ÈÛ7ýtt<îØU^Ðg蜲èùx »@b„2ŽtGéª2œÆ»oç¯iäÜ? ˜‹„3DÞ@æþÏ"@!2ó¤p/Ööç´AqæbùÈš éø˜8€`–ˆF:sŒ: ²Ä,¤gaÁk/-º78—)Dð|âÞ!¸ípøzþûØ,,”õ¢Ç¯ äËd€Dga¡¿‡žÒ•Kë´„ÊQ`¤×7Þ¥eùÍ‘YXØÿ1?Žîq™sÍB¦`/q'€àþ8Ý÷àÀQñ8LR5@œ&ó¶1Ëêè ƒ£ƺãH<Çx†*A |A^<9NÏstê^Ï(gE²wǯbÇoF›$dn¶ÞLíÙñs²sÛ¿Á Ö6Ééò5ÎÍmüÌF§ñ¶AÑ@ÆÛæ9+y"/NÜunuƋͅùqiÌø‰¼Y€¸¤¹ÑçtÆ?ΪÂñ&˜…Ðý@p?¸ØÆÁÀ‰ñÁìcÿ®_Å‚>Éâ8ˆf‡ÝÃ)÷±CŸ@%Ó/éÖ¶þÒ# 8}·¿¿8<Æ–¾è~ ¯MN52d&aÖhÂÝ1îÒ{É÷Âóá:¯Œ7u”^Of÷þ>Ü0z>Ðà àȧ™n&…^Æd—Ïo€½/–ÃÈ™ I™sÍBœB_@³‡\,£ãìÙ2! ð~ et?VºHqÂ~ x.q\IQþ¥€`öq`ÏocLáî„1c†+&e®iÈÄqÌ Vf=~xÀ'@z¤„n"ÕÙoˆp?–‡a/ƒn(•t;bâð~ åt½hëxD÷É$ Z]ûÓ á.w$lƒŸµÐ Ëcû —•\MÈî­ÿNaÈ­k["Ðá²N' tîÌ*º îàf áml«)DÂ;Âðð34ÃqaÈÂÛG€„³>º¹Ìï¤÷0öG ¢¹{oا‚ÞÌpÔzo_ • ú+¨Ÿ1?ß•p{@¿ÿ–Êb~òáýˆ#@ÂYÈ@á†Mø8ÁéÈ8T!‚0‚¬·§¯€fFÓ°#aô|â,­x€ìÙþŸ}È;"×óOèu“  œyuáì7t\É맇Ryé5U‚SsÛ£;ްdj²Æ á kÆO`xI—H á=Ñá΢¯?nFƒ0Á] ,¸‡G õµ÷‚³Îžø*çOÂ{HãÌ7€`r F‹Ÿ>ñ%,X—ukë>Û½šŽZÇï§gš™‚?wþ?î‹1 —H ¯@Ú[òrüð2ZvH^¤o„ÊŒ2ÜÖw#ÄÊ+œœ‹¥ºXšûâé)rùÂwP)÷À@þø‡iW€ÐIÀ ¢”•º›¡€à˜õiÜÏkx{[ÌBzqOtØV z>[Ÿ'䨡Ïè Ã(@^=ï)K¹¯AôOÃ(÷20ÚeÄÏ<,Æ8löÝε‚,Íp,ÍeHüÚà´+!z$(eÑu% ,@úag±iøûCƒa“ ÷AǯX¶76VH;lBóID+³ å0|?p'`k[7€`<~´Ÿ\<ÿ-Ôàß4‘‘JºßVä Óml XËÎ ä1îÉ‹.Üs°„l€ ôU%äò…õáʬ@êj½9Ç`Ÿï~˜ †9n5›0á×a(U} Qƒ†•]õµO}ä¿à1“2+»0ó2±±ZÚ‹ƒ~ÇàP³™~Å4̣糧»8 Ï­¡{«DRUî“8£ßÝ‚×ÙSè«ÁáˆÕ·d ŒÙ™&j˜£”…²ªØ#2¾+@¢;λì‹>0XǸ< ,@ÂÉðp1½h°¤·¯/î «é] v£F2Ø_œÜ’öέ1€´µ„›Ò®]þÎ ç¡K}3,pŒ„n[ _ÃYH%ËŽ2~/ ¸S̲‚û¢Çw(|pw }½á=-®^Ú@~¹>1ÙBÞ½†»òFØ«F¿×8îßÞGZ!£‘ù7½ô8˜õ9¨7ÕN³9h ÄÝ 1p/èù©KȘ€pïöî@º: èñ»ת@Š /‘Û×¶ÒmrMÕÜ}J,•GŸ±·/JN²22R ëVm Y€„/’qØ/šñ‰*ºƒÙ ”öâÖ³(eMÐ-/Ã^âÅØ¦á~0Â÷Æ2:^°ž@µ–@êjîÁb·‹´4=5R…5嵸@ÌâžÖ… ‡[ÏbáHl²²f+v‡‹Œ1qÈŒöˆÈ‹g0ZãéÉ@ææz#çã(]ôßa•d!ø”²ÞÃ^íÅô1Ý]eðHÈ{í^çˆx…~p œ†„¡Œˆ™É<ü,z>qÛx€< öé£Ã±*¬É‰p©úóÇG=ÒP›CÞÝ 7P/Taá炟U¬šÄlA‚™É$lÅZ…• “°NÐv,@²} x7Aͳ©:€@¸+5Î!èrŒH8’½Ø‘θ*)ºä NØ?âIÎA¸ÃËÕÞ‚ ŽªÀGSàæU´ó,ÇÅF6@> GÂ0ÆÝ/@þÙ0 Ü3;Ò£ÁÀ}>°oþÐ+òæMÊL³°€¢é=<ŸæÐº´} ~‚ïí{¦ëÈT‚áyÁŠ0¬Ãs5>QG%-ÜŠ6aº@@pÞZîË31€`àõ\^rà ák¬§«€‚§§«P{Hx»hx_iØVz vܤ“!ÀTÇýЧעغ’íYÚèôB™k¢ îkŽf^HÃÃ%TKÅ9W s©©,¿sˆÎ'dãÚ¿ƒ™Q<‚ùËgÇi¯ˆ €|ÀQ%ðu!²À| ²VÕÊ*²òÃ#œû€°¤±þ©(»·˜ÏЙY]ÅôûÁYx7HA0;×RSm@œ‡L%ÿõ%ÈD[Òv¢§ƒ?L2D¤Ý ?DÎÍ;˜Ï…eÔx®°<Ï5z_n©­~7?ײqíßC±ÂKO€`C!î¸9” €¼}ÓF2 ˜…àç}Lô/QMðêD÷Èœ @æf²ÉΊH4Zèà´pGj9õB¦átHKÓRYv# `÷ºA˜Rëù¹6º-è(hÒºga½[>Äe#XÞ9;×N;’ýdØ'@F¶²å›…åžîRÐáŸ&äÐÞAÆèˆ-øXZK{9è… ¹þ‡§`Hæ-¸nºáá©ô‘0 Ë ‘ê88?x>éàK€öáÐìÄ í¹¤¦ò~Âõ#ôG¡Ø  ï²P*„›ã0Å @Ú)@ðó7=N}@˜àM¡|€4&$; k OãM•¶à+î<=UGG–¸¤¿·*w$ä™oèãñ¢v~ jªîÂ1j0|Ìê‹´ÒìGD¿ùž rŒôxˆLŒ·@¥\~Âb~åÂø{S±0X€žÌ>pf¢¹ñülX ô°¡7 ì~ Êö™O€Èâ…„û!‡/Œd€,Bý‘öÖç yõâdì¢öH7tD¿LD?@úˆhÌÔñ±¸¨ðdD b>È”äö÷U&,è…ùW¬ ÿí) ‰á¡zš‰$ƒƒ ÂȈ#@¢ãõß¿ ×‚Sö×@wgaÂu‘™ò=½PŒ™ˆi€„£šçs8W`ydV @²ûdàŽ„nÁÔwñgΉŽqHGûk_Á¹XøáH7@Þ;¥"!ïÅ ‘©©Ž„}p &ÁTJWøóÿ¢@Áì# op¨‚‡Ý ïbàtÆØh}Âu½"ï}dúKÞÓd€ôH8óˆÿ¼*ÈÌRHvOt²?û¢ñ{ìÆ†XìÛý÷Fûöm€½š7FÂe/çébsB¤±Å=öDÇ6rÈ)%Çvr8%vн·ùb'÷žè)ûŠÓ½Æãh$ð±Gî>6þßÊ"þ5¤ÿžè©ÇŒóØãyK:—‡h$žóƒ¶&\øo¼^ü_[‘kÑëzMº¾Ã±‰kOôègmBlpˆÈg×ëó]"kÂ>éב¥»':@ÊíÈ´Š ¤ÙᎤÕ3YŒÈÝO,ûhw7Ò#wUÎHjòÎg3¡HB#énT½‘®& qÍ2¶˜¶/ûð0ÐÏ[òaˆÓuá'‰†Ÿ&Âw¬cLÞzèNHjøÉ@šåg Ó¶¤\6@JdZ @íÈ5a+åu ~€Ø cù‡ L|üWxØ!_ùÈ{€xÀC6@ÞØFå™¶ ¥æ2ÅN€Ô[6eQ]‰åÙ>ˆfˆø gÄ=ϬÊ>ÒÄ9ûðw¢é–:H1 m–¤ž 5¾2T€L2¤*àiaȼ€¸CD}%Ö{n€ˆ4ªˆ!ˆ°ÂÃ$@|ËWƒrä+Í= oÓf¼s°lH•o€LêÈ„-™Ò&ß™gÈmé‘ 1„"?ꆈ,$ýMÕðøQAö¡ÜÿÐVÕáS¾’7ÆD @¦ìÈ„~€TX žq&>2Ç vN€t±„s¨bd,^ˆH‰/p°Â#`ò•@¸ü½SÀÿP×D(6ÆD5@*L$èyå4ª1Ò;•VbéñAät¥óKYìq‰XÒ<æðà—®ØºÏeÉWòý‘ ¬NźÚ& OâH°*ªo&´³Ë~DU‘É4 ½˜ø†Æ”ûk`‡¦ì#þ‡­X67ªH‰€dD7ºÞJ,+}-2–yˆÈ ð°L¾2éè­ÀÊ.tí±µ][/{%–v#]r?nÕÚRLž?»A._:JNÜÝËÛȉã»ÈùsÉí›gÈ«—wHm n!Ú,1 ‘ ‘I½à²åý t}X¶6ò1qˆ%ÝèA(å5b¤+õAR!2;ÓAîÝ9G¾^ù ù䣟ûŽ•_}DÇT<~t•´·—Ãó ê‡HZLªƒF zá¡·y0ˆþ»„Ý]èi¢º™Ðæ^ÞJ,ý#MTû Mdõ7Ÿ§ÀáÛ¯?ƒìc+9wöÍ>ŽÛI6o\E>ûä—®@in*—²|@„$^`aüÝ´àð‚‡éJ¯|%ÉÿÐ6ÂD¤ËîYM„Ò¢¯ÄD%–^#]»ŒåPÕÜT@¾øì× ظa%…Š›2=ÕNž<¾F¾úòwŽa•²äAD$bàAéÊöê+%þ‡F]w–M„¾¢¥d)éR|=2Öìl'ùfÕ§ Xµâc8wí¾*²†ÉÚÕË|D-D´Ä78ÔÁ#XÙ‡lùJÄÿÈV`ñô€pÄÞ­mMé|éò|2VÎÃK)Äk'Jz‡HgGùôã_¤„§*‹ "~A¨$ÿŽÃßõ ^xJWÁ–¯$øó:ýz•â ¬€ØYÊ+6•WãHe2V—kËæ¯Sòüéuæ¾£Gv8DDƘ!⨤Ezp¤ƒÇ˜Dx0ûHýò•Á&Z§ðŠ•ðŠ$•X#M¤t¤ËìQ+caÕ•“ ~íÊq€8C¤¸èQ@ÜÊzUAdÜcQ÷ `¤‡DxH‘®2@¾’×ÿÁ×.e„‰­X̱µKÂL,{|2;Dúûk‚ÕX³3LYÈü\in,¢ð˜íJÓ"A¸Åû÷#¤½­‚äå> r®’۷ΑG®‘ü¼‡¤»»^Ï88áñöÍil($¯_Ý%\†ç8K‹ rÈà`ƒ<¼22ÒÏñ€<¸‘ܹu†öøÔ×åÂëé±"ûP%_™ô?LQ”Y¥ &gb‰é¶ôƒ˜¯Æêì,s-Å=°oªÜ­ŠŒ8&+–ÿÞwO .¨NÙ³kCÂã.^8â’];Ö»þíÛ×:‚£¿¿œ=s€|ñù¯=_<¸Îk?38Z[JÉaØÖ«ü °IóÝ€+<òrïù:–m­%d|¼¶§Ýâú˜eŸÿ†Ü¼qŠLOwˆìê+ý² ô-ºt€n&VÐûAg!Î Cdx¨ÁsBc òïÃuÑâËPw‚@³‘‰ñö”Çáßüð~8%#IÅ,âûïÇÈý»»wÏFráÜa²ySªGôõÊOIøÇÂÛröôþ”¿ Áîþsg¦T±Ñ2êïVÂùitÌ<ü¤²âyJ…[`ÖÙßW\[×*“¯2¡ÿÃæXq×@v¤/Mkámùò‹ßø^Ü·Àbzü‘ò²§ øƒHmíkRUù’ÂÈío£´R]õ ²úIëùó[Ž¿SW›—"mµ¶–‘êê×TŠ>.çáú3ü¿èb`:ybãßE9) ×®žHy öÍ45»‚# í[×8£¥¥$öþÞAçþ¡ƒ[S;ü!ãhHÈèH3Ï4NÛå üºkç:’óàyòè Í,½2¬‘‘†¬|•QèJ¢w&÷ö¶Öù ¦d,fz"ØeÎ2¶$>6¬ÿŠÊíe¾2„Ûߺ~í¤«'²2§ß9²“›Gróúiú˜åË~ Ç`(%[xpÿ’ãßÄ &ù± ƒÚߦ<ïîg¦»^C8Üuáüá”÷ˆ pzì¶-ßÂó¸šæwnŸõû0nžë¯lò?x·±­6ÐÓDñL,éöø fª±de!h¤ò$>vï\Ÿ’áˆ,,ô;v®GG¦ $•¼°ŽÀݶÛs._ö;xC©N`@Gï¾ÏRÈ$Ê\££­®^Ä“Ç×}£‡w¸T¬p¬°B£ÜíuWW¿r¬¶Z¿v¹ããÑq3ͽ‚Çc&W]áyw’Í¢Q[óʲìCQõ•Íþ‡v½Ì5ûð Fº¥>ˆVK™î‘kWKz&O` ¢W‚ó´Ü~¿¥¹8²˜..®X¡äõœ˜Õ$Wkµµ–Å-†©2וKîï·¦:7N’ZŒûw/8>%Àù¹Þ”Ò\ôPÜžc½8«­Üä¨ï Ó£r¡CÉ®@®\>æZ²{þÏí÷Ž€7ã ÛÍóÀÈWf;ÐýèÌ1Ù‘.¿¡Pö\,{d,™RÖƒûÈçŸþR Hr_Ýq…H]]žëïᢖ\æ»uó·žÏuúÔ¾¤žŠ±˜gñÕ—¿wÌP¾uî®jG9 ³·ß).zœðüsPÒß™Ÿoßö;–é^ñXÔ;;Êû=¼’÷ú®ËÈþ’ûúŽge–÷Ú›}h–¯f%ÊWÒ«´ù1€ÒHWæƒh”±Œ˜éìe½ÐráüÁ”ÁЬ± îÊ''Úå¬wïèøw§ßÃ1òÞÅÔx_aà–Ð9R±õáí’ { ‡R@02ÜìùÚñ9‚ƺÛï`Iq¼$U[ã- ºõxÜ‚}VÜ~çÙÓ޽^©©Ì­a°¶ö•çkìì(å€GÌsõò• ÿä>î ½éÊ})s±l—±Ôf!ñêe¥Á¤Þï©•{EÎÃË©¦z"—.qý½&ð¢‹êÃa£ûóOE ò¸þNEùóØâ݌џ7Ô¤d'MEž¯ÿÞžÒ“XÉåö;Xê¯l3“žîê„èŽÏí÷Ðwªxó¦ìŽöRÏãPUñ,˜Ù‡vùJöü+Cþ‡‡î íƒè±L÷„È…HüÈ÷Qèb.)Ê!—.&k¾ý·©îX™ÑÔXèq78ֹ޽ø³c0gëí÷’ãÇwÇïËÆJ`ßc6“ÔÝ^^ö\ŠL—ГU<@Ü*¼D‹œ:ͽÒ»Jº+éê,÷|>ìýa…GÐz?LËWAñ?¸"<Úݲ¹XöËXú²´s²Òì\ØÙQzýQO© Ëg¿wéÁ ÝÜV,ÿˆöEôö.ŽY)+yBrêä^ÇßÁ×1?ßG•Ç$N%Á%ÅO¤/îøš£Ïq÷ÎyéýÚ/Ç”°$~\IW—7@òsï*2ÎMf†å++ú?Ê™ý@ЉiD¼Ä&Köˆw€(–²Òí¡>8PK›ÏÜÍâ>Wˆ`C¢Ûïaƒ`tF8¼™ï¥©¬xáú;¥™úºüEùwEtHücœ¢½ ®÷Éæ YS¤²êù³[žÖÄD{\´9Ç8Fk,p§W^in*t”ØÑá-a•—=‘ýQ‘}˜•¯û?$ø±ÀY2–é,Ä"(¡,u¶ªåHQ»7A{" ^2@ZáîØí÷pû\¼ãŽÊSÑNì0Ëú0°Oãü¹C‹fü‡aG€ôôT{.œ½½µC½¦æ.–äbÆ”.[qÜIÐc0â"8'ìz¤&8J„h¬Ïó|ÍÍs“ÙGå+µþ‡€X䃘•±x— 9RÖÎíkbFõìN˜ÎI†ÈØh“ã„RRüܬdˆ`Âj—rÚø&¿Šòg {`œ²]§ßÁ×mRÄì&¹Ÿ$”×Üç"f`$Çèˆw¥×8d~·¢õ‚G:€ Üß»LÚõÿgŸü&*w(®,ˆììC»|¥ßÿàˆå¼–ÊX–d!¬Ù±}M‚îílj‡È›ùn×i¾é&øÞ¼~Ês¡ÅlƒÊ`q£á«ª^¥õ ZqÎTòèø¸pë*§=,¯ï¥<Þ a V¨aA‰orI®[Wyâ~)ÞYÇÞÝÈšÕ_Ðhi)rÜÛãÎ-w€ \ÜÆ´ß¾yÚ}èä¶Õ|ðÈÀìô|e²|7 £I>ˆð\,…ãÝ3ÐLW)eÅdõ7ŸÁqoc‚Hk³sYìkh&L·Ug{Yš&Á½)wé8G˜¸ýŽDÁÅøÇ=HÂÑå½n¿Ýà^¿‹ñf¾/&¥¡§16Ú’²[àË·]ŸãÞÝói³Žþº„‚°˜º1îíáö<[7ã2¢½?–y:6 æÞQ+]-ió\öøvÙó¯Rýä†@äø KCƲ8 a•²RBËEw­÷ \Ôìßœ:zcÝrxí½ž;FA²nÍ—î½U/¥ž³gö»þÎ Êø}`àݽ›|62Üäù»9q“~±2ì{‡­fßÀûÇÌÁ­aò Œ?ùÞušñ9Wq†“ŠSw (ñ­`ƒ~ždxÔy4bF57×™xXnœË>/_ùó?Ø"Û1*cÕ ¤¬…T€Dïâ òïÅy"©®§ûY8 8lo+YÜÍÐ"ƒž} øwÐ4wš§…Ö®UTíå zêþì“PåVJŒp§§:÷!Ï˽S² @€Ù‡ã.]]•®¥ÎáÞ–^‡焎ôÍWÁµÕítÁçÆñ4wnŸ9c…tƒ©œaTɯ]+Ĩy¾`Jº @ê(_ñû‹µÃ ŽŒ”,„_ÊÚ³k½çL¤½{6Ë—ŽÐ… ãâ…C ‘¯ÅÆùî{DR»ŸÝ!ÒÝ]å2ª}¿k'{xªoêh¼ãO\ÄG<Ç–lڰʵåò¥£ÔÁ1&÷ï]$Û¶®NåÞÙYá^M ôcÜ@…ÕoèåçݧàX·v1#Û´a%ÝŠÖk/s/€<~#툋E¿$¥¥HWÙìÈ|%Ñÿ@nÄD¶â‘Ju2–Çl,ù#ÞuÄ DÞÌw‘úú×0€ð½Ûõè.{|cG.RCÝmxŸW6‚ûФŽyí¾YÕ穾¸§[Гƒ~n>µÒ£Ÿ%YâÂçÆ^´?òZq.Øuð¸Ìçæ]nÜÇ÷–wÊ:ü¤Œw,åEÉÌëù¶oý6Û*²AˆÛZ$7ûpˆ<ùÊÙÿð¥&c0 Q"e¥šê³³í¤±1LðÛ°YÔIÚ‚U¸©J;˜‘=²&ç¥Á™J^}"~²‘~âˆs›ÂQHãÝB¿§G0>ÖBš¡ä–FS8¦¦:²XíU_Ÿ™Æ:wj?¼çíq WrüèN §’âÇdf¦Ó4œ^ó,ü.î"ˆp@³ÿ6>Ǿ½á9wCóä9º mªdå~<ÓeÇÙévZaw ž3N<—xïÜ>M%«¼xàÁ%]e³ ÉWÂÑ+cU/€è“²xš }u«»4¾÷Oodеñ{¯mt6±R¼¡ÁÒÓáf”»Å{_ñ±³ x¨’®2 ÕvËW)É(k©d!²¤,› 2à"< qŠ °8ý=Æ×ä >²ŽÅîòt)”uÒU6û°]¾ò 9ÛÜÚ9+ƒ²Ŧ:D¼Æž0HZ¾@"pù ÜÐð™u$&aˆ;ô™çºä«T€h“±*–´Œe”e"~³V &-Ö6cÈÿk÷ ·ˆ,ÑÝÒÕR•¯*´ÊW Ñ_¥ÊLÏ\)K‡©Þà YÙ/LÔC…ÐpË: îÓÁ‘8DÒ}–Øob+‹öxøò šçò#@ì–±¬ËB,’²”CDI6  a ´àH†˜î˜óù:à¡OºZrÙ‡Bù* Ed,»ÌôàIY™Õ qŠJ°8=çk– Ž¥ àg¦Íso€¹ÄÔˆ÷ŒÈB4HYB¦:/Dø*´˜³ ƒI°p‡øëyÏ ެƒ¡ÒŠ⦹néj)gþG·§0B 7Óõf!*¥, "9ñI¿d˜´Ðà‡hÖ¡J¥«ŒÏ>̘ç±DÆ \b‹”ÅZ™ÅÞ'"*i©‰ŠÌD0Ò¿7à&YñÀ£Ó<8¥«löÁ$_yd‰˜é6IYÊý‘ F˜¼·<Ð[à!Ë÷°UºÊ|ó\@2; Ñ-e"²²˜ô;,Þºa1àïurBCNÖx•®²Ù‡€ØÞbsbPÊ2  @â&Þ`Æ×ðÎp˜‡G&IW™?ðÈRÉBtKY¶BÄÝ\çÊF¤€Ä&\@Ñïä@CŽ\å’uø2˃Né*›}¤d, KÓLçÎB5ê†È[ˆÈÊF¤ÄR H†lpðg^}:ࡦa0›}°™çþ’…ˆB)ˇÂaª›‚ˆÿlÄHÄ`’(2Ãò÷Þ‡Û±a‡Ÿ¬C1<8Lse¾GVºÊ>–&@Œê2¤,ÙéP›@ îóZeƒC<:ÔÀøt%jœ/€d³þ,„µ*+X±$rab_x½o“à˜CÝ?D1DæŒ@ÄO6"#0±9X¡!®¬C.<欆‡JßÃb㜠ª² ²2"V€Ä?L2(i€! µàXºð†t¥"ûð« u)K³©®Ôá5×ee#*@“T tžÀ ÙàÉ:xÌrž‡ßC¯t¥Ó8OÈh @,,ë5$e"²© qI 8C¥Ó P¤……+0:9Ÿp˜Ë:2A“®ø³€Øl¨+(í]²I—¨‰d˜øŠ7XÔ„ß×äù¾$@C:8D²Ž¥ ­ÒU©réj ÃùD< 1'eÉõCäUf™€ˆ4IK–¬¥$+ñ¨h7*€ÁšmˆÉUò$+[àÁYq¥Ä÷0+]±d4)Ñ0'K’”¥ËTçƒHº±'³!èÈJ€¢0¬¯Aø=«È6$ƒC4ëð=žD&ØbDÊZ*a”´ŒÉZ ‘’•0Å7Tt†ñ5Í©†¿lC68dÈU¢’ÕÒ„‡JéÊ7@äUeéðCôC„½ÙPÔÑ—ø‰ê¬ÄP¡Â 1Ç ‹VÁã&;Ûhr¿fLeÌ~‡w“ }ðä{Hªºbˆ9)Kº©žÉ±$J`ÒâcÑõ‹ ÐøxžyßÑ¢6ƒc©ÀCÌ47/]ñDš”¥"–CD«¤Å"k±ƒD/LØÁ"f ¨…4ä‚ÿ\¥R²² ¶ÃC<ûðËýÙ†ˆ…Ùˆ¤ÉJ\a"(òàbi€1ç~¬Ù¡Á óY‡<¦,‡‡m¾#@äIYêLu›!bZÒ2 aÄÐ Åà0%YÙ •¦¹BéŠ šým•Y<©ÔíÙˆˆÀd)A%Í1 àPu¨‚G¥dxè­¸×q€(÷CtTfi€ˆ&IËHÄ`"”æÌ†…/`H††qp¨”¬l†‡GÅ•E¾'@‚gª "ú²AHÏJ|„ *6Á…áõ¦yïâÐðŸmÃXÖ‘ið(±‘ e ˜êVAD¨BK½¤¥$z²’T ø‚ 3X Ç,+,š'O¶¡ê%+öJ+[á!nš‹JW1kª"Ê$-£ áÍJDaÒä°˜ú„Š)À0¾¶9éÀ`ƒ{¶¡j$« ƒ‡&ßC @lªÌR‘ ­Qž‰ ˜¸C… ,cN,|@C#8ôe*àQaæ+®´Ä€¢"㦠b8‰(Ld%=\TBf.m¨xŸš ¡b’•BxŒÛS¾‡$€Hýž‘áðE¤f#æA"U@á‡~(#-4,‡Â¬CÄ,ÏhxH’®$Dµ©®"er! lDHdÂÄPlŠFCÐ ›³x”c à¡ ¥æ:S6b$ ` ”Æ,,fÝ¥ThXŽtY‡ ³|)ÀÃ8@– Dx+´D$-YK6H¤d%>a” …ó½Í¨‚†ÿlC.8ä*%’•x¥ÕR†‡D€è¨Ì²"쾈þlDHxaÂ!¨èÄ×7£lÙ78Lg +­ŒÁÃPÅ•b€È­ÌÊ(ˆø’´de#rA¢&Œ@‘C1£ *¡¡ÜY‡¿#pð(Ô‘[™¥"Œ›RI1×Õf#vD& I §O¨ØÆ×<+ îçÆJp¨Ì:äTZùŸªk Ls3 DØÊ|íÍFT‚ÄLœ¡Â bV ,tAC8¬Ì:Ò”é ÖD¾©ž¹ÍF,‰˜xƒÅdfÓ†Š÷Ï`€CCÖ‘!ðÓ… DŒú"Ùƒ¬•$:`¢(|  ïƒê Á r•9xðøKŠbDÆUBÄw¿ˆBLÙq˜˜€Ší‘æX)†bpL™‡ˆßáã ±"%Š ¢&‘-kñ¤–s’”ú,,”£Îù¼kG:¹JŸd%§Ò*sá¡ ™Q_D¿¬%$Sò@â&LP©Ï\PÌÔ3/‘óâêÀ¡%ëàò;²ð0 BÄP62á7±$µ‚‹#P˜ b0¯sZ'0X³ SàHWa¥!ëÈÂÃ4@E’–|YK.HL„ (ÂpÑïOÆñU ÉàДuÈ3Ë—< ĈȩÐÒ&i$ a"*º@#ù5Ê<~ìа&%«4•VK†b;DôJZ2e-_F;'HÄaR+yAT¡â¸¸ž%Ðð ?y•VpˆJVKb"–ù"©“µ|ƒD8+I­¢…Ó>ÀèxŸžÇÙ'4f”Aƒ>å*àáO²Ê\xH@!âKÒ²CÖò-mIÉJ|ÀÄ dNˆClÙ†pèÈ:Tø™ {žýD„!"#±$`’ŠF`H‚†ÍàP’u(‚‡×:Æ % ÝÑã‹h—µT€D +á†IZ ,°øxÿSº Á.S©‡ò¬Cƒß‘‰ð° vBD›¤(Ts.B@ñ • Á…áýLék¶a+8KVYxØÉžˆ1_$¤¥IÖâ‰>˜… ,ªa#øZx`ðCC8ÔÈUÖHVÒáaÇšm@‚sÙˆ*0g%a’ ¨HŒÄñ~’ŽÑ´vh°d2Áa&ëÈÂ#áˆH…–*I+@b&J¡˜ qh&$+ÆJ« ÁÃb€H†¯/¢%“µ˜A¢:+Qw¨.ÎïeZzð@CU¶Á!¹JoÖ!âw –„g{\[%-™ÙˆpÃD1PüÁE7hÒ¿Ži¥Á Vh˜‡ü¬Ã¸d0xD2œ…ˆ,IËF°È[`¢(r€ScTCŒ2U À¡D²Ê,x ;þ›ª:äŒÇ®±IEND®B`‚sweep-0.9.3/Makefile.in0000644000175000017500000006304710777670415013461 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/sweep.spec.in $(top_srcdir)/configure \ $(top_srcdir)/intl/Makefile.in ABOUT-NLS AUTHORS COPYING \ ChangeLog INSTALL NEWS TODO compile config.guess config.rpath \ config.sub depcomp install-sh ltmain.sh missing mkinstalldirs subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(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 configure.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = sweep.spec intl/Makefile SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(pixmapdir)" \ "$(DESTDIR)$(pkgdatadir)" desktopDATA_INSTALL = $(INSTALL_DATA) pixmapDATA_INSTALL = $(INSTALL_DATA) pkgdataDATA_INSTALL = $(INSTALL_DATA) DATA = $(desktop_DATA) $(pixmap_DATA) $(pkgdata_DATA) ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = m4 intl po include src plugins doc pkgdata_DATA = sweep_splash.png desktop_DATA = sweep.desktop desktopdir = $(datadir)/applications pixmapdir = $(datadir)/pixmaps pixmap_DATA = sweep.svg EXTRA_DIST = config.rpath mkinstalldirs $(desktop_DATA) $(pkgdata_DATA) $(pixmap_DATA) \ sweep.spec README.Solaris README.ALSA README.i18n TODO MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure config.h.in \ stamp-h.in \ config.guess mkinstalldirs \ missing install-sh config.sub ltconfig \ ltmain.sh acinclude.m4 all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ cd $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 sweep.spec: $(top_builddir)/config.status $(srcdir)/sweep.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ intl/Makefile: $(top_builddir)/config.status $(top_srcdir)/intl/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-desktopDATA: $(desktop_DATA) @$(NORMAL_INSTALL) test -z "$(desktopdir)" || $(mkdir_p) "$(DESTDIR)$(desktopdir)" @list='$(desktop_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(desktopDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(desktopdir)/$$f'"; \ $(desktopDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(desktopdir)/$$f"; \ done uninstall-desktopDATA: @$(NORMAL_UNINSTALL) @list='$(desktop_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(desktopdir)/$$f'"; \ rm -f "$(DESTDIR)$(desktopdir)/$$f"; \ done install-pixmapDATA: $(pixmap_DATA) @$(NORMAL_INSTALL) test -z "$(pixmapdir)" || $(mkdir_p) "$(DESTDIR)$(pixmapdir)" @list='$(pixmap_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(pixmapDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pixmapdir)/$$f'"; \ $(pixmapDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pixmapdir)/$$f"; \ done uninstall-pixmapDATA: @$(NORMAL_UNINSTALL) @list='$(pixmap_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(pixmapdir)/$$f'"; \ rm -f "$(DESTDIR)$(pixmapdir)/$$f"; \ done install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)" @list='$(pkgdata_DATA)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(pkgdataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgdatadir)/$$f'"; \ $(pkgdataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \ done uninstall-pkgdataDATA: @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(pkgdatadir)/$$f'"; \ rm -f "$(DESTDIR)$(pkgdatadir)/$$f"; \ done # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (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" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ 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 || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) mkdir $(distdir) $(mkdir_p) $(distdir)/. $(distdir)/doc $(distdir)/intl $(distdir)/m4 $(distdir)/po @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$(top_distdir)" distdir="$(distdir)" \ dist-hook -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ --with-included-gettext \ $(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 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(pixmapdir)" "$(DESTDIR)$(pkgdatadir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) clean: clean-recursive clean-am: clean-generic clean-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 info: info-recursive info-am: install-data-am: install-desktopDATA install-pixmapDATA \ install-pkgdataDATA install-exec-am: install-info: install-info-recursive install-man: 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-desktopDATA uninstall-info-am \ uninstall-pixmapDATA uninstall-pkgdataDATA uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ check-am clean clean-generic clean-libtool clean-recursive \ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ dist-hook dist-shar dist-tarZ dist-zip distcheck distclean \ distclean-generic distclean-hdr distclean-libtool \ distclean-recursive distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-desktopDATA install-exec install-exec-am install-info \ install-info-am install-man install-pixmapDATA \ install-pkgdataDATA install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-generic mostlyclean-libtool \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-desktopDATA uninstall-info-am \ uninstall-pixmapDATA uninstall-pkgdataDATA #install-data-local: # @$(NORMAL_INSTALL) # if test -d $(srcdir)/pixmaps; then \ # $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/pixmaps; \ # for pixmap in $(srcdir)/pixmaps/*; do \ # if test -f $$pixmap; then \ # $(INSTALL_DATA) $$pixmap $(DESTDIR)$(pkgdatadir)/pixmaps; \ # fi \ # done \ # fi dist-hook: if test -d pixmaps; then \ mkdir $(distdir)/pixmaps; \ for pixmap in pixmaps/*; do \ if test -f $$pixmap; then \ cp -p $$pixmap $(distdir)/pixmaps; \ fi \ done \ 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: sweep-0.9.3/plugins/0000755000175000017500000000000011001133766013043 5ustar userusersweep-0.9.3/plugins/normalise/0000755000175000017500000000000011001133766015034 5ustar userusersweep-0.9.3/plugins/normalise/Makefile.in0000644000175000017500000004143710777670414017131 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = plugins/normalise DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = 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 = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libnormalise_la_LIBADD = am_libnormalise_la_OBJECTS = normalise.lo libnormalise_la_OBJECTS = $(am_libnormalise_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libnormalise_la_SOURCES) DIST_SOURCES = $(libnormalise_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = $(PACKAGE_PLUGIN_DIR) libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ INCLUDES = -I$(top_srcdir)/include \ @GTK_CFLAGS@ lib_LTLIBRARIES = \ libnormalise.la libnormalise_la_SOURCES = normalise.c libnormalise_la_LDFLAGS = -avoid-version -module all: 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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/normalise/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu plugins/normalise/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 install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libnormalise.la: $(libnormalise_la_OBJECTS) $(libnormalise_la_DEPENDENCIES) $(LINK) -rpath $(libdir) $(libnormalise_la_LDFLAGS) $(libnormalise_la_OBJECTS) $(libnormalise_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/normalise.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install-exec: install-exec-am install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-libLTLIBRARIES install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am \ install-libLTLIBRARIES install-man install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-libLTLIBRARIES install: all mkdir -p $(DESTDIR)/$(libdir) $(INSTALL_PROGRAM) .libs/libnormalise.so $(DESTDIR)/$(libdir); uninstall: rm -f $(DESTDIR)/$(libdir)/libnormalise.so # 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: sweep-0.9.3/plugins/normalise/Makefile.am0000644000175000017500000000066310777660173017115 0ustar useruser## Process this file with automake to produce Makefile.in INCLUDES = -I$(top_srcdir)/include \ @GTK_CFLAGS@ libdir = $(PACKAGE_PLUGIN_DIR) lib_LTLIBRARIES = \ libnormalise.la libnormalise_la_SOURCES = normalise.c libnormalise_la_LDFLAGS = -avoid-version -module install: all mkdir -p $(DESTDIR)/$(libdir) $(INSTALL_PROGRAM) .libs/libnormalise.so $(DESTDIR)/$(libdir); uninstall: rm -f $(DESTDIR)/$(libdir)/libnormalise.so sweep-0.9.3/plugins/normalise/normalise.c0000644000175000017500000000736410777660173017223 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include <../src/sweep_app.h> /* XXX */ static sw_sample * normalise (sw_sample * sample, sw_param_set pset, gpointer custom_data) { sw_sounddata * sounddata; sw_format * f; GList * gl; sw_sel * sel; sw_audio_t * d; sw_audio_t max = 0; gfloat factor = 1.0; sw_framecount_t op_total, run_total; glong i; sw_framecount_t offset, remaining, n; gboolean active = TRUE; sounddata = sample_get_sounddata (sample); f = sounddata->format; op_total = sounddata_selection_nr_frames (sounddata) * 2 / 100;/* 2 passes */ if (op_total == 0) op_total = 1; run_total = 0; /* Find max */ for (gl = sounddata->sels; active && gl; gl = gl->next) { sel = (sw_sel *)gl->data; offset = 0; remaining = sel->sel_end - sel->sel_start; while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { d = sounddata->data + frames_to_bytes (f, sel->sel_start + offset); n = MIN(remaining, 1024); for (i=0; i < n * f->channels; i++) { if(d[i]>=0) max = MAX(max, d[i]); else max = MAX(max, -d[i]); } remaining -= n; offset += n; run_total += n; sample_set_progress_percent (sample, run_total / op_total); } g_mutex_unlock (sample->ops_mutex); } } if (max != 0) factor = SW_AUDIO_T_MAX / (gfloat)max; /* Scale */ for (gl = sounddata->sels; active && gl; gl = gl->next) { sel = (sw_sel *)gl->data; offset = 0; remaining = sel->sel_end - sel->sel_start; while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { d = sounddata->data + frames_to_bytes (f, sel->sel_start + offset); n = MIN(remaining, 1024); for (i=0; i < n * f->channels; i++) { d[i] = (sw_audio_t)((gfloat)d[i] * factor); } remaining -= n; offset += n; run_total += n; sample_set_progress_percent (sample, run_total * 100 / op_total); } g_mutex_unlock (sample->ops_mutex); } } return sample; } static sw_op_instance * apply_normalise(sw_sample * sample, sw_param_set pset, gpointer custom_data) { return perform_filter_op (sample, _("Normalise"), (SweepFilter)normalise, pset, NULL); } static sw_procedure proc_normalise = { N_("Normalise"), N_("Alter the sample's amplitude to lie between 1.0 and -1.0"), "Conrad Parker", "Copyright (C) 2000", "http://sweep.sourceforge.net/plugins/normalise", "Filters/Normalise", /* identifier */ GDK_n, /* accel_key */ GDK_SHIFT_MASK, /* accel_mods */ 0, /* nr_params */ NULL, /* param_specs */ NULL, /* suggests() */ apply_normalise, NULL, /* custom_data */ }; static GList * normalise_init (void) { return g_list_append ((GList *)NULL, &proc_normalise); } sw_plugin plugin = { normalise_init, /* plugin_init */ NULL, /* plugin_cleanup */ }; sweep-0.9.3/plugins/fade/0000755000175000017500000000000011001133766013742 5ustar userusersweep-0.9.3/plugins/fade/Makefile.in0000644000175000017500000004125610777670414016036 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = plugins/fade DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = 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 = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libfade_la_LIBADD = am_libfade_la_OBJECTS = fade.lo libfade_la_OBJECTS = $(am_libfade_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libfade_la_SOURCES) DIST_SOURCES = $(libfade_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = $(PACKAGE_PLUGIN_DIR) libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ INCLUDES = -I$(top_srcdir)/include \ @GTK_CFLAGS@ lib_LTLIBRARIES = \ libfade.la libfade_la_SOURCES = fade.c libfade_la_LDFLAGS = -avoid-version -module all: 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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/fade/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu plugins/fade/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 install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libfade.la: $(libfade_la_OBJECTS) $(libfade_la_DEPENDENCIES) $(LINK) -rpath $(libdir) $(libfade_la_LDFLAGS) $(libfade_la_OBJECTS) $(libfade_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fade.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install-exec: install-exec-am install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-libLTLIBRARIES install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am \ install-libLTLIBRARIES install-man install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-libLTLIBRARIES install: all mkdir -p $(DESTDIR)/$(libdir) $(INSTALL_PROGRAM) .libs/libfade.so $(DESTDIR)/$(libdir); uninstall: rm -f $(DESTDIR)/$(libdir)/libfade.so # 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: sweep-0.9.3/plugins/fade/Makefile.am0000644000175000017500000000063010777660173016015 0ustar useruser## Process this file with automake to produce Makefile.in INCLUDES = -I$(top_srcdir)/include \ @GTK_CFLAGS@ libdir = $(PACKAGE_PLUGIN_DIR) lib_LTLIBRARIES = \ libfade.la libfade_la_SOURCES = fade.c libfade_la_LDFLAGS = -avoid-version -module install: all mkdir -p $(DESTDIR)/$(libdir) $(INSTALL_PROGRAM) .libs/libfade.so $(DESTDIR)/$(libdir); uninstall: rm -f $(DESTDIR)/$(libdir)/libfade.so sweep-0.9.3/plugins/fade/fade.c0000644000175000017500000001145110777660173015027 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include <../src/sweep_app.h> /* XXX */ static sw_sample * fade (sw_sample * sample, gfloat start, gfloat end) { sw_sounddata * sounddata; sw_format * f; GList * gl; sw_sel * sel; sw_audio_t * d; gfloat factor = start; sw_framecount_t op_total, run_total, frames_total; glong i, j; sw_framecount_t offset, remaining, n; gboolean active = TRUE; sounddata = sample_get_sounddata (sample); f = sounddata->format; op_total = sounddata_selection_nr_frames (sounddata) / 100; frames_total = sounddata_selection_nr_frames (sounddata); if (op_total == 0) op_total = 1; run_total = 0; #if 0 /* Find max */ for (gl = sounddata->sels; active && gl; gl = gl->next) { sel = (sw_sel *)gl->data; offset = 0; remaining = sel->sel_end - sel->sel_start; while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { d = sounddata->data + frames_to_bytes (f, sel->sel_start + offset); n = MIN(remaining, 1024); for (i=0; i < n * f->channels; i++) { if(d[i]>=0) max = MAX(max, d[i]); else max = MAX(max, -d[i]); } remaining -= n; offset += n; run_total += n; sample_set_progress_percent (sample, run_total / op_total); } g_mutex_unlock (sample->ops_mutex); } } if (max != 0) factor = SW_AUDIO_T_MAX / (gfloat)max; #endif /* Fade */ for (gl = sounddata->sels; active && gl; gl = gl->next) { sel = (sw_sel *)gl->data; offset = 0; remaining = sel->sel_end - sel->sel_start; while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { d = sounddata->data + frames_to_bytes (f, sel->sel_start + offset); n = MIN(remaining, 1024); for (i = 0; i < n; i++) { factor = start + (end - start) * (gfloat)run_total++ / (gfloat)frames_total; for (j = 0; j < f->channels; j++) { d[i*f->channels+j] = (sw_audio_t)((gfloat)d[i*f->channels+j] * factor); } } remaining -= n; offset += n; sample_set_progress_percent (sample, run_total / op_total); } g_mutex_unlock (sample->ops_mutex); } } return sample; } static sw_sample * fade_in (sw_sample * sample, sw_param_set pset, gpointer custom_data) { return fade (sample, 0.0, 1.0); } static sw_sample * fade_out (sw_sample * sample, sw_param_set pset, gpointer custom_data) { return fade (sample, 1.0, 0.0); } static sw_op_instance * apply_fade_in (sw_sample * sample, sw_param_set pset, gpointer custom_data) { return perform_filter_op (sample, _("Fade in"), (SweepFilter)fade_in, pset, NULL); } static sw_op_instance * apply_fade_out (sw_sample * sample, sw_param_set pset, gpointer custom_data) { return perform_filter_op (sample, _("Fade out"), (SweepFilter)fade_out, pset, NULL); } static sw_procedure proc_fade_in = { N_("Fade in"), N_("Apply a linear fade to the selection, fading in from silence"), "Conrad Parker", "Copyright (C) 2002", "http://sweep.sourceforge.net/plugins/fade", "Filters/Fade_In", /* identifier */ 0, /* accel_key */ 0, /* accel_mods */ 0, /* nr_params */ NULL, /* param_specs */ NULL, /* suggests() */ apply_fade_in, NULL, /* custom_data */ }; static sw_procedure proc_fade_out = { N_("Fade out"), N_("Apply a linear fade to the selection, fading out to silence"), "Conrad Parker", "Copyright (C) 2002", "http://sweep.sourceforge.net/plugins/fade", "Filters/Fade_In", /* identifier */ 0, /* accel_key */ 0, /* accel_mods */ 0, /* nr_params */ NULL, /* param_specs */ NULL, /* suggests() */ apply_fade_out, NULL, /* custom_data */ }; static GList * fade_init (void) { GList * gl = NULL; gl = g_list_append (gl, &proc_fade_in); gl = g_list_append (gl, &proc_fade_out); return gl; } sw_plugin plugin = { fade_init, /* plugin_init */ NULL, /* plugin_cleanup */ }; sweep-0.9.3/plugins/Makefile.in0000644000175000017500000004030310777670413015126 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = plugins DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ SUBDIRS = example byenergy echo fade normalise reverse ladspa all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu plugins/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 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (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" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ 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 || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 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 Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -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-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-generic clean-libtool clean-recursive ctags \ ctags-recursive distclean distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-generic mostlyclean-libtool \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sweep-0.9.3/plugins/example/0000755000175000017500000000000011001133766014476 5ustar userusersweep-0.9.3/plugins/example/Makefile.in0000644000175000017500000003717110777670414016573 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = plugins/example DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LTLIBRARIES = $(noinst_LTLIBRARIES) libexample_la_LIBADD = am_libexample_la_OBJECTS = example.lo libexample_la_OBJECTS = $(am_libexample_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libexample_la_SOURCES) DIST_SOURCES = $(libexample_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = $(PACKAGE_PLUGIN_DIR) libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ INCLUDES = -I$(top_srcdir)/include \ @GTK_CFLAGS@ # Use lib_LTLIBRARIES to create a plugin that you actually want installed; # Here, for the example plugin, we specify the noinst prefix instead of # lib to stop it from actually being installed. # #lib_LTLIBRARIES = libexample.la noinst_LTLIBRARIES = libexample.la libexample_la_SOURCES = example.c libexample_la_LDFLAGS = -avoid-version -module all: 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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/example/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu plugins/example/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 clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libexample.la: $(libexample_la_OBJECTS) $(libexample_la_DEPENDENCIES) $(LINK) $(libexample_la_LDFLAGS) $(libexample_la_OBJECTS) $(libexample_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/example.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sweep-0.9.3/plugins/example/example.c0000644000175000017500000000703310777660173016320 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #ifndef __GNUC__ #error GCCisms used here. Please report this error to \ sweep-devel@lists.sourceforge.net stating your versions of sweep \ and your operating system and compiler. #endif static sw_param stix_list[] = { {i: 4}, {s: N_("With a fork")}, {s: N_("With a spoon")}, {s: N_("With false teeth")}, {s: N_("With Nigel's bum")} }; static sw_param pants_list[] = { {i: 7}, {i: 0}, {i: 1}, {i: 2}, {i: 7}, {i: 42}, {i: 44100}, {i: 1000000} }; static sw_param_spec example_filter_region_param_specs[] = { { N_("Flim"), N_("Should you manage your flim?"), SWEEP_TYPE_BOOL, SW_PARAM_CONSTRAINED_NOT, {NULL}, SW_PARAM_HINT_DEFAULT }, { N_("Beans"), N_("Method of eating beans"), SWEEP_TYPE_STRING, SW_PARAM_CONSTRAINED_LIST, {list: (sw_param *)&stix_list}, SW_PARAM_HINT_DEFAULT }, { N_("Pants methodology"), N_("How many pants should you wear per day?"), SWEEP_TYPE_INT, SW_PARAM_CONSTRAINED_LIST, {list: (sw_param *)&pants_list}, SW_PARAM_HINT_DEFAULT } }; static void example_filter_region_suggest (sw_sample * sample, sw_param_set pset, gpointer custom_data) { pset[0].b = TRUE; pset[1].s = N_("With a fork"); pset[2].i = 7; } static void example_filter_region_func (gpointer data, sw_format * format, gint nr_frames, sw_param_set pset, gpointer custom_data) { gboolean flim = pset[0].b; gchar * beans = pset[1].s; gint nr_pants = pset[2].i; if (flim) { /* manage flim */ } if (!strcmp(beans, "With a spoon")) { /* eat beans with a spoon */ } else { /* spill beans everywhere */ } if (nr_pants > 1000) { /* We're wearing too many pants! */ return; } /* Do filtering stuff */ } static sw_op_instance * example_filter_region_apply (sw_sample * sample, sw_param_set pset, gpointer custom_data) { return perform_filter_region_op (sample, _("Example Filter Region"), (SweepFilterRegion)example_filter_region_func, pset, NULL); } static sw_procedure proc_example_filter_region = { N_("Example Filter Region"), N_("An example filter region plugin"), "Conrad Parker", "Copyright (C) 2000", "http://sweep.sourceforge.net/plugins/example", "Example", /* identifier */ 0, /* accel_key */ 0, /* accel_mods */ 3, /* nr_params */ example_filter_region_param_specs, /* param_specs */ example_filter_region_suggest, /* suggests() */ example_filter_region_apply, NULL, /* custom_data */ }; static GList * example_init (void) { return g_list_append ((GList *)NULL, &proc_example_filter_region); } sw_plugin plugin = { example_init, /* plugin_init */ NULL, /* plugin_cleanup */ }; sweep-0.9.3/plugins/example/Makefile.am0000644000175000017500000000075510777660173016561 0ustar useruser## Process this file with automake to produce Makefile.in INCLUDES = -I$(top_srcdir)/include \ @GTK_CFLAGS@ libdir = $(PACKAGE_PLUGIN_DIR) # Use lib_LTLIBRARIES to create a plugin that you actually want installed; # Here, for the example plugin, we specify the noinst prefix instead of # lib to stop it from actually being installed. # #lib_LTLIBRARIES = libexample.la noinst_LTLIBRARIES = libexample.la libexample_la_SOURCES = example.c libexample_la_LDFLAGS = -avoid-version -module sweep-0.9.3/plugins/reverse/0000755000175000017500000000000011001133766014516 5ustar userusersweep-0.9.3/plugins/reverse/reverse.c0000644000175000017500000000722210777660173016360 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include "../src/sweep_app.h" /* XXX */ #if 0 static void region_reverse (gpointer data, sw_format * format, int nr_frames, sw_param_set pset, gpointer custom_data) { glong i, sw; gpointer d, e, t; sw = frames_to_bytes (format, 1); t = g_malloc (sw); d = data; e = d + frames_to_bytes (format, nr_frames); for (i = 0; i <= nr_frames/2; i++) { memcpy (t, d, sw); memcpy (d, e, sw); memcpy (e, t, sw); d += sw; e -= sw; } g_free (t); } #endif static sw_sample * sounddata_reverse (sw_sample * sample, sw_param_set pset, gpointer custom_data) { GList * gl; sw_sel * sel; glong i, sw; sw_sounddata * sounddata; sw_format * format; sw_framecount_t nr_frames; gpointer d, e, t; sw_framecount_t op_total, run_total; sw_framecount_t remaining, n; gboolean active = TRUE; sounddata = sample_get_sounddata (sample); format = sounddata->format; op_total = sounddata_selection_nr_frames (sounddata) / 200; if (op_total == 0) op_total = 1; run_total = 0; sw = frames_to_bytes (format, 1); t = alloca (sw); for (gl = sounddata->sels; active && gl; gl = gl->next) { sel = (sw_sel *)gl->data; d = sounddata->data + frames_to_bytes (format, sel->sel_start); nr_frames = sel->sel_end - sel->sel_start; e = d + frames_to_bytes (format, nr_frames); remaining = nr_frames/2; while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { n = MIN (remaining, 1024); for (i = 0; i <= n; i++) { memcpy (t, d, sw); memcpy (d, e, sw); memcpy (e, t, sw); d += sw; e -= sw; } remaining -= n; run_total += n; sample_set_progress_percent (sample, run_total / op_total); } g_mutex_unlock (sample->ops_mutex); } } return sample; } static sw_op_instance * apply_reverse (sw_sample * sample, sw_param_set pset, gpointer custom_data) { #if 0 return perform_filter_region_op (sample, _("Reverse"), (SweepFilterRegion)region_reverse, pset, NULL); #endif return perform_filter_op (sample, _("Reverse"), (SweepFilter)sounddata_reverse, pset, NULL); } static sw_procedure proc_reverse = { N_("Reverse"), N_("Reverse selected regions of a sample"), "Conrad Parker", "Copyright (C) 2000", "http://sweep.sourceforge.net/plugins/reverse", "Filters/Reverse", /* identifier */ GDK_f, /* accel_key */ GDK_SHIFT_MASK, /* accel_mods */ 0, /* nr_params */ NULL, /* param_specs */ NULL, /* suggests() */ apply_reverse, NULL, /* custom_data */ }; static GList * reverse_init (void) { return g_list_append ((GList *)NULL, &proc_reverse); } sw_plugin plugin = { reverse_init, /* plugin_init */ NULL, /* plugin_cleanup */ }; sweep-0.9.3/plugins/reverse/Makefile.in0000644000175000017500000004136110777670414016607 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = plugins/reverse DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = 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 = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libreverse_la_LIBADD = am_libreverse_la_OBJECTS = reverse.lo libreverse_la_OBJECTS = $(am_libreverse_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libreverse_la_SOURCES) DIST_SOURCES = $(libreverse_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = $(PACKAGE_PLUGIN_DIR) libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ INCLUDES = -I$(top_srcdir)/include \ @GTK_CFLAGS@ lib_LTLIBRARIES = \ libreverse.la libreverse_la_SOURCES = reverse.c libreverse_la_LDFLAGS = -avoid-version -module all: 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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/reverse/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu plugins/reverse/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 install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libreverse.la: $(libreverse_la_OBJECTS) $(libreverse_la_DEPENDENCIES) $(LINK) -rpath $(libdir) $(libreverse_la_LDFLAGS) $(libreverse_la_OBJECTS) $(libreverse_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/reverse.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install-exec: install-exec-am install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-libLTLIBRARIES install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am \ install-libLTLIBRARIES install-man install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-libLTLIBRARIES install: all mkdir -p $(DESTDIR)/$(libdir) $(INSTALL_PROGRAM) .libs/libreverse.so $(DESTDIR)/$(libdir); uninstall: rm -f $(DESTDIR)/$(libdir)/libreverse.so # 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: sweep-0.9.3/plugins/reverse/Makefile.am0000644000175000017500000000065010777660173016573 0ustar useruser## Process this file with automake to produce Makefile.in INCLUDES = -I$(top_srcdir)/include \ @GTK_CFLAGS@ libdir = $(PACKAGE_PLUGIN_DIR) lib_LTLIBRARIES = \ libreverse.la libreverse_la_SOURCES = reverse.c libreverse_la_LDFLAGS = -avoid-version -module install: all mkdir -p $(DESTDIR)/$(libdir) $(INSTALL_PROGRAM) .libs/libreverse.so $(DESTDIR)/$(libdir); uninstall: rm -f $(DESTDIR)/$(libdir)/libreverse.so sweep-0.9.3/plugins/byenergy/0000755000175000017500000000000011001133766014667 5ustar userusersweep-0.9.3/plugins/byenergy/Makefile.in0000644000175000017500000004140710777670414016761 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = plugins/byenergy DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = 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 = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libbyenergy_la_LIBADD = am_libbyenergy_la_OBJECTS = byenergy.lo libbyenergy_la_OBJECTS = $(am_libbyenergy_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libbyenergy_la_SOURCES) DIST_SOURCES = $(libbyenergy_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = $(PACKAGE_PLUGIN_DIR) libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ INCLUDES = -I$(top_srcdir)/include \ @GTK_CFLAGS@ lib_LTLIBRARIES = \ libbyenergy.la libbyenergy_la_SOURCES = byenergy.c libbyenergy_la_LDFLAGS = -avoid-version -module all: 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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/byenergy/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu plugins/byenergy/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 install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libbyenergy.la: $(libbyenergy_la_OBJECTS) $(libbyenergy_la_DEPENDENCIES) $(LINK) -rpath $(libdir) $(libbyenergy_la_LDFLAGS) $(libbyenergy_la_OBJECTS) $(libbyenergy_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/byenergy.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install-exec: install-exec-am install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-libLTLIBRARIES install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am \ install-libLTLIBRARIES install-man install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-libLTLIBRARIES install: all mkdir -p $(DESTDIR)/$(libdir) $(INSTALL_PROGRAM) .libs/libbyenergy.so $(DESTDIR)/$(libdir); uninstall: rm -f $(DESTDIR)/$(libdir)/libbyenergy.so # 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: sweep-0.9.3/plugins/byenergy/byenergy.c0000644000175000017500000001442410777660173016704 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #define NR_PARAMS 5 static sw_param_range resolution_range = { SW_RANGE_LOWER_BOUND_VALID|SW_RANGE_STEP_VALID, lower: {f: 0.001}, step: {f: 0.001} }; static sw_param_range threshold_range = { SW_RANGE_ALL_VALID, lower: {f: 0.0}, upper: {f: 1.0}, step: {f: 0.01} }; static sw_param_range min_duration_range = { SW_RANGE_LOWER_BOUND_VALID|SW_RANGE_STEP_VALID, lower: {f: 0.0}, step: {f: 0.01} }; static sw_param_range max_interruption_range = { SW_RANGE_LOWER_BOUND_VALID|SW_RANGE_STEP_VALID, lower: {f: 0.0}, step: {f: 0.01} }; static sw_param_spec param_specs[] = { { N_("Select regions above threshold"), N_("Whether to select those regions lying above a given threshold " "or below it."), SWEEP_TYPE_BOOL, SW_PARAM_CONSTRAINED_NOT, {NULL}, }, { N_("Resolution"), N_("Width of energy detection window (s)"), SWEEP_TYPE_FLOAT, SW_PARAM_CONSTRAINED_RANGE, {range: &resolution_range} }, { N_("Threshold"), N_("Energy level to detect [0.0 - 1.0]"), SWEEP_TYPE_FLOAT, SW_PARAM_CONSTRAINED_RANGE, {range: &threshold_range}, }, { N_("Minimum duration"), N_("Shortest region of selection to detect (s)"), SWEEP_TYPE_FLOAT, SW_PARAM_CONSTRAINED_RANGE, {range: &min_duration_range} }, { N_("Maximum interruption"), N_("Longest length of sound above threshold to allow (s)"), SWEEP_TYPE_FLOAT, SW_PARAM_CONSTRAINED_RANGE, {range: &max_interruption_range} } }; static void by_energy_suggest (sw_sample * sample, sw_param_set pset, gpointer custom_data) { pset[0].b = FALSE; pset[1].f = 0.02; pset[2].f = 0.2; pset[3].f = 0.2; pset[4].f = 0.06; } static void select_by_energy (sw_sample * s, sw_param_set pset, gpointer custom_data) { gboolean select_above = pset[0].b; gfloat resolution = pset[1].f; gfloat threshold = pset[2].f; gfloat min_duration_f = pset[3].f; gfloat max_interruption_f = pset[4].f; sw_sounddata * sounddata; sw_audio_t * d; glong window, win_s; gint i, doff; glong min_duration, max_interruption; glong length, loc=0; glong start=-1, end=-1; sw_audio_intermediate_t di, energy, max_energy=0, factor=1.0; sounddata = sample_get_sounddata (s); window = (glong)(resolution * (gfloat)sounddata->format->rate); length = sounddata->nr_frames; min_duration = (glong)(min_duration_f * (gfloat)sounddata->format->rate); /* check (end-1 - (start+1)) > 0 */ min_duration = MAX(2*window, min_duration); max_interruption = (glong)(max_interruption_f * (gfloat)sounddata->format->rate); d = (sw_audio_t *)sounddata->data; sounddata_lock_selection (sounddata); sounddata_clear_selection (sounddata); /* Find max for normalisation */ length = sounddata->nr_frames; doff = 0; while (length > 0) { energy = 0; win_s = frames_to_samples (sounddata->format, MIN(length, window)); /* calculate avg. for this window */ for (i=0; inr_frames; doff = 0; while (length > 0) { energy = 0; win_s = frames_to_samples (sounddata->format, MIN(length, window)); /* calculate RMS energy for this window */ for (i=0; i= threshold) : (energy <= threshold)) { if (start == -1) { /* Not in possible selection; initialise start,end */ end = start = loc; } else { end = loc; } } else if (end != -1) { if (loc - end > max_interruption) { if (end - start > min_duration) { sounddata_add_selection_1 (sounddata, start+1, end-1); } end = start = -1; } /* else do nothing: keep start, end where they are */ } loc += window; length -= window; } if (start != -1) { if (end - start > min_duration) { sounddata_add_selection_1 (sounddata, start, end); } } sounddata_unlock_selection (sounddata); } static sw_op_instance * apply_by_energy(sw_sample * sample, sw_param_set pset, gpointer custom_data) { return perform_selection_op (sample, _("Select by energy"), (SweepFilter)select_by_energy, pset, NULL); } static sw_procedure proc_by_energy = { N_("Select by energy"), N_("Select loud or quiet regions"), "C. Parker, S. Pfeiffer", "Copyright (C) 2000 CSIRO Australia", "http://sweep.sourceforge.net/plugins/byenergy", "Filters/Select by energy", /* identifier */ 0, /* accel_key */ 0, /* accel_mods */ NR_PARAMS, /* nr_params */ param_specs, /* param_specs */ by_energy_suggest, /* suggests() */ apply_by_energy, NULL, /* custom data */ }; static GList * by_energy_init (void) { return g_list_append ((GList *)NULL, &proc_by_energy); } sw_plugin plugin = { by_energy_init, /* plugin_init */ NULL, /* plugin_cleanup */ }; sweep-0.9.3/plugins/byenergy/Makefile.am0000644000175000017500000000065510777660173016751 0ustar useruser## Process this file with automake to produce Makefile.in INCLUDES = -I$(top_srcdir)/include \ @GTK_CFLAGS@ libdir = $(PACKAGE_PLUGIN_DIR) lib_LTLIBRARIES = \ libbyenergy.la libbyenergy_la_SOURCES = byenergy.c libbyenergy_la_LDFLAGS = -avoid-version -module install: all mkdir -p $(DESTDIR)/$(libdir) $(INSTALL_PROGRAM) .libs/libbyenergy.so $(DESTDIR)/$(libdir); uninstall: rm -f $(DESTDIR)/$(libdir)/libbyenergy.so sweep-0.9.3/plugins/echo/0000755000175000017500000000000011001133766013761 5ustar userusersweep-0.9.3/plugins/echo/Makefile.in0000644000175000017500000004125310777670414016052 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = plugins/echo DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = 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 = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libecho_la_LIBADD = am_libecho_la_OBJECTS = echo.lo libecho_la_OBJECTS = $(am_libecho_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libecho_la_SOURCES) DIST_SOURCES = $(libecho_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = $(PACKAGE_PLUGIN_DIR) libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ INCLUDES = -I$(top_srcdir)/include \ @GTK_CFLAGS@ lib_LTLIBRARIES = \ libecho.la libecho_la_SOURCES = echo.c libecho_la_LDFLAGS = -avoid-version -module all: 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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/echo/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu plugins/echo/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 install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libecho.la: $(libecho_la_OBJECTS) $(libecho_la_DEPENDENCIES) $(LINK) -rpath $(libdir) $(libecho_la_LDFLAGS) $(libecho_la_OBJECTS) $(libecho_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/echo.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install-exec: install-exec-am install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-libLTLIBRARIES install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am \ install-libLTLIBRARIES install-man install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-libLTLIBRARIES install: all mkdir -p $(DESTDIR)/$(libdir) $(INSTALL_PROGRAM) .libs/libecho.so $(DESTDIR)/$(libdir); uninstall: rm -f $(DESTDIR)/$(libdir)/libecho.so # 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: sweep-0.9.3/plugins/echo/Makefile.am0000644000175000017500000000062510777660174016041 0ustar useruser## Process this file with automake to produce Makefile.in INCLUDES = -I$(top_srcdir)/include \ @GTK_CFLAGS@ libdir = $(PACKAGE_PLUGIN_DIR) lib_LTLIBRARIES = \ libecho.la libecho_la_SOURCES = echo.c libecho_la_LDFLAGS = -avoid-version -module install: all mkdir -p $(DESTDIR)/$(libdir) $(INSTALL_PROGRAM) .libs/libecho.so $(DESTDIR)/$(libdir); uninstall: rm -f $(DESTDIR)/$(libdir)/libecho.so sweep-0.9.3/plugins/echo/echo.c0000644000175000017500000000631710777660174015073 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #define NR_PARAMS 2 #ifndef __GNUC__ #error GCCisms used here. Please report this error to \ sweep-devel@lists.sourceforge.net stating your versions of sweep \ and your operating system and compiler. #endif static sw_param_range delay_range = { SW_RANGE_LOWER_BOUND_VALID|SW_RANGE_STEP_VALID, lower: {f: 0.0}, step: {f: 0.001} }; static sw_param_range gain_range = { SW_RANGE_ALL_VALID, lower: {f: 0.0}, upper: {f: 1.0}, step: {f: 0.01} }; static sw_param_spec param_specs[] = { { N_("Delay"), N_("Time to delay by"), SWEEP_TYPE_FLOAT, SW_PARAM_CONSTRAINED_RANGE, {range: &delay_range}, SW_PARAM_HINT_TIME }, { N_("Gain"), N_("Gain with which to mix in delayed signal"), SWEEP_TYPE_FLOAT, SW_PARAM_CONSTRAINED_RANGE, {range: &gain_range}, SW_PARAM_HINT_DEFAULT }, }; static void echo_suggest (sw_sample * sample, sw_param_set pset, gpointer custom_data) { pset[0].f = 0.0; pset[1].f = 0.0; } static void region_echo (gpointer data, sw_format * format, sw_framecount_t nr_frames, sw_param_set pset, gpointer custom_data) { gfloat delay = pset[0].f; gfloat gain = pset[1].f; sw_framecount_t i, delay_f, dlen_s; sw_audio_t * d, * e; gpointer ep; delay_f = time_to_frames (format, delay); d = (sw_audio_t *)data; ep = data + frames_to_bytes (format, delay_f); e = (sw_audio_t *)ep; if (delay > nr_frames) return; dlen_s = frames_to_samples (format, nr_frames - delay_f); for (i = 0; i < dlen_s; i++) { e[i] += (sw_audio_t)((gfloat)(d[i]) * gain); } } static sw_op_instance * echo_apply (sw_sample * sample, sw_param_set pset, gpointer custom_data) { return perform_filter_region_op (sample, _("Echo"), (SweepFilterRegion)region_echo, pset, NULL); } static sw_procedure proc_echo = { N_("Echo"), N_("Apply an echo to selected regions of a sample"), "Conrad Parker", "Copyright (C) 2000", "http://sweep.sourceforge.net/plugins/echo", "Filters/Echo", /* identifier */ GDK_e, /* accel_key */ GDK_SHIFT_MASK, /* accel_mods */ NR_PARAMS, /* nr_params */ param_specs, /* param_specs */ echo_suggest, /* suggests() */ echo_apply, NULL, /* custom_data */ }; static GList * echo_init (void) { return g_list_append ((GList *)NULL, &proc_echo); } sw_plugin plugin = { echo_init, /* plugin_init */ NULL, /* plugin_cleanup */ }; sweep-0.9.3/plugins/ladspa/0000755000175000017500000000000011001133767014310 5ustar userusersweep-0.9.3/plugins/ladspa/Makefile.in0000644000175000017500000004150710777670414016402 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = plugins/ladspa DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = 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 = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(libdir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libladspameta_la_LIBADD = am_libladspameta_la_OBJECTS = ladspameta.lo libladspameta_la_OBJECTS = $(am_libladspameta_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libladspameta_la_SOURCES) DIST_SOURCES = $(libladspameta_la_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = $(PACKAGE_PLUGIN_DIR) libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ INCLUDES = -I$(top_srcdir)/include \ @GLIB_CFLAGS@ \ @GTK_CFLAGS@ lib_LTLIBRARIES = \ libladspameta.la libladspameta_la_SOURCES = ladspameta.c ladspa.h libladspameta_la_LDFLAGS = -avoid-version -module all: 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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/ladspa/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu plugins/ladspa/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 install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ f=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ p=$(am__strip_dir) \ echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libladspameta.la: $(libladspameta_la_OBJECTS) $(libladspameta_la_DEPENDENCIES) $(LINK) -rpath $(libdir) $(libladspameta_la_LDFLAGS) $(libladspameta_la_OBJECTS) $(libladspameta_la_LIBADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ladspameta.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) installdirs: for dir in "$(DESTDIR)$(libdir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install-exec: install-exec-am install-data: install-data-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-libLTLIBRARIES install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am \ install-libLTLIBRARIES install-man install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am \ uninstall-libLTLIBRARIES install: all mkdir -p $(DESTDIR)/$(libdir) $(INSTALL_PROGRAM) .libs/libladspameta.so $(DESTDIR)/$(libdir); uninstall: rm -f $(DESTDIR)/$(libdir)/libladspameta.so # 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: sweep-0.9.3/plugins/ladspa/ladspameta.c0000644000175000017500000005062110777660173016612 0ustar useruser/* * LADSPA meta plugin for * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* * This file assumes that both LADSPA and Sweep are built with * an audio datatype of 'float'. */ #include #include #include #include #include #include /* for ceil() */ #include #include #include #include #include "../src/sweep_app.h" #include "ladspa.h" /* Compile in support for inplace processing? */ #define _PROCESS_INPLACE #ifdef _PROCESS_INPLACE #define LADSPA_META_IS_INPLACE_BROKEN(x) LADSPA_IS_INPLACE_BROKEN(x) #else #define LADSPA_META_IS_INPLACE_BROKEN(x) (1L) #endif #define LADSPA_IS_CONTROL_INPUT(x) (LADSPA_IS_PORT_INPUT(x) && LADSPA_IS_PORT_CONTROL(x)) #define LADSPA_IS_AUDIO_INPUT(x) (LADSPA_IS_PORT_INPUT(x) && LADSPA_IS_PORT_AUDIO(x)) #define LADSPA_IS_CONTROL_OUTPUT(x) (LADSPA_IS_PORT_OUTPUT(x) && LADSPA_IS_PORT_CONTROL(x)) #define LADSPA_IS_AUDIO_OUTPUT(x) (LADSPA_IS_PORT_OUTPUT(x) && LADSPA_IS_PORT_AUDIO(x)) #define LADSPA_frames_to_bytes(f) (f * sizeof(LADSPA_Data)) static char * default_ladspa_path = "/usr/lib/ladspa:/usr/local/lib/ladspa:/opt/ladspa/lib"; static GList * modules_list = NULL; static gboolean ladspa_meta_initialised = FALSE; /* * is_usable (d) * * Determine if a LADSPA_Descriptor * d is usable by this ladspameta * sweep plugin. Currently this means that: * 1. there is at least one audio output * 2. the number of audio inputs must equal the number of audio outputs. */ static gboolean is_usable(const LADSPA_Descriptor * d) { LADSPA_PortDescriptor pd; gint i; gint nr_ai=0, /* audio inputs */ nr_ao=0; /* audio outputs */ for (i=0; i < d->PortCount; i++) { pd = d->PortDescriptors[i]; if (LADSPA_IS_AUDIO_INPUT(pd)) nr_ai++; if (LADSPA_IS_AUDIO_OUTPUT(pd)) nr_ao++; } if (nr_ao == 0) return FALSE; /* Sanity checks */ if (! d->run) return FALSE; /* plugin does nothing! */ if (! d->instantiate) return FALSE; /* plugin cannot be instantiated */ if (! d->connect_port) return FALSE; /* plugin cannot be wired up */ return (nr_ai == nr_ao); } static sw_param_type convert_type (const LADSPA_PortRangeHintDescriptor prhd) { if (LADSPA_IS_HINT_TOGGLED(prhd)) return SWEEP_TYPE_BOOL; else if (LADSPA_IS_HINT_INTEGER(prhd)) return SWEEP_TYPE_INT; else return SWEEP_TYPE_FLOAT; } static int get_valid_mask (const LADSPA_PortRangeHintDescriptor prhd) { int ret=0; if (LADSPA_IS_HINT_BOUNDED_BELOW(prhd)) ret |= SW_RANGE_LOWER_BOUND_VALID; if (LADSPA_IS_HINT_BOUNDED_ABOVE(prhd)) ret |= SW_RANGE_UPPER_BOUND_VALID; return ret; } static sw_param_range * convert_constraint ( /* sw_format * format, */ const LADSPA_PortRangeHint * prh) { sw_param_range * pr; LADSPA_PortRangeHintDescriptor prhd = prh->HintDescriptor; LADSPA_Data lower, upper; if (LADSPA_IS_HINT_TOGGLED(prhd)) return NULL; pr = g_malloc0 (sizeof (*pr)); pr->valid_mask = get_valid_mask (prhd); lower = prh->LowerBound; upper = prh->UpperBound; if LADSPA_IS_HINT_SAMPLE_RATE (prhd) { #if 0 lower *= format->rate; upper *= format->rate; #else lower *= 44100; upper *= 44100; #endif } if (LADSPA_IS_HINT_INTEGER(prhd)) { if (LADSPA_IS_HINT_BOUNDED_BELOW(prhd)) pr->lower.i = (sw_int)lower; if (LADSPA_IS_HINT_BOUNDED_ABOVE(prhd)) pr->upper.i = (sw_int)upper; } else { if (LADSPA_IS_HINT_BOUNDED_BELOW(prhd)) pr->lower.f = (sw_float)lower; if (LADSPA_IS_HINT_BOUNDED_ABOVE(prhd)) pr->upper.f = (sw_float)upper; } return pr; } typedef struct _lm_custom lm_custom; struct _lm_custom { const LADSPA_Descriptor * d; sw_param_spec * param_specs; }; static lm_custom * lm_custom_new (const LADSPA_Descriptor * d, sw_param_spec * param_specs) { lm_custom * lmc; lmc = g_malloc (sizeof (*lmc)); if (lmc) { lmc->d = d; lmc->param_specs = param_specs; } return lmc; } static sw_param convert_default (sw_format * format, const LADSPA_PortRangeHint * prh) { LADSPA_PortRangeHintDescriptor prhd = prh->HintDescriptor; LADSPA_Data lower, upper; gboolean bounded = FALSE; sw_float def = 0.0; sw_param param; /* Cache whether or not this port is bounded */ bounded = LADSPA_IS_HINT_BOUNDED_BELOW (prhd) && LADSPA_IS_HINT_BOUNDED_ABOVE (prhd); lower = prh->LowerBound; upper = prh->UpperBound; if LADSPA_IS_HINT_SAMPLE_RATE (prhd) { lower *= format->rate; upper *= format->rate; } /* Determine default value, as sw_float */ if (!LADSPA_IS_HINT_HAS_DEFAULT (prhd)) { def = 0.0; } else if (LADSPA_IS_HINT_DEFAULT_MINIMUM (prhd)) { def = prh->LowerBound; } else if (bounded && LADSPA_IS_HINT_DEFAULT_LOW (prhd)) { if (LADSPA_IS_HINT_LOGARITHMIC (prhd)) { def = exp(log(lower) * 0.75 + log(upper) * 0.25); } else { def = lower * 0.75 + upper * 0.25; } } else if (bounded && LADSPA_IS_HINT_DEFAULT_MIDDLE (prhd)) { if (LADSPA_IS_HINT_LOGARITHMIC (prhd)) { exp(log(lower) * 0.5 + log(upper) * 0.5); } else { def = lower * 0.5 + upper * 0.5; } } else if (bounded && LADSPA_IS_HINT_DEFAULT_HIGH (prhd)) { if (LADSPA_IS_HINT_LOGARITHMIC (prhd)) { exp(log(lower) * 0.25 + log(upper) * 0.75); } else { def = lower * 0.25 + upper * 0.75; } } else if (LADSPA_IS_HINT_DEFAULT_MAXIMUM (prhd)) { def = prh->UpperBound; } else if (LADSPA_IS_HINT_DEFAULT_0 (prhd)) { def = 0.0; } else if (LADSPA_IS_HINT_DEFAULT_1 (prhd)) { def = 1.0; } else if (LADSPA_IS_HINT_DEFAULT_100 (prhd)) { def = 100.0; } else if (LADSPA_IS_HINT_DEFAULT_440 (prhd)) { def = 440.0; } else { def = 0.0; } /* Convert to sw_param type */ if (LADSPA_IS_HINT_TOGGLED (prhd)) { param.b = (sw_bool)def; } else if (LADSPA_IS_HINT_INTEGER (prhd)) { param.i = (sw_int)def; } else { param.f = (sw_float)def; } return param; } static void ladspa_meta_suggest (sw_sample * sample, sw_param_set pset, gpointer custom_data) { sw_sounddata * sounddata; lm_custom * lm = (lm_custom *)custom_data; const LADSPA_Descriptor * d = lm->d; LADSPA_PortDescriptor pd; int i, pset_i = 0; sounddata = sample_get_sounddata (sample); for (i=0; i < d->PortCount; i++) { pd = d->PortDescriptors[i]; if (LADSPA_IS_CONTROL_INPUT(pd)) { pset[pset_i] = convert_default (sounddata->format, &d->PortRangeHints[i]); pset_i++; } } } #define BLOCK_SIZE 1024 static sw_sample * ladspa_meta_apply_filter (sw_sample * sample, sw_param_set pset, gpointer custom_data) { lm_custom * lm = (lm_custom *)custom_data; const LADSPA_Descriptor * d = lm->d; sw_param_spec * param_specs = lm->param_specs; sw_sounddata * sounddata; sw_format * format; sw_framecount_t op_total, run_total; sw_framecount_t offset, remaining, n; GList * gl; sw_sel * sel; gpointer pcmdata; /* The number of times the plugin will be run; ie. if the number of * channels in the input pcmdata is greater than the number of * audio ports on the ladspa plugin, the plugin will be run * multiple times until enough output channels have been calculated. */ gint nr_handles; LADSPA_Handle ** handles; LADSPA_Data ** input_buffers, ** output_buffers; LADSPA_Data * mono_input_buffers[1], * mono_output_buffers[1]; LADSPA_Data * p; LADSPA_Data * control_inputs; LADSPA_Data dummy_control_output; LADSPA_PortDescriptor pd; glong length_b; gulong port_i; /* counter for iterating over ports */ gint h, i, j, c; /* Enumerate the numbers of each type of port on the ladspa plugin */ gint nr_ci=0, /* control inputs */ nr_ai=0, /* audio inputs */ nr_co=0, /* control outputs */ nr_ao=0; /* audio outputs */ /* The number of audio channels to be processed */ gint nr_channels; /* The number of input and output buffers to use */ gint nr_i=0, nr_o=0; /* Counters for allocating input and output buffers */ gint ibi=0, obi=0; gboolean active = TRUE; g_return_val_if_fail (d != NULL, NULL); sounddata = sample_get_sounddata (sample); format = sounddata->format; nr_channels = format->channels; op_total = sounddata_selection_nr_frames (sounddata) / 100; if (op_total == 0) op_total = 1; run_total = 0; /* Cache how many of each type of port this ladspa plugin has */ for (port_i=0; port_i < d->PortCount; port_i++) { pd = d->PortDescriptors[(int)port_i]; if (LADSPA_IS_CONTROL_INPUT(pd)) nr_ci++; if (LADSPA_IS_AUDIO_INPUT(pd)) nr_ai++; if (LADSPA_IS_CONTROL_OUTPUT(pd)) nr_co++; if (LADSPA_IS_AUDIO_OUTPUT(pd)) nr_ao++; } /* Basic assumption of this meta plugin, which was * checked above in is_usable(); nb. for future expansion * much of this routine is written to accomodate this * assumption being incorrect. */ g_assert (nr_ai == nr_ao); /* Basic assumption that this plugin has audio output. * Also important as we are about to divide by nr_ao. */ g_assert (nr_ao > 0); nr_handles = (gint) ceil(((double)nr_channels) / ((double)nr_ao)); /* Numbers of input and output buffers: ensure * nr_i >= nr_channels && nr_o >= nr_channels */ nr_i = nr_handles * nr_ai; nr_o = nr_handles * nr_ao; /* Create all input and output buffers */ if ((nr_channels == 1) && (nr_ai == 1) && (nr_ao >= 1)) { /* * Processing a mono sample with a mono filter. * Attempt to do this in place. */ /* Create an input buffer if this ladspa plugin cannot work inplace */ if (LADSPA_META_IS_INPLACE_BROKEN(d->Properties)) { length_b = frames_to_bytes (format, BLOCK_SIZE); mono_input_buffers[0] = g_malloc (length_b); } else { /* Input directly from sample data; mark as NULL */ mono_input_buffers[0] = NULL; } input_buffers = mono_input_buffers; /* Always output directly into the sample data; mark as NULL */ mono_output_buffers[0] = NULL; output_buffers = mono_output_buffers; } else { length_b = LADSPA_frames_to_bytes (BLOCK_SIZE); /* Allocate zeroed input buffers; these will remain zeroed * if there aren't enough channels in the input pcmdata * to use them. */ input_buffers = g_malloc (sizeof(LADSPA_Data *) * nr_i); for (i=0; i < nr_i; i++) { input_buffers[i] = g_malloc0 (length_b); } output_buffers = g_malloc(sizeof(LADSPA_Data *) * nr_o); /* Create separate output buffers if this ladspa plugin cannot * work inplace */ if (LADSPA_META_IS_INPLACE_BROKEN(d->Properties)) { for (i=0; i < nr_o; i++) { output_buffers[i] = g_malloc (length_b); } } else { /* Re-use the input buffers, directly mapping them to * corresponding output buffers */ for (i=0; i < MIN(nr_i, nr_o); i++) { output_buffers[i] = input_buffers[i]; } /* Create some extra output buffers if nr_o > nr_i */ for (; i < nr_o; i++) { output_buffers[i] = g_malloc (length_b); } } } /* instantiate the ladspa plugin */ handles = g_malloc (sizeof (LADSPA_Handle *) * nr_handles); for (h = 0; h < nr_handles; h++) { handles[h] = d->instantiate (d, (long)format->rate); } /* connect control ports */ control_inputs = g_malloc (nr_ci * sizeof(LADSPA_Data)); j=0; for (port_i=0; port_i < d->PortCount; port_i++) { pd = d->PortDescriptors[(int)port_i]; if (LADSPA_IS_CONTROL_INPUT(pd)) { /* do something with pset! */ switch (param_specs[j].type) { case SWEEP_TYPE_BOOL: /* from ladspa.h: * Data less than or equal to zero should be considered * `off' or `false,' * and data above zero should be considered `on' or `true.' */ control_inputs[j] = pset[j].b ? 1.0 : 0.0; break; case SWEEP_TYPE_INT: control_inputs[j] = (LADSPA_Data)pset[j].i; break; case SWEEP_TYPE_FLOAT: control_inputs[j] = pset[j].f; break; default: /* This plugin should produce no other types */ g_assert_not_reached (); break; } for (h = 0; h < nr_handles; h++) { d->connect_port (handles[h], port_i, &control_inputs[j]); } j++; } if (LADSPA_IS_CONTROL_OUTPUT(pd)) { for (h = 0; h < nr_handles; h++) { d->connect_port (handles[h], port_i, &dummy_control_output); } } } /* activate the ladspa plugin */ if (d->activate) { for (h = 0; h < nr_handles; h++) { d->activate (handles[h]); } } /* run the plugin on selection regions */ for (gl = sounddata->sels; active && gl; gl = gl->next) { sel = (sw_sel *)gl->data; offset = 0; remaining = sel->sel_end - sel->sel_start; while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { /* cancel */ pcmdata = sounddata->data + frames_to_bytes (format, sel->sel_start + offset); n = MIN(remaining, BLOCK_SIZE); /* Copy data into input buffers */ if (nr_channels == 1) { if (LADSPA_META_IS_INPLACE_BROKEN(d->Properties)) { length_b = frames_to_bytes (format, n); memcpy (input_buffers[0], pcmdata, length_b); } else { /* we're processing in-place, so we haven't needed to set * up a separate input buffer; input_buffers[0] actually * points to pcmdata hence we don't do any copying here. */ input_buffers[0] = (LADSPA_Data *)pcmdata; } output_buffers[0] = (LADSPA_Data *)pcmdata; } else { /* de-interleave multichannel data */ p = (LADSPA_Data *)pcmdata; for (i=0; i < n; i++) { for (c=0; c < nr_channels; c++) { input_buffers[c][i] = *p++; } } } g_assert (input_buffers[0] != NULL); g_assert (output_buffers[0] != NULL); /* connect input and output audio buffers to the * audio ports of the ladspa plugin */ ibi = 0; obi = 0; for (h = 0; h < nr_handles; h++) { for (port_i=0; port_i < d->PortCount; port_i++) { pd = d->PortDescriptors[(int)port_i]; if (LADSPA_IS_AUDIO_INPUT(pd)) { d->connect_port (handles[h], port_i, input_buffers[ibi++]); } if (LADSPA_IS_AUDIO_OUTPUT(pd)) { d->connect_port (handles[h], port_i, output_buffers[obi++]); } } } /* run the ladspa plugin */ for (h = 0; h < nr_handles; h++) { d->run (handles[h], n); } /* re-interleave data */ if (nr_channels > 1) { p = (LADSPA_Data *)pcmdata; for (i=0; i < n; i++) { for (c=0; c < nr_channels; c++) { *p++ = output_buffers[c][i]; } } } remaining -= n; offset += n; run_total += n; sample_set_progress_percent (sample, run_total / op_total); } g_mutex_unlock (sample->ops_mutex); } } /* deactivate the ladspa plugin */ if (d->deactivate) { for (h = 0; h < nr_handles; h++) { d->deactivate (handles[h]); } } /* let the ladspa plugin clean up after itself */ if (d->cleanup) { for (h = 0; h < nr_handles; h++) { d->cleanup (handles[h]); } } /* free the array of handles */ g_free (handles); /* free the input and output buffers */ if (control_inputs) g_free (control_inputs); if ((nr_channels == 1) && (nr_ai == 1) && (nr_ao >= 1)) { if (LADSPA_META_IS_INPLACE_BROKEN(d->Properties)) { g_free (mono_input_buffers[0]); } } else { /* free the output buffers */ for (i=0; i < nr_o; i++) { g_free (output_buffers[i]); } g_free (output_buffers); /* free the input buffers, if we created some */ if (LADSPA_META_IS_INPLACE_BROKEN(d->Properties)) { for (i=0; i < nr_i; i++) { g_free (input_buffers[i]); } } else { /* inplace worked, but if (nr_i > nr_o), then * we still need to free the last input buffers **/ for (i=nr_o; i < nr_i; i++) { g_free (input_buffers[i]); } } g_free (input_buffers); } return sample; } static sw_op_instance * ladspa_meta_apply (sw_sample * sample, sw_param_set pset, gpointer custom_data) { lm_custom * lm = (lm_custom *)custom_data; const LADSPA_Descriptor * d = lm->d; return perform_filter_op (sample, (char *)d->Name, (SweepFilter)ladspa_meta_apply_filter, pset, custom_data); } /* * ladspa_meta_add_procs (dir, name, gl) * * form sweep procs to describe the ladspa plugin functions that * are in the shared library file "dir/name", * and add these procs to the GList * (*gl) */ static void ladspa_meta_add_procs (gchar * dir, gchar * name, GList ** gl) { #define PATH_LEN 256 gchar path[PATH_LEN]; void * module; LADSPA_Descriptor_Function desc_func; const LADSPA_Descriptor * d; LADSPA_PortDescriptor pd; gint i, j, k, nr_params; int valid_mask; sw_procedure * proc; snprintf (path, PATH_LEN, "%s/%s", dir, name); module = dlopen (path, RTLD_NOW); if (!module) return; modules_list = g_list_append (modules_list, module); if ((desc_func = dlsym (module, "ladspa_descriptor"))) { for (i=0; (d = desc_func (i)) != NULL; i++) { if (!is_usable(d)) continue; proc = g_malloc0 (sizeof (*proc)); proc->name = (gchar *)d->Name; proc->author = (gchar *)d->Maker; proc->copyright = (gchar *)d->Copyright; nr_params=0; for (j=0; j < d->PortCount; j++) { pd = d->PortDescriptors[j]; if (LADSPA_IS_CONTROL_INPUT(pd)) { nr_params++; } } proc->nr_params = nr_params; proc->param_specs = (sw_param_spec *)g_malloc0 (nr_params * sizeof (sw_param_spec)); k=0; for (j=0; j < d->PortCount; j++) { pd = d->PortDescriptors[j]; if (LADSPA_IS_CONTROL_INPUT(pd)) { proc->param_specs[k].name = (gchar *)d->PortNames[j]; proc->param_specs[k].desc = (gchar *)d->PortNames[j]; proc->param_specs[k].type = convert_type (d->PortRangeHints[j].HintDescriptor); valid_mask = get_valid_mask (d->PortRangeHints[j].HintDescriptor); if (valid_mask == 0) { proc->param_specs[k].constraint_type = SW_PARAM_CONSTRAINED_NOT; } else { proc->param_specs[k].constraint_type = SW_PARAM_CONSTRAINED_RANGE; proc->param_specs[k].constraint.range = convert_constraint (&d->PortRangeHints[j]); } k++; } } proc->suggest = ladspa_meta_suggest; proc->apply = ladspa_meta_apply; proc->custom_data = lm_custom_new (d, proc->param_specs); *gl = g_list_append (*gl, proc); } } } /* * ladspa_meta_init_dir (dir, gl) * * scan a directory "dirname" for LADSPA plugins, and attempt to load * each of them. */ static void ladspa_meta_init_dir (gchar * dirname, GList ** gl) { DIR * dir; struct dirent * dirent; char * name; if (!dirname) return; dir = opendir (dirname); if (!dir) { return; } while ((dirent = readdir (dir)) != NULL) { name = dirent->d_name; if (strcmp (name, ".") && strcmp (name, "..")) ladspa_meta_add_procs (dirname, dirent->d_name, gl); } } static GList * ladspa_meta_init (void) { GList * gl = NULL; char * ladspa_path=NULL; char * next_sep=NULL; char * saved_lp=NULL; /* If this ladspa_meta module has already been initialised, don't * initialise again until cleaned up. */ if (ladspa_meta_initialised) return NULL; ladspa_path = getenv ("LADSPA_PATH"); if (!ladspa_path) ladspa_path = saved_lp = strdup(default_ladspa_path); do { next_sep = strchr (ladspa_path, ':'); if (next_sep != NULL) *next_sep = '\0'; ladspa_meta_init_dir (ladspa_path, &gl); if (next_sep != NULL) ladspa_path = ++next_sep; } while ((next_sep != NULL) && (*next_sep != '\0')); ladspa_meta_initialised = TRUE; /* free string if dup'd for ladspa_path */ if (saved_lp != NULL) free(saved_lp); return gl; } static void ladspa_meta_cleanup (void) { GList * gl; if (!ladspa_meta_initialised) return; for (gl = modules_list; gl; gl = gl->next) { dlclose(gl->data); } } sw_plugin plugin = { ladspa_meta_init, /* plugin_init */ ladspa_meta_cleanup, /* plugin_cleanup */ }; sweep-0.9.3/plugins/ladspa/Makefile.am0000644000175000017500000000072610777660173016370 0ustar useruser## Process this file with automake to produce Makefile.in INCLUDES = -I$(top_srcdir)/include \ @GLIB_CFLAGS@ \ @GTK_CFLAGS@ libdir = $(PACKAGE_PLUGIN_DIR) lib_LTLIBRARIES = \ libladspameta.la libladspameta_la_SOURCES = ladspameta.c ladspa.h libladspameta_la_LDFLAGS = -avoid-version -module install: all mkdir -p $(DESTDIR)/$(libdir) $(INSTALL_PROGRAM) .libs/libladspameta.so $(DESTDIR)/$(libdir); uninstall: rm -f $(DESTDIR)/$(libdir)/libladspameta.so sweep-0.9.3/plugins/ladspa/ladspa.h0000644000175000017500000006546710777660173015766 0ustar useruser/* ladspa.h Linux Audio Developer's Simple Plugin API Version 1.1[provisional, LGPL]. Copyright (C) 2000-2002 Richard W.E. Furse, Paul Barton-Davis, Stefan Westerfeld. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef LADSPA_INCLUDED #define LADSPA_INCLUDED #ifdef __cplusplus extern "C" { #endif /*****************************************************************************/ /* Overview: There is a large number of synthesis packages in use or development on the Linux platform at this time. This API (`The Linux Audio Developer's Simple Plugin API') attempts to give programmers the ability to write simple `plugin' audio processors in C/C++ and link them dynamically (`plug') into a range of these packages (`hosts'). It should be possible for any host and any plugin to communicate completely through this interface. This API is deliberately short and simple. To achieve compatibility with a range of promising Linux sound synthesis packages it attempts to find the `greatest common divisor' in their logical behaviour. Having said this, certain limiting decisions are implicit, notably the use of a fixed type (LADSPA_Data) for all data transfer and absence of a parameterised `initialisation' phase. See below for the LADSPA_Data typedef. Plugins are expected to distinguish between control and audio data. Plugins have `ports' that are inputs or outputs for audio or control data and each plugin is `run' for a `block' corresponding to a short time interval measured in samples. Audio data is communicated using arrays of LADSPA_Data, allowing a block of audio to be processed by the plugin in a single pass. Control data is communicated using single LADSPA_Data values. Control data has a single value at the start of a call to the `run()' or `run_adding()' function, and may be considered to remain this value for its duration. The plugin may assume that all its input and output ports have been connected to the relevant data location (see the `connect_port()' function below) before it is asked to run. Plugins will reside in shared object files suitable for dynamic linking by dlopen() and family. The file will provide a number of `plugin types' that can be used to instantiate actual plugins (sometimes known as `plugin instances') that can be connected together to perform tasks. This API contains very limited error-handling. */ /*****************************************************************************/ /* Fundamental data type passed in and out of plugin. This data type is used to communicate audio samples and control values. It is assumed that the plugin will work sensibly given any numeric input value although it may have a preferred range (see hints below). For audio it is generally assumed that 1.0f is the `0dB' reference amplitude and is a `normal' signal level. */ typedef float LADSPA_Data; /*****************************************************************************/ /* Special Plugin Properties: Optional features of the plugin type are encapsulated in the LADSPA_Properties type. This is assembled by ORing individual properties together. */ typedef int LADSPA_Properties; /* Property LADSPA_PROPERTY_REALTIME indicates that the plugin has a real-time dependency (e.g. listens to a MIDI device) and so its output must not be cached or subject to significant latency. */ #define LADSPA_PROPERTY_REALTIME 0x1 /* Property LADSPA_PROPERTY_INPLACE_BROKEN indicates that the plugin may cease to work correctly if the host elects to use the same data location for both input and output (see connect_port()). This should be avoided as enabling this flag makes it impossible for hosts to use the plugin to process audio `in-place.' */ #define LADSPA_PROPERTY_INPLACE_BROKEN 0x2 /* Property LADSPA_PROPERTY_HARD_RT_CAPABLE indicates that the plugin is capable of running not only in a conventional host but also in a `hard real-time' environment. To qualify for this the plugin must satisfy all of the following: (1) The plugin must not use malloc(), free() or other heap memory management within its run() or run_adding() functions. All new memory used in run() must be managed via the stack. These restrictions only apply to the run() function. (2) The plugin will not attempt to make use of any library functions with the exceptions of functions in the ANSI standard C and C maths libraries, which the host is expected to provide. (3) The plugin will not access files, devices, pipes, sockets, IPC or any other mechanism that might result in process or thread blocking. (4) The plugin will take an amount of time to execute a run() or run_adding() call approximately of form (A+B*SampleCount) where A and B depend on the machine and host in use. This amount of time may not depend on input signals or plugin state. The host is left the responsibility to perform timings to estimate upper bounds for A and B. */ #define LADSPA_PROPERTY_HARD_RT_CAPABLE 0x4 #define LADSPA_IS_REALTIME(x) ((x) & LADSPA_PROPERTY_REALTIME) #define LADSPA_IS_INPLACE_BROKEN(x) ((x) & LADSPA_PROPERTY_INPLACE_BROKEN) #define LADSPA_IS_HARD_RT_CAPABLE(x) ((x) & LADSPA_PROPERTY_HARD_RT_CAPABLE) /*****************************************************************************/ /* Plugin Ports: Plugins have `ports' that are inputs or outputs for audio or data. Ports can communicate arrays of LADSPA_Data (for audio inputs/outputs) or single LADSPA_Data values (for control input/outputs). This information is encapsulated in the LADSPA_PortDescriptor type which is assembled by ORing individual properties together. Note that a port must be an input or an output port but not both and that a port must be a control or audio port but not both. */ typedef int LADSPA_PortDescriptor; /* Property LADSPA_PORT_INPUT indicates that the port is an input. */ #define LADSPA_PORT_INPUT 0x1 /* Property LADSPA_PORT_OUTPUT indicates that the port is an output. */ #define LADSPA_PORT_OUTPUT 0x2 /* Property LADSPA_PORT_CONTROL indicates that the port is a control port. */ #define LADSPA_PORT_CONTROL 0x4 /* Property LADSPA_PORT_AUDIO indicates that the port is a audio port. */ #define LADSPA_PORT_AUDIO 0x8 #define LADSPA_IS_PORT_INPUT(x) ((x) & LADSPA_PORT_INPUT) #define LADSPA_IS_PORT_OUTPUT(x) ((x) & LADSPA_PORT_OUTPUT) #define LADSPA_IS_PORT_CONTROL(x) ((x) & LADSPA_PORT_CONTROL) #define LADSPA_IS_PORT_AUDIO(x) ((x) & LADSPA_PORT_AUDIO) /*****************************************************************************/ /* Plugin Port Range Hints: The host may wish to provide a representation of data entering or leaving a plugin (e.g. to generate a GUI automatically). To make this more meaningful, the plugin should provide `hints' to the host describing the usual values taken by the data. Note that these are only hints. The host may ignore them and the plugin must not assume that data supplied to it is meaningful. If the plugin receives invalid input data it is expected to continue to run without failure and, where possible, produce a sensible output (e.g. a high-pass filter given a negative cutoff frequency might switch to an all-pass mode). Hints are meaningful for all input and output ports but hints for input control ports are expected to be particularly useful. More hint information is encapsulated in the LADSPA_PortRangeHintDescriptor type which is assembled by ORing individual hint types together. Hints may require further LowerBound and UpperBound information. All the hint information for a particular port is aggregated in the LADSPA_PortRangeHint structure. */ typedef int LADSPA_PortRangeHintDescriptor; /* Hint LADSPA_HINT_BOUNDED_BELOW indicates that the LowerBound field of the LADSPA_PortRangeHint should be considered meaningful. The value in this field should be considered the (inclusive) lower bound of the valid range. If LADSPA_HINT_SAMPLE_RATE is also specified then the value of LowerBound should be multiplied by the sample rate. */ #define LADSPA_HINT_BOUNDED_BELOW 0x1 /* Hint LADSPA_HINT_BOUNDED_ABOVE indicates that the UpperBound field of the LADSPA_PortRangeHint should be considered meaningful. The value in this field should be considered the (inclusive) upper bound of the valid range. If LADSPA_HINT_SAMPLE_RATE is also specified then the value of UpperBound should be multiplied by the sample rate. */ #define LADSPA_HINT_BOUNDED_ABOVE 0x2 /* Hint LADSPA_HINT_TOGGLED indicates that the data item should be considered a Boolean toggle. Data less than or equal to zero should be considered `off' or `false,' and data above zero should be considered `on' or `true.' LADSPA_HINT_TOGGLED may not be used in conjunction with any other hint except LADSPA_HINT_DEFAULT_0 or LADSPA_HINT_DEFAULT_1. */ #define LADSPA_HINT_TOGGLED 0x4 /* Hint LADSPA_HINT_SAMPLE_RATE indicates that any bounds specified should be interpreted as multiples of the sample rate. For instance, a frequency range from 0Hz to the Nyquist frequency (half the sample rate) could be requested by this hint in conjunction with LowerBound = 0 and UpperBound = 0.5. Hosts that support bounds at all must support this hint to retain meaning. */ #define LADSPA_HINT_SAMPLE_RATE 0x8 /* Hint LADSPA_HINT_LOGARITHMIC indicates that it is likely that the user will find it more intuitive to view values using a logarithmic scale. This is particularly useful for frequencies and gains. */ #define LADSPA_HINT_LOGARITHMIC 0x10 /* Hint LADSPA_HINT_INTEGER indicates that a user interface would probably wish to provide a stepped control taking only integer values. Any bounds set should be slightly wider than the actual integer range required to avoid floating point rounding errors. For instance, the integer set {0,1,2,3} might be described as [-0.1, 3.1]. */ #define LADSPA_HINT_INTEGER 0x20 /* The various LADSPA_HINT_HAS_DEFAULT_* hints indicate a `normal' value for the port that is sensible as a default. For instance, this value is suitable for use as an initial value in a user interface or as a value the host might assign to a control port when the user has not provided one. Defaults are encoded using a mask so only one default may be specified for a port. Some of the hints make use of lower and upper bounds, in which case the relevant bound or bounds must be available and LADSPA_HINT_SAMPLE_RATE must be applied as usual. The resulting default must be rounded if LADSPA_HINT_INTEGER is present. Default values were introduced in LADSPA v1.1. */ #define LADSPA_HINT_DEFAULT_MASK 0x3C0 /* This default values indicates that no default is provided. */ #define LADSPA_HINT_DEFAULT_NONE 0x0 /* This default hint indicates that the suggested lower bound for the port should be used. */ #define LADSPA_HINT_DEFAULT_MINIMUM 0x40 /* This default hint indicates that a low value between the suggested lower and upper bounds should be chosen. For ports with LADSPA_HINT_LOGARITHMIC, this should be exp(log(lower) * 0.75 + log(upper) * 0.25). Otherwise, this should be (lower * 0.75 + upper * 0.25). */ #define LADSPA_HINT_DEFAULT_LOW 0x80 /* This default hint indicates that a middle value between the suggested lower and upper bounds should be chosen. For ports with LADSPA_HINT_LOGARITHMIC, this should be exp(log(lower) * 0.5 + log(upper) * 0.5). Otherwise, this should be (lower * 0.5 + upper * 0.5). */ #define LADSPA_HINT_DEFAULT_MIDDLE 0xC0 /* This default hint indicates that a high value between the suggested lower and upper bounds should be chosen. For ports with LADSPA_HINT_LOGARITHMIC, this should be exp(log(lower) * 0.25 + log(upper) * 0.75). Otherwise, this should be (lower * 0.25 + upper * 0.75). */ #define LADSPA_HINT_DEFAULT_HIGH 0x100 /* This default hint indicates that the suggested upper bound for the port should be used. */ #define LADSPA_HINT_DEFAULT_MAXIMUM 0x140 /* This default hint indicates that the number 0 should be used. Note that this default may be used in conjunction with LADSPA_HINT_TOGGLED. */ #define LADSPA_HINT_DEFAULT_0 0x200 /* This default hint indicates that the number 1 should be used. Note that this default may be used in conjunction with LADSPA_HINT_TOGGLED. */ #define LADSPA_HINT_DEFAULT_1 0x240 /* This default hint indicates that the number 100 should be used. */ #define LADSPA_HINT_DEFAULT_100 0x280 /* This default hint indicates that the Hz frequency of `concert A' should be used. This will be 440 unless the host uses an unusual tuning convention, in which case it may be within a few Hz. */ #define LADSPA_HINT_DEFAULT_440 0x2C0 #define LADSPA_IS_HINT_BOUNDED_BELOW(x) ((x) & LADSPA_HINT_BOUNDED_BELOW) #define LADSPA_IS_HINT_BOUNDED_ABOVE(x) ((x) & LADSPA_HINT_BOUNDED_ABOVE) #define LADSPA_IS_HINT_TOGGLED(x) ((x) & LADSPA_HINT_TOGGLED) #define LADSPA_IS_HINT_SAMPLE_RATE(x) ((x) & LADSPA_HINT_SAMPLE_RATE) #define LADSPA_IS_HINT_LOGARITHMIC(x) ((x) & LADSPA_HINT_LOGARITHMIC) #define LADSPA_IS_HINT_INTEGER(x) ((x) & LADSPA_HINT_INTEGER) #define LADSPA_IS_HINT_HAS_DEFAULT(x) ((x) & LADSPA_HINT_DEFAULT_MASK) #define LADSPA_IS_HINT_DEFAULT_MINIMUM(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_MINIMUM) #define LADSPA_IS_HINT_DEFAULT_LOW(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_LOW) #define LADSPA_IS_HINT_DEFAULT_MIDDLE(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_MIDDLE) #define LADSPA_IS_HINT_DEFAULT_HIGH(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_HIGH) #define LADSPA_IS_HINT_DEFAULT_MAXIMUM(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_MAXIMUM) #define LADSPA_IS_HINT_DEFAULT_0(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_0) #define LADSPA_IS_HINT_DEFAULT_1(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_1) #define LADSPA_IS_HINT_DEFAULT_100(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_100) #define LADSPA_IS_HINT_DEFAULT_440(x) (((x) & LADSPA_HINT_DEFAULT_MASK) \ == LADSPA_HINT_DEFAULT_440) typedef struct _LADSPA_PortRangeHint { /* Hints about the port. */ LADSPA_PortRangeHintDescriptor HintDescriptor; /* Meaningful when hint LADSPA_HINT_BOUNDED_BELOW is active. When LADSPA_HINT_SAMPLE_RATE is also active then this value should be multiplied by the relevant sample rate. */ LADSPA_Data LowerBound; /* Meaningful when hint LADSPA_HINT_BOUNDED_ABOVE is active. When LADSPA_HINT_SAMPLE_RATE is also active then this value should be multiplied by the relevant sample rate. */ LADSPA_Data UpperBound; } LADSPA_PortRangeHint; /*****************************************************************************/ /* Plugin Handles: This plugin handle indicates a particular instance of the plugin concerned. It is valid to compare this to NULL (0 for C++) but otherwise the host should not attempt to interpret it. The plugin may use it to reference internal instance data. */ typedef void * LADSPA_Handle; /*****************************************************************************/ /* Descriptor for a Type of Plugin: This structure is used to describe a plugin type. It provides a number of functions to examine the type, instantiate it, link it to buffers and workspaces and to run it. */ typedef struct _LADSPA_Descriptor { /* This numeric identifier indicates the plugin type uniquely. Plugin programmers may reserve ranges of IDs from a central body to avoid clashes. Hosts may assume that IDs are below 0x1000000. */ unsigned long UniqueID; /* This identifier can be used as a unique, case-sensitive identifier for the plugin type within the plugin file. Plugin types should be identified by file and label rather than by index or plugin name, which may be changed in new plugin versions. Labels must not contain white-space characters. */ const char * Label; /* This indicates a number of properties of the plugin. */ LADSPA_Properties Properties; /* This member points to the null-terminated name of the plugin (e.g. "Sine Oscillator"). */ const char * Name; /* This member points to the null-terminated string indicating the maker of the plugin. This can be an empty string but not NULL. */ const char * Maker; /* This member points to the null-terminated string indicating any copyright applying to the plugin. If no Copyright applies the string "None" should be used. */ const char * Copyright; /* This indicates the number of ports (input AND output) present on the plugin. */ unsigned long PortCount; /* This member indicates an array of port descriptors. Valid indices vary from 0 to PortCount-1. */ const LADSPA_PortDescriptor * PortDescriptors; /* This member indicates an array of null-terminated strings describing ports (e.g. "Frequency (Hz)"). Valid indices vary from 0 to PortCount-1. */ const char * const * PortNames; /* This member indicates an array of range hints for each port (see above). Valid indices vary from 0 to PortCount-1. */ const LADSPA_PortRangeHint * PortRangeHints; /* This may be used by the plugin developer to pass any custom implementation data into an instantiate call. It must not be used or interpreted by the host. It is expected that most plugin writers will not use this facility as LADSPA_Handle should be used to hold instance data. */ void * ImplementationData; /* This member is a function pointer that instantiates a plugin. A handle is returned indicating the new plugin instance. The instantiation function accepts a sample rate as a parameter. The plugin descriptor from which this instantiate function was found must also be passed. This function must return NULL if instantiation fails. Note that instance initialisation should generally occur in activate() rather than here. */ LADSPA_Handle (*instantiate)(const struct _LADSPA_Descriptor * Descriptor, unsigned long SampleRate); /* This member is a function pointer that connects a port on an instantiated plugin to a memory location at which a block of data for the port will be read/written. The data location is expected to be an array of LADSPA_Data for audio ports or a single LADSPA_Data value for control ports. Memory issues will be managed by the host. The plugin must read/write the data at these locations every time run() or run_adding() is called and the data present at the time of this connection call should not be considered meaningful. connect_port() may be called more than once for a plugin instance to allow the host to change the buffers that the plugin is reading or writing. These calls may be made before or after activate() or deactivate() calls. connect_port() must be called at least once for each port before run() or run_adding() is called. When working with blocks of LADSPA_Data the plugin should pay careful attention to the block size passed to the run function as the block allocated may only just be large enough to contain the block of samples. Plugin writers should be aware that the host may elect to use the same buffer for more than one port and even use the same buffer for both input and output (see LADSPA_PROPERTY_INPLACE_BROKEN). However, overlapped buffers or use of a single buffer for both audio and control data may result in unexpected behaviour. */ void (*connect_port)(LADSPA_Handle Instance, unsigned long Port, LADSPA_Data * DataLocation); /* This member is a function pointer that initialises a plugin instance and activates it for use. This is separated from instantiate() to aid real-time support and so that hosts can reinitialise a plugin instance by calling deactivate() and then activate(). In this case the plugin instance must reset all state information dependent on the history of the plugin instance except for any data locations provided by connect_port() and any gain set by set_run_adding_gain(). If there is nothing for activate() to do then the plugin writer may provide a NULL rather than an empty function. When present, hosts must call this function once before run() (or run_adding()) is called for the first time. This call should be made as close to the run() call as possible and indicates to real-time plugins that they are now live. Plugins should not rely on a prompt call to run() after activate(). activate() may not be called again unless deactivate() is called first. Note that connect_port() may be called before or after a call to activate(). */ void (*activate)(LADSPA_Handle Instance); /* This method is a function pointer that runs an instance of a plugin for a block. Two parameters are required: the first is a handle to the particular instance to be run and the second indicates the block size (in samples) for which the plugin instance may run. Note that if an activate() function exists then it must be called before run() or run_adding(). If deactivate() is called for a plugin instance then the plugin instance may not be reused until activate() has been called again. If the plugin has the property LADSPA_PROPERTY_HARD_RT_CAPABLE then there are various things that the plugin should not do within the run() or run_adding() functions (see above). */ void (*run)(LADSPA_Handle Instance, unsigned long SampleCount); /* This method is a function pointer that runs an instance of a plugin for a block. This has identical behaviour to run() except in the way data is output from the plugin. When run() is used, values are written directly to the memory areas associated with the output ports. However when run_adding() is called, values must be added to the values already present in the memory areas. Furthermore, output values written must be scaled by the current gain set by set_run_adding_gain() (see below) before addition. run_adding() is optional. When it is not provided by a plugin, this function pointer must be set to NULL. When it is provided, the function set_run_adding_gain() must be provided also. */ void (*run_adding)(LADSPA_Handle Instance, unsigned long SampleCount); /* This method is a function pointer that sets the output gain for use when run_adding() is called (see above). If this function is never called the gain is assumed to default to 1. Gain information should be retained when activate() or deactivate() are called. This function should be provided by the plugin if and only if the run_adding() function is provided. When it is absent this function pointer must be set to NULL. */ void (*set_run_adding_gain)(LADSPA_Handle Instance, LADSPA_Data Gain); /* This is the counterpart to activate() (see above). If there is nothing for deactivate() to do then the plugin writer may provide a NULL rather than an empty function. Hosts must deactivate all activated units after they have been run() (or run_adding()) for the last time. This call should be made as close to the last run() call as possible and indicates to real-time plugins that they are no longer live. Plugins should not rely on prompt deactivation. Note that connect_port() may be called before or after a call to deactivate(). Deactivation is not similar to pausing as the plugin instance will be reinitialised when activate() is called to reuse it. */ void (*deactivate)(LADSPA_Handle Instance); /* Once an instance of a plugin has been finished with it can be deleted using the following function. The instance handle passed ceases to be valid after this call. If activate() was called for a plugin instance then a corresponding call to deactivate() must be made before cleanup() is called. */ void (*cleanup)(LADSPA_Handle Instance); } LADSPA_Descriptor; /**********************************************************************/ /* Accessing a Plugin: */ /* The exact mechanism by which plugins are loaded is host-dependent, however all most hosts will need to know is the name of shared object file containing the plugin types. To allow multiple hosts to share plugin types, hosts may wish to check for environment variable LADSPA_PATH. If present, this should contain a colon-separated path indicating directories that should be searched (in order) when loading plugin types. A plugin programmer must include a function called "ladspa_descriptor" with the following function prototype within the shared object file. This function will have C-style linkage (if you are using C++ this is taken care of by the `extern "C"' clause at the top of the file). A host will find the plugin shared object file by one means or another, find the ladspa_descriptor() function, call it, and proceed from there. Plugin types are accessed by index (not ID) using values from 0 upwards. Out of range indexes must result in this function returning NULL, so the plugin count can be determined by checking for the least index that results in NULL being returned. */ const LADSPA_Descriptor * ladspa_descriptor(unsigned long Index); /* Datatype corresponding to the ladspa_descriptor() function. */ typedef const LADSPA_Descriptor * (*LADSPA_Descriptor_Function)(unsigned long Index); /**********************************************************************/ #ifdef __cplusplus } #endif #endif /* LADSPA_INCLUDED */ /* EOF */ sweep-0.9.3/plugins/Makefile.am0000644000175000017500000000017110777660174015117 0ustar useruser## Process this file with automake to produce Makefile.in SUBDIRS = example byenergy echo fade normalise reverse ladspa sweep-0.9.3/README.Solaris0000644000175000017500000000160210777660176013677 0ustar useruserWed Oct 30 2002 --------------- Some compile fixes were applied as listed in Sourceforge bug #625528. Please contact sweep-devel@lists.sf.net if you have any problems building or running Sweep on Solaris. Fri May 12 2000 --------------- Solaris audio support was added in sweep version 0.0.9 by Mattias Engdegård . It is configured in automatically on such systems, ie. to build a Solaris binary do: ./configure make as specified in the file INSTALL. Mattias writes: You may want to note that I didn't spend any effort on reducing the latency - the Solaris audio device has quite a large buffer and no documented way to reduce it. Thus it works, but may lag a couple of seconds sometimes. This should be no problem in practice, but if someone is displeased with the behaviour, I could outline a way to solve it. sweep-0.9.3/acinclude.m40000644000175000017500000001470610777660176013606 0ustar useruser# Configure paths for AUDIOFILE # Bertrand Guiheneuf 98-10-21 # stolen from esd.m4 in esound : # Manish Singh 98-9-30 # stolen back from Frank Belew # stolen from Manish Singh # Shamelessly stolen from Owen Taylor dnl AM_PATH_AUDIOFILE([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) dnl Test for AUDIOFILE, and define AUDIOFILE_CFLAGS and AUDIOFILE_LIBS dnl AC_DEFUN([AM_PATH_AUDIOFILE], [dnl dnl Get the cflags and libraries from the audiofile-config script dnl AC_ARG_WITH(audiofile-prefix,[ --with-audiofile-prefix=PFX Prefix where AUDIOFILE is installed (optional)], audiofile_prefix="$withval", audiofile_prefix="") AC_ARG_WITH(audiofile-exec-prefix,[ --with-audiofile-exec-prefix=PFX Exec prefix where AUDIOFILE is installed (optional)], audiofile_exec_prefix="$withval", audiofile_exec_prefix="") AC_ARG_ENABLE(audiofiletest, [ --disable-audiofiletest Do not try to compile and run a test AUDIOFILE program], , enable_audiofiletest=yes) if test x$audiofile_exec_prefix != x ; then audiofile_args="$audiofile_args --exec-prefix=$audiofile_exec_prefix" if test x${AUDIOFILE_CONFIG+set} != xset ; then AUDIOFILE_CONFIG=$audiofile_exec_prefix/bin/audiofile-config fi fi if test x$audiofile_prefix != x ; then audiofile_args="$audiofile_args --prefix=$audiofile_prefix" if test x${AUDIOFILE_CONFIG+set} != xset ; then AUDIOFILE_CONFIG=$audiofile_prefix/bin/audiofile-config fi fi AC_PATH_PROG(AUDIOFILE_CONFIG, audiofile-config, no) min_audiofile_version=ifelse([$1], ,0.2.5,$1) AC_MSG_CHECKING(for AUDIOFILE - version >= $min_audiofile_version) no_audiofile="" if test "$AUDIOFILE_CONFIG" = "no" ; then no_audiofile=yes else AUDIOFILE_LIBS=`$AUDIOFILE_CONFIG $audiofileconf_args --libs` AUDIOFILE_CFLAGS=`$AUDIOFILE_CONFIG $audiofileconf_args --cflags` audiofile_major_version=`$AUDIOFILE_CONFIG $audiofile_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` audiofile_minor_version=`$AUDIOFILE_CONFIG $audiofile_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` audiofile_micro_version=`$AUDIOFILE_CONFIG $audiofile_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` if test "x$enable_audiofiletest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $AUDIOFILE_CFLAGS" LIBS="$LIBS $AUDIOFILE_LIBS" dnl dnl Now check if the installed AUDIOFILE is sufficiently new. (Also sanity dnl checks the results of audiofile-config to some extent dnl rm -f conf.audiofiletest AC_TRY_RUN([ #include #include #include #include char* my_strdup (char *str) { char *new_str; if (str) { new_str = malloc ((strlen (str) + 1) * sizeof(char)); strcpy (new_str, str); } else new_str = NULL; return new_str; } int main () { int major, minor, micro; char *tmp_version; system ("touch conf.audiofiletest"); /* HP/UX 9 (%@#!) writes to sscanf strings */ tmp_version = my_strdup("$min_audiofile_version"); if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { printf("%s, bad version string\n", "$min_audiofile_version"); exit(1); } if (($audiofile_major_version > major) || (($audiofile_major_version == major) && ($audiofile_minor_version > minor)) || (($audiofile_major_version == major) && ($audiofile_minor_version == minor) && ($audiofile_micro_version >= micro))) { return 0; } else { printf("\n*** 'audiofile-config --version' returned %d.%d.%d, but the minimum version\n", $audiofile_major_version, $audiofile_minor_version, $audiofile_micro_version); printf("*** of AUDIOFILE required is %d.%d.%d. If audiofile-config is correct, then it is\n", major, minor, micro); printf("*** best to upgrade to the required version.\n"); printf("*** If audiofile-config was wrong, set the environment variable AUDIOFILE_CONFIG\n"); printf("*** to point to the correct copy of audiofile-config, and remove the file\n"); printf("*** config.cache before re-running configure\n"); return 1; } } ],, no_audiofile=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi if test "x$no_audiofile" = x ; then AC_MSG_RESULT(yes) ifelse([$2], , :, [$2]) else AC_MSG_RESULT(no) if test "$AUDIOFILE_CONFIG" = "no" ; then echo "*** The audiofile-config script installed by AUDIOFILE could not be found" echo "*** If AUDIOFILE was installed in PREFIX, make sure PREFIX/bin is in" echo "*** your path, or set the AUDIOFILE_CONFIG environment variable to the" echo "*** full path to audiofile-config." else if test -f conf.audiofiletest ; then : else echo "*** Could not run AUDIOFILE test program, checking why..." CFLAGS="$CFLAGS $AUDIOFILE_CFLAGS" LIBS="$LIBS $AUDIOFILE_LIBS" AC_TRY_LINK([ #include #include ], [ return 0; ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding AUDIOFILE or finding the wrong" echo "*** version of AUDIOFILE. If it is not finding AUDIOFILE, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means AUDIOFILE was incorrectly installed" echo "*** or that you have moved AUDIOFILE since it was installed. In the latter case, you" echo "*** may want to edit the audiofile-config script: $AUDIOFILE_CONFIG" ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi AUDIOFILE_CFLAGS="" AUDIOFILE_LIBS="" ifelse([$3], , :, [$3]) fi AC_SUBST(AUDIOFILE_CFLAGS) AC_SUBST(AUDIOFILE_LIBS) rm -f conf.audiofiletest ]) sweep-0.9.3/install-sh0000755000175000017500000002202110777670413013401 0ustar useruser#!/bin/sh # install - install a program, script, or datafile scriptversion=2005-05-14.22 # 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. It can only install one file at a time, a restriction # shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" chmodcmd="$chmodprog 0755" chowncmd= chgrpcmd= stripcmd= rmcmd="$rmprog -f" mvcmd="$mvprog" src= dst= dir_arg= dstarg= 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: -c (ignored) -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. --help display this help and exit. --version display version info and exit. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test -n "$1"; do case $1 in -c) shift continue;; -d) dir_arg=true shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; --help) echo "$usage"; exit $?;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t) dstarg=$2 shift shift continue;; -T) no_target_directory=true shift continue;; --version) echo "$0 $scriptversion"; exit $?;; *) # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. test -n "$dir_arg$dstarg" && break # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dstarg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dstarg" shift # fnord fi shift # arg dstarg=$arg done break;; esac done if test -z "$1"; 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 for src do # Protect names starting with `-'. case $src in -*) src=./$src ;; esac if test -n "$dir_arg"; then dst=$src src= if test -d "$dst"; then mkdircmd=: chmodcmd= else mkdircmd=$mkdirprog fi 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 "$dstarg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dstarg # Protect names starting with `-'. case $dst in -*) dst=./$dst ;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dstarg: Is a directory" >&2 exit 1 fi dst=$dst/`basename "$src"` fi fi # This sed command emulates the dirname command. dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` # Make sure that the destination directory exists. # Skip lots of stat calls in the usual case. if test ! -d "$dstdir"; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` shift IFS=$oIFS pathcomp= while test $# -ne 0 ; do pathcomp=$pathcomp$1 shift if test ! -d "$pathcomp"; then $mkdirprog "$pathcomp" # mkdir can fail with a `File exist' error in case several # install-sh are creating the directory concurrently. This # is OK. test -d "$pathcomp" || exit fi pathcomp=$pathcomp/ done fi if test -n "$dir_arg"; then $doit $mkdircmd "$dst" \ && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } else dstfile=`basename "$dst"` # 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 trap '(exit $?); exit' 1 2 13 15 # Copy the file name to the temp name. $doit $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 "$dsttmp"; } && # Now rename the file to the real destination. { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 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. { if test -f "$dstdir/$dstfile"; then $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ || { echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit 1 } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" } } fi || { (exit 1); exit 1; } done # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit 0 } # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: sweep-0.9.3/config.guess0000755000175000017500000012703510614436542013721 0ustar useruser#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, # Inc. timestamp='2007-03-06' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner . # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:*) echo i386-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:*:[45]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa:Linux:*:*) echo xtensa-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; coff-i386) echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i386. echo i386-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; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: sweep-0.9.3/TODO0000644000175000017500000000045510777660176012101 0ustar useruserThis is an unstructured list of TODO items for Sweep. For up-to-date information, mail sweep-devel@lists.sourceforge.net * JACK support * caching of undo data on disk * sample bank management * markers * region list management * recording source management * LADSPA browser * modular drivers sweep-0.9.3/AUTHORS0000644000175000017500000000607110777664470012462 0ustar useruserMain author =========== Conrad Parker Contributed code ================ Mattias Engdegård Solaris audio driver, other cleanups Silvia Pfeiffer fixes to SMPTE time printing, random hacks Paul Davis ALSA 0.6.0 audio driver Nicolas Léveillé fixes to file load/save dialogs Steve Harris added Normal (1:4096) and 1:1 zoom modes Radoslaw Korzeniewski various bug fixes in file loading bug fix in save as dialog Erik de Castro Lopo libsndfile-1 file import/export, random bugfixes Zenaan Harkness improved handling of volume and pitch sliders, ALSA 0.9 updates Charles Turner updated the alsa driver to work with recent alsa versions Peter Shorthose gtk2 port and various tweaks/bug fixes Daniel Dreschers ALSA 1.0 updates Frank Neumann improved fade plugin implementation to work with short run lengths and generate smoother fades. Borrowed Code ============= Michael Krause sample-display widget adapted from Soundtracker. Spencer Kimball and Peter Mattis about_dialog.c adapted from the Gimp. Mike Oliphant transport buttons, LCD screen and style handling code from Grip Christopher Montgomery Ogg Vorbis encoding and decoding adapted from example code in the Ogg Vorbis source (Copyright (C) 1994-2002 Xiph.Org Foundation) Robert Leslie MPEG audio decoding adapted from player.c in the mad source Jean-Marc Valin Speex encoding and decoding adapted from speexenc and speexdec Translations ============ Dokianakis Fanis el Waldo Ramirez Montano Juan Manuel Martinez en_ES Mathieu Roy fr (Sweep 0.1.x) Gergely Nagy hu (Sweep 0.1.x) Yuri Bongiorno it Silvia Pfeiffer de Alexandre Prokoudine Yuri Victorovich (Sweep 0.1.x) ru Radoslaw Korzeniewski pl Norihiro YONEDA (¿¿¿¿) ja Artwork ======= Pascal Klein <4pascal@tpg.com.au> About dialog image (0.9.2) Alex Koss SVG icon Mike Oliphant Transport button pixmaps (adapted from Grip) Mathieu Roy Colourful button pixmaps in Sweep 0.1.x Conrad Parker General pixmaps, Scrubby Package Maintainers =================== Anand Kumria Debian packages Daniel Black Gentoo Sound Team Gentoo packages Julio Merino Vidal NetBSD packages (+ contributed configure and build fixes) Miscellaneous ============= Sourceforge (http://www.sourceforge.net/) Rocks. -- Let me know if I've missed anyone out. Conrad. sweep-0.9.3/aclocal.m40000644000175000017500000102654210777670406013254 0ustar useruser# generated automatically by aclocal 1.9.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # 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. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # serial 51 Debian 1.5.24-1ubuntu1 AC_PROG_LIBTOOL # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) # ----------------------------------------------------------- # If this macro is not defined by Autoconf, define it here. m4_ifdef([AC_PROVIDE_IFELSE], [], [m4_define([AC_PROVIDE_IFELSE], [m4_ifdef([AC_PROVIDE_$1], [$2], [$3])])]) # AC_PROG_LIBTOOL # --------------- AC_DEFUN([AC_PROG_LIBTOOL], [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_LIBTOOL_CXX], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ])]) dnl And a similar setup for Fortran 77 support AC_PROVIDE_IFELSE([AC_PROG_F77], [AC_LIBTOOL_F77], [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 ])]) dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [ifdef([AC_PROG_GCJ], [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([A][M_PROG_GCJ], [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) ifdef([LT_AC_PROG_GCJ], [define([LT_AC_PROG_GCJ], defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) ])])# AC_PROG_LIBTOOL # _AC_PROG_LIBTOOL # ---------------- AC_DEFUN([_AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl # Prevent multiple expansion define([AC_PROG_LIBTOOL], []) ])# _AC_PROG_LIBTOOL # AC_LIBTOOL_SETUP # ---------------- AC_DEFUN([AC_LIBTOOL_SETUP], [AC_PREREQ(2.50)dnl AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! AC_REQUIRE([AC_OBJEXT])dnl AC_REQUIRE([AC_EXEEXT])dnl dnl AC_LIBTOOL_SYS_MAX_CMD_LEN AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE AC_LIBTOOL_OBJDIR AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_PROG_ECHO_BACKSLASH 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 # 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 to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" AC_CHECK_TOOL(AR, ar, false) AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(STRIP, strip, :) old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # 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 \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_CC_BASENAME([$compiler]) # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then AC_PATH_MAGIC fi ;; esac AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], enable_win32_dll=yes, enable_win32_dll=no) AC_ARG_ENABLE([libtool-lock], [AC_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes AC_ARG_WITH([pic], [AC_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= AC_LIBTOOL_LANG_C_CONFIG _LT_AC_TAGCONFIG ])# AC_LIBTOOL_SETUP # _LT_AC_SYS_COMPILER # ------------------- AC_DEFUN([_LT_AC_SYS_COMPILER], [AC_REQUIRE([AC_PROG_CC])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_AC_SYS_COMPILER # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. AC_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 "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. AC_DEFUN([_LT_COMPILER_BOILERPLATE], [AC_REQUIRE([LT_AC_PROG_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. AC_DEFUN([_LT_LINKER_BOILERPLATE], [AC_REQUIRE([LT_AC_PROG_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 conftest* ])# _LT_LINKER_BOILERPLATE # _LT_AC_SYS_LIBPATH_AIX # ---------------------- # 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. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_LINK_IFELSE(AC_LANG_PROGRAM,[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_AC_SYS_LIBPATH_AIX # _LT_AC_SHELL_INIT(ARG) # ---------------------- AC_DEFUN([_LT_AC_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_AC_SHELL_INIT # _LT_AC_PROG_ECHO_BACKSLASH # -------------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], [_LT_AC_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac echo=${ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(ECHO) ])])# _LT_AC_PROG_ECHO_BACKSLASH # _LT_AC_LOCK # ----------- AC_DEFUN([_LT_AC_LOCK], [AC_ARG_ENABLE([libtool-lock], [AC_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 __oline__ "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*|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*) LD="${LD-ld} -m elf_i386" ;; 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*) 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_TRY_LINK([],[],[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 ;; sparc*-*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*) LD="${LD-ld} -m elf64_sparc" ;; *) LD="${LD-ld} -64" ;; esac ;; esac fi rm -rf conftest* ;; AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], [*-*-cygwin* | *-*-mingw* | *-*-pw32*) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; ]) esac need_locks="$enable_libtool_lock" ])# _LT_AC_LOCK # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [AC_REQUIRE([LT_AC_PROG_SED]) AC_CACHE_CHECK([$1], [$2], [$2=no ifelse([$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:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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 ifelse([$5], , :, [$5]) else ifelse([$6], , :, [$6]) fi ])# AC_LIBTOOL_COMPILER_OPTION # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ------------------------------------------------------------ # Check whether the given compiler option works AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [AC_REQUIRE([LT_AC_PROG_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 "X$_lt_linker_boilerplate" | $Xsed -e '/^$/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 conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then ifelse([$4], , :, [$4]) else ifelse([$5], , :, [$5]) fi ])# AC_LIBTOOL_LINKER_OPTION # AC_LIBTOOL_SYS_MAX_CMD_LEN # -------------------------- AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [# 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*) # 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; ;; 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 ;; 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"; 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 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done 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 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN # _LT_AC_CHECK_DLFCN # ------------------ AC_DEFUN([_LT_AC_CHECK_DLFCN], [AC_CHECK_HEADERS(dlfcn.h)dnl ])# _LT_AC_CHECK_DLFCN # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # --------------------------------------------------------------------- AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_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 < #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 #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=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; /* dlclose (self); */ } else puts (dlerror ()); exit (status); }] 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_AC_TRY_DLOPEN_SELF # AC_LIBTOOL_DLOPEN_SELF # ---------------------- AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [AC_REQUIRE([_LT_AC_CHECK_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*) 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="-dld"], [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="-dld"]) ]) ]) ]) ]) ]) ;; 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_AC_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_AC_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 ])# AC_LIBTOOL_DLOPEN_SELF # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) # --------------------------------- # Check to see if options -c and -o are simultaneously supported by compiler AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_AC_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:__oline__: $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:__oline__: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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_AC_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 .. rmdir conftest $rm conftest* ]) ])# AC_LIBTOOL_PROG_CC_C_O # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) # ----------------------------------------- # Check to see if we can do hard links to lock some files if needed AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_REQUIRE([_LT_AC_LOCK])dnl hard_links="nottested" if test "$_LT_AC_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 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS # AC_LIBTOOL_OBJDIR # ----------------- AC_DEFUN([AC_LIBTOOL_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 ])# AC_LIBTOOL_OBJDIR # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) # ---------------------------------------------- # Check hardcoding attributes. AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_AC_TAGVAR(hardcode_action, $1)= if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existant directories. if test "$_LT_AC_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_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_AC_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_AC_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_AC_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; 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 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH # AC_LIBTOOL_SYS_LIB_STRIP # ------------------------ AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], [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 ])# AC_LIBTOOL_SYS_LIB_STRIP # AC_LIBTOOL_SYS_DYNAMIC_LINKER # ----------------------------- # PORTME Fill in your ld.so characteristics AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_MSG_CHECKING([dynamic linker characteristics]) 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" m4_if($1,[],[ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then # 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 -e 's/;/ /g'` else lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # 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; } }'` sys_lib_search_path_spec=`echo $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi]) 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 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' ;; aix4* | aix5*) version_type=linux 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*) 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=`$echo "X$lib" | $Xsed -e '\''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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[[45]]*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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 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 ;; freebsd1*) dynamic_linker=no ;; 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[[123]]*) 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 ;; 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 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' ;; interix[[3-9]]*) 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' 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 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 Linux ELF. linux* | k*bsd*-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' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # 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;/^$/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 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=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=yes ;; 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 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 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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 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' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes 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' ;; uts4*) version_type=linux 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 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER # _LT_AC_TAGCONFIG # ---------------- AC_DEFUN([_LT_AC_TAGCONFIG], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_ARG_WITH([tags], [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], [include additional configurations @<:@automatic@:>@])], [tagnames="$withval"]) if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then AC_MSG_WARN([output file `$ofile' does not exist]) fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) else AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in "") ;; *) AC_MSG_ERROR([invalid tag name: $tagname]) ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then AC_MSG_ERROR([tag name \"$tagname\" already exists]) fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_LIBTOOL_LANG_CXX_CONFIG else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then AC_LIBTOOL_LANG_F77_CONFIG else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then AC_LIBTOOL_LANG_GCJ_CONFIG else tagname="" fi ;; RC) AC_LIBTOOL_LANG_RC_CONFIG ;; *) AC_MSG_ERROR([Unsupported tag name: $tagname]) ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" AC_MSG_ERROR([unable to update list of available tagged configurations.]) fi fi ])# _LT_AC_TAGCONFIG # AC_LIBTOOL_DLOPEN # ----------------- # enable checks for dlopen support AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_DLOPEN # AC_LIBTOOL_WIN32_DLL # -------------------- # declare package support for building win32 DLLs AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) ])# AC_LIBTOOL_WIN32_DLL # AC_ENABLE_SHARED([DEFAULT]) # --------------------------- # implement the --enable-shared flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_SHARED], [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([shared], [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]AC_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=]AC_ENABLE_SHARED_DEFAULT) ])# AC_ENABLE_SHARED # AC_DISABLE_SHARED # ----------------- # set the default shared flag to --disable-shared AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_SHARED(no) ])# AC_DISABLE_SHARED # AC_ENABLE_STATIC([DEFAULT]) # --------------------------- # implement the --enable-static flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_STATIC], [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([static], [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]AC_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=]AC_ENABLE_STATIC_DEFAULT) ])# AC_ENABLE_STATIC # AC_DISABLE_STATIC # ----------------- # set the default static flag to --disable-static AC_DEFUN([AC_DISABLE_STATIC], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_STATIC(no) ])# AC_DISABLE_STATIC # AC_ENABLE_FAST_INSTALL([DEFAULT]) # --------------------------------- # implement the --enable-fast-install flag # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. AC_DEFUN([AC_ENABLE_FAST_INSTALL], [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl AC_ARG_ENABLE([fast-install], [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]AC_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=]AC_ENABLE_FAST_INSTALL_DEFAULT) ])# AC_ENABLE_FAST_INSTALL # AC_DISABLE_FAST_INSTALL # ----------------------- # set the default to --disable-fast-install AC_DEFUN([AC_DISABLE_FAST_INSTALL], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_ENABLE_FAST_INSTALL(no) ])# AC_DISABLE_FAST_INSTALL # AC_LIBTOOL_PICMODE([MODE]) # -------------------------- # implement the --with-pic flag # MODE is either `yes' or `no'. If omitted, it defaults to `both'. AC_DEFUN([AC_LIBTOOL_PICMODE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl pic_mode=ifelse($#,1,$1,default) ])# AC_LIBTOOL_PICMODE # AC_PROG_EGREP # ------------- # This is predefined starting with Autoconf 2.54, so this conditional # definition can be removed once we require Autoconf 2.54 or later. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 then ac_cv_prog_egrep='grep -E' else ac_cv_prog_egrep='egrep' fi]) EGREP=$ac_cv_prog_egrep AC_SUBST([EGREP]) ])]) # AC_PATH_TOOL_PREFIX # ------------------- # find a file program which can recognize shared library AC_DEFUN([AC_PATH_TOOL_PREFIX], [AC_REQUIRE([AC_PROG_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="ifelse([$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 <&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 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 ])# AC_PATH_TOOL_PREFIX # AC_PATH_MAGIC # ------------- # find a file program which can recognize a shared library AC_DEFUN([AC_PATH_MAGIC], [AC_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 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# AC_PATH_MAGIC # AC_PROG_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([AC_PROG_LD], [AC_ARG_WITH([gnu-ld], [AC_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]) AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])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 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; 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 ;; gnu*) 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]) 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 Linux ELF. linux* | k*bsd*-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=unknown ;; 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 ;; 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac ]) 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 ])# AC_DEPLIBS_CHECK_METHOD # AC_PROG_NM # ---------- # find the pathname to a BSD-compatible name lister AC_DEFUN([AC_PROG_NM], [AC_CACHE_CHECK([for BSD-compatible 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 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi]) NM="$lt_cv_path_NM" ])# AC_PROG_NM # AC_CHECK_LIBM # ------------- # check for math library AC_DEFUN([AC_CHECK_LIBM], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-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_CHECK_LIBM # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl convenience library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-convenience to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # it is assumed to be `libltdl'. LIBLTDL will be prefixed with # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' # (note the single quotes!). If your package is not flat and you're not # using automake, define top_builddir and top_srcdir appropriately in # the Makefiles. AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl case $enable_ltdl_convenience in no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; "") enable_ltdl_convenience=yes ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; esac LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_CONVENIENCE # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) # ----------------------------------- # sets LIBLTDL to the link flags for the libltdl installable library and # LTDLINCL to the include flags for the libltdl header and adds # --enable-ltdl-install to the configure arguments. Note that # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, # and an installed libltdl is not found, it is assumed to be `libltdl'. # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with # '${top_srcdir}/' (note the single quotes!). If your package is not # flat and you're not using automake, define top_builddir and top_srcdir # appropriately in the Makefiles. # In the future, this macro may have to be called after AC_PROG_LIBTOOL. AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl AC_CHECK_LIB(ltdl, lt_dlinit, [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], [if test x"$enable_ltdl_install" = xno; then AC_MSG_WARN([libltdl not installed, but installation disabled]) else enable_ltdl_install=yes fi ]) if test x"$enable_ltdl_install" = x"yes"; then ac_configure_args="$ac_configure_args --enable-ltdl-install" LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) else ac_configure_args="$ac_configure_args --enable-ltdl-install=no" LIBLTDL="-lltdl" LTDLINCL= fi # For backwards non-gettext consistent compatibility... INCLTDL="$LTDLINCL" ])# AC_LIBLTDL_INSTALLABLE # AC_LIBTOOL_CXX # -------------- # enable support for C++ libraries AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_LT_AC_LANG_CXX]) ])# AC_LIBTOOL_CXX # _LT_AC_LANG_CXX # --------------- AC_DEFUN([_LT_AC_LANG_CXX], [AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) ])# _LT_AC_LANG_CXX # _LT_AC_PROG_CXXCPP # ------------------ AC_DEFUN([_LT_AC_PROG_CXXCPP], [ AC_REQUIRE([AC_PROG_CXX]) 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 fi ])# _LT_AC_PROG_CXXCPP # AC_LIBTOOL_F77 # -------------- # enable support for Fortran 77 libraries AC_DEFUN([AC_LIBTOOL_F77], [AC_REQUIRE([_LT_AC_LANG_F77]) ])# AC_LIBTOOL_F77 # _LT_AC_LANG_F77 # --------------- AC_DEFUN([_LT_AC_LANG_F77], [AC_REQUIRE([AC_PROG_F77]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) ])# _LT_AC_LANG_F77 # AC_LIBTOOL_GCJ # -------------- # enable support for GCJ libraries AC_DEFUN([AC_LIBTOOL_GCJ], [AC_REQUIRE([_LT_AC_LANG_GCJ]) ])# AC_LIBTOOL_GCJ # _LT_AC_LANG_GCJ # --------------- AC_DEFUN([_LT_AC_LANG_GCJ], [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) ])# _LT_AC_LANG_GCJ # AC_LIBTOOL_RC # ------------- # enable support for Windows resource files AC_DEFUN([AC_LIBTOOL_RC], [AC_REQUIRE([LT_AC_PROG_RC]) _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) ])# AC_LIBTOOL_RC # AC_LIBTOOL_LANG_C_CONFIG # ------------------------ # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) AC_DEFUN([_LT_AC_LANG_C_CONFIG], [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_AC_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_AC_SYS_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_SYS_LIB_STRIP AC_LIBTOOL_DLOPEN_SELF # 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 ;; aix4* | aix5*) 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]) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_C_CONFIG # AC_LIBTOOL_LANG_CXX_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], [AC_LANG_PUSH(C++) AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([_LT_AC_PROG_CXXCPP]) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Dependencies to place before and after the object being linked: _LT_AC_TAGVAR(predep_objects, $1)= _LT_AC_TAGVAR(postdep_objects, $1)= _LT_AC_TAGVAR(predeps, $1)= _LT_AC_TAGVAR(postdeps, $1)= _LT_AC_TAGVAR(compiler_lib_search_path, $1)= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_AC_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(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_AC_SYS_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_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++"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration AC_PROG_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_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_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_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_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_AC_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 "\-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_AC_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; aix4* | aix5*) 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]].*|aix5*) 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_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 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_AC_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_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_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 # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_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_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_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_AC_SYS_LIBPATH_AIX _LT_AC_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_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_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_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_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_AC_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_AC_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else _LT_AC_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' fi _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds if test "X$lt_int_apple_cc_single_mod" = Xyes ; then _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before switch to ELF _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_AC_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_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_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_AC_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) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_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_AC_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_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; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${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_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_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_AC_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_AC_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_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -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_AC_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_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; linux* | k*bsd*-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_AC_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_AC_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; echo $list' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' _LT_AC_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_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # 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_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_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_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_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_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_AC_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' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_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=`echo $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; echo $list' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_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; $echo \"$new_convenience\"` ${wl}--no-whole-archive' # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # 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_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_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::"' ;; openbsd2*) # C++ shared libraries are fairly broken _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_AC_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_AC_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_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; osf3*) 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_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_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=`echo $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; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_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 "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; 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_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; cxx*) _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_AC_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=`echo $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; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_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 "\-L"' else # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_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_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_AC_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # 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_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_AC_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_AC_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_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -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 \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_AC_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 \"\-L\"" fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_AC_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_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_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. # 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. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$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_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_AC_TAGVAR(GCC, $1)="$GXX" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_POSTDEP_PREDEP($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld 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 ])# AC_LIBTOOL_LANG_CXX_CONFIG # AC_LIBTOOL_POSTDEP_PREDEP([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. AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ 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... ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&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_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # 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_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_AC_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac ])# AC_LIBTOOL_POSTDEP_PREDEP # AC_LIBTOOL_LANG_F77_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) AC_DEFUN([_LT_AC_LANG_F77_CONFIG], [AC_REQUIRE([AC_PROG_F77]) AC_LANG_PUSH(Fortran 77) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_AC_TAGVAR(no_undefined_flag, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_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_AC_TAGVAR(objext, $1)=$objext # 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_AC_SYS_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" CC=${F77-"f77"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) 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 ;; aix4* | aix5*) 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_AC_TAGVAR(GCC, $1)="$G77" _LT_AC_TAGVAR(LD, $1)="$LD" AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_POP CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_F77_CONFIG # AC_LIBTOOL_LANG_GCJ_CONFIG # -------------------------- # Ensure that the configuration vars for the C compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], [AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_AC_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_AC_SYS_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" CC=${GCJ-"gcj"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) AC_LIBTOOL_PROG_COMPILER_PIC($1) AC_LIBTOOL_PROG_CC_C_O($1) AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) AC_LIBTOOL_PROG_LD_SHLIBS($1) AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) AC_LIBTOOL_CONFIG($1) AC_LANG_RESTORE CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_GCJ_CONFIG # AC_LIBTOOL_LANG_RC_CONFIG # ------------------------- # Ensure that the configuration vars for the Windows resource compiler are # suitably defined. Those variables are subsequently used by # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) AC_DEFUN([_LT_AC_LANG_RC_CONFIG], [AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_AC_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_AC_SYS_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" CC=${RC-"windres"} compiler=$CC _LT_AC_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes AC_LIBTOOL_CONFIG($1) AC_LANG_RESTORE CC="$lt_save_CC" ])# AC_LIBTOOL_LANG_RC_CONFIG # AC_LIBTOOL_CONFIG([TAGNAME]) # ---------------------------- # If TAGNAME is not passed, then 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 # TAGNAME from the matching tagged config vars. AC_DEFUN([AC_LIBTOOL_CONFIG], [# The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # 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 # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ _LT_AC_TAGVAR(compiler, $1) \ _LT_AC_TAGVAR(CC, $1) \ _LT_AC_TAGVAR(LD, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ _LT_AC_TAGVAR(old_archive_cmds, $1) \ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ _LT_AC_TAGVAR(predep_objects, $1) \ _LT_AC_TAGVAR(postdep_objects, $1) \ _LT_AC_TAGVAR(predeps, $1) \ _LT_AC_TAGVAR(postdeps, $1) \ _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ _LT_AC_TAGVAR(archive_cmds, $1) \ _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ _LT_AC_TAGVAR(postinstall_cmds, $1) \ _LT_AC_TAGVAR(postuninstall_cmds, $1) \ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ _LT_AC_TAGVAR(allow_undefined_flag, $1) \ _LT_AC_TAGVAR(no_undefined_flag, $1) \ _LT_AC_TAGVAR(export_symbols_cmds, $1) \ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ _LT_AC_TAGVAR(hardcode_automatic, $1) \ _LT_AC_TAGVAR(module_cmds, $1) \ _LT_AC_TAGVAR(module_expsym_cmds, $1) \ _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ _LT_AC_TAGVAR(fix_srcfile_path, $1) \ _LT_AC_TAGVAR(exclude_expsyms, $1) \ _LT_AC_TAGVAR(include_expsyms, $1); do case $var in _LT_AC_TAGVAR(old_archive_cmds, $1) | \ _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ _LT_AC_TAGVAR(archive_cmds, $1) | \ _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ _LT_AC_TAGVAR(module_cmds, $1) | \ _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\[$]0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` ;; esac ifelse([$1], [], [cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" AC_MSG_NOTICE([creating $ofile])], [cfgfile="$ofile"]) cat <<__EOF__ >> "$cfgfile" ifelse([$1], [], [#! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 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 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # 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//" # 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 # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG], [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # 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 # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) # Is the compiler the GNU C compiler? with_gcc=$_LT_AC_TAGVAR(GCC, $1) # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_[]_LT_AC_TAGVAR(LD, $1) # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) # Must we lock files when doing compilation? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) # Commands used to build and install a shared archive. archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) # Flag that forces no undefined symbols. no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) # 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=$_LT_AC_TAGVAR(hardcode_automatic, $1) # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) # The commands to list exported symbols. export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) # Symbols that must always be exported. include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) ifelse([$1],[], [# ### END LIBTOOL CONFIG], [# ### END LIBTOOL TAG CONFIG: $tagname]) __EOF__ ifelse([$1],[], [ case $host_os in aix3*) cat <<\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 EOF ;; esac # 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) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ]) else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ])# AC_LIBTOOL_CONFIG # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # --------------------------------- AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([LT_AC_PROG_SED]) AC_REQUIRE([AC_PROG_NM]) AC_REQUIRE([AC_OBJEXT]) # 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]]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \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\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[[BCDT]]' ;; cygwin* | mingw* | pw32*) symcode='[[ABCDGISTW]]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[[ABCDEGRST]]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux* | k*bsd*-gnu) if test "$host_cpu" = ia64; then symcode='[[ABCDGIRSTW]]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 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 # 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 # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[[ABCDGIRSTW]]' ;; esac # Try without a prefix undercore, 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. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext < $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 < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[[]] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_AC_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_save_LIBS" CFLAGS="$lt_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 -f 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 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) # --------------------------------------- AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) ifelse([$1],[CXX],[ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_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_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32*) # 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_AC_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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_AC_TAGVAR(lt_prog_compiler_pic, $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_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # 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*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_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 ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_AC_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_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; icpc* | ecpc*) # Intel C++ _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC*) # Portland Group C++ compiler. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_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_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_AC_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_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; vxworks*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_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_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # 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_AC_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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; 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_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; hpux*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # 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_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) _LT_AC_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_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; newsos6) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" ;; esac # # Check to make sure the static flag actually works. # wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) ]) # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) # ------------------------------------ # See if the linker supports building shared libraries. AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_REQUIRE([LT_AC_PROG_SED])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) ifelse([$1],[CXX],[ _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # 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 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_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_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw*) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' ;; linux* | k*bsd*-gnu) _LT_AC_TAGVAR(link_all_deplibs, $1)=no ;; *) _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac ],[ runpath_var= _LT_AC_TAGVAR(allow_undefined_flag, $1)= _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_AC_TAGVAR(archive_cmds, $1)= _LT_AC_TAGVAR(archive_expsym_cmds, $1)= _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_minus_L, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown _LT_AC_TAGVAR(hardcode_automatic, $1)=no _LT_AC_TAGVAR(module_cmds, $1)= _LT_AC_TAGVAR(module_expsym_cmds, $1)= _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_AC_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_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" # 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. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. _LT_CC_BASENAME([$compiler]) case $host_os in cygwin* | mingw* | pw32*) # 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 ;; esac _LT_AC_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = 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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_AC_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_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [[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 aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then _LT_AC_TAGVAR(ld_shlibs, $1)=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=no _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then _LT_AC_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_AC_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_AC_TAGVAR(ld_shlibs, $1)=no fi ;; interix[[3-9]]*) _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_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_AC_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_AC_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* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$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' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_AC_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; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then _LT_AC_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 _LT_AC_TAGVAR(link_all_deplibs, $1)=no else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $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_AC_TAGVAR(ld_shlibs, $1)=no cat <&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. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_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_AC_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_AC_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 ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_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_AC_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= _LT_AC_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_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_TAGVAR(always_export_symbols, $1)=yes _LT_AC_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_AC_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_AC_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix4* | aix5*) 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 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' else _LT_AC_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]].*|aix5*) 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_AC_TAGVAR(archive_cmds, $1)='' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 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_AC_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_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_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 # It seems that -bexpall does not export symbols beginning with # underscore (_), so it is better to generate a list of symbols to export. _LT_AC_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_AC_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty executable. _LT_AC_SYS_LIBPATH_AIX _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_AC_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_AC_SYS_LIBPATH_AIX _LT_AC_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_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_AC_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*) _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # see comment about different semantics on the GNU ld section _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; bsdi[[45]]*) _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic ;; cygwin* | mingw* | pw32*) # 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. _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_AC_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_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[[012]]) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_automatic, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ;; dgux*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_AC_TAGVAR(ld_shlibs, $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_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${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_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_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_AC_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_AC_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_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_AC_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_AC_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_AC_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_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' _LT_AC_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~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_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_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' if test "$GCC" = yes; then wlarc='${wl}' _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_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' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_AC_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_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_AC_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_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_direct, $1)=yes _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_AC_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_AC_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_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_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_AC_TAGVAR(link_all_deplibs, $1)=yes _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_AC_TAGVAR(ld_shlibs, $1)=no ;; esac fi ]) AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_AC_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_MSG_CHECKING([whether -lc should be explicitly linked in]) $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_AC_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) _LT_AC_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) then _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac ])# AC_LIBTOOL_PROG_LD_SHLIBS # _LT_AC_FILE_LTDLL_C # ------------------- # Be careful that the start marker always follows a newline. AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ # /* ltdll.c starts here */ # #define WIN32_LEAN_AND_MEAN # #include # #undef WIN32_LEAN_AND_MEAN # #include # # #ifndef __CYGWIN__ # # ifdef __CYGWIN32__ # # define __CYGWIN__ __CYGWIN32__ # # endif # #endif # # #ifdef __cplusplus # extern "C" { # #endif # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); # #ifdef __cplusplus # } # #endif # # #ifdef __CYGWIN__ # #include # DECLARE_CYGWIN_DLL( DllMain ); # #endif # HINSTANCE __hDllInstance_base; # # BOOL APIENTRY # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) # { # __hDllInstance_base = hInst; # return TRUE; # } # /* ltdll.c ends here */ ])# _LT_AC_FILE_LTDLL_C # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) # --------------------------------- AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) AC_DEFUN([LT_AC_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj, no) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS) ]) AC_DEFUN([LT_AC_PROG_RC], [AC_CHECK_TOOL(RC, windres, no) ]) # Cheap backport of AS_EXECUTABLE_P and required macros # from Autoconf 2.59; we should not use $as_executable_p directly. # _AS_TEST_PREPARE # ---------------- m4_ifndef([_AS_TEST_PREPARE], [m4_defun([_AS_TEST_PREPARE], [if test -x / >/dev/null 2>&1; then as_executable_p='test -x' else as_executable_p='test -f' fi ])])# _AS_TEST_PREPARE # AS_EXECUTABLE_P # --------------- # Check whether a file is executable. m4_ifndef([AS_EXECUTABLE_P], [m4_defun([AS_EXECUTABLE_P], [AS_REQUIRE([_AS_TEST_PREPARE])dnl $as_executable_p $1[]dnl ])])# AS_EXECUTABLE_P # 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. # # LT_AC_PROG_SED # -------------- # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. AC_DEFUN([LT_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]) ]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 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. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure 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_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$PKG_CONFIG"; then if test -n "$$1"; then pkg_cv_[]$1="$$1" else PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) fi 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 _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [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 ])], [AC_MSG_RESULT([no]) $4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [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 .])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION so it can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.9.6])]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # This was merged into AC_PROG_CC in Autoconf. AU_DEFUN([AM_PROG_CC_STDC], [AC_PROG_CC AC_DIAGNOSE([obsolete], [$0: your code should no longer depend upon `am_cv_prog_cc_stdc', but upon `ac_cv_prog_cc_stdc'. Remove this warning and the assignment when you adjust the code. You can also remove the above call to AC_PROG_CC if you already called it elsewhere.]) am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc ]) AU_DEFUN([fp_PROG_CC_STDC]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 7 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE]) AC_SUBST([$1_FALSE]) if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH]) ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # 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. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 12 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.58])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 # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl 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) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl ]) ]) # 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_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"$am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # 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 done .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 # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. # # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories # created by `make install' are always world readable, even if the # installer happens to have an overly restrictive umask (e.g. 077). # This was a mistake. There are at least two reasons why we must not # use `-m 0755': # - it causes special bits like SGID to be ignored, # - it may be too restrictive (some setups expect 775 directories). # # Do not use -m 0755 and let people choose whatever they expect by # setting umask. # # We cannot accept any implementation of `mkdir' that recognizes `-p'. # Some implementations (such as Solaris 8's) are not thread-safe: if a # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' # concurrently, both version can detect that a/ is missing, but only # one can create it and the other will error out. Consequently we # restrict ourselves to GNU make (using the --version option ensures # this.) AC_DEFUN([AM_PROG_MKDIR_P], [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi AC_SUBST([mkdir_p])]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _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], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([m4/codeset.m4]) m4_include([m4/gettext.m4]) m4_include([m4/glibc2.m4]) m4_include([m4/glibc21.m4]) m4_include([m4/iconv.m4]) m4_include([m4/intdiv0.m4]) m4_include([m4/intmax.m4]) m4_include([m4/inttypes-pri.m4]) m4_include([m4/inttypes.m4]) m4_include([m4/inttypes_h.m4]) m4_include([m4/isc-posix.m4]) m4_include([m4/lcmessage.m4]) m4_include([m4/lib-ld.m4]) m4_include([m4/lib-link.m4]) m4_include([m4/lib-prefix.m4]) m4_include([m4/longdouble.m4]) m4_include([m4/longlong.m4]) m4_include([m4/nls.m4]) m4_include([m4/ogg.m4]) m4_include([m4/po.m4]) m4_include([m4/printf-posix.m4]) m4_include([m4/progtest.m4]) m4_include([m4/signed.m4]) m4_include([m4/size_max.m4]) m4_include([m4/speex.m4]) m4_include([m4/stdint_h.m4]) m4_include([m4/uintmax_t.m4]) m4_include([m4/ulonglong.m4]) m4_include([m4/vorbis.m4]) m4_include([m4/wchar_t.m4]) m4_include([m4/wint_t.m4]) m4_include([m4/xsize.m4]) m4_include([acinclude.m4]) sweep-0.9.3/include/0000755000175000017500000000000011001133764013003 5ustar userusersweep-0.9.3/include/Makefile.in0000644000175000017500000004022510777670413015073 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = include DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ SUBDIRS = sweep all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu include/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 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (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" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ 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 || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 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 Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -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-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-generic clean-libtool clean-recursive ctags \ ctags-recursive distclean distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-generic mostlyclean-libtool \ mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sweep-0.9.3/include/sweep/0000755000175000017500000000000011001133764014126 5ustar userusersweep-0.9.3/include/sweep/sweep_version.h0000644000175000017500000000222110777660175017210 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __SWEEP_VERSION_H__ #define __SWEEP_VERSION_H__ /* * The current version of Sweep's native plugin interface. * * See the Sweep Plugin Writer's Guide for information about the meaning * of these and when to change each. */ #define SWEEP_PLUGIN_API_MAJOR 1 #define SWEEP_PLUGIN_API_MINOR 1 #define SWEEP_PLUGIN_API_REVISION 0 #endif /* __SWEEP_VERSION_H__ */ sweep-0.9.3/include/sweep/sweep_typeconvert.h0000644000175000017500000000265110777660175020114 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __SWEEP_TYPE_CONVERT_H__ #define __SWEEP_TYPE_CONVERT_H__ /* * Determine the number of samples occupied by a number of frames * in a given format. */ glong frames_to_samples (sw_format * format, sw_framecount_t nr_frames); /* * Determine the size in bytes of a number of frames of a given format. */ glong frames_to_bytes (sw_format * format, sw_framecount_t nr_frames); /* * Convert a number of frames to seconds */ sw_time_t frames_to_time (sw_format * format, sw_framecount_t nr_frames); /* * Convert seconds to frames */ sw_framecount_t time_to_frames (sw_format * format, sw_time_t time); #endif /* __SWEEP_TYPE_CONVERT_H__ */ sweep-0.9.3/include/sweep/sweep_sounddata.h0000644000175000017500000000447410777660175017521 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __SWEEP_SOUNDDATA_H__ #define __SWEEP_SOUNDDATA_H__ sw_sounddata * sounddata_new_empty(gint nr_channels, gint sample_rate, gint sample_length); void sounddata_destroy (sw_sounddata * sounddata); void sounddata_lock_selection (sw_sounddata * sounddata); void sounddata_unlock_selection (sw_sounddata * sounddata); void sounddata_clear_selection (sw_sounddata * sounddata); /* * sounddata_normalise_selection(sounddata) * * normalise the selection of sounddata, ie. make sure there's * no overlaps and merge adjoining sections. */ void sounddata_normalise_selection (sw_sounddata * sounddata); void sounddata_add_selection (sw_sounddata * sounddata, sw_sel * sel); sw_sel * sounddata_add_selection_1 (sw_sounddata * sounddata, sw_framecount_t start, sw_framecount_t end); sw_sel * sounddata_set_selection_1 (sw_sounddata * sounddata, sw_framecount_t start, sw_framecount_t end); guint sounddata_selection_nr_regions (sw_sounddata * sounddata); gint sounddata_selection_nr_frames (sw_sounddata * sounddata); gint sounddata_selection_width (sw_sounddata * sounddata); void sounddata_selection_translate (sw_sounddata * sounddata, gint delta); void sounddata_selection_scale (sw_sounddata * sounddata, gfloat scale); /* * sounddata_copyin_selection (sounddata, sounddata2) * * copies the selection of sounddata1 into sounddata2. If sounddata2 previously * had a selection, the two are merged. */ void sounddata_copyin_selection (sw_sounddata * sounddata1, sw_sounddata * sounddata2); #endif /* __SWEEP_SOUNDDATA_H__ */ sweep-0.9.3/include/sweep/sweep_filter.h0000644000175000017500000000245510777660175017021 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __SWEEP_FILTER_H__ #define __SWEEP_FILTER_H__ typedef void (*SweepFilterRegion) (gpointer data, sw_format * format, sw_framecount_t nr_frames, sw_param_set pset, gpointer custom_data); sw_op_instance * perform_filter_region_op (sw_sample * sample, char * desc, SweepFilterRegion func, sw_param_set pset, gpointer custom_data); sw_op_instance * perform_filter_op (sw_sample * sample, char * desc, SweepFilter func, sw_param_set pset, gpointer custom_data); #endif /* __SWEEP_FILTER_H__ */ sweep-0.9.3/include/sweep/Makefile.in0000644000175000017500000003370610777670413016224 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = include/sweep DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(sweepinclude_HEADERS) ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = 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 = `echo $$p | sed -e 's|^.*/||'`; am__installdirs = "$(DESTDIR)$(sweepincludedir)" sweepincludeHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(sweepinclude_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ sweepincludedir = $(includedir)/sweep sweepinclude_HEADERS = \ sweep_version.h \ sweep_i18n.h \ sweep.h \ sweep_types.h \ sweep_typeconvert.h \ sweep_sample.h \ sweep_sounddata.h \ sweep_filter.h \ sweep_selection.h \ sweep_undo.h all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/sweep/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu include/sweep/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 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-sweepincludeHEADERS: $(sweepinclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(sweepincludedir)" || $(mkdir_p) "$(DESTDIR)$(sweepincludedir)" @list='$(sweepinclude_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(sweepincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(sweepincludedir)/$$f'"; \ $(sweepincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(sweepincludedir)/$$f"; \ done uninstall-sweepincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(sweepinclude_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(sweepincludedir)/$$f'"; \ rm -f "$(DESTDIR)$(sweepincludedir)/$$f"; \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(HEADERS) installdirs: for dir in "$(DESTDIR)$(sweepincludedir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-sweepincludeHEADERS install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-sweepincludeHEADERS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool ctags distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-strip \ install-sweepincludeHEADERS installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ ps ps-am tags uninstall uninstall-am uninstall-info-am \ uninstall-sweepincludeHEADERS # 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: sweep-0.9.3/include/sweep/sweep_i18n.h0000644000175000017500000000311110777660175016301 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __I18N_H__ #define __I18N_H__ /* * Standard gettext macros. */ #ifdef ENABLE_NLS # include # undef _ # define _(String) dgettext (PACKAGE, String) # define gettext_noop(String) String # define N_(String) gettext_noop(String) /* # ifdef gettext_noop # define N_(String) gettext_noop (String) # else # define N_(String) ("NOT TRANSLATED") # endif */ #else # define textdomain(String) (String) # define gettext(String) (String) # define dgettext(Domain,Message) (Message) # define dcgettext(Domain,Message,Type) (Message) # define bindtextdomain(Domain,Directory) (Domain) #ifdef DEVEL_CODE # define _(String) ("UNTRANSLATED") # define N_(String) ("UNTRANSLATED") #else # define _(String) (String) # define N_(String) (String) #endif #endif #endif /* __I18N_H__ */ sweep-0.9.3/include/sweep/sweep.h0000644000175000017500000000221510777660175015446 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __SWEEP_H__ #define __SWEEP_H__ #include #include #include #include #include #include #include #include #include #endif /* __SWEEP_H__ */ sweep-0.9.3/include/sweep/sweep_selection.h0000644000175000017500000000325510777660175017520 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __SWEEP_SELECTION_H__ #define __SWEEP_SELECTION_H__ sw_sel * sel_new (sw_framecount_t start, sw_framecount_t end); void sel_free (sw_sel * sel); sw_sel * sel_copy (sw_sel * sel); GList * sels_add_selection (GList * sels, sw_sel * sel); GList * sels_add_selection_1 (GList * sels, sw_framecount_t start, sw_framecount_t end); /* * sel_cmp (s1, s2) * * Compares two sw_sel's for g_list_insert_sorted() -- * return > 0 if s1 comes after s2 in the sort order. */ gint sel_cmp (sw_sel * s1, sw_sel * s2); /* * sels_copy (sels) * * returns a copy of sels */ GList * sels_copy (GList * sels); /* * sels_invert (sels, nr_frames) * * inverts sels in place */ GList * sels_invert (GList * sels, sw_framecount_t nr_frames); sw_op_instance * perform_selection_op (sw_sample * s, char * desc, SweepFilter func, sw_param_set pset, gpointer custom_data); #endif /* __SWEEP_SELECTION_H__ */ sweep-0.9.3/include/sweep/sweep_sample.h0000644000175000017500000000767110777660175017022 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __SWEEP_SAMPLE_H__ #define __SWEEP_SAMPLE_H__ #include sw_sample * sample_new_empty(char * pathname, gint nr_channels, gint sample_rate, gint sample_length); sw_sample * sample_new_copy(sw_sample * s); void sample_destroy (sw_sample * s); sw_sounddata * sample_get_sounddata (sw_sample * s); void sample_set_file_format (sw_sample * s, sw_file_format_t file_format); void sample_set_pathname (sw_sample * s, char * pathname); GList * sample_bank_list_names (void); sw_sample * sample_bank_find_byname (const gchar * name); gboolean sample_bank_contains (sw_sample *s); void sample_bank_add (sw_sample * s); void sample_bank_remove (sw_sample * s); void sample_refresh_views (sw_sample * s); void sample_start_marching_ants (sw_sample * s); void sample_stop_marching_ants (sw_sample * s); void sample_set_edit_state (sw_sample * s, sw_edit_state edit_state); void sample_set_edit_mode (sw_sample * s, sw_edit_mode edit_mode); void sample_refresh_playmode (sw_sample * s); void sample_set_previewing (sw_sample * s, gboolean previewing); void sample_set_stop_offset (sw_sample * s); void sample_set_playmarker (sw_sample * s, sw_framecount_t offset, gboolean by_user); void sample_set_rec_marker (sw_sample * s, sw_framecount_t offset); void sample_set_scrubbing (sw_sample * s, gboolean scrubbing); void sample_set_looping (sw_sample * s, gboolean looping); void sample_set_playrev (sw_sample * s, gboolean reverse); void sample_set_mute (sw_sample * s, gboolean mute); void sample_set_color (sw_sample * s, gint color); void sample_set_progress_text (sw_sample * s, gchar * text); void sample_set_progress_percent (sw_sample * s, gint percent); void sample_refresh_progress_percent (sw_sample * s); int sample_set_progress_ready (sw_sample * s); void sample_set_tmp_message (sw_sample * s, const char * fmt, ...); /* * sample_replace_throughout (os, s) * * Replaces os with s throughout the program, ie: * - in the sample bank * - in all os's views * * Destroys os. * */ void sample_replace_throughout (sw_sample * os, sw_sample * s); /* Selection handling */ gboolean sample_offset_in_sel (sw_sample * s, sw_framecount_t offset); guint sample_sel_nr_regions (sw_sample * s); void sample_clear_selection (sw_sample * s); void sample_add_selection (sw_sample * s, sw_sel * sel); sw_sel * sample_add_selection_1 (sw_sample * s, sw_framecount_t start, sw_framecount_t end); void sample_set_selection (sw_sample * s, GList * gl); sw_sel * sample_set_selection_1 (sw_sample * s, sw_framecount_t start, sw_framecount_t end); /* Modify a given existing selection */ void sample_selection_modify (sw_sample * s, sw_sel * sel, sw_framecount_t new_start, sw_framecount_t new_end); void sample_selection_invert (sw_sample * s); void sample_selection_select_all (sw_sample * s); void sample_selection_select_none (sw_sample * s); void sample_selection_halve (sw_sample * s); void sample_selection_double (sw_sample * s); void sample_selection_shift_left (sw_sample * s); void sample_selection_shift_right (sw_sample * s); /* info dialog */ void sample_show_info_dialog (sw_sample * sample); #endif /* __SWEEP_SAMPLE_H__ */ sweep-0.9.3/include/sweep/Makefile.am0000644000175000017500000000045510777660175016212 0ustar useruser## Process this file with automake to produce Makefile.in sweepincludedir = $(includedir)/sweep sweepinclude_HEADERS = \ sweep_version.h \ sweep_i18n.h \ sweep.h \ sweep_types.h \ sweep_typeconvert.h \ sweep_sample.h \ sweep_sounddata.h \ sweep_filter.h \ sweep_selection.h \ sweep_undo.h sweep-0.9.3/include/sweep/sweep_undo.h0000644000175000017500000000700210777660175016472 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __SWEEP_UNDO_H__ #define __SWEEP_UNDO_H__ #include "sweep_types.h" gint update_edit_progress (gpointer data); sw_op_instance * sw_op_instance_new (sw_sample * sample, char * description, sw_operation * operation); void schedule_operation (sw_sample * sample, char * description, sw_operation * operation, void * do_data); void register_operation (sw_sample * s, sw_op_instance * inst); void trim_registered_ops (sw_sample * s, int length); void undo_current (sw_sample * s); void redo_current (sw_sample * s); void revert_op (sw_sample * sample, GList * op_gl); void set_active_op (sw_sample * s, sw_op_instance * inst); void cancel_active_op (sw_sample * s); /* Stock undo functions */ #if 0 typedef struct _replace_data replace_data; struct _replace_data { sw_sample * old_sample; sw_sample * new_sample; }; replace_data * replace_data_new (sw_sample * old_sample, sw_sample * new_sample); void undo_by_replace (replace_data * r); void redo_by_replace (replace_data * r); #endif typedef struct _sounddata_replace_data sounddata_replace_data; struct _sounddata_replace_data { sw_sample * sample; sw_sounddata * old_sounddata; sw_sounddata * new_sounddata; }; sounddata_replace_data * sounddata_replace_data_new (sw_sample * sample, sw_sounddata * old_sounddata, sw_sounddata * new_sounddata); void sounddata_replace_data_destroy (sounddata_replace_data * sr); void undo_by_sounddata_replace (sw_sample * s, sounddata_replace_data * sr); void redo_by_sounddata_replace (sw_sample * s, sounddata_replace_data * sr); typedef struct _paste_over_data paste_over_data; struct _paste_over_data { sw_sample * sample; sw_edit_buffer * old_eb; sw_edit_buffer * new_eb; }; paste_over_data * paste_over_data_new (sw_edit_buffer * old_eb, sw_edit_buffer * new_eb); void paste_over_data_destroy (paste_over_data * p); void undo_by_paste_over (sw_sample * s, paste_over_data * p); void redo_by_paste_over (sw_sample * s, paste_over_data * p); typedef struct _splice_data splice_data; struct _splice_data { sw_sample * sample; sw_edit_buffer * eb; GList * sels; /* Previous sels of sounddata */ }; splice_data * splice_data_new (sw_edit_buffer * eb, GList * sels); void splice_data_destroy (splice_data * s); void undo_by_splice_in (sw_sample * s, splice_data * sp); void redo_by_splice_out (sw_sample * s, splice_data * sp); void undo_by_splice_out (sw_sample * s, splice_data * sp); void redo_by_splice_in (sw_sample * s, splice_data * sp); void undo_by_splice_over (sw_sample * s, splice_data * sp); void redo_by_splice_over (sw_sample * s, splice_data * sp); void undo_by_crop_in (sw_sample * s, splice_data * sp); void redo_by_crop_out (sw_sample * s, splice_data * sp); #endif /* __SWEEP_UNDO_H__ */ sweep-0.9.3/include/sweep/sweep_types.h0000644000175000017500000002514610777660175016702 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __SWEEP_TYPES_H__ #define __SWEEP_TYPES_H__ #include #include /* XXX: for GdkModifierType */ #include /* XXX: for info_clist widget */ #include /* #include */ /* * Basic types */ /* Audio data representation */ /* gfloats in the range [-1.0, 1.0] */ typedef gfloat sw_audio_t; /* Intermediate audio representation format: * Use this for intermediate values for mixing etc. */ typedef gdouble sw_audio_intermediate_t; #define SW_AUDIO_T_MAX (1.0) #define SW_AUDIO_T_MIN (-1.0) /* Time, in seconds */ typedef gfloat sw_time_t; /* Frame Counts */ #if 0 #if (SIZEOF_OFF_T == 8) /* For libsndfile version 1 */ typedef off_t sw_framecount_t; #else typedef int sw_framecount_t; #endif #else typedef int sw_framecount_t; #define FRAMECOUNT_MAX INT_MAX #endif /* * Core datatypes */ typedef struct _sw_sel sw_sel; typedef struct _sw_format sw_format; typedef struct _sw_sounddata sw_sounddata; typedef struct _sw_sample sw_sample; /* * sw_sel: a region in a selection. * * Caution: Potential off-by-one error. * The selected region is defined as going from * sel_start to (sel_end - 1). * Thus the length of the selection is always * (sel_end - sel_start). * * Units are frame offsets from start of sample. * */ struct _sw_sel { sw_framecount_t sel_start; sw_framecount_t sel_end; }; /* * sw_format: a sampling format. * * Multichannel data is interleaved: Stereo is stored LR. */ struct _sw_format { gint channels; /* nr channels per frame */ gint rate; /* sampling rate (Hz) */ }; struct _sw_sounddata { int refcount; sw_format * format; sw_framecount_t nr_frames; /* nr frames */ gpointer data; GMutex * data_mutex; /* Mutex for access to sample data */ GList * sels; /* selection: list of sw_sels */ GMutex * sels_mutex; /* Mutex for access to sels */ }; #define SW_DIR_LEN 256 typedef enum { SWEEP_EDIT_MODE_READY, SWEEP_EDIT_MODE_META, /* modifying metadata: sels etc. */ SWEEP_EDIT_MODE_FILTER, SWEEP_EDIT_MODE_ALLOC, } sw_edit_mode; typedef enum { SWEEP_EDIT_STATE_IDLE, SWEEP_EDIT_STATE_PENDING, SWEEP_EDIT_STATE_BUSY, SWEEP_EDIT_STATE_DONE, SWEEP_EDIT_STATE_CANCEL, } sw_edit_state; typedef enum { SWEEP_TRANSPORT_STOP, SWEEP_TRANSPORT_PLAY, SWEEP_TRANSPORT_PLAY_SEL, } sw_transport_type; /* File formats */ typedef enum { SWEEP_FILE_FORMAT_NONE=0, SWEEP_FILE_FORMAT_BY_EXTENSION=0, SWEEP_FILE_FORMAT_RAW, SWEEP_FILE_FORMAT_WAV, SWEEP_FILE_FORMAT_AIFF, SWEEP_FILE_FORMAT_AU, SWEEP_FILE_FORMAT_PAF, SWEEP_FILE_FORMAT_SVX, SWEEP_FILE_FORMAT_IRCAM, SWEEP_FILE_FORMAT_VOC, SWEEP_FILE_FORMAT_MAX } sw_file_format_t; typedef struct _sw_edit_region sw_edit_region; typedef struct _sw_edit_buffer sw_edit_buffer; /* * A region of data. Units are frames. * The length of data available *data is (end - start) */ struct _sw_edit_region { sw_framecount_t start; sw_framecount_t end; gpointer data; }; struct _sw_edit_buffer { sw_format * format; GList * regions; gint refcount; }; typedef void (*SweepFunction) (gpointer data); typedef void (*SweepCallback) (sw_sample * sample, gpointer data); typedef struct _sw_operation sw_operation; typedef struct _sw_op_instance sw_op_instance; struct _sw_operation { sw_edit_mode edit_mode; SweepCallback _do_; SweepFunction purge_do; SweepCallback undo; SweepFunction purge_undo; SweepCallback redo; SweepFunction purge_redo; }; struct _sw_op_instance { sw_sample * sample; char * description; sw_operation * op; gpointer do_data; gpointer undo_data; gpointer redo_data; }; /* * Basic types for parameters */ typedef enum { SWEEP_TYPE_BOOL = 0, SWEEP_TYPE_INT, SWEEP_TYPE_FLOAT, SWEEP_TYPE_STRING, } sw_param_type; typedef gboolean sw_bool; typedef gint sw_int; typedef gdouble sw_float; typedef gchar * sw_string; /* * Instances of Parameter Sets */ typedef union _sw_param sw_param; typedef sw_param * sw_param_set; union _sw_param { sw_bool b; sw_int i; sw_float f; sw_string s; }; /* * Specifications for Parameter Sets * */ /* * Constraint types. These are used within the param_spec to indicate * the usage of the sw_constraint. */ typedef enum { /* * SW_PARAM_CONSTRAINED_NOT indicates that the parameter is completely * unconstrained. * * Useful in verse; with iambic pentameter, accent the "-ED" eg. * * This 'x' is SW_CONSTRAINED_NOT! * How free is its life, how wretched its lot! */ SW_PARAM_CONSTRAINED_NOT=0, /* * SW_PARAM_CONSTRAINED_LIST indicates that the parameter is constrained * to values given in a param list. */ SW_PARAM_CONSTRAINED_LIST, /* * SW_PARAM_CONSTRAINED_RANGE indicates that the parameter is constrained * to a given range. */ SW_PARAM_CONSTRAINED_RANGE, } sw_constraint_type; /* VALID PORTIONS OF RANGES */ /* * SW_RANGE_LOWER_BOUND_VALID indicates that the 'lower' field * of the constraint, if interpreted as a range, is valid. If this bit * is not set, then the parameter is known to have no lower bound. * If the constraint is valid and the 'step' field is set, then the * value of 'lower' is used to determine a basis for the parameter, * even if SW_RANGE_LOWER_BOUND_VALID is not set. * * Note that the constraint is not interpreted as a range if * SW_PARAM_CONSTRAINED_LIST is set. */ #define SW_RANGE_LOWER_BOUND_VALID (1<<0) /* * SW_RANGE_UPPER_BOUND_VALID indicates that the 'upper' field * of the constraint, if interpreted as a range, is valid. If this bit * is not set, then the parameter is known to have no upper bound. */ #define SW_RANGE_UPPER_BOUND_VALID (1<<1) /* * SW_RANGE_STEP_VALID indicates that the 'step' field of * the constraint, if interpreted as a range, is valid. If this bit * is not set, then the parameter is assumed to be continuous. * If this field is valid, then the parameter will only have values * equal to (lower + n*step) for integer n. * * This constraint is ignored for string paramters. */ #define SW_RANGE_STEP_VALID (1<<2) #define SW_RANGE_ALL_VALID (SW_RANGE_LOWER_BOUND_VALID|SW_RANGE_UPPER_BOUND_VALID|SW_RANGE_STEP_VALID) /* * HINTS for user interface semantics */ typedef int sw_hints; /* * SW_PARAM_HINT_DEFAULT indicates that the parameter has no special * interpretation; eg. if a number, it's linear */ #define SW_PARAM_HINT_DEFAULT (0) /* * SW_PARAM_HINT_LOGARITHMIC indicates that the parameter should be * interpreted as logarithmic. */ #define SW_PARAM_HINT_LOGARITHMIC (1<<1) /* * SW_PARAM_HINT_TIME indicates that the parameter should be * interpreted as a time */ #define SW_PARAM_HINT_TIME (1<<2) /* * SW_PARAM_HINT_FILENAME indicates that the parameter should be * interpreted as a valid filename on the user's system. */ #define SW_PARAM_HINT_FILENAME (1<<3) typedef struct _sw_param_spec sw_param_spec; typedef struct _sw_param_range sw_param_range; typedef union _sw_constraint sw_constraint; /* * sw_param_range: a range of acceptable parameter values. * * NB: this is a hard limit. Values upper * need not be expected by plugins. * * The first parameter is a mask consisting of a bitwise or of between * zero and three of SW_RANGE_LOWER_BOUND_VALID, * SW_RANGE_UPPER_BOUND_VALID, and SW_RANGE_STEP_VALID. * * The three following parameters are interpreted as the type of the * parameter they constrain. The 'step' parameter is never valid for * string parameters. */ struct _sw_param_range { int valid_mask; sw_param lower; sw_param upper; sw_param step; }; /* * sw_constraint * * Constraints on parameters. Constraints, if valid, are hard limits. * * All constraints are disregarded for boolean parameters. */ union _sw_constraint { /* * param_list: Values are constrained to those within a list of * parameters. NB: the length of this list is given by the * value of the first parameter, interpreted as an integer. * ie. this length = constraint->param_list[0].i */ sw_param * list; /* * param_range, as described above. */ sw_param_range * range; /* param range */ }; /* * sw_param_spec: specification for a parameter. */ struct _sw_param_spec { /* A short name for this parameter */ gchar * name; /* A longer description of the parameter's purpose and usage */ gchar * desc; /* The type of the parameter */ sw_param_type type; /* Constraints */ sw_constraint_type constraint_type; sw_constraint constraint; /* Hints */ sw_hints hints; }; /* * Plugins and procedures */ typedef struct _sw_procedure sw_procedure; typedef struct _sw_plugin sw_plugin; struct _sw_procedure { gchar * name; gchar * description; gchar * author; gchar * copyright; gchar * url; gchar * identifier; /* Key bindings */ guint accel_key; GdkModifierType accel_mods; gint nr_params; sw_param_spec * param_specs; /* suggest sets suggested values for the members of pset, * possibly using the sample. * * If nr_params is 0 then this function will not be called. * If this function is NULL then default values (zero,FALSE,"") * will be used. */ void (*suggest) (sw_sample * sample, sw_param_set pset, gpointer custom_data); /* This is the function that actually does the work! * * apply applies the parameter set pset to a sample * * If nr_params is 0 then this function will be passed a NULL pset. */ sw_op_instance * (*apply) (sw_sample * sample, sw_param_set pset, gpointer custom_data); /* custom data to pass to the suggest and apply functions */ gpointer custom_data; }; struct _sw_plugin { /* plugin_init () returns a list of procedures */ GList * (*plugin_init) (void); /* plugin_cleanup() frees the plugin's private data structures */ void (*plugin_cleanup) (void); }; typedef sw_sample * (*SweepFilter) (sw_sample * sample, sw_param_set pset, gpointer custom_data); #endif /* __SWEEP_TYPES_H__ */ sweep-0.9.3/include/Makefile.am0000644000175000017500000000011310777660175015056 0ustar useruser## Process this file with automake to produce Makefile.in SUBDIRS = sweep sweep-0.9.3/src/0000755000175000017500000000000011001133765012150 5ustar userusersweep-0.9.3/src/channelops.c0000644000175000017500000004436410777660160014476 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * Copyright (C) 2002 CSIRO Australia * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include "sweep_app.h" #include "edit.h" #include "sw_chooser.h" #define BUFFER_LEN 4096 /* Mono dup channels */ static void do_dup_channels_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; int new_channels = GPOINTER_TO_INT(inst->do_data); int min_channels; sw_format * old_format = sample->sounddata->format; sw_sounddata * old_sounddata, * new_sounddata; sw_framecount_t nr_frames; sw_audio_t * old_d, * new_d; sw_framecount_t remaining, n, run_total, ctotal; int i, j, k; int percent; gboolean active = TRUE; old_sounddata = sample->sounddata; nr_frames = old_sounddata->nr_frames; new_sounddata = sounddata_new_empty (new_channels, old_format->rate, nr_frames); min_channels = MIN (old_format->channels, new_channels); remaining = nr_frames; ctotal = remaining / 100; if (ctotal == 0) ctotal = 1; run_total = 0; old_d = (sw_audio_t *)old_sounddata->data; new_d = (sw_audio_t *)new_sounddata->data; /* Create selections */ g_mutex_lock (sample->ops_mutex); new_sounddata->sels = sels_copy (old_sounddata->sels); g_mutex_unlock (sample->ops_mutex); /* Mix down */ while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { n = MIN (remaining, 4096); for (i = 0; i < n; i++) { k = 0; while (k < new_channels) { for (j = 0; j < min_channels; j++) { new_d[k++] = old_d[j]; } } old_d += old_format->channels; new_d += new_channels; } remaining -= n; run_total += n; percent = run_total / ctotal; sample_set_progress_percent (sample, percent); } g_mutex_unlock (sample->ops_mutex); } if (remaining > 0) { /* cancelled or failed */ sounddata_destroy (new_sounddata); } else if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { sample->sounddata = new_sounddata; inst->redo_data = inst->undo_data = sounddata_replace_data_new (sample, old_sounddata, new_sounddata); register_operation (sample, inst); } } static sw_operation dup_channels_op = { SWEEP_EDIT_MODE_ALLOC, (SweepCallback)do_dup_channels_thread, (SweepFunction)NULL, (SweepCallback)undo_by_sounddata_replace, (SweepFunction)sounddata_replace_data_destroy, (SweepCallback)redo_by_sounddata_replace, (SweepFunction)sounddata_replace_data_destroy }; void dup_channels (sw_sample * sample, int new_channels) { #undef BUF_LEN #define BUF_LEN 128 char buf[BUF_LEN]; if (sample->sounddata->format->channels == 1) { g_snprintf (buf, BUF_LEN, _("Duplicate to %d channels"), new_channels); } else { g_snprintf (buf, BUF_LEN, _("Duplicate from %d to %d channels"), sample->sounddata->format->channels, new_channels); } schedule_operation (sample, buf, &dup_channels_op, GINT_TO_POINTER(new_channels)); } void dup_stereo_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; dup_channels (sample, 2); } static void dup_channels_dialog_ok_cb (GtkWidget * widget, gpointer data) { sw_sample * sample = (sw_sample *)data; GtkWidget * dialog; GtkWidget * chooser; int new_channels; dialog = gtk_widget_get_toplevel (widget); chooser = g_object_get_data (G_OBJECT(dialog), "default"); new_channels = channelcount_chooser_get_count (chooser); gtk_widget_destroy (dialog); dup_channels (sample, new_channels); } static void dup_channels_dialog_cancel_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; dialog = gtk_widget_get_toplevel (widget); gtk_widget_destroy (dialog); } void dup_channels_dialog_new_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; GtkWidget * dialog; GtkWidget * main_vbox; /*GtkWidget * label;*/ GtkWidget * chooser; GtkWidget * button, * ok_button; /*gchar * current;*/ dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW(dialog), _("Sweep: Duplicate channel")); gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE); gtk_container_set_border_width (GTK_CONTAINER(dialog), 8); main_vbox = GTK_DIALOG(dialog)->vbox; #if 0 current = g_strdup_printf (_("Currently: %d channels"), sample->sounddata->format->channels); label = gtk_label_new (current); gtk_box_pack_start (GTK_BOX(main_vbox), label, TRUE, TRUE, 8); gtk_widget_show (label); #endif chooser = channelcount_chooser_new (_("Output channels")); gtk_box_pack_start (GTK_BOX(main_vbox), chooser, TRUE, TRUE, 0); channelcount_chooser_set_count (chooser, sample->sounddata->format->channels); gtk_widget_show (chooser); g_object_set_data (G_OBJECT(dialog), "default", chooser); /* OK */ ok_button = gtk_button_new_with_label (_("OK")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (ok_button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), ok_button, TRUE, TRUE, 0); gtk_widget_show (ok_button); g_signal_connect (G_OBJECT(ok_button), "clicked", G_CALLBACK (dup_channels_dialog_ok_cb), sample); /* Cancel */ button = gtk_button_new_with_label (_("Cancel")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (dup_channels_dialog_cancel_cb), NULL); gtk_widget_grab_default (ok_button); gtk_widget_show (dialog); } static void do_mono_mixdown_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; sw_format * old_format = sample->sounddata->format; sw_sounddata * old_sounddata, * new_sounddata; sw_framecount_t nr_frames; sw_audio_t * old_d, * new_d; sw_framecount_t remaining, n, run_total, ctotal; int i, j; int percent; gboolean active = TRUE; old_sounddata = sample->sounddata; nr_frames = old_sounddata->nr_frames; new_sounddata = sounddata_new_empty (1, old_format->rate, nr_frames); remaining = nr_frames; ctotal = remaining / 100; if (ctotal == 0) ctotal = 1; run_total = 0; old_d = (sw_audio_t *)old_sounddata->data; new_d = (sw_audio_t *)new_sounddata->data; /* Create selections */ g_mutex_lock (sample->ops_mutex); new_sounddata->sels = sels_copy (old_sounddata->sels); g_mutex_unlock (sample->ops_mutex); /* Mix down */ while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { n = MIN (remaining, 4096); for (i = 0; i < n; i++) { for (j = 0; j < old_format->channels; j++) { *new_d += *old_d; old_d++; } new_d++; } remaining -= n; run_total += n; percent = run_total / ctotal; sample_set_progress_percent (sample, percent); } g_mutex_unlock (sample->ops_mutex); } if (remaining > 0) { /* cancelled or failed */ sounddata_destroy (new_sounddata); } else if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { sample->sounddata = new_sounddata; inst->redo_data = inst->undo_data = sounddata_replace_data_new (sample, old_sounddata, new_sounddata); register_operation (sample, inst); } } static sw_operation mono_mixdown_op = { SWEEP_EDIT_MODE_ALLOC, (SweepCallback)do_mono_mixdown_thread, (SweepFunction)NULL, (SweepCallback)undo_by_sounddata_replace, (SweepFunction)sounddata_replace_data_destroy, (SweepCallback)redo_by_sounddata_replace, (SweepFunction)sounddata_replace_data_destroy }; void mono_mixdown_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; schedule_operation (sample, _("Mix down to mono"), &mono_mixdown_op, NULL); } static void do_remove_channel_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; int channel = GPOINTER_TO_INT(inst->do_data); sw_format * old_format = sample->sounddata->format; sw_sounddata * old_sounddata, * new_sounddata; sw_framecount_t nr_frames; sw_audio_t * old_d, * new_d; sw_framecount_t remaining, n, run_total, ctotal; int i, j; int percent; gboolean active = TRUE; old_sounddata = sample->sounddata; nr_frames = old_sounddata->nr_frames; new_sounddata = sounddata_new_empty (old_format->channels - 1, old_format->rate, nr_frames); remaining = nr_frames; ctotal = remaining / 100; if (ctotal == 0) ctotal = 1; run_total = 0; old_d = (sw_audio_t *)old_sounddata->data; new_d = (sw_audio_t *)new_sounddata->data; /* Create selections */ g_mutex_lock (sample->ops_mutex); new_sounddata->sels = sels_copy (old_sounddata->sels); g_mutex_unlock (sample->ops_mutex); /* Mix down */ while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { n = MIN (remaining, 4096); for (i = 0; i < n; i++) { for (j = 0; j < old_format->channels; j++) { if (j != channel) { *new_d = *old_d; new_d++; } old_d++; } } remaining -= n; run_total += n; percent = run_total / ctotal; sample_set_progress_percent (sample, percent); } g_mutex_unlock (sample->ops_mutex); } if (remaining > 0) { /* cancelled or failed */ sounddata_destroy (new_sounddata); } else if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { sample->sounddata = new_sounddata; inst->redo_data = inst->undo_data = sounddata_replace_data_new (sample, old_sounddata, new_sounddata); register_operation (sample, inst); } } static sw_operation remove_channel_op = { SWEEP_EDIT_MODE_ALLOC, (SweepCallback)do_remove_channel_thread, (SweepFunction)NULL, (SweepCallback)undo_by_sounddata_replace, (SweepFunction)sounddata_replace_data_destroy, (SweepCallback)redo_by_sounddata_replace, (SweepFunction)sounddata_replace_data_destroy }; void remove_left_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; schedule_operation (sample, _("Remove left channel"), &remove_channel_op, GINT_TO_POINTER(0)); } void remove_right_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; schedule_operation (sample, _("Remove right channel"), &remove_channel_op, GINT_TO_POINTER(1)); } static void do_stereo_swap (sw_sample * sample, gpointer data) { sw_framecount_t nr_frames; sw_audio_t * dl, * dr, t; sw_framecount_t remaining, n, run_total, ctotal; int i; int percent; gboolean active = TRUE; nr_frames = sample->sounddata->nr_frames; remaining = nr_frames; ctotal = remaining / 100; if (ctotal == 0) ctotal = 1; run_total = 0; dl = (sw_audio_t *)sample->sounddata->data; dr = dl; dr++; /* Swap channels */ while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { n = MIN (remaining, 4096); for (i = 0; i < n; i++) { t = *dl; *dl = *dr; *dr = t; dl = ++dr; dr++; } remaining -= n; run_total += n; percent = run_total / ctotal; sample_set_progress_percent (sample, percent); } g_mutex_unlock (sample->ops_mutex); } } static void do_stereo_swap_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; do_stereo_swap (sample, NULL); if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { register_operation (sample, inst); } } static sw_operation stereo_swap_op = { SWEEP_EDIT_MODE_ALLOC, (SweepCallback)do_stereo_swap_thread, (SweepFunction)NULL, (SweepCallback)do_stereo_swap, (SweepFunction)NULL, (SweepCallback)do_stereo_swap, (SweepFunction)NULL }; void stereo_swap_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; if (sample->sounddata->format->channels == 2) schedule_operation (sample, _("Swap channels"), &stereo_swap_op, NULL); else sample_set_tmp_message (sample, _("Not stereo")); } /* Add / Remove channels */ static void do_change_channels_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; int new_channels = GPOINTER_TO_INT(inst->do_data); int min_channels; sw_format * old_format = sample->sounddata->format; sw_sounddata * old_sounddata, * new_sounddata; sw_framecount_t nr_frames; sw_audio_t * old_d, * new_d; sw_framecount_t remaining, n, run_total, ctotal; int i, j; int percent; gboolean active = TRUE; old_sounddata = sample->sounddata; nr_frames = old_sounddata->nr_frames; new_sounddata = sounddata_new_empty (new_channels, old_format->rate, nr_frames); min_channels = MIN (old_format->channels, new_channels); remaining = nr_frames; ctotal = remaining / 100; if (ctotal == 0) ctotal = 1; run_total = 0; old_d = (sw_audio_t *)old_sounddata->data; new_d = (sw_audio_t *)new_sounddata->data; /* Create selections */ g_mutex_lock (sample->ops_mutex); new_sounddata->sels = sels_copy (old_sounddata->sels); g_mutex_unlock (sample->ops_mutex); /* Mix down */ while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { n = MIN (remaining, 4096); for (i = 0; i < n; i++) { for (j = 0; j < min_channels; j++) { new_d[j] = old_d[j]; } old_d += old_format->channels; new_d += new_channels; } remaining -= n; run_total += n; percent = run_total / ctotal; sample_set_progress_percent (sample, percent); } g_mutex_unlock (sample->ops_mutex); } if (remaining > 0) { /* cancelled or failed */ sounddata_destroy (new_sounddata); } else if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { sample->sounddata = new_sounddata; inst->redo_data = inst->undo_data = sounddata_replace_data_new (sample, old_sounddata, new_sounddata); register_operation (sample, inst); } } static sw_operation change_channels_op = { SWEEP_EDIT_MODE_ALLOC, (SweepCallback)do_change_channels_thread, (SweepFunction)NULL, (SweepCallback)undo_by_sounddata_replace, (SweepFunction)sounddata_replace_data_destroy, (SweepCallback)redo_by_sounddata_replace, (SweepFunction)sounddata_replace_data_destroy }; void change_channels (sw_sample * sample, int new_channels) { #undef BUF_LEN #define BUF_LEN 128 char buf[BUF_LEN]; g_snprintf (buf, BUF_LEN, _("Convert from %d to %d channels"), sample->sounddata->format->channels, new_channels); schedule_operation (sample, buf, &change_channels_op, GINT_TO_POINTER(new_channels)); } static void channels_dialog_ok_cb (GtkWidget * widget, gpointer data) { sw_sample * sample = (sw_sample *)data; GtkWidget * dialog; GtkWidget * chooser; int new_channels; dialog = gtk_widget_get_toplevel (widget); chooser = g_object_get_data (G_OBJECT(dialog), "default"); new_channels = channelcount_chooser_get_count (chooser); gtk_widget_destroy (dialog); change_channels (sample, new_channels); } static void channels_dialog_cancel_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; dialog = gtk_widget_get_toplevel (widget); gtk_widget_destroy (dialog); } void channels_dialog_new_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; GtkWidget * dialog; GtkWidget * main_vbox; GtkWidget * label; GtkWidget * chooser; GtkWidget * button, * ok_button; gchar * current; dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW(dialog), _("Sweep: Add/Remove channels")); gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE); gtk_container_set_border_width (GTK_CONTAINER(dialog), 8); main_vbox = GTK_DIALOG(dialog)->vbox; current = g_strdup_printf (_("Currently: %d channels"), sample->sounddata->format->channels); label = gtk_label_new (current); gtk_box_pack_start (GTK_BOX(main_vbox), label, TRUE, TRUE, 8); gtk_widget_show (label); chooser = channelcount_chooser_new (_("Output channels")); gtk_box_pack_start (GTK_BOX(main_vbox), chooser, TRUE, TRUE, 0); channelcount_chooser_set_count (chooser, sample->sounddata->format->channels); gtk_widget_show (chooser); g_object_set_data (G_OBJECT(dialog), "default", chooser); /* OK */ ok_button = gtk_button_new_with_label (_("OK")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (ok_button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), ok_button, TRUE, TRUE, 0); gtk_widget_show (ok_button); g_signal_connect (G_OBJECT(ok_button), "clicked", G_CALLBACK (channels_dialog_ok_cb), sample); /* Cancel */ button = gtk_button_new_with_label (_("Cancel")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (channels_dialog_cancel_cb), NULL); gtk_widget_grab_default (ok_button); gtk_widget_show (dialog); } sweep-0.9.3/src/param.c0000644000175000017500000005340410777660266013446 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include "sweep_app.h" #include "interface.h" #include "../pixmaps/ladlogo.xpm" extern GtkStyle * style_bw; static gint param_cmp (sw_param_type type, sw_param p1, sw_param p2) { switch (type) { case SWEEP_TYPE_BOOL: if (p1.b == p2.b) return 0; if (p2.b) return -1; if (p1.b) return 1; break; case SWEEP_TYPE_INT: if (p1.i == p2.i) return 0; if (p1.i < p2.i) return -1; if (p1.i > p2.i) return 1; break; case SWEEP_TYPE_FLOAT: if (p1.f == p2.f) return 0; if (p1.f < p2.f) return -1; if (p1.f > p2.f) return 1; break; case SWEEP_TYPE_STRING: return strcmp (p1.s, p2.s); break; default: return -1; break; } return -1; } /* * param_copy (p1, p2) * * src: p1 * dest: p2 */ static void param_copy (sw_param * p1, sw_param * p2) { if (p1 == p2) return; memcpy (p2, p1, sizeof (sw_param)); } sw_param * sw_param_set_new (sw_procedure * proc) { sw_param * p; p = g_malloc0 (sizeof(sw_param) * proc->nr_params); return p; } static void print_type (sw_param_type type) { switch (type) { case SWEEP_TYPE_BOOL: printf ("SWEEP_TYPE_BOOL"); break; case SWEEP_TYPE_INT: printf ("SWEEP_TYPE_INT"); break; case SWEEP_TYPE_FLOAT: printf ("SWEEP_TYPE_FLOAT"); break; case SWEEP_TYPE_STRING: printf ("SWEEP_TYPE_STRING"); break; default: break; } } static void snprint_param (gchar * s, gint n, sw_param_type type, sw_param p) { switch (type) { case SWEEP_TYPE_BOOL: if (p.b) snprintf (s, n, _("TRUE")); else snprintf (s, n, _("FALSE")); break; case SWEEP_TYPE_INT: snprintf (s, n, "%d", p.i); break; case SWEEP_TYPE_FLOAT: snprintf (s, n, "%f", p.f); break; case SWEEP_TYPE_STRING: snprintf (s, n, "%s", _(p.s)); break; default: break; } } static void print_param (sw_param_type type, sw_param p) { #define BUF_LEN 64 gchar buf[BUF_LEN]; snprint_param (buf, BUF_LEN, type, p); printf ("%s", buf); #undef BUF_LEN } void print_param_set (sw_procedure * proc, sw_param_set pset) { int i, j; sw_param_spec * ps; int valid_mask; printf ("\"%s\" has %d params.\n\n", proc->name, proc->nr_params); for (i=0; i < proc->nr_params; i++) { ps = &proc->param_specs[i]; printf ("%d\t\"%s\" (\"%s\")\n", i, ps->name, ps->desc); printf ("\tType: "); print_type (ps->type); printf ("\n"); if (ps->constraint_type == SW_PARAM_CONSTRAINED_NOT) { printf ("\tUnconstrained.\n"); } else if (ps->constraint_type == SW_PARAM_CONSTRAINED_LIST) { printf ("\tConstrained to "); print_param (SWEEP_TYPE_INT, ps->constraint.list[0]); printf (" list values."); for (j=1; j <= ps->constraint.list[0].i; j++) { printf ("\n\t"); print_param (ps->type, ps->constraint.list[j]); } printf ("\n"); } else if (ps->constraint_type == SW_PARAM_CONSTRAINED_RANGE) { valid_mask = ps->constraint.range->valid_mask; if (valid_mask & SW_RANGE_LOWER_BOUND_VALID) { printf ("\tBounded below by "); print_param (ps->type, ps->constraint.range->lower); printf ("\n"); } if (valid_mask & SW_RANGE_UPPER_BOUND_VALID) { printf ("\tBounded above by "); print_param (ps->type, ps->constraint.range->upper); printf ("\n"); } if (valid_mask & SW_RANGE_STEP_VALID) { printf ("\tValues quantised by "); print_param (ps->type, ps->constraint.range->step); printf ("\n"); } } printf ("\tCURRENT VALUE "); print_param (ps->type, pset[i]); printf ("\n"); } } typedef enum { SW_PS_TOGGLE_BUTTON, SW_PS_KNOWN_PARAM, SW_PS_ADJUSTMENT } sw_ps_widget_t; typedef struct _sw_ps_widget sw_ps_widget; typedef struct _sw_ps_adjuster sw_ps_adjuster; struct _sw_ps_widget { sw_ps_widget_t type; union { GtkWidget * toggle_button; sw_param * known_param; GtkObject * adjustment; } w; }; struct _sw_ps_adjuster { sw_procedure * proc; sw_view * view; sw_param_set pset; GtkWidget * window; GtkWidget * scrolled; GtkWidget * table; sw_ps_widget * widgets; GList * plsk_list; }; static sw_ps_adjuster * ps_adjuster_new (sw_procedure * proc, sw_view * view, sw_param_set pset, GtkWidget * window) { sw_ps_adjuster * ps; ps = g_malloc (sizeof (*ps)); ps->proc = proc; ps->view = view; ps->pset = pset; ps->window = window; ps->scrolled = NULL; ps->table = NULL; ps->widgets = g_malloc (sizeof (sw_ps_widget) * proc->nr_params); ps->plsk_list = NULL; return ps; } static void ps_adjuster_destroy (sw_ps_adjuster * ps) { #if 0 /* XXX */ GList * gl; g_free (ps->pset); for (gl = ps->plsk_list; gl; gl = gl->next) { g_free (gl->data); } #endif } static void get_param_values (sw_procedure * proc, sw_param_set pset, sw_ps_widget * widgets) { gint i; sw_param_spec * pspec; gfloat value; for (i=0; i < proc->nr_params; i++) { pspec = &proc->param_specs[i]; switch (widgets[i].type) { case SW_PS_TOGGLE_BUTTON: /* Assume boolean */ pset[i].b = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widgets[i].w.toggle_button)); break; case SW_PS_KNOWN_PARAM: param_copy (widgets[i].w.known_param, &pset[i]); break; case SW_PS_ADJUSTMENT: value = GTK_ADJUSTMENT(widgets[i].w.adjustment)->value; switch (pspec->type) { case SWEEP_TYPE_BOOL: pset[i].b = (value == 0.0); break; case SWEEP_TYPE_INT: pset[i].i = (sw_int)(value); break; case SWEEP_TYPE_FLOAT: pset[i].f = (sw_float)(value); break; default: g_assert_not_reached (); /* pset[i].i = 0; */ break; } break; default: break; } } } /* * Callback for OK button of param_set_adjuster */ static void param_set_apply_cb (GtkWidget * widget, gpointer data) { sw_ps_adjuster * ps = (sw_ps_adjuster *)data; get_param_values (ps->proc, ps->pset, ps->widgets); #ifdef DEBUG print_param_set (ps->proc, ps->pset); #endif if (ps->proc->apply) { ps->proc->apply (ps->view->sample, ps->pset, ps->proc->custom_data); } gtk_widget_destroy (ps->window); ps_adjuster_destroy (ps); } /* * Callback for Cancel button of param_set_adjuster */ static void param_set_cancel_cb (GtkWidget * widget, gpointer data) { sw_ps_adjuster * ps = (sw_ps_adjuster *)data; gtk_widget_destroy (ps->window); ps_adjuster_destroy (ps); } typedef struct _sw_pl_set_known sw_pl_set_known; struct _sw_pl_set_known { sw_param ** p1; sw_param * p2; }; /* * Callback for setting known parameters from lists */ static void param_list_set_known_cb (GtkWidget * widget, gpointer data) { sw_pl_set_known * plsk = (sw_pl_set_known *)data; *(plsk->p1) = plsk->p2; } static GtkWidget * create_param_set_table (sw_ps_adjuster * ps) { gint i, j; sw_procedure * proc = ps->proc; sw_param_set pset = ps->pset; sw_param_spec * pspec; sw_pl_set_known * plsk; gint nr_options; int valid=0; #define BUF_LEN 64 gchar buf[BUF_LEN]; GtkWidget * table; GtkWidget * hbox; GtkWidget * label; GtkWidget * optionmenu; GtkWidget * menu; GtkWidget * menuitem; GtkWidget * checkbutton; GtkWidget * num_widget; /* numeric input widget: hscale or spinbutton */ GtkObject * adj; gfloat value, lower, upper, step_inc, page_inc, page_size; gint digits = 1; /* nr. of decimal places to show on hscale */ table = gtk_table_new (proc->nr_params, 2, FALSE); for (i=0; i < proc->nr_params; i++) { pspec = &proc->param_specs[i]; if (pspec->type == SWEEP_TYPE_BOOL) { checkbutton = gtk_check_button_new_with_label (_(pspec->name)); gtk_table_attach (GTK_TABLE (table), checkbutton, 0, 2, i, i+1, GTK_FILL, GTK_FILL, 0, 0); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbutton), pset[i].b); gtk_widget_show (checkbutton); ps->widgets[i].type = SW_PS_TOGGLE_BUTTON; ps->widgets[i].w.toggle_button = checkbutton; /* YYY: yes, the naming seems inconsistent. GtkToggleButton is * the parent class of GtkCheckButton */ } else { hbox = gtk_hbox_new (FALSE, 0); gtk_table_attach (GTK_TABLE (table), hbox, 0, 1, i, i+1, GTK_FILL|GTK_SHRINK, GTK_SHRINK, 4, 4); gtk_widget_show (hbox); label = gtk_label_new (_(pspec->name)); gtk_box_pack_end (GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); if (pspec->constraint_type == SW_PARAM_CONSTRAINED_LIST) { optionmenu = gtk_option_menu_new (); gtk_table_attach (GTK_TABLE (table), optionmenu, 1, 2, i, i+1, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (optionmenu); menu = gtk_menu_new (); ps->widgets[i].w.known_param = &pset[i]; nr_options = pspec->constraint.list[0].i; plsk = g_malloc (sizeof (sw_pl_set_known) * nr_options); ps->plsk_list = g_list_append (ps->plsk_list, plsk); for (j=0; j < nr_options; j++) { plsk[j].p1 = &ps->widgets[i].w.known_param; plsk[j].p2 = &pspec->constraint.list[j+1]; snprint_param (buf, BUF_LEN, pspec->type, pspec->constraint.list[j+1]); menuitem = gtk_menu_item_new_with_label (buf); gtk_menu_append (GTK_MENU(menu), menuitem); gtk_widget_show (menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(param_list_set_known_cb), &plsk[j]); if (!param_cmp (pspec->type, pspec->constraint.list[j+1], pset[i])) { gtk_option_menu_set_history (GTK_OPTION_MENU(optionmenu), j); ps->widgets[i].w.known_param = &pspec->constraint.list[j+1]; } } gtk_option_menu_set_menu (GTK_OPTION_MENU(optionmenu), menu); ps->widgets[i].type = SW_PS_KNOWN_PARAM; #define ADJUSTER_NUMERIC(T, DIGITS) \ \ value = (gfloat) pset[i].T; \ \ if (pspec->constraint_type == SW_PARAM_CONSTRAINED_NOT) { \ valid = 0; \ } else if (pspec->constraint_type == SW_PARAM_CONSTRAINED_RANGE) { \ valid = pspec->constraint.range->valid_mask; \ } \ \ if (valid & SW_RANGE_LOWER_BOUND_VALID) { \ lower = (gfloat) pspec->constraint.range->lower.T; \ } else { \ lower = G_MINFLOAT; \ } \ \ if (valid & SW_RANGE_UPPER_BOUND_VALID) { \ upper = (gfloat) pspec->constraint.range->upper.T; \ } else { \ upper = G_MAXFLOAT; \ } \ \ if (valid & SW_RANGE_STEP_VALID) { \ step_inc = (gfloat) pspec->constraint.range->step.T; \ } else if (lower != G_MINFLOAT && upper != G_MAXFLOAT) { \ step_inc = (upper - lower) / 100.0; \ } else { \ step_inc = (gfloat) 0.01; \ } \ page_inc = step_inc; \ page_size = step_inc; \ if (step_inc < 1.0) \ digits = - (gint)ceil(log10((double)step_inc)); \ else \ digits = 1; \ \ adj = gtk_adjustment_new (value, lower, upper, step_inc, \ page_inc, page_size); \ \ if ( (valid & SW_RANGE_LOWER_BOUND_VALID) && \ (valid & SW_RANGE_UPPER_BOUND_VALID)) { \ GTK_ADJUSTMENT(adj)->upper += step_inc; \ num_widget = gtk_hscale_new (GTK_ADJUSTMENT(adj)); \ gtk_scale_set_digits (GTK_SCALE(num_widget), digits); \ gtk_widget_set_size_request (num_widget, 75, -1); \ gtk_table_attach (GTK_TABLE (table), num_widget, 1, 2, i, i+1, \ GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); \ } else { \ num_widget = gtk_spin_button_new (GTK_ADJUSTMENT(adj), \ 10.0, /* climb_rate */ \ (DIGITS)/* digits */ \ ); \ gtk_spin_button_set_numeric (GTK_SPIN_BUTTON(num_widget), TRUE); \ gtk_spin_button_set_snap_to_ticks (GTK_SPIN_BUTTON(num_widget), \ TRUE); \ gtk_widget_set_size_request (num_widget, 75, -1); \ gtk_table_attach (GTK_TABLE (table), num_widget, 1, 2, i, i+1, \ GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); \ } \ \ gtk_widget_show (num_widget); \ ps->widgets[i].type = SW_PS_ADJUSTMENT; \ ps->widgets[i].w.adjustment = adj; } else if (pspec->type == SWEEP_TYPE_INT) { ADJUSTER_NUMERIC(i, 0); } else if (pspec->type == SWEEP_TYPE_FLOAT) { ADJUSTER_NUMERIC(f, 3); } } } return table; #undef BUF_LEN } /* * Callback for Suggest button of param_set_adjuster */ static void param_set_suggest_cb (GtkWidget * widget, gpointer data) { sw_ps_adjuster * ps = (sw_ps_adjuster *)data; GtkWidget * table; if (ps->proc->suggest) { ps->proc->suggest (ps->view->sample, ps->pset, ps->proc->custom_data); } gtk_widget_destroy (ps->table); table = create_param_set_table (ps); gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (ps->scrolled), table); gtk_widget_show (table); ps->table = table; } gint create_param_set_adjuster (sw_procedure * proc, sw_view * view, sw_param_set pset) { sw_ps_adjuster * ps; GtkWidget * window; GtkWidget * main_vbox; GtkWidget * pixmap; GtkWidget * label; GtkWidget * scrolled; GtkWidget * ebox; GtkWidget * hbox; GtkWidget * vbox; GtkWidget * table; GtkWidget * frame; GtkWidget * button, * ok_button; /* Place the meta info about the plugin in a text widget (white background) * aligned to the left of the parameter settings by defining _USE_TEXT */ /*#define _USE_TEXT*/ #ifdef _USE_TEXT GtkWidget * text; #define BUF_LEN 1024 gchar buf[BUF_LEN]; gint n; #endif /* _USE_TEXT */ window = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW(window), _(proc->name)); /* gtk_container_border_width (GTK_CONTAINER (window), 8);*/ ps = ps_adjuster_new (proc, view, pset, window); g_signal_connect (G_OBJECT(window), "destroy", G_CALLBACK(param_set_cancel_cb), ps); #ifdef _USE_TEXT hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(window)->vbox), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); text = gtk_text_new (NULL, NULL); gtk_text_set_editable (GTK_TEXT (text), FALSE); gtk_text_set_word_wrap (GTK_TEXT (text), FALSE); gtk_widget_set_size_request (text, 320, -1); gtk_box_pack_start (GTK_BOX (hbox), text, FALSE, FALSE, 0); gtk_widget_show (text); main_vbox = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (hbox), main_vbox, TRUE, TRUE, 0); gtk_widget_show (main_vbox); vbox = main_vbox; gtk_text_freeze (GTK_TEXT (text)); #else main_vbox = GTK_DIALOG(window)->vbox; ebox = gtk_event_box_new (); gtk_box_pack_start (GTK_BOX(main_vbox), ebox, FALSE, FALSE, 0); gtk_widget_set_style (ebox, style_bw); gtk_widget_show (ebox); hbox = gtk_hbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(ebox), hbox); gtk_container_set_border_width (GTK_CONTAINER(hbox), 4); gtk_widget_show (hbox); pixmap = create_widget_from_xpm (window, ladlogo_xpm); gtk_box_pack_start (GTK_BOX(hbox), pixmap, FALSE, FALSE, 0); gtk_widget_show (pixmap); vbox = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(hbox), vbox, TRUE, TRUE, 0); gtk_widget_show (vbox); #endif if (proc->name != NULL) { #ifdef _USE_TEXT /* * font = * gdk_font_load("-Adobe-Helvetica-Medium-R-Normal--*-140-*-*-*-*-*-*"); * * n = snprintf (buf, BUF_LEN, "%s\n\n", _(proc->name)); * gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buf, n); */ #else /* pangoise? * * style = gtk_style_new (); * gdk_font_unref (style->font); * style->font = * gdk_font_load("-adobe-helvetica-medium-r-normal-*-*-180-*-*-*-*-*-*"); * gtk_widget_push_style (style); */ label = gtk_label_new (_(proc->name)); gtk_misc_set_padding (GTK_MISC (label), 10, 10); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* gtk_widget_pop_style ();*/ #endif } #ifdef _USE_TEXT n = 0; if (proc->description != NULL) { n = snprintf (buf, BUF_LEN, "%s\n\n", _(proc->description)); } if (proc->author != NULL) { n += snprintf (buf+n, BUF_LEN, "by %s", proc->author); } if (proc->copyright != NULL) { n += snprintf (buf+n, BUF_LEN, ", %s.\n", proc->copyright); } if (proc->url != NULL) { n += snprintf (buf+n, BUF_LEN, "\nFor more information see\n%s\n", proc->url); } if (n > 0) { gtk_text_insert (GTK_TEXT (text), NULL, NULL, NULL, buf, n); } gtk_text_thaw (GTK_TEXT (text)); #else if (proc->description != NULL) { label = gtk_label_new (_(proc->description)); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); } if (proc->author != NULL) { label = gtk_label_new (proc->author); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); } if (proc->copyright != NULL) { label = gtk_label_new (proc->copyright); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); } if (proc->url != NULL) { label = gtk_label_new (proc->url); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); } #endif hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(main_vbox), hbox, TRUE, TRUE, 8); gtk_widget_show (hbox); frame = gtk_frame_new (_("Parameters")); gtk_box_pack_start (GTK_BOX(hbox), frame, TRUE, TRUE, 8); gtk_widget_show (frame); vbox = gtk_vbox_new (FALSE, 4); gtk_container_add (GTK_CONTAINER (frame), vbox); gtk_container_set_border_width (GTK_CONTAINER(vbox), 8); gtk_widget_show (vbox); button = gtk_button_new_with_label (_("Defaults")); gtk_box_pack_start (GTK_BOX(vbox), button, FALSE, FALSE, 8); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (param_set_suggest_cb), ps); scrolled = gtk_scrolled_window_new (NULL, NULL); gtk_widget_set_size_request (scrolled, -1, 240); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); gtk_box_pack_start (GTK_BOX (vbox), scrolled, TRUE, TRUE, 8); gtk_widget_show (scrolled); table = create_param_set_table (ps); gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled), table); gtk_widget_show (table); ps->scrolled = scrolled; ps->table = table; #if 0 frame = gtk_frame_new (_("Preview")); gtk_box_pack_start (GTK_BOX(hbox), frame, TRUE, TRUE, 8); gtk_widget_show (frame); vbox = gtk_vbox_new (FALSE, 4); gtk_container_add (GTK_CONTAINER (frame), vbox); gtk_container_set_border_width (GTK_CONTAINER(vbox), 8); gtk_widget_show (vbox); #endif ok_button = gtk_button_new_with_label (_("OK")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (ok_button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(window)->action_area), ok_button, TRUE, TRUE, 0); gtk_widget_show (ok_button); g_signal_connect (G_OBJECT(ok_button), "clicked", G_CALLBACK (param_set_apply_cb), ps); button = gtk_button_new_with_label (_("Cancel")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(window)->action_area), button, TRUE, TRUE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (param_set_cancel_cb), ps); gtk_widget_grab_default (ok_button); gtk_widget_show (window); return 1; } sweep-0.9.3/src/head.h0000644000175000017500000000426110777660160013242 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __HEAD_H__ #define __HEAD_H__ #include #include "sweep_app.h" #define HEAD_LOCK(h,e) \ g_mutex_lock ((h)->head_mutex); \ (e); \ g_mutex_unlock ((h)->head_mutex); #define HEAD_SET_GOING(h,s) HEAD_LOCK((h), (h)->going = (s)) void head_controller_set_head (sw_head_controller * hctl, sw_head * head); GtkWidget * head_controller_create (sw_head * head, GtkWidget * window, sw_head_controller ** hctl_ret); sw_head * head_new (sw_sample * sample, sw_head_t head_type); void head_set_scrubbing (sw_head * h, gboolean scrubbing); void head_set_previewing (sw_head * h, gboolean previewing); void head_set_looping (sw_head * h, gboolean looping); void head_set_reverse (sw_head * h, gboolean reverse); void head_set_mute (sw_head * h, gboolean mute); void head_set_going (sw_head * h, gboolean going); void head_set_restricted (sw_head * h, gboolean restricted); void head_set_stop_offset (sw_head * h, sw_framecount_t offset); void head_set_gain (sw_head * h, gfloat gain); void head_set_rate (sw_head * h, gfloat rate); void head_set_offset (sw_head * h, sw_framecount_t offset); void head_set_monitor (sw_head * h, gboolean monitor); sw_framecount_t head_read (sw_head * head, sw_audio_t * buf, sw_framecount_t count, int driver_rate); sw_framecount_t head_write (sw_head * head, sw_audio_t * buf, sw_framecount_t count); #endif /* __HEAD_H__ */ sweep-0.9.3/src/driver_oss.c0000644000175000017500000002276510777660160014524 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "driver.h" #include "question_dialogs.h" #include "preferences.h" #include "pcmio.h" #ifdef DRIVER_OSS #include #ifdef DEVEL_CODE /*#define DEBUG*/ #endif /* #define DEBUG_OFFSET */ typedef struct _oss_play_offset oss_play_offset; struct _oss_play_offset { int framenr; sw_framecount_t offset; }; static oss_play_offset offsets[1<driver_flags = flags; handle->driver_fd = dev_dsp; oindex = 0; current_frame = 0; for (i = 0; i < (LOGFRAGS_TO_FRAGS(LOG_FRAGS_MAX)); i++) { offsets[i].framenr = 0; offsets[i].offset = -1; } frame = 0; return handle; } static void setup_dev_dsp (sw_handle * handle, sw_format * format) { int dev_dsp; /* int mask, format, stereo, frequency;*/ int stereo = 0; int bits; int i, want_channels, channels; int srate; int error; int fragsize, frag; int fmt; if (handle == NULL) { #ifdef DEBUG g_print ("handle NULL in setup()\n"); #endif return; } dev_dsp = handle->driver_fd; if (ioctl (dev_dsp, SNDCTL_DSP_STEREO, &stereo) == -1) { /* Fatal error */ perror("open_dsp_device 2 ") ; exit (1); } ; if (ioctl (dev_dsp, SNDCTL_DSP_RESET, 0)) { perror ("open_dsp_device 3 ") ; exit (1) ; } ; nfrags = LOGFRAGS_TO_FRAGS(pcmio_get_log_frags()); fragsize = 8; frag = (nfrags << 16) | fragsize; if ((error = ioctl (dev_dsp, SNDCTL_DSP_SETFRAGMENT, &frag)) != 0) { perror ("OSS: error setting fragments"); } fragsize = (frag & 0xffff); nfrags = (frag & 0x7fff000)>>16; #ifdef DEBUG g_print ("Got %d frags of size 2^%d\n", nfrags, fragsize); #endif bits = 16 ; if ((error = ioctl (dev_dsp, SOUND_PCM_WRITE_BITS, &bits)) != 0) { perror ("open_dsp_device 4 "); exit (1); } for (i=1; i <= format->channels; i *= 2) { channels = format->channels / i; want_channels = channels; if ((error = ioctl (dev_dsp, SOUND_PCM_WRITE_CHANNELS, &channels)) == -1) { perror ("open_dsp_device 5 ") ; exit (1) ; } if (channels == want_channels) break; } handle->driver_channels = channels; srate = format->rate; if ((error = ioctl (dev_dsp, SOUND_PCM_WRITE_RATE, &srate)) != 0) { perror ("open_dsp_device 6 ") ; exit (1) ; } handle->driver_rate = srate; if ((error = ioctl (dev_dsp, SNDCTL_DSP_SYNC, 0)) != 0) { perror ("open_dsp_device 7 ") ; exit (1) ; } fmt = AFMT_QUERY; if ((error = ioctl (dev_dsp, SOUND_PCM_SETFMT, &fmt)) != 0) { perror ("open_dsp_device 8") ; exit (1) ; } handle->custom_data = GINT_TO_POINTER(0); #ifdef WORDS_BIGENDIAN if (fmt == AFMT_S16_LE || fmt == AFMT_U16_LE) { handle->custom_data = GINT_TO_POINTER(1); } #else if (fmt == AFMT_S16_BE || fmt == AFMT_U16_BE) { handle->custom_data = GINT_TO_POINTER(1); } #endif #ifdef DEBUG { int caps; if (ioctl (dev_dsp, SNDCTL_DSP_GETCAPS, &caps) == -1) { sweep_perror (errno, "OSS: Unable to get device capabilities"); } /* CAP_REALTIME tells whether or not this device can give exact * DMA pointers via GETOSPACE/GETISPACE. If this is true, then * the device reports with byte accuracy. If it is false it reports * to at least the nearest fragment bound, which is still pretty * good for small fragments, so it's not much of a problem if * this capability is not present. */ g_print ("Realtime: %s\n", caps & DSP_CAP_REALTIME ? "YES" : "NO"); } #endif } #define RECORD_SCALE (SW_AUDIO_T_MAX / 32768.0) static int wait_dev_dsp (sw_handle * handle) { return 0; } static ssize_t read_dev_dsp (sw_handle * handle, sw_audio_t * buf, size_t count) { gint16 * bbuf; size_t byte_count; ssize_t bytes_read; int need_bswap; int i; byte_count = count * sizeof (gint16); bbuf = alloca (byte_count); bytes_read = read (handle->driver_fd, bbuf, byte_count); if (bytes_read == -1) { sweep_perror (errno, "Error reading from OSS audio device"); return -1; } need_bswap = GPOINTER_TO_INT(handle->custom_data); if (need_bswap) { unsigned char * ucptr = (unsigned char *)bbuf; unsigned char temp; for (i = 0; i < count; i++) { temp = ucptr[2 * i]; ucptr[2 * i] = ucptr [2 * i + 1]; ucptr[2 * i + 1] = temp; } } for (i = 0; i < count; i++) { buf[i] = (sw_audio_t)(bbuf[i] * RECORD_SCALE); } return (bytes_read / sizeof (gint16)); } #define PLAYBACK_SCALE (32768 / SW_AUDIO_T_MAX) static ssize_t write_dev_dsp (sw_handle * handle, sw_audio_t * buf, size_t count, sw_framecount_t play_offset) { gint16 * bbuf; size_t byte_count; ssize_t bytes_written; int need_bswap; int i; if (handle == NULL) { #ifdef DEBUG g_print ("handle NULL in write()\n"); #endif return -1; } current_frame += count; offsets[oindex].framenr = current_frame; offsets[oindex].offset = play_offset; oindex++; oindex %= nfrags; byte_count = count * sizeof (gint16); bbuf = alloca (byte_count); for (i = 0; i < count; i++) { bbuf[i] = (gint16)(PLAYBACK_SCALE * buf[i]); } need_bswap = GPOINTER_TO_INT(handle->custom_data); if (need_bswap) { unsigned char * ucptr = (unsigned char *)bbuf; unsigned char temp; for (i = 0; i < count; i++) { temp = ucptr[2 * i]; ucptr[2 * i] = ucptr [2 * i + 1]; ucptr[2 * i + 1] = temp; } } bytes_written = write (handle->driver_fd, bbuf, byte_count); if (bytes_written == -1) { sweep_perror (errno, "Error writing to OSS audio device"); return -1; } else { return (bytes_written / sizeof(gint16)); } } static sw_framecount_t offset_dev_dsp (sw_handle * handle) { count_info info; int i, o; if (handle == NULL) { #ifdef DEBUG g_print ("handle NULL in offset()\n"); #endif return -1; } if (ioctl (handle->driver_fd, SNDCTL_DSP_GETOPTR, &info) == -1) { #ifdef DEBUG_OFFSET g_print ("error in GETOPTR\n"); #endif return -1; } frame = info.bytes; #ifdef DEBUG_OFFSET g_print ("frame: %d\n", frame); #endif o = oindex+1; for (i = 0; i < nfrags; i++) { o %= nfrags; #ifdef DEBUG_OFFSET g_print ("\t(%d) Checking %d: %d\n", frame, o, offsets[o].framenr); #endif if (offsets[o].framenr >= frame) { return offsets[o].offset; } o++; } return -1; } static void reset_dev_dsp (sw_handle * handle) { if (handle == NULL) { #ifdef DEBUG g_print ("handle NULL in reset()\n"); #endif return; } if(ioctl (handle->driver_fd, SNDCTL_DSP_RESET, 0) == -1) { sweep_perror (errno, "Error resetting OSS audio device"); } } static void flush_dev_dsp (sw_handle * handle) { } void drain_dev_dsp (sw_handle * handle) { if (handle == NULL) { g_print ("handle NULL in drain ()\n"); return; } if(ioctl (handle->driver_fd, SNDCTL_DSP_POST, 0) == -1) { sweep_perror (errno, "POST error on OSS audio device"); } if (ioctl (handle->driver_fd, SNDCTL_DSP_SYNC, 0) == -1) { sweep_perror (errno, "SYNC error on OSS audio device"); } } static void close_dev_dsp (sw_handle * handle) { close (handle->driver_fd); } static sw_driver _driver_oss = { oss_get_names, open_dev_dsp, setup_dev_dsp, wait_dev_dsp, read_dev_dsp, write_dev_dsp, offset_dev_dsp, reset_dev_dsp, flush_dev_dsp, drain_dev_dsp, close_dev_dsp, "oss_primary_device", "oss_monitor_device", "oss_log_frags" }; #else static sw_driver _driver_oss = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, }; #endif sw_driver * driver_oss = &_driver_oss; sweep-0.9.3/src/pixmaps.h0000644000175000017500000000766210777660160014032 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #if 0 static char *rect_xpm [] = { "22 22 61 1", " c None", ". c #000000", "+ c #FFFFFF", "@ c #DADADA", "# c #D8D8D9", "$ c #D4D5D7", "% c #D1D2D5", "& c #CECED3", "* c #CBCBD1", "= c #C8C8CF", "- c #C4C5CD", "; c #D9D9DA", "> c #D6D6D8", ", c #D3D3D6", "' c #CFD0D4", ") c #CCCDD2", "! c #C9CAD0", "~ c #C6C6CE", "{ c #C3C3CC", "] c #D7D7D9", "^ c #D4D4D7", "/ c #D1D1D5", "( c #CACBD1", "_ c #C7C8CF", ": c #C1C2CB", "< c #D6D6D6", "[ c #232323", "} c #D9D9D9", "| c #D5D6D7", "1 c #D2D2D6", "2 c #CFCFD4", "3 c #CCCCD2", "4 c #C8C9D0", "5 c #C5C6CE", "6 c #C2C3CC", "7 c #BFC0CA", "8 c #D7D7D8", "9 c #D4D4D6", "0 c #D0D1D4", "a c #CDCED2", "b c #CACAD1", "c c #C7C7CF", "d c #C3C4CD", "e c #C0C1CB", "f c #BDBEC9", "g c #0F0F0F", "h c #D5D5D7", "i c #D2D2D5", "j c #CFCFD3", "k c #CBCCD1", "l c #C8C9CF", "m c #C5C6CD", "n c #C2C2CC", "o c #BEBFCA", "p c #BDBEC8", "q c #D0D0D4", "r c #CDCDD2", "s c #C6C7CE", "t c #C3C4CC", "u c #C0C1CA", "v c #BEBFC9", " ", " ", " ", " ", " ..++..++..++. ", " +@@@@#$%&*=-.. ", " +@@@;>,')!~{+.. ", " .@@@]^/&(_-:<.. ", " .@@}|1234567... ", " +@@890abcdef... ", " +@#hijklmnop+.. ", " .@>,qr!stupp+.. ", " .#$%&*=-:vpp... ", " +>,')!~{7ppp... ", " +..++..++..++.. ", " ............ ", " .......... ", " ", " ", " ", " ", " "}; static char *magnify_xpm [] = { "22 22 50 1", " c None", ". c #46463E", "+ c #090908", "@ c #3C3C3B", "# c #000000", "$ c #3A3A34", "% c #9D9D8D", "& c #CFCFB9", "* c #C4C4AF", "= c #8D8D7F", "- c #61615E", "; c #45453E", "> c #9C9C8C", ", c #E2E2D0", "' c #EDEDE5", ") c #C0C0AC", "! c #B2B29F", "~ c #828274", "{ c #080807", "] c #D5D5BF", "^ c #FBFBFA", "/ c #C3C3AE", "( c #B5B5A2", "_ c #A6A695", ": c #959586", "< c #080808", "[ c #CACAB5", "} c #DDDDD0", "| c #B7B7A4", "1 c #AAAA98", "2 c #9B9B8B", "3 c #8C8C7D", "4 c #46463F", "5 c #929283", "6 c #BABAA7", "7 c #ADAD9B", "8 c #9F9F8E", "9 c #8F8F80", "0 c #6E6E62", "a c #54544C", "b c #33332E", "c c #878779", "d c #A0A090", "e c #6F6F63", "f c #111110", "g c #4A4A42", "h c #3B3B3B", "i c #323232", "j c #020202", "k c #151515", " ", " ", " ", " ", " .+@# ", " $%&*=# ", " ;>,')!~# ", " {]^/(_:+ ", " <[}|123+ ", " 4567890; ", " abcd5e### ", " fg++hi##j ", " #### ", " k### ", " #### ", " j## ", " ", " ", " ", " ", " ", " "}; #endif sweep-0.9.3/src/param.h0000644000175000017500000000206110777660160013435 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __PARAM_H__ #define __PARAM_H__ sw_param * sw_param_set_new (sw_procedure * proc); void print_param_set (sw_procedure * proc, sw_param_set pset); gint create_param_set_adjuster (sw_procedure * proc, sw_view * view, sw_param_set pset); #endif /* __PARAM_H__ */ sweep-0.9.3/src/edit.c0000644000175000017500000012331210777660160013260 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "sweep_app.h" #include "edit.h" #include "format.h" sw_edit_buffer * ebuf = NULL; void * sweep_large_alloc_data (size_t len, void * data, int prot) { void * ptr; #if HAVE_MMAP FILE * f; int fd; if ((f = tmpfile ()) == NULL) { perror ("tmpfile failed in sweep_large_alloc_data"); return NULL; } if (fwrite (data, len, 1, f) != 1) { perror ("short fwrite in sweep_large_alloc_data"); return NULL; } if (fseek (f, 0, SEEK_SET) == -1) { perror ("fseek failed in sweep_large_alloc_data"); return NULL; } if ((fd = fileno (f)) == -1) { perror ("fileno failed in sweep_large_alloc_data"); return NULL; } if ((ptr = mmap (NULL, len, prot, MAP_PRIVATE, fd, 0)) == MAP_FAILED) { perror ("mmap failed in sweep_large_alloc_data"); return NULL; } #else ptr = g_malloc (len); memcpy (ptr, data, len); #endif return ptr; } void * sweep_large_alloc_zero (size_t len, int prot) { void * ptr; #if HAVE_MMAP int fd; if ((fd = open ("/dev/zero", O_RDWR)) == -1) { perror ("open failed in sweep_large_alloc_zero"); return NULL; } if (lseek (fd, len+1, SEEK_SET) == (off_t)-1) { perror ("lseek failed in sweep_large_alloc_zero"); return NULL; } if (write (fd, "", 1) == -1) { perror ("write failed in sweep_large_alloc_zero"); return NULL; } if (lseek (fd, 0, SEEK_SET) == (off_t)-1) { perror ("lseek failed in sweep_large_alloc_zero"); return NULL; } if ((ptr = mmap (NULL, len, prot, MAP_PRIVATE, fd, 0)) == MAP_FAILED) { perror ("mmap failed in sweep_large_alloc_zero"); return NULL; } #else ptr = g_malloc0 (len); #endif return ptr; } void sweep_large_free (void * ptr, size_t len) { #if HAVE_MMAP if (munmap (ptr, len) == -1) perror ("munmap failed in sweep_large_free()"); #else g_free (ptr); #endif } static sw_edit_region * edit_region_new (sw_format * format, sw_framecount_t start, sw_framecount_t end, gpointer data) { sw_edit_region * er; sw_framecount_t len; er = g_malloc (sizeof(sw_edit_region)); er->start = start; er->end = end; len = frames_to_bytes (format, end-start); er->data = sweep_large_alloc_data (len, data, PROT_READ); return er; } static sw_edit_region * edit_region_new0 (sw_format * format, sw_framecount_t start, sw_framecount_t end, gpointer data0) { sw_framecount_t offset; int o2; offset = frames_to_bytes (format, start); o2 = (int)offset; /* XXX */ return edit_region_new (format, start, end, data0+o2); } static sw_edit_region * edit_region_copy (sw_format * format, sw_edit_region * oer) { sw_edit_region * er; er = edit_region_new (format, oer->start, oer->end, oer->data); return er; } sw_edit_buffer * edit_buffer_new (sw_format * format) { sw_edit_buffer * eb; eb = g_malloc0 (sizeof(sw_edit_buffer)); eb->format = format_copy (format); eb->regions = NULL; eb->refcount = 1; return eb; } sw_edit_buffer * edit_buffer_copy (sw_edit_buffer * oeb) { sw_edit_buffer * eb; GList * gl; sw_edit_region * oer, * er; eb = edit_buffer_new (oeb->format); for (gl = oeb->regions; gl; gl = gl->next) { oer = (sw_edit_region *)gl->data; er = edit_region_copy (oeb->format, oer); eb->regions = g_list_append (eb->regions, er); } return eb; } sw_edit_buffer * edit_buffer_ref (sw_edit_buffer * eb) { eb->refcount++; return eb; } static void edit_buffer_clear (sw_edit_buffer * eb) { GList * gl; sw_edit_region * er; size_t len; if (!eb) return; for (gl = eb->regions; gl; gl = gl->next) { er = (sw_edit_region *)gl->data; if (er) { len = frames_to_bytes (eb->format, er->end - er->start); sweep_large_free (er->data, len); } } g_list_free (eb->regions); g_free (eb->format); eb->format = NULL; eb->regions = NULL; eb->refcount = 0; } void edit_buffer_destroy (sw_edit_buffer * eb) { eb->refcount--; if (eb->refcount > 0) return; edit_buffer_clear (eb); g_free (eb); } static void ebuf_clear (void) { if (!ebuf) return; edit_buffer_destroy (ebuf); ebuf = NULL; } static sw_framecount_t edit_buffer_length (sw_edit_buffer * eb) { GList * gl; sw_edit_region * er; sw_framecount_t length = 0; for (gl = eb->regions; gl; gl = gl->next) { er = (sw_edit_region *)gl->data; length += (er->end - er->start); } return length; } static sw_framecount_t edit_buffer_width (sw_edit_buffer * eb) { GList * gl; sw_edit_region * er; sw_framecount_t start, end; if (eb == NULL) return 0; if ((gl = eb->regions) == NULL) return 0; er = (sw_edit_region *)gl->data; start = er->start; gl = g_list_last (eb->regions); er = (sw_edit_region *)gl->data; end = er->end; return (end - start); } sw_framecount_t clipboard_width (void) { return edit_buffer_width (ebuf); } static sw_edit_buffer * edit_buffer_from_sounddata_sels (sw_sounddata * sounddata, GList * sels) { sw_edit_buffer * eb; GList * gl; sw_sel * sel; sw_edit_region * er; eb = edit_buffer_new (sounddata->format); for (gl = sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; er = edit_region_new0 (eb->format, sel->sel_start, sel->sel_end, sounddata->data); #ifdef DEBUG printf("adding eb region [%ld - %ld]\n", sel->sel_start, sel->sel_end); #endif eb->regions = g_list_append (eb->regions, er); } return eb; } static sw_edit_buffer * edit_buffer_from_sounddata (sw_sounddata * sounddata) { return edit_buffer_from_sounddata_sels (sounddata, sounddata->sels); } sw_edit_buffer * edit_buffer_from_sample (sw_sample * sample) { return edit_buffer_from_sounddata (sample->sounddata); } static GList * sels_from_edit_buffer_offset (sw_edit_buffer * eb, sw_framecount_t offset) { GList * gl, * sels = NULL; sw_edit_region * er; sw_framecount_t start; gl = eb->regions; if (!gl) return NULL; er = (sw_edit_region *)gl->data; start = er->start; for (gl = eb->regions; gl; gl = gl->next) { er = (sw_edit_region *)gl->data; sels = sels_add_selection_1 (sels, er->start - start + offset, er->end - start + offset); } return sels; } static sw_sample * sample_from_edit_buffer (sw_edit_buffer * eb) { sw_sample * s; GList * gl; sw_edit_region * er; sw_framecount_t offset0 = 0, start, length; sw_framecount_t offset, len; /* Get length of new sample */ gl = eb->regions; if (!gl) return NULL; er = (sw_edit_region *)gl->data; start = er->start; for (; gl->next; gl = gl->next); er = (sw_edit_region *)gl->data; length = er->end - start; s = sample_new_empty (NULL, eb->format->channels, eb->format->rate, length); offset0 = frames_to_bytes (eb->format, start); for (gl = eb->regions; gl; gl = gl->next) { er = (sw_edit_region *)gl->data; offset = frames_to_bytes (eb->format, er->start) - offset0; len = frames_to_bytes (eb->format, er->end - er->start); memcpy ((gpointer)(s->sounddata->data + offset), er->data, len); sounddata_add_selection_1 (s->sounddata, er->start - start, er->end - start); #ifdef DEBUG printf("Adding sample region [%ld - %ld]\n", er->start, er->end); #endif } return s; } static void head_dec_if_within (sw_head * head, sw_framecount_t lower, sw_framecount_t upper, sw_framecount_t amount) { if (head == NULL) return; g_mutex_lock (head->head_mutex); if (head->stop_offset > lower && head->stop_offset < upper) head->stop_offset -= amount; if (head->offset > lower && head->offset < upper) head->offset -= amount; g_mutex_unlock (head->head_mutex); } static void head_inc_if_gt (sw_head * head, sw_framecount_t lower, sw_framecount_t amount) { if (head == NULL) return; g_mutex_lock (head->head_mutex); if (head->stop_offset > lower) head->stop_offset += amount; if (head->offset > lower) head->offset += amount; g_mutex_unlock (head->head_mutex); } static void head_set_if_within (sw_head * head, sw_framecount_t lower, sw_framecount_t upper, sw_framecount_t value) { if (head == NULL) return; g_mutex_lock (head->head_mutex); if (head->stop_offset >= lower && head->stop_offset <= upper) head->stop_offset = value; if (head->offset >= lower && head->offset <= upper) head->offset = value; g_mutex_unlock (head->head_mutex); } /* modifies sounddata */ sw_sample * splice_out_sel (sw_sample * sample) { sw_sounddata * sounddata = sample->sounddata; sw_format * f = sounddata->format; gint length; GList * gl; sw_sel * osel, * sel; /*sw_sounddata * out;*/ gpointer d; sw_framecount_t offset, len, sel_length = 0; sw_framecount_t move_length, run_length; if (!sounddata->sels) { printf ("Nothing to splice out.\n"); return sample; } length = sounddata->nr_frames - sounddata_selection_nr_frames (sounddata); run_length = 0; #ifdef DEBUG printf("Splice out: remaining length %d\n", length); #endif d = sounddata->data; /* XXX: Force splice outs to be atomic wrt. to cancellation. For * multi-region selections it would be nicer to build the redo data * incrementally, but wtf. * Each region's memmove needs to be treated as atomic anyway so the * gain isn't so much. */ g_mutex_lock (sample->ops_mutex); gl = sounddata->sels; sel = osel = (sw_sel *)gl->data; if (osel->sel_start > 0) { if (sample->user_offset >= sel->sel_start && sample->user_offset <= sel->sel_end) { sample->user_offset = sel->sel_start - sel_length;; } head_set_if_within (sample->play_head, sel->sel_start, sel->sel_end, sel->sel_start - sel_length); head_set_if_within (sample->rec_head, sel->sel_start, sel->sel_end, sel->sel_start - sel_length); sel_length = osel->sel_end - osel->sel_start; move_length = osel->sel_start; len = frames_to_bytes (f, move_length); d += len; run_length += move_length; sample_set_progress_percent (sample, run_length / (length/100)); } for (gl = gl->next; gl; gl = gl->next) { sel = (sw_sel *)gl->data; /* Move user offset */ if (sample->user_offset > osel->sel_end && sample->user_offset < sel->sel_start) { sample->user_offset -= sel_length; } if (sample->user_offset >= sel->sel_start && sample->user_offset <= sel->sel_end) { sample->user_offset = sel->sel_start - sel_length;; } head_dec_if_within (sample->play_head, osel->sel_end, sel->sel_start, sel_length); head_set_if_within (sample->play_head, sel->sel_start, sel->sel_end, sel->sel_start - sel_length); head_dec_if_within (sample->rec_head, osel->sel_end, sel->sel_start, sel_length); head_set_if_within (sample->rec_head, sel->sel_start, sel->sel_end, sel->sel_start - sel_length); sel_length += sel->sel_end - sel->sel_start; offset = frames_to_bytes (f, osel->sel_end); move_length = sel->sel_start - osel->sel_end; len = frames_to_bytes (f, move_length); g_memmove (d, (gpointer)(sounddata->data + offset), len); d += len; run_length += move_length; sample_set_progress_percent (sample, run_length / (length/100)); osel = sel; } /* Move offsets occuring after last sel */ if (sample->user_offset > sel->sel_end) { sample->user_offset -= sel_length; } head_dec_if_within (sample->play_head, sel->sel_end, FRAMECOUNT_MAX, sel_length); head_dec_if_within (sample->rec_head, sel->sel_end, FRAMECOUNT_MAX, sel_length); if (sel->sel_end != sounddata->nr_frames) { offset = frames_to_bytes (f, sel->sel_end); move_length = sounddata->nr_frames - sel->sel_end; len = frames_to_bytes (f, move_length); g_memmove (d, (gpointer)(sounddata->data + offset), len); run_length += move_length; sample_set_progress_percent (sample, run_length / (length/100)); } d = g_realloc (sounddata->data, frames_to_bytes(f, length)); sounddata->data = d; sounddata->nr_frames = length; sounddata_clear_selection (sounddata); sample_set_progress_percent (sample, 100); g_mutex_unlock (sample->ops_mutex); return sample; } static void sounddata_set_sel_from_eb (sw_sounddata * sounddata, sw_edit_buffer * eb) { GList * gl; sw_edit_region * er; if (sounddata->sels) sounddata_clear_selection (sounddata); if (!eb) return; for (gl = eb->regions; gl; gl = gl->next) { er = (sw_edit_region *)gl->data; if (er->start > sounddata->nr_frames) break; sounddata_add_selection_1 (sounddata, er->start, MIN(er->end, sounddata->nr_frames)); } } /* returns new sounddata */ static sw_sample * splice_in_eb_data (sw_sample * sample, sw_edit_buffer * eb) { sw_sounddata * sounddata = sample->sounddata; sw_format * f = sounddata->format; gint length; GList * gl; sw_edit_region * er; sw_framecount_t prev_start = 0; sw_framecount_t er_width; gpointer di, d; sw_framecount_t len; if (!eb) { return sample; } g_mutex_lock (sample->ops_mutex); /* in reverse ... decrementing d, di; just like paste at only crunchy */ length = sounddata->nr_frames + edit_buffer_length (eb); d = g_realloc (sounddata->data, frames_to_bytes (f, length)); sounddata->data = d; /* set di to point to the end of the original data */ di = d + frames_to_bytes (f, sounddata->nr_frames); /* set d to point to end of newly realloc'd buffer */ d += frames_to_bytes (f, length); prev_start = length; gl = g_list_last (eb->regions); er = (sw_edit_region *)gl->data; if (er->start >= sounddata->nr_frames) { len = frames_to_bytes (f, er->end - er->start); d -= len; memcpy (d, er->data, len); prev_start = er->start; gl = gl->prev; } for (; gl; gl = gl->prev) { er = (sw_edit_region *)gl->data; /* Move the sample data in */ len = frames_to_bytes (f, prev_start - er->end); di -= len; d -= len; memmove (d, di, len); /* Copy edit_region data in */ len = frames_to_bytes (f, er->end - er->start); d -= len; memcpy (d, er->data, len); prev_start = er->start; } /* The head of the sounddata remains intact */ /* Move offset markers */ for (gl = eb->regions; gl; gl = gl->next) { er = (sw_edit_region *)gl->data; er_width = er->end - er->start; if (sample->user_offset > er->end) sample->user_offset += er_width; head_inc_if_gt (sample->play_head, er->end, er_width); head_inc_if_gt (sample->rec_head, er->end, er_width); } sounddata->nr_frames = length; g_mutex_unlock (sample->ops_mutex); return sample; } /* returns new sounddata */ sw_sample * splice_in_eb (sw_sample * sample, sw_edit_buffer * eb) { splice_in_eb_data (sample, eb); sounddata_set_sel_from_eb (sample->sounddata, eb); return sample; } /* modifies sounddata */ static sw_sounddata * crop_in_eb_data (sw_sounddata * sounddata, sw_edit_buffer * eb) { sw_format * f = sounddata->format; sw_framecount_t length, byte_length, o_byte_length; GList * gl; sw_edit_region * er1, * er2, * er; sw_framecount_t len1 = 0, len2 = 0; sw_framecount_t byte_len1, byte_len2; gpointer d; if (!eb) { return sounddata; } o_byte_length = frames_to_bytes (f, sounddata->nr_frames); gl = eb->regions; er1 = (sw_edit_region *)gl->data; if (er1->start == 0) { len1 = er1->end; } byte_len1 = frames_to_bytes (f, len1); gl = g_list_last (eb->regions); er2 = (sw_edit_region *)gl->data; if (er2->end > sounddata->nr_frames) { len2 = er2->end - er2->start; } byte_len2 = frames_to_bytes (f, len2); if (len1 + len2 > 0) { length = sounddata->nr_frames + len1 + len2; byte_length = frames_to_bytes (f, length); d = g_realloc (sounddata->data, byte_length); sounddata->data = d; sounddata->nr_frames = length; if (len1 > 0) { /* Move middle region in place */ memmove ((gpointer)(d + byte_len1), d, o_byte_length); /* Copy (prepend) first region */ memcpy (d, er1->data, byte_len1); } else { /* Overwrite first region in place */ gl = eb->regions; er = (sw_edit_region *)gl->data; memcpy ((gpointer)(d + frames_to_bytes (f, er->start)), er->data, frames_to_bytes (f, er->end - er->start)); } /* Overwrite with in-between regions */ gl = eb->regions; for (gl = gl->next; gl && gl->next; gl = gl->next) { er = (sw_edit_region *)gl->data; memcpy ((gpointer)(d + frames_to_bytes (f, er->start)), er->data, frames_to_bytes (f, er->end - er->start)); } if (len2 > 0) { /* Copy (append) last_region */ memcpy ((gpointer)(d + o_byte_length + byte_len1), er2->data, byte_len2); } else if (gl) { /* Overwrite last region in place */ er = (sw_edit_region *)gl->data; memcpy ((gpointer)(d + frames_to_bytes (f, er->start)), er->data, frames_to_bytes (f, er->end - er->start)); } } else { d = sounddata->data; for (gl = eb->regions; gl; gl = gl->next) { er = (sw_edit_region *)gl->data; memcpy ((gpointer)(d + frames_to_bytes (f, er->start)), er->data, frames_to_bytes (f, er->end - er->start)); } } return sounddata; } sw_sample * crop_in (sw_sample * sample, sw_edit_buffer * eb) { sw_sounddata * sounddata; GList * gl; sw_edit_region * er; sw_framecount_t delta; crop_in_eb_data (sample->sounddata, eb); sounddata = sample->sounddata; gl = eb->regions; er = (sw_edit_region *)gl->data; if (er->start == 0) { delta = er->end; g_mutex_lock (sounddata->sels_mutex); sounddata_selection_translate (sounddata, delta); g_mutex_unlock (sounddata->sels_mutex); g_mutex_lock (sample->play_mutex); sample->user_offset += delta; g_mutex_unlock (sample->play_mutex); g_mutex_lock (sample->play_head->head_mutex); sample->play_head->offset += delta; sample->play_head->stop_offset += delta; g_mutex_unlock (sample->play_head->head_mutex); if (sample->rec_head) { g_mutex_lock (sample->rec_head->head_mutex); sample->rec_head->offset += delta; sample->rec_head->stop_offset += delta; g_mutex_unlock (sample->rec_head->head_mutex); } } return sample; } /* Modifies sounddata */ static void edit_clear_sel (sw_sample * sample) { sw_sounddata * sounddata = sample->sounddata; sw_format * f = sounddata->format; GList * gl; sw_sel * sel; sw_framecount_t offset, len; sw_framecount_t sel_total, run_total; gboolean active = TRUE; sel_total = sounddata_selection_nr_frames (sounddata) / 100; if (sel_total == 0) sel_total = 1; run_total = 0; for (gl = sounddata->sels; active && gl; gl = gl->next) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { sel = (sw_sel *)gl->data; offset = frames_to_bytes (f, sel->sel_start); len = frames_to_bytes (f, sel->sel_end - sel->sel_start); memset ((gpointer)(sounddata->data + offset), 0, (size_t)len); run_total += sel->sel_end - sel->sel_start; sample_set_progress_percent (sample, run_total / sel_total); } g_mutex_unlock (sample->ops_mutex); } } /* modifies sounddata */ sw_sample * crop_out (sw_sample * sample) { sw_sounddata * sounddata = sample->sounddata; sw_format * f = sounddata->format; sw_framecount_t length; GList * gl; sw_sel * sel1, * sel2, * osel, * sel; /*sw_sounddata * out;*/ gpointer d; sw_framecount_t offset, len; sw_framecount_t byte_length; if (!sounddata->sels) { return sample; } #ifdef DEBUG printf("Splice out: remaining length %d\n", length); #endif /* XXX: Force crops to be atomic wrt. to cancellation. For * multi-region selections it would be nicer to build the redo data * incrementally, but wtf. * Each region's memmove needs to be treated as atomic anyway so the * gain isn't so much. */ g_mutex_lock (sample->ops_mutex); gl = sounddata->sels; sel1 = (sw_sel *)gl->data; gl = g_list_last (sounddata->sels); sel2 = (sw_sel *)gl->data; if (sel1->sel_start <= 0 && sel2->sel_end >= sounddata->nr_frames) { d = sounddata->data; goto zero_out; } sample_set_progress_percent (sample, 13); /* ok, we have something to crop */ length = sounddata_selection_width (sounddata); byte_length = frames_to_bytes (f, length); d = sounddata->data; if (sel1->sel_start > 0) { /* Need to move */ offset = frames_to_bytes (f, sel1->sel_start); g_memmove (d, (gpointer)(d + offset), byte_length); } sample_set_progress_percent (sample, 37); /* Need to shorten */ d = g_realloc (sounddata->data, byte_length); sounddata->data = d; sounddata->nr_frames = length; /* Fix offsets */ sample->user_offset -= sel1->sel_start; sample->user_offset = CLAMP(sample->user_offset, 0, length); g_mutex_lock (sample->play_head->head_mutex); sample->play_head->offset -= sel1->sel_start; sample->play_head->offset = CLAMP(sample->play_head->offset, 0, length); sample->play_head->stop_offset -= sel1->sel_start; sample->play_head->stop_offset = CLAMP(sample->play_head->stop_offset, 0, length); g_mutex_unlock (sample->play_head->head_mutex); if (sample->rec_head) { g_mutex_lock (sample->rec_head->head_mutex); sample->rec_head->offset -= sel1->sel_start; sample->rec_head->offset = CLAMP(sample->rec_head->offset, 0, length); sample->rec_head->stop_offset -= sel1->sel_start; sample->rec_head->stop_offset = CLAMP(sample->rec_head->stop_offset, 0, length); g_mutex_unlock (sample->rec_head->head_mutex); } /* Fix selection */ sounddata_selection_translate (sounddata, -(sel1->sel_start)); zero_out: /* Zero out data between selections */ gl = sounddata->sels; osel = (sw_sel *)gl->data; for (gl = gl->next; gl; gl = gl->next) { sel = (sw_sel *)gl->data; offset = frames_to_bytes (f, osel->sel_end); len = frames_to_bytes (f, sel->sel_start) - offset; memset ((gpointer)(d + offset), 0, len); osel = sel; } sample_set_progress_percent (sample, 100); g_mutex_unlock (sample->ops_mutex); return sample; } /* modifies sounddata */ static sw_sample * paste_insert (sw_sample * sample, sw_edit_buffer * eb, sw_framecount_t paste_offset) { sw_sounddata * sounddata = sample->sounddata; sw_format * f = sounddata->format; sw_framecount_t paste_delta = 0, len; sw_framecount_t length, paste_length, sel_length = 0; GList * gl; sw_edit_region * er; gpointer d; paste_delta = frames_to_bytes (f, paste_offset); paste_length = edit_buffer_length (eb); length = MAX(sounddata->nr_frames, paste_offset) + paste_length; d = g_realloc (sounddata->data, frames_to_bytes (f, length)); sounddata->data = d; d = (gpointer)(sounddata->data + frames_to_bytes(f, length)); /* Copy in the tail end of the sounddata */ if (paste_offset < sounddata->nr_frames) { len = frames_to_bytes (f, sounddata->nr_frames) - paste_delta; d -= len; memmove (d, (gpointer)(sounddata->data + paste_delta), len); } /* Copy in the contents of the edit buffer */ for (gl = g_list_last(eb->regions); gl; gl = gl->prev) { er = (sw_edit_region *)gl->data; len = frames_to_bytes (f, er->end - er->start); sel_length += (er->end - er->start); d -= len; memcpy (d, er->data, len); } /* If paste point is beyond the previous sounddata length, add some silence */ if (paste_offset > sounddata->nr_frames) { len = paste_delta - frames_to_bytes (f, sounddata->nr_frames); d -= len; memset (d, 0, len); } /* The head of the sounddata remains intact */ /* Select the copied in portion of the sounddata */ sounddata_set_selection_1 (sounddata, paste_offset, paste_offset + paste_length); /* Move offset markers */ if (sample->user_offset > paste_offset) sample->user_offset += sel_length; if (sample->play_head->offset > paste_offset) sample->play_head->offset += sel_length; if (sample->play_head->stop_offset > paste_offset) sample->play_head->stop_offset += sel_length; if (sample->rec_head) { if (sample->rec_head->offset > paste_offset) sample->rec_head->offset += sel_length; if (sample->rec_head->stop_offset > paste_offset) sample->rec_head->stop_offset += sel_length; } sounddata->nr_frames = length; return sample; } /* Modifies sample */ sw_sample * paste_over (sw_sample * sample, sw_edit_buffer * eb) { sw_format * f = sample->sounddata->format; sw_framecount_t offset, len; sw_framecount_t length; GList * gl; sw_edit_region * er; if (!eb) return sample; length = sample->sounddata->nr_frames; for (gl = eb->regions; gl; gl = gl->next) { er = (sw_edit_region *)gl->data; if (er->start > length) break; offset = frames_to_bytes (f, er->start); len = frames_to_bytes (f, MIN(er->end, length) - er->start); memcpy ((gpointer)(sample->sounddata->data + offset), er->data, len); } return sample; } /* Modifies sample */ static sw_sample * paste_mix (sw_sample * sample, sw_edit_buffer * eb, sw_framecount_t paste_offset, gdouble src_gain, gdouble dest_gain) { sw_format * f = sample->sounddata->format; sw_framecount_t length, eb_delta; GList * gl; sw_edit_region * er; sw_audio_t * d, * e; sw_framecount_t offset, remaining, n, i; sw_framecount_t run_total, eb_total; gint percent; gboolean active = TRUE; #ifdef DEBUG g_print ("paste_mix: src_gain %f, dest_gain %f\n", src_gain, dest_gain); #endif if (eb == NULL || eb->regions == NULL) return sample; length = sample->sounddata->nr_frames; run_total = 0; eb_total = edit_buffer_length (eb); eb_delta = ((sw_edit_region *)eb->regions->data)->start; for (gl = eb->regions; active && gl; gl = gl->next) { er = (sw_edit_region *)gl->data; if (er->start > length) break; d = sample->sounddata->data + frames_to_bytes (f, er->start - eb_delta + paste_offset); e = er->data; offset = 0; remaining = MIN(er->end, length) - er->start; while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { n = MIN(remaining, 1024); for (i = 0; i < n * f->channels; i++) { d[i] = d[i] * dest_gain + e[i] * src_gain; } remaining -= n; offset += n; d += n * f->channels; e += n * f->channels; run_total += n; percent = run_total / (eb_total/100); sample_set_progress_percent (sample, percent); #ifdef DEBUG g_print ("completed %d / %d frames, %d%%\n", run_total, eb_total, percent); #endif } g_mutex_unlock (sample->ops_mutex); } } return sample; } /* Modifies sample */ static sw_sample * paste_xfade (sw_sample * sample, sw_edit_buffer * eb, sw_framecount_t paste_offset, gdouble src_gain_start, gdouble src_gain_end, gdouble dest_gain_start, gdouble dest_gain_end) { sw_format * f = sample->sounddata->format; sw_framecount_t length, eb_delta; GList * gl; sw_edit_region * er; sw_audio_t * d, * e; sw_framecount_t offset, remaining, n, i, j, k; sw_framecount_t run_total, eb_total; gint percent; gdouble src_gain, dest_gain; gdouble src_gain_delta, dest_gain_delta; gboolean active = TRUE; #ifdef DEBUG g_print ("paste_xfade: src: %f -> %f\tdest: %f -> %f\n", src_gain_start, src_gain_end, dest_gain_start, dest_gain_end); #endif if (eb == NULL || eb->regions == NULL) return sample; length = sample->sounddata->nr_frames; run_total = 0; eb_total = edit_buffer_length (eb); eb_delta = ((sw_edit_region *)eb->regions->data)->start; src_gain = src_gain_start; dest_gain = dest_gain_start; src_gain_delta = (src_gain_end - src_gain_start) / (gdouble)eb_total; dest_gain_delta = (dest_gain_end - dest_gain_start) / (gdouble)eb_total; for (gl = eb->regions; active && gl; gl = gl->next) { er = (sw_edit_region *)gl->data; if (er->start > length) break; d = sample->sounddata->data + frames_to_bytes (f, er->start - eb_delta + paste_offset); e = er->data; offset = 0; remaining = MIN(er->end, length) - er->start; while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { n = MIN(remaining, 1024); k = 0; for (i = 0; i < n; i++) { for (j = 0; j < f->channels; j++) { d[k] = d[k] * dest_gain + e[k] * src_gain; k++; } src_gain += src_gain_delta; dest_gain += dest_gain_delta; } remaining -= n; offset += n; d += n * f->channels; e += n * f->channels; run_total += n; percent = run_total / (eb_total/100); sample_set_progress_percent (sample, percent); #ifdef DEBUG g_print ("completed %d / %d frames, %d%%\n", run_total, eb_total, percent); #endif } g_mutex_unlock (sample->ops_mutex); } } return sample; } static void do_copy_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; if (sample == NULL || sample->sounddata == NULL || sample->sounddata->sels == NULL) goto noop; ebuf_clear (); ebuf = edit_buffer_from_sample (sample); return; noop: sample_set_tmp_message (sample, _("No selection to copy")); } /* No undo for copy -- is input only */ static sw_operation copy_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)do_copy_thread, (SweepFunction)NULL, (SweepCallback)NULL, (SweepFunction)NULL, (SweepCallback)NULL, (SweepFunction)NULL, }; void do_copy (sw_sample * sample) { schedule_operation (sample, _("Copy"), ©_op, NULL); } static void do_cut_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; sw_edit_buffer * eb; if (sample == NULL || sample->sounddata == NULL || sample->sounddata->sels == NULL) goto noop; /* inst = sw_op_instance_new ("Cut", &cut_op);*/ eb = edit_buffer_from_sample (sample); inst->redo_data = inst->undo_data = splice_data_new (eb, NULL); set_active_op (sample, inst); ebuf_clear (); /*ebuf = edit_buffer_copy (eb);*/ ebuf = edit_buffer_ref (eb); splice_out_sel (sample); if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { register_operation (sample, inst); } return; noop: sample_set_tmp_message (sample, _("No selection to cut")); } static sw_operation cut_op = { SWEEP_EDIT_MODE_ALLOC, (SweepCallback)do_cut_thread, (SweepFunction)NULL, (SweepCallback)undo_by_splice_in, (SweepFunction)splice_data_destroy, (SweepCallback)redo_by_splice_out, (SweepFunction)splice_data_destroy }; void do_cut (sw_sample * sample) { schedule_operation (sample, _("Cut"), &cut_op, NULL); } static void do_clear_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; sw_edit_buffer * old_eb; paste_over_data * p; if (sample == NULL || sample->sounddata == NULL || sample->sounddata->sels == NULL) goto noop; old_eb = edit_buffer_from_sample (sample); p = paste_over_data_new (old_eb, old_eb); inst->redo_data = inst->undo_data = p; set_active_op (sample, inst); edit_clear_sel (sample); if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { p->new_eb = edit_buffer_from_sample (sample); register_operation (sample, inst); } return; noop: sample_set_tmp_message (sample, _("No selection to clear")); } static sw_operation clear_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)do_clear_thread, (SweepFunction)NULL, (SweepCallback)undo_by_paste_over, (SweepFunction)paste_over_data_destroy, (SweepCallback)redo_by_paste_over /* redo_by_reperform */, (SweepFunction)paste_over_data_destroy }; void do_clear (sw_sample * sample) { schedule_operation (sample, _("Clear"), &clear_op, NULL); } static void do_delete_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; sw_edit_buffer * eb; if (sample == NULL || sample->sounddata == NULL || sample->sounddata->sels == NULL) goto noop; eb = edit_buffer_from_sample (sample); inst->redo_data = inst->undo_data = splice_data_new (eb, NULL); set_active_op (sample, inst); splice_out_sel (sample); if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { register_operation (sample, inst); } return; noop: sample_set_tmp_message (sample, _("No selection to delete")); } static sw_operation delete_op = { SWEEP_EDIT_MODE_ALLOC, (SweepCallback)do_delete_thread, (SweepFunction)NULL, (SweepCallback)undo_by_splice_in, (SweepFunction)splice_data_destroy, (SweepCallback)redo_by_splice_out, (SweepFunction)splice_data_destroy }; void do_delete (sw_sample * sample) { schedule_operation (sample, _("Delete"), &delete_op, NULL); } static void do_crop_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; GList * sels; sw_edit_buffer * eb; if (sample == NULL || sample->sounddata == NULL || sample->sounddata->sels == NULL) goto noop; sels = sels_copy (sample->sounddata->sels); sels = sels_invert (sels, sample->sounddata->nr_frames); if (sels == NULL) goto noop; eb = edit_buffer_from_sounddata_sels (sample->sounddata, sels); /* If there's nothing to crop out, do nothing and register nothing */ if (eb == NULL || eb->regions == NULL) goto noop; inst->redo_data = inst->undo_data = splice_data_new (eb, NULL); set_active_op (sample, inst); crop_out (sample); if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { register_operation (sample, inst); } return; noop: sample_set_tmp_message (sample, _("Nothing to crop out")); } static sw_operation crop_op = { SWEEP_EDIT_MODE_ALLOC, (SweepCallback)do_crop_thread, (SweepFunction)NULL, (SweepCallback)undo_by_crop_in, (SweepFunction)splice_data_destroy, (SweepCallback)redo_by_crop_out, (SweepFunction)splice_data_destroy }; void do_crop (sw_sample * sample) { schedule_operation (sample, _("Crop"), &crop_op, NULL); } #if 0 static sw_operation paste_in_op = { SWEEP_EDIT_MODE_ALLOC, (SweepCallback)do_paste_in, (SweepFunction)NULL, (SweepCallback)undo_by_splice_out, (SweepFunction)splice_data_destroy, (SweepCallback)redo_by_splice_in, (SweepFunction)splice_data_destroy }; /* XXX: why is this **out ?? */ sw_op_instance * do_paste_in (sw_sample * in, sw_sample ** out) { sw_op_instance * inst; sw_edit_buffer * eb; if (ebuf == NULL) return NULL; inst = sw_op_instance_new (in, "Paste in", &paste_in_op); /*eb = edit_buffer_copy (ebuf);*/ eb = edit_buffer_ref (ebuf); (*out)->sounddata = splice_in_eb (in->sounddata, ebuf); inst->redo_data = inst->undo_data = splice_data_new (eb, NULL); sample_refresh_views (*out); return inst; } #endif static void do_paste_insert_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; sw_sounddata * out; sw_edit_buffer * eb1, *eb2; if (ebuf == NULL) goto noop; if (!format_equal (ebuf->format, sample->sounddata->format)) goto incompatible; /*eb1 = edit_buffer_copy (ebuf);*/ eb1 = edit_buffer_ref (ebuf); inst->undo_data = splice_data_new (eb1, sample->sounddata->sels); inst->redo_data = NULL; set_active_op (sample, inst); paste_insert (sample, ebuf, sample->user_offset); if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { out = sample->sounddata; eb2 = edit_buffer_from_sounddata (out); inst->redo_data = splice_data_new (eb2, NULL); register_operation (sample, inst); } return; noop: sample_set_tmp_message (sample, _("Clipboard empty")); return; incompatible: sample_set_tmp_message (sample, _("Clipboard data has incompatible format")); return; } static sw_operation paste_insert_op = { SWEEP_EDIT_MODE_ALLOC, (SweepCallback)do_paste_insert_thread, (SweepFunction)NULL, (SweepCallback)undo_by_splice_out, (SweepFunction)splice_data_destroy, (SweepCallback)redo_by_splice_in, (SweepFunction)splice_data_destroy }; void do_paste_insert (sw_sample * sample) { schedule_operation (sample, _("Paste insert"), &paste_insert_op, NULL); } typedef struct { gdouble src_gain; gdouble dest_gain; } paste_mix_op_data; static void do_paste_mix_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; paste_mix_op_data * pd = (paste_mix_op_data *)inst->do_data; sw_sounddata * out; GList * old_sels, * sels; sw_edit_buffer * eb1, *eb2; gdouble src_gain, dest_gain; src_gain = pd->src_gain; dest_gain = pd->dest_gain; g_free (pd); if (ebuf == NULL) goto noop; if (!format_equal (ebuf->format, sample->sounddata->format)) goto incompatible; old_sels = sels_copy (sample->sounddata->sels); sels = sels_from_edit_buffer_offset (ebuf, sample->user_offset); sample_set_selection (sample, sels); eb1 = edit_buffer_from_sounddata (sample->sounddata); inst->undo_data = splice_data_new (eb1, old_sels); inst->redo_data = NULL; set_active_op (sample, inst); paste_mix (sample, ebuf, sample->user_offset, src_gain, dest_gain); if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { out = sample->sounddata; eb2 = edit_buffer_from_sounddata (out); inst->redo_data = splice_data_new (eb2, sels); register_operation (sample, inst); } else { sample_set_selection (sample, old_sels); } return; noop: sample_set_tmp_message (sample, _("Clipboard empty")); return; incompatible: sample_set_tmp_message (sample, _("Clipboard data has incompatible format")); return; } static sw_operation paste_mix_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)do_paste_mix_thread, (SweepFunction)NULL, (SweepCallback)undo_by_splice_over, (SweepFunction)splice_data_destroy, (SweepCallback)redo_by_splice_over, (SweepFunction)splice_data_destroy }; void do_paste_mix (sw_sample * sample, gdouble src_gain, gdouble dest_gain) { paste_mix_op_data * pd; pd = g_malloc (sizeof(paste_mix_op_data)); pd->src_gain = src_gain; pd->dest_gain = dest_gain; schedule_operation (sample, _("Paste mix"), &paste_mix_op, pd); } typedef struct { gdouble src_gain_start; gdouble src_gain_end; gdouble dest_gain_start; gdouble dest_gain_end; } paste_xfade_op_data; static void do_paste_xfade_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; paste_xfade_op_data * pd = (paste_xfade_op_data *)inst->do_data; sw_sounddata * out; GList * old_sels, * sels; sw_edit_buffer * eb1, *eb2; gdouble src_gain_start, src_gain_end, dest_gain_start, dest_gain_end; src_gain_start = pd->src_gain_start; src_gain_end = pd->src_gain_end; dest_gain_start = pd->dest_gain_start; dest_gain_end = pd->dest_gain_end; g_free (pd); if (ebuf == NULL) goto noop; if (!format_equal (ebuf->format, sample->sounddata->format)) goto incompatible; old_sels = sels_copy (sample->sounddata->sels); sels = sels_from_edit_buffer_offset (ebuf, sample->user_offset); sample_set_selection (sample, sels); eb1 = edit_buffer_from_sounddata (sample->sounddata); inst->undo_data = splice_data_new (eb1, old_sels); inst->redo_data = NULL; set_active_op (sample, inst); paste_xfade (sample, ebuf, sample->user_offset, src_gain_start, src_gain_end, dest_gain_start, dest_gain_end); if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { out = sample->sounddata; eb2 = edit_buffer_from_sounddata (out); inst->redo_data = splice_data_new (eb2, sels); register_operation (sample, inst); } else { sample_set_selection (sample, old_sels); } return; noop: sample_set_tmp_message (sample, _("Clipboard empty")); return; incompatible: sample_set_tmp_message (sample, _("Clipboard data has incompatible format")); return; } static sw_operation paste_xfade_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)do_paste_xfade_thread, (SweepFunction)NULL, (SweepCallback)undo_by_splice_over, (SweepFunction)splice_data_destroy, (SweepCallback)redo_by_splice_over, (SweepFunction)splice_data_destroy }; void do_paste_xfade (sw_sample * sample, gdouble src_gain_start, gdouble src_gain_end, gdouble dest_gain_start, gdouble dest_gain_end) { paste_xfade_op_data * pd; pd = g_malloc (sizeof(paste_xfade_op_data)); pd->src_gain_start = src_gain_start; pd->src_gain_end = src_gain_end; pd->dest_gain_start = dest_gain_start; pd->dest_gain_end = dest_gain_end; schedule_operation (sample, _("Paste xfade"), &paste_xfade_op, pd); } #if 0 static sw_operation paste_over_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)NULL, (SweepFunction)NULL, (SweepCallback)undo_by_paste_over, (SweepFunction)paste_over_data_destroy, (SweepCallback)redo_by_paste_over, (SweepFunction)paste_over_data_destroy }; sw_op_instance * do_paste_over (sw_sample * in, sw_sample **out) { sw_op_instance * inst; sw_edit_buffer * old_eb, * new_eb; if (ebuf == NULL) return NULL; inst = sw_op_instance_new (in, "Paste over", &paste_over_op); old_eb = edit_buffer_from_sample (in); *out = paste_over (in, ebuf); new_eb = edit_buffer_from_sample (*out); inst->redo_data = inst->undo_data = paste_over_data_new (old_eb, new_eb); sample_refresh_views (*out); return inst; } #endif sw_sample * do_paste_as_new (void) { if (ebuf == NULL) return NULL; return sample_from_edit_buffer (ebuf); } sweep-0.9.3/src/view_pixmaps.h0000644000175000017500000000445310777660160015057 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif /* Pixmaps ripped from Grip */ #include "../pixmaps/ff.xpm" #include "../pixmaps/nexttrk.xpm" #include "../pixmaps/playpaus.xpm" #include "../pixmaps/prevtrk.xpm" #include "../pixmaps/loop.xpm" /*#include "../pixmaps/noloop.xpm"*/ #include "../pixmaps/rew.xpm" #include "../pixmaps/stop.xpm" #include "../pixmaps/vol.xpm" #include "../pixmaps/upleft.xpm" #include "../pixmaps/lowleft.xpm" #include "../pixmaps/upright.xpm" #include "../pixmaps/lowright.xpm" #if 0 #include "../pixmaps/eye.xpm" /* Hacked from the Gimp */ #endif #include "../pixmaps/record_dialog.xpm" #include "../pixmaps/scroll.xpm" #include "../pixmaps/playrev.xpm" #include "../pixmaps/playpsel.xpm" #include "../pixmaps/mute.xpm" #include "../pixmaps/headphones.xpm" #include "../pixmaps/scrub.xpm" #include "../pixmaps/select.xpm" #include "../pixmaps/hand.xpm" #ifdef DEVEL_CODE #include "../pixmaps/pencil.xpm" #include "../pixmaps/spraycan.xpm" #endif #include "../pixmaps/new.xpm" #include "../pixmaps/open.xpm" #include "../pixmaps/save.xpm" #include "../pixmaps/saveas.xpm" #include "../pixmaps/undo.xpm" #include "../pixmaps/redo.xpm" #include "../pixmaps/cut.xpm" #include "../pixmaps/copy.xpm" #include "../pixmaps/paste.xpm" #include "../pixmaps/pastemix.xpm" #include "../pixmaps/pastexfade.xpm" #include "../pixmaps/crop.xpm" #include "../pixmaps/zoom_in.xpm" #include "../pixmaps/zoom_out.xpm" #if 0 #include "../pixmaps/zoom_all.xpm" #endif #include "../pixmaps/info.xpm" #include "../pixmaps/mouse.xpm" sweep-0.9.3/src/plugin.c0000644000175000017500000000555710777660160013643 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include #include "sweep_compat.h" GList * plugins = NULL; static gint cmp_proc_names (sw_procedure * a, sw_procedure * b) { return strcmp (_(a->name), _(b->name)); } void sweep_plugin_init (const gchar * path) { GModule * module; sw_plugin * m_plugin; gpointer m_plugin_ptr; GList * gl; module = g_module_open (path, G_MODULE_BIND_LAZY); if (!module) { #ifdef DEBUG fprintf (stderr, "sweep_plugin_init: Error opening %s: %s\n", path, g_module_error()); #endif return; } if (g_module_symbol (module, "plugin", &m_plugin_ptr)) { m_plugin = (sw_plugin *)m_plugin_ptr; for (gl = m_plugin->plugin_init (); gl; gl = gl->next) { plugins = g_list_insert_sorted (plugins, (sw_procedure *)gl->data, (GCompareFunc)cmp_proc_names); } } } /* Initialise statically linked plugins */ static void init_static_plugins (void) { #if 0 plugins = g_list_append (plugins, &proc_normalise); plugins = g_list_append (plugins, &proc_reverse); #endif } static void init_dynamic_plugins_dir (gchar * dirname) { DIR * dir; struct dirent * dirent; char * name, * path; struct stat statbuf; dir = opendir (dirname); if (!dir) { /* fail silently */ return; } while ((dirent = readdir (dir)) != NULL) { name = dirent->d_name; path = g_module_build_path (PACKAGE_PLUGIN_DIR, dirent->d_name); if (stat (path, &statbuf) == -1) { /* system error -- non-fatal, ignore for plugin loading */ } else if (sw_stat_regular (statbuf.st_mode)) { sweep_plugin_init (path); } } } /* Initialise dynamically linked plugins */ static void init_dynamic_plugins (void) { init_dynamic_plugins_dir (PACKAGE_PLUGIN_DIR); } void init_plugins (void) { init_static_plugins (); if (g_module_supported ()) { init_dynamic_plugins (); } } sweep-0.9.3/src/paste_dialogs.h0000644000175000017500000000177710777660160015170 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __PASTE_DIALOGS_H__ #define __PASTE_DIALOGS_H__ #include void create_paste_mix_dialog (sw_sample * sample); void create_paste_xfade_dialog (sw_sample * sample); #endif /* __PASTE_DIALOGS_H__ */ sweep-0.9.3/src/main.c0000644000175000017500000001360310777660312013257 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include "preferences.h" #include "file_dialogs.h" #include "interface.h" #include "plugin.h" #include "cursors.h" #include "driver.h" #include "callbacks.h" #include "question_dialogs.h" #include "play.h" extern void sweep_timeouts_init (void); extern gboolean ignore_failed_tdb_lock; /* * initial_sample_load () * * a gtk_idle one-shot function. * * the initial loading of samples is deferred * to be processed by gtk_main, to allow the * toolbox window to be shown before having to * wait for potentially large samples to load. */ static gint initial_sample_load (gpointer data) { char * arg = (char *)data; gchar * pathname; if (!strncmp (g_dirname (arg), ".", 1)) { pathname = g_strdup_printf ("%s/%s", g_get_current_dir(), arg); } else { pathname = arg; } sample_load (pathname); return FALSE; } #if 0 static gint initial_sample_new (gpointer data) { sample_new_empty_cb (NULL, NULL); return FALSE; } #endif static gint initial_sample_ask (gpointer data) { question_dialog_new (NULL, _("Welcome to Sweep"), _("Hello, my name is Scrubby. " "Welcome to Sweep!\n\n" "Would you like to create a new file or " "load an existing file?"), _("Create new file"), _("Load existing file"), G_CALLBACK (sample_new_empty_cb), NULL, G_CALLBACK (sample_load_cb), NULL, 0); return FALSE; } /* * main */ int main (int argc, char *argv[]) { int i; #if 0 GtkWidget *toolbox; #endif gboolean show_version = FALSE; gboolean show_help = FALSE; /* gboolean show_toolbox = TRUE;*/ gboolean no_files = TRUE; #ifdef HAVE_PUTENV gchar *display_env; #endif #ifdef ENABLE_NLS bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR); textdomain (PACKAGE); #endif gtk_set_locale (); #ifdef DEVEL_CODE g_print (_("WARNING: Build includes incomplete development code.\n")); #endif #if 0 #if defined (SNDFILE_1) if (sizeof (sw_framecount_t) != sizeof (sf_count_t)) { puts ("Software was configured incorrectly. Cannot run.\n") ; exit (1) ; } #endif #endif gtk_init (&argc, &argv); #ifdef HAVE_PUTENV display_env = g_strconcat ("DISPLAY=", gdk_get_display (), NULL); putenv (display_env); #endif g_thread_init (NULL); /* must be done before g_idle_add / gtk_timeout_add */ sweep_timeouts_init (); for(i = 1; i < argc; i++) { if ((strcmp (argv[i], "--help") == 0) || (strcmp (argv[i], "-h") == 0)) { show_help = TRUE; argv[i] = NULL; } else if ((strcmp (argv[i], "--version") == 0) || (strcmp (argv[i], "-v") == 0)) { show_version = TRUE; argv[i] = NULL; } else if ((strcmp (argv[i], "--ignore-failed-lock") == 0)) { ignore_failed_tdb_lock = TRUE; argv[i] = NULL; #if 0 } else if (strcmp (argv[i], "--no-toolbox") == 0) { show_toolbox = FALSE; argv[i] = NULL; #endif #ifdef DEVEL_CODE } else if (argv[i][0] == '-' && argv[i][1] != '\0') { /* check for unknown options, but allow "-" as stdin */ #else } else if (argv[i][0] == '-') { /* check for unknown options */ #endif show_help = TRUE; } else { g_idle_add ((GSourceFunc) initial_sample_load, argv[i]); no_files = FALSE; } } if (show_version) { g_print ( "%s %s\n", _("Sweep version"), VERSION); g_print ( "%s %d.%d.%d\n",_("Sweep plugin API version"), SWEEP_PLUGIN_API_MAJOR, SWEEP_PLUGIN_API_MINOR, SWEEP_PLUGIN_API_REVISION); } if (show_help) { g_print (_("Usage: %s [option ...] [files ...]\n"), argv[0]); g_print (_("Valid options are:\n")); g_print (_(" -h --help Output this help.\n")); g_print (_(" -v --version Output version info.\n")); g_print (_(" --display Use the designated X display.\n")); g_print (_(" --ignore-failed-lock Continue when attempt to lock the\n" " preferences file fails. For use when\n" " the users home directory is on an NFS\n" " file system. (possibly unsafe) \n" )); #if 0 g_print (_(" --no-toolbox Do not show the toolbox window.\n")); #endif } if (show_version || show_help) { exit (0); } srandom ((unsigned int)time(NULL)); if (no_files) { g_idle_add ((GSourceFunc)initial_sample_ask, NULL); } /* initialise preferences */ prefs_init (); /* initialise plugins */ init_plugins (); /* initialise cursors */ init_cursors (); /* initialise interface components */ init_ui (); /* initialise devices */ init_devices (); /* init playback subsystem */ init_playback (); #if 0 if (show_toolbox) { toolbox = create_toolbox (); gtk_widget_show (toolbox); } #endif gtk_main (); /* close preferences database */ prefs_close (); /* save key bindings */ save_accels (); exit (0); } sweep-0.9.3/src/view.h0000644000175000017500000000611110777660160013307 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __VIEW_H__ #define __VIEW_H__ #include #include #include "sweep_app.h" sw_view * view_new(sw_sample * sample, sw_framecount_t start, sw_framecount_t end, gfloat gain); sw_view * view_new_all(sw_sample * sample, gfloat gain); void view_popup_context_menu (sw_view * view, guint button, guint32 activate_time); void view_set_ends (sw_view * view, sw_framecount_t start, sw_framecount_t end); void view_center_on (sw_view * view, sw_framecount_t offset); void view_zoom_length (sw_view * view, sw_framecount_t length); void view_zoom_normal (sw_view * view); void view_zoom_in (sw_view * view, double ratio); void view_zoom_out (sw_view * view, double ratio); void view_zoom_to_sel (sw_view * view); void view_zoom_left (sw_view * view); void view_zoom_right (sw_view * view); void view_zoom_all (sw_view * view); void view_vzoom_in (sw_view * view, double ratio); void view_vzoom_out (sw_view * view, double ratio); void view_refresh_edit_mode (sw_view * view); #if 0 void view_set_play_marker (sw_view * view, int play_offset); void view_set_user_marker (sw_view * view, int user_offset); #endif void view_refresh_playmode (sw_view * view); void view_set_following (sw_view * view, gboolean following); void view_close(sw_view * view); void view_volume_increase (sw_view * view); void view_volume_decrease (sw_view * view); void view_refresh_title(sw_view * view); void view_default_status (sw_view * view); void view_refresh_tool_buttons (sw_view * v); void view_refresh_offset_indicators (sw_view * v); void view_refresh_rec_offset_indicators (sw_view * view); void view_set_progress_text (sw_view * view, gchar * text); void view_set_progress_percent (sw_view * view, gint percent); void view_set_progress_ready (sw_view * view); void view_set_tmp_message (sw_view * view, gchar * message); void view_refresh_hruler (sw_view * v); void view_refresh_display (sw_view * v); void view_refresh_adjustment (sw_view * v); void view_refresh (sw_view * v); void view_refresh_looping (sw_view * v); void view_refresh_playrev (sw_view * view); void view_refresh_mute (sw_view * view); void view_refresh_monitor (sw_view * view); void view_fix_adjustment (sw_view * v); void view_sink_last_tmp_view (void); void view_clear_last_tmp_view (void); #endif /* __VIEW_H__ */ sweep-0.9.3/src/sweep_undo.c0000644000175000017500000004562310777660270014515 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * Copyright (C) 2002 Commonwealth Scientific and Industrial Research * Organisation (CSIRO), Australia * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include "sweep_app.h" #include "edit.h" #include "undo_dialog.h" #include "head.h" #include "play.h" #include "file_dialogs.h" #include "question_dialogs.h" #ifdef LIMITED_UNDO /* Nr. of undo operations remembered */ #define UNDO_LEVELS 99 #endif /* Within each sample s, maintain: * s->current_undo == s->current_redo->prev * s->current_redo == s->current_undo->next */ /*#define DEBUG*/ static void op_main (sw_sample * sample) { GList * gl; sw_op_instance * inst; #ifdef DEBUG g_print ("%d: Hello from op_main %d!\n", getpid(), getpid()); #endif while (sample->edit_state != SWEEP_EDIT_STATE_CANCEL && (gl = sample->pending_ops) != NULL) { g_mutex_lock (sample->edit_mutex); while (sample->edit_state != SWEEP_EDIT_STATE_PENDING && sample->edit_state != SWEEP_EDIT_STATE_CANCEL) { g_cond_wait (sample->pending_cond, sample->edit_mutex); } if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { #ifdef DEBUG g_print ("Caught an early cancelmoose; pending is %p\n", sample->pending_ops); fflush (stdout); #endif } else { gboolean was_going = FALSE; inst = (sw_op_instance *)gl->data; g_assert (sample->edit_state == SWEEP_EDIT_STATE_PENDING); sample->edit_state = SWEEP_EDIT_STATE_BUSY; sample->pending_ops = g_list_remove_link (sample->pending_ops, gl); g_mutex_unlock (sample->edit_mutex); if (inst->op->edit_mode == SWEEP_EDIT_MODE_ALLOC) { g_mutex_lock (sample->play_mutex); if ((was_going = sample->play_head->going)) { head_set_stop_offset (sample->play_head, sample->user_offset); head_set_going (sample->play_head, FALSE); } g_mutex_unlock (sample->play_mutex); } /* XXX: this is fubar -- change to SweepFunction ?? or change all to * have sample as first arg ... */ inst->op->_do_ ((sw_sample *)inst, (void *)inst); #if 0 /* XXX: need to tell main thread to start playback; freezes from here */ if (inst->op->edit_mode == SWEEP_EDIT_MODE_ALLOC && was_going) { #if 0 g_mutex_lock (sample->play_mutex); head_set_going (sample->play_head, TRUE); g_mutex_unlock (sample->play_mutex); #else sample_play (sample); #endif } #endif g_mutex_lock (sample->edit_mutex); #ifdef DEBUG if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { g_print ("Caught a late cancelmoose; pending is %p\n", sample->pending_ops); fflush (stdout); } else { g_print ("%d: post-op edit state is %d\n", getpid(), sample->edit_state); } #endif } sample->edit_state = SWEEP_EDIT_STATE_DONE; g_mutex_unlock (sample->edit_mutex); } g_mutex_lock (sample->edit_mutex); #ifdef DEBUG if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { g_print ("%d: Let me save you from scrubby!.\n", getpid()); sample->edit_state = SWEEP_EDIT_STATE_DONE; } else { g_print ("%d: exit edit state is %d\n", getpid(), sample->edit_state); } g_print ("%d: yada yada that's all!\n", getpid()); #endif sample->ops_thread = (pthread_t) -1; g_mutex_unlock (sample->edit_mutex); } static void prepare_op (sw_op_instance * inst) { sw_sample * sample = inst->sample; #define BUF_LEN 128 gchar buf[BUF_LEN]; g_snprintf (buf, BUF_LEN, "%s (%%p%%%%)", inst->description); sample_set_progress_text (sample, buf); sample_set_edit_mode (sample, inst->op->edit_mode); sample_set_progress_percent (sample, 0); if (sample->ops_thread == (pthread_t) -1) { pthread_create (&sample->ops_thread, NULL, (void *) (*op_main), sample); } #undef BUF_LEN } gint update_edit_progress (gpointer data) { sw_sample * sample = (sw_sample *)data; sw_op_instance * inst; if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { sample_refresh_progress_percent (sample); if (sample->edit_mode == SWEEP_EDIT_MODE_META || sample->edit_mode == SWEEP_EDIT_MODE_FILTER) sample_refresh_views (sample); return TRUE; } if (sample->edit_state == SWEEP_EDIT_STATE_DONE) { undo_dialog_refresh_history (sample); if (sample->sounddata->sels == NULL) { sample_stop_marching_ants (sample); } sample_refresh_views (sample); if (sample->pending_ops == NULL) sample_set_edit_state (sample, SWEEP_EDIT_STATE_IDLE); } if (sample->pending_ops != NULL) { inst = (sw_op_instance *)sample->pending_ops->data; prepare_op (inst); sample_set_edit_state (sample, SWEEP_EDIT_STATE_PENDING); } if (sample->edit_state == SWEEP_EDIT_STATE_IDLE) { sample_refresh_views (sample); sample->op_progress_tag = -1; return FALSE; } if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { sample_set_progress_text (sample, "Scrubby has you."); } return TRUE; } static void sw_op_instance_clear (sw_op_instance * inst) { if (!inst) return; if (inst->do_data) { if (inst->op->purge_do) inst->op->purge_do (inst->do_data); } if (inst->undo_data) { if (inst->op->purge_undo) inst->op->purge_undo (inst->undo_data); else g_free (inst->undo_data); } if (inst->redo_data && inst->redo_data != inst->undo_data) { if (inst->op->purge_redo) inst->op->purge_redo (inst->redo_data); else g_free (inst->redo_data); } inst->do_data = NULL; inst->undo_data = NULL; inst->redo_data = NULL; } sw_op_instance * sw_op_instance_new (sw_sample * sample, char * desc, sw_operation * op) { sw_op_instance * inst; inst = g_malloc (sizeof(sw_op_instance)); inst->sample = sample; inst->description = strdup (desc); inst->op = op; inst->do_data = NULL; inst->undo_data = NULL; inst->redo_data = NULL; return inst; } void trim_registered_ops (sw_sample * s, int length) { GList * gl; while (g_list_length (s->registered_ops) > length) { gl = g_list_first (s->registered_ops); s->registered_ops = g_list_remove_link (s->registered_ops, gl); sw_op_instance_clear (gl->data); g_list_free (gl); } if (s->registered_ops == NULL) s->current_undo = NULL; } static void schedule_operation_do (sw_op_instance * inst) { sw_sample * sample = inst->sample; g_mutex_lock (sample->edit_mutex); sample->pending_ops = g_list_append (sample->pending_ops, inst); g_mutex_unlock (sample->edit_mutex); if (sample->op_progress_tag == -1) { sample->op_progress_tag = gtk_timeout_add (30, (GtkFunction)update_edit_progress, (gpointer)sample); } } static void schedule_operation_ok_cb (GtkWidget * widget, gpointer data) { sw_op_instance * inst = (sw_op_instance *)data; sw_sample * sample = inst->sample; sample->edit_ignore_mtime = TRUE; schedule_operation_do (inst); } void schedule_operation (sw_sample * sample, char * description, sw_operation * operation, void * do_data) { sw_op_instance * inst; #undef BUF_LEN #define BUF_LEN 512 char buf[BUF_LEN]; inst = sw_op_instance_new (sample, description, operation); inst->do_data = do_data; if (operation->edit_mode != SWEEP_EDIT_MODE_META && !sample->edit_ignore_mtime && sample_mtime_changed (sample)) { snprintf (buf, BUF_LEN, _("%s\n has changed on disk.\n\n" "Do you want to continue editing this buffer?"), sample->pathname); question_dialog_new (sample, _("File modified"), buf, _("Continue editing"), _("Reread from disk"), G_CALLBACK (schedule_operation_ok_cb), inst, G_CALLBACK (sample_revert_ok_cb), sample, SWEEP_EDIT_MODE_ALLOC); } else { schedule_operation_do (inst); } } void register_operation (sw_sample * s, sw_op_instance * inst) { GList * trash, * gl; sw_op_instance * inst2; #ifdef DEBUG printf("Registering %s\n", inst->description); #endif g_mutex_lock (s->ops_mutex); if (s->registered_ops && s->current_redo) { /* Split the list here -- keep everything up to and * including current_undo, and trash the rest. */ s->current_redo->prev = NULL; if (s->current_undo) s->current_undo->next = NULL; if (s->registered_ops == s->current_redo) s->registered_ops = NULL; trash = s->current_redo; s->current_redo = NULL; /* Free up the rest of the list */ for (gl = trash; gl; gl = gl->next) { inst2 = (sw_op_instance *)gl->data; sw_op_instance_clear (inst2); } /* Trash it */ g_list_free (trash); } s->registered_ops = g_list_append (s->registered_ops, inst); #ifdef LIMITED_UNDO trim_registered_ops (s, UNDO_LEVELS); #endif s->current_undo = g_list_find (s->registered_ops, inst); s->active_op = NULL; if (inst->op->edit_mode != SWEEP_EDIT_MODE_META) { s->modified = TRUE; } g_mutex_unlock (s->ops_mutex); } static void undo_operation (sw_sample * s, sw_op_instance * inst) { if (inst && inst->op->undo) { inst->op->undo(s, inst->undo_data); } } static void redo_operation (sw_sample * s, sw_op_instance * inst) { if (inst && inst->op->redo) { inst->op->redo(s, inst->redo_data); } } static void do_undo_current_thread (sw_op_instance * inst) { sw_sample * s = inst->sample; if (s == NULL || s->current_undo == NULL) goto noop; undo_operation (s, inst->do_data); g_mutex_lock (s->ops_mutex); if (s->edit_state == SWEEP_EDIT_STATE_BUSY) { s->current_redo = s->current_undo; s->current_undo = s->current_undo->prev; } g_mutex_unlock (s->ops_mutex); return; noop: sample_set_tmp_message (s, _("Nothing to undo")); } static sw_operation undo_filter_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)do_undo_current_thread, (SweepFunction)NULL, (SweepCallback)NULL, (SweepFunction)NULL, (SweepCallback)NULL, (SweepFunction)NULL, }; static sw_operation undo_alloc_op = { SWEEP_EDIT_MODE_ALLOC, (SweepCallback)do_undo_current_thread, (SweepFunction)NULL, (SweepCallback)NULL, (SweepFunction)NULL, (SweepCallback)NULL, (SweepFunction)NULL, }; static void schedule_undo_inst (sw_sample * sample, sw_op_instance * inst) { sw_operation * op; #undef BUF_LEN #define BUF_LEN 128 gchar buf[BUF_LEN]; g_snprintf (buf, BUF_LEN, "Undo %s", inst->description); if (inst->op->edit_mode == SWEEP_EDIT_MODE_FILTER) op = &undo_filter_op; else op = &undo_alloc_op; schedule_operation (sample, buf, op, inst); } void undo_current (sw_sample * sample) { sw_op_instance * inst; if (sample == NULL) return; if (sample->edit_state != SWEEP_EDIT_STATE_IDLE) return; if (sample->current_undo == NULL) goto noop; inst = sample->current_undo->data; if (inst->op->undo != NULL) schedule_undo_inst (sample, inst); return; noop: sample_set_tmp_message (sample, _("Nothing to undo")); sample_set_progress_ready (sample); } static void do_redo_current_thread (sw_op_instance * inst) { sw_sample * s = inst->sample; if (s == NULL || s->current_redo == NULL) goto noop; redo_operation (s, inst->do_data); g_mutex_lock (s->ops_mutex); if (s->edit_state == SWEEP_EDIT_STATE_BUSY) { s->current_undo = s->current_redo; s->current_redo = s->current_redo->next; } g_mutex_unlock (s->ops_mutex); return; noop: sample_set_tmp_message (s, _("Nothing to redo")); } static sw_operation redo_filter_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)do_redo_current_thread, (SweepFunction)NULL, (SweepCallback)NULL, (SweepFunction)NULL, (SweepCallback)NULL, (SweepFunction)NULL, }; static sw_operation redo_alloc_op = { SWEEP_EDIT_MODE_ALLOC, (SweepCallback)do_redo_current_thread, (SweepFunction)NULL, (SweepCallback)NULL, (SweepFunction)NULL, (SweepCallback)NULL, (SweepFunction)NULL, }; static void schedule_redo_inst (sw_sample * sample, sw_op_instance * inst) { sw_operation * op; #define BUF_LEN 128 gchar buf[BUF_LEN]; g_snprintf (buf, BUF_LEN, "Redo %s", inst->description); if (inst->op->edit_mode == SWEEP_EDIT_MODE_FILTER) op = &redo_filter_op; else op = &redo_alloc_op; schedule_operation (sample, buf, op, inst); } void redo_current (sw_sample * sample) { sw_op_instance * inst; if (sample == NULL) return; if (sample->edit_state != SWEEP_EDIT_STATE_IDLE) return; if (sample->current_redo == NULL) goto noop; inst = sample->current_redo->data; if (inst->op->redo != NULL) schedule_redo_inst (sample, inst); noop: sample_set_tmp_message (sample, _("Nothing to redo")); sample_set_progress_ready (sample); } void revert_op (sw_sample * sample, GList * op_gl) { GList * gl = NULL; sw_op_instance * inst; gboolean need_undo = FALSE; if (sample == NULL) return; for (gl = g_list_last (sample->registered_ops); gl; gl = gl->prev) { inst = (sw_op_instance *)gl->data; if (gl == sample->current_undo) { need_undo = TRUE; } if (gl == op_gl) break; } if (need_undo) { for (gl = sample->current_undo; gl != op_gl; gl = gl->prev) { inst = (sw_op_instance *)gl->data; schedule_undo_inst (sample, inst); } } else { for (gl = sample->current_redo; gl != op_gl; gl = gl->next) { inst = (sw_op_instance *)gl->data; schedule_redo_inst (sample, inst); } if (gl != NULL) { inst = (sw_op_instance *)gl->data; schedule_redo_inst (sample, inst); } } } void set_active_op (sw_sample * s, sw_op_instance * inst) { g_mutex_lock (s->ops_mutex); g_assert (s->active_op == NULL); s->active_op = inst; g_mutex_unlock (s->ops_mutex); } #ifdef TRYCANCEL static gint try_cancel_active_op (gpointer data) { sw_sample * s = (sw_sample *)data; if (g_mutex_trylock (s->ops_mutex)) { if (s->active_op) { undo_operation (s, s->active_op); } s->active_op = NULL; sample_set_edit_state (s, SWEEP_EDIT_STATE_CANCEL); g_mutex_unlock (s->ops_mutex); return FALSE; } else { return TRUE; } } #endif void cancel_active_op (sw_sample * s) { #ifdef TRYCANCEL g_idle_add (GSourceFunc(try_cancel_active_op), (gpointer)s); #else g_mutex_lock (s->ops_mutex); if (s->active_op) { undo_operation (s, s->active_op); sample_set_tmp_message (s, "%s CANCELLED", s->active_op->description); /* XXX: does this leak s->active_op here? */ } s->active_op = NULL; g_mutex_lock (s->edit_mutex); /* * Signal to the ops thread to cancel or not perform the current operation. * It is possible that the ops thread has already exited, in which case * s->ops_thread will have been set to -1 on its departure, also within * s->edit_mutex, in which case the signalled CANCEL would never be cleared. */ if (s->ops_thread != (pthread_t) -1) { s->edit_state = SWEEP_EDIT_STATE_CANCEL; } if (s->pending_ops) { GList * gltmp = s->pending_ops; s->pending_ops = NULL; g_print ("XXX: cancel: need to remove pending ops\n"); g_list_free (gltmp); } g_mutex_unlock (s->edit_mutex); /* sample_set_edit_state (s, SWEEP_EDIT_STATE_CANCEL);*/ g_mutex_unlock (s->ops_mutex); #endif } /* Standard undo/redo functions */ #if 0 replace_data * replace_data_new (sw_sample * old_sample, sw_sample * new_sample) { replace_data * r; r = g_malloc (sizeof(replace_data)); r->old_sample = old_sample; r->new_sample = new_sample; return r; }; void undo_by_replace (replace_data * r) { sample_replace_throughout (r->new_sample, r->old_sample); sample_refresh_views (r->new_sample); } void redo_by_replace (replace_data * r) { sample_replace_throughout (r->old_sample, r->new_sample); sample_refresh_views (r->new_sample); } #endif sounddata_replace_data * sounddata_replace_data_new (sw_sample * sample, sw_sounddata * old_sounddata, sw_sounddata * new_sounddata) { sounddata_replace_data * sr; sr = g_malloc (sizeof(sounddata_replace_data)); sr->sample = sample; sr->old_sounddata = old_sounddata; sr->new_sounddata = new_sounddata; old_sounddata->refcount++; new_sounddata->refcount++; return sr; } void sounddata_replace_data_destroy (sounddata_replace_data * sr) { sounddata_destroy (sr->old_sounddata); sounddata_destroy (sr->new_sounddata); g_free (sr); } void undo_by_sounddata_replace (sw_sample * s, sounddata_replace_data * sr) { g_mutex_lock (s->ops_mutex); s->sounddata = sr->old_sounddata; g_mutex_unlock (s->ops_mutex); } void redo_by_sounddata_replace (sw_sample * s, sounddata_replace_data * sr) { g_mutex_lock (s->ops_mutex); s->sounddata = sr->new_sounddata; g_mutex_unlock (s->ops_mutex); } paste_over_data * paste_over_data_new (sw_edit_buffer * old_eb, sw_edit_buffer * new_eb) { paste_over_data * p; p = g_malloc (sizeof(paste_over_data)); p->old_eb = old_eb; p->new_eb = new_eb; return p; }; void paste_over_data_destroy (paste_over_data * p) { edit_buffer_destroy (p->old_eb); if (p->new_eb != p->old_eb) edit_buffer_destroy (p->new_eb); g_free (p); } void undo_by_paste_over (sw_sample * s, paste_over_data * p) { paste_over (s, p->old_eb); } void redo_by_paste_over (sw_sample * s, paste_over_data * p) { paste_over (s, p->new_eb); } splice_data * splice_data_new (sw_edit_buffer * eb, GList * sels) { splice_data * s; s = g_malloc (sizeof(splice_data)); s->eb = eb; s->sels = sels_copy (sels); return s; } void splice_data_destroy (splice_data * s) { edit_buffer_destroy (s->eb); g_list_free (s->sels); g_free (s); } void undo_by_splice_in (sw_sample * s, splice_data * sp) { splice_in_eb (s, sp->eb); } void redo_by_splice_out (sw_sample * s, splice_data * sp) { splice_out_sel (s); } void undo_by_splice_out (sw_sample * s, splice_data * sp) { splice_out_sel (s); s->sounddata->sels = sels_copy (sp->sels); } void redo_by_splice_in (sw_sample * s, splice_data * sp) { splice_in_eb (s, sp->eb); } void undo_by_splice_over (sw_sample * s, splice_data * sp) { s->sounddata->sels = sels_copy (sp->sels); paste_over (s, sp->eb); } void redo_by_splice_over (sw_sample * s, splice_data * sp) { s->sounddata->sels = sels_copy (sp->sels); paste_over (s, sp->eb); } void undo_by_crop_in (sw_sample * s, splice_data * sp) { crop_in (s, sp->eb); } void redo_by_crop_out (sw_sample * s, splice_data * sp) { crop_out (s); } sweep-0.9.3/src/sweep_sample.c0000644000175000017500000012657210777660263015036 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include "sample.h" /* app internal functions for samples */ #include "format.h" #include "print.h" #include "view.h" #include "sample-display.h" #include "play.h" #include "undo_dialog.h" #include "head.h" #include "interface.h" #include "preferences.h" #include "record.h" #include "question_dialogs.h" #include "sw_chooser.h" #include "../pixmaps/new.xpm" /* Defaults for new files */ #define DEFAULT_DURATION "00:01:00.000" #define DEFAULT_SAMPLERATE 44100 #define DEFAULT_CHANNELS 2 /* Preferences keys for "new file" remembered values */ #define SAMPLERATE_KEY "NewFile_Samplerate" #define CHANNELS_KEY "NewFile_Channels" /*#define DEBUG*/ extern sw_view * last_tmp_view; static GList * sample_bank = NULL; static int untitled_count = 0; static void sample_info_update (sw_sample * sample); /* Sample functions */ void sample_add_view (sw_sample * s, sw_view * v) { s->views = g_list_append(s->views, v); } void sample_remove_view (sw_sample * s, sw_view * v) { s->views = g_list_remove(s->views, v); if(!s->views) { sample_bank_remove(s); } } /* * filename_color_hash * * Choose colour for this file based on the filename, such that * a file is loaded with the same colour each time it is edited. * * Idea due to Erik de Castro Lopo */ static int filename_color_hash (char * filename) { char *p; int i = 0; if (filename == NULL) return 0; for (p = filename; *p; p++) i += (int)*p; return (i % VIEW_COLOR_DEFAULT_MAX); } static gchar * filename_generate (void) { return g_strdup_printf ("%s-%d.aiff", _("Untitled"), ++untitled_count); } sw_sample * sample_new_empty(gchar * pathname, gint nr_channels, gint sample_rate, sw_framecount_t sample_length) { sw_sample *s; s = g_malloc0 (sizeof(sw_sample)); if (!s) return NULL; s->sounddata = sounddata_new_empty (nr_channels, sample_rate, sample_length); s->views = NULL; if (pathname != NULL) s->pathname = strdup (pathname); else s->pathname = filename_generate (); s->ops_thread = (pthread_t) -1; s->ops_mutex = g_mutex_new (); s->registered_ops = NULL; s->current_undo = NULL; s->current_redo = NULL; s->active_op = NULL; s->op_progress_tag = -1; s->tmp_sel = NULL; s->playmarker_tag = 0; s->edit_mutex = g_mutex_new (); s->edit_mode = SWEEP_EDIT_MODE_READY; s->edit_state = SWEEP_EDIT_STATE_IDLE; s->modified = FALSE; s->pending_cond = g_cond_new (); s->pending_ops = NULL; s->play_mutex = g_mutex_new (); #if 0 s->play_mode = SWEEP_TRANSPORT_STOP; s->stop_offset = 0; s->play_offset = 0; s->play_looping = FALSE; s->play_scrubbing = FALSE; s->previewing = FALSE; s->play_reverse = FALSE; s->play_mute = FALSE; #endif s->user_offset = 0; s->by_user = 0; s->play_head = head_new (s, SWEEP_HEAD_PLAY); s->rate = 1.0; #if 0 s->color = ((int)random()) % VIEW_COLOR_MAX; #else s->color = filename_color_hash ((gchar *)g_basename (s->pathname)); #endif s->info_clist = NULL; /* s->recording = FALSE;*/ /* s->rec_offset = 0;*/ s->rec_head = NULL; s->tmp_message_active = FALSE; s->last_tmp_message = NULL; s->tmp_message_tag = -1; return s; } sw_sample * sample_new_copy(sw_sample * s) { sw_sample * sn; sn = sample_new_empty(NULL, s->sounddata->format->channels, s->sounddata->format->rate, s->sounddata->nr_frames); if(!sn) { fprintf(stderr, "Unable to allocate new sample.\n"); return NULL; } memcpy(sn->sounddata->data, s->sounddata->data, frames_to_bytes(s->sounddata->format, s->sounddata->nr_frames)); sounddata_copyin_selection (s->sounddata, sn->sounddata); /* sn->last_mtime = s->last_mtime;*/ return sn; } static void sample_new_dialog_ok_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkWidget * entry; GtkWidget * checkbutton; gchar * filename, * text; gdouble seconds; sw_framecount_t nr_frames; gint nr_channels; gint sample_rate; gboolean rem_format; sw_sample * s; sw_view * v; dialog = gtk_widget_get_toplevel (widget); entry = g_object_get_data (G_OBJECT(dialog), "name_entry"); filename = (gchar *) gtk_entry_get_text (GTK_ENTRY(entry)); entry = g_object_get_data (G_OBJECT(dialog), "duration_entry"); text = (gchar *) gtk_entry_get_text (GTK_ENTRY(entry)); seconds = strtime_to_seconds (text); if (seconds == -1) goto out; /* XXX: invalid time spec */ entry = g_object_get_data (G_OBJECT(dialog), "rate_chooser"); sample_rate = samplerate_chooser_get_rate (entry); entry = g_object_get_data (G_OBJECT(dialog), "channelcount_chooser"); nr_channels = channelcount_chooser_get_count (entry); nr_frames = (sw_framecount_t) (sample_rate * seconds); checkbutton = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "rem_format_chb")); rem_format = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(checkbutton)); if (rem_format) { prefs_set_int (SAMPLERATE_KEY, sample_rate); prefs_set_int (CHANNELS_KEY, nr_channels); } s = sample_new_empty ((gchar *)filename, nr_channels, sample_rate, nr_frames); v = view_new_all (s, 1.0); sample_add_view (s, v); sample_bank_add (s); out: gtk_widget_destroy (dialog); } static void sample_new_dialog_cancel_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; dialog = gtk_widget_get_toplevel (widget); gtk_widget_destroy (dialog); if (sample_bank == NULL) { sweep_quit (); } } static void sample_new_dialog_update (GtkWidget * widget) { GtkWidget * dialog; GtkWidget * entry; GtkWidget * memsize_label; GtkWidget * ok_button; gchar * text; gdouble seconds; gint sample_rate, nr_channels; glong bytes; #undef BUF_LEN #define BUF_LEN 16 char buf[BUF_LEN]; dialog = gtk_widget_get_toplevel (widget); entry = g_object_get_data (G_OBJECT(dialog), "duration_entry"); text = (gchar *)gtk_entry_get_text (GTK_ENTRY(entry)); seconds = strtime_to_seconds (text); entry = g_object_get_data (G_OBJECT(dialog), "rate_chooser"); sample_rate = samplerate_chooser_get_rate (entry); entry = g_object_get_data (G_OBJECT(dialog), "channelcount_chooser"); nr_channels = channelcount_chooser_get_count (entry); memsize_label = g_object_get_data (G_OBJECT(dialog), "memsize_label"); bytes = (glong) (seconds * sample_rate * nr_channels * sizeof(sw_audio_t)); if (bytes < 0) { gtk_label_set_text (GTK_LABEL(memsize_label), _("Overflow")); } else { snprint_bytes (buf, BUF_LEN, bytes); gtk_label_set_text (GTK_LABEL(memsize_label), buf); } ok_button = g_object_get_data (G_OBJECT(dialog), "ok_button"); if (seconds <= 0.0 || sample_rate <= 0 || nr_channels <= 0 || bytes < 0) { gtk_widget_set_sensitive (ok_button, FALSE); } else { gtk_widget_set_sensitive (ok_button, TRUE); } } static void sample_new_dialog_reset_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkWidget * entry; int * i, sample_rate, nr_channels; i = prefs_get_int (SAMPLERATE_KEY); sample_rate = i ? *i : DEFAULT_SAMPLERATE; i = prefs_get_int (CHANNELS_KEY); nr_channels = i ? *i : DEFAULT_CHANNELS; dialog = gtk_widget_get_toplevel (widget); entry = g_object_get_data (G_OBJECT(dialog), "rate_chooser"); samplerate_chooser_set_rate (entry, sample_rate); entry = g_object_get_data (G_OBJECT(dialog), "channelcount_chooser"); channelcount_chooser_set_count (entry, nr_channels); sample_new_dialog_update (dialog); } static void sample_new_dialog_defaults_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkWidget * entry; dialog = gtk_widget_get_toplevel (widget); entry = g_object_get_data (G_OBJECT(dialog), "duration_entry"); gtk_entry_set_text (GTK_ENTRY (entry), DEFAULT_DURATION); entry = g_object_get_data (G_OBJECT(dialog), "rate_chooser"); samplerate_chooser_set_rate (entry, DEFAULT_SAMPLERATE); entry = g_object_get_data (G_OBJECT(dialog), "channelcount_chooser"); channelcount_chooser_set_count (entry, DEFAULT_CHANNELS); sample_new_dialog_update (dialog); } static void create_sample_new_dialog ( gchar * pathname, gint nr_channels, gint sample_rate, sw_time_t duration, gboolean do_reset) { GtkWidget * dialog; GtkWidget * main_vbox, * vbox; GtkWidget * main_hbox, * hbox, * hbox2; GtkWidget * pixmap; GtkWidget * frame; GtkWidget * ebox; GtkWidget * label; GtkWidget * entry; GtkWidget * button; GtkWidget * checkbutton; GtkWidget * ok_button; GtkTooltips * tooltips; #define BUF_LEN 16 gchar buf[BUF_LEN]; dialog = gtk_dialog_new (); sweep_set_window_icon (GTK_WINDOW(dialog)); gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); gtk_window_set_title (GTK_WINDOW(dialog), _("Sweep: New file")); /*gtk_container_border_width (GTK_CONTAINER(dialog), 8);*/ g_signal_connect (G_OBJECT(dialog), "destroy", G_CALLBACK(sample_new_dialog_cancel_cb), dialog); attach_window_close_accel(GTK_WINDOW(dialog)); main_vbox = GTK_DIALOG(dialog)->vbox; main_hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(main_vbox), main_hbox, FALSE, FALSE, 0); gtk_widget_show (main_hbox); /* Left side */ vbox = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(main_hbox), vbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER(vbox), 4); gtk_widget_show (vbox); /* Name */ hbox = gtk_hbox_new (FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER(hbox), 8); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 4); gtk_widget_show (hbox); label = gtk_label_new (_("Name:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); entry = gtk_entry_new (); gtk_box_pack_start (GTK_BOX(hbox), entry, TRUE, TRUE, 4); gtk_widget_show (entry); gtk_entry_set_text (GTK_ENTRY (entry), pathname ? pathname : filename_generate ()); g_object_set_data (G_OBJECT (dialog), "name_entry", entry); /* Duration */ hbox = gtk_hbox_new (FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER(hbox), 8); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 4); gtk_widget_show (hbox); label = gtk_label_new (_("Duration:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); entry = gtk_entry_new (); gtk_box_pack_start (GTK_BOX(hbox), entry, TRUE, TRUE, 4); gtk_widget_show (entry); snprint_time (buf, BUF_LEN, duration); gtk_entry_set_text (GTK_ENTRY (entry), buf); g_signal_connect (G_OBJECT(entry), "changed", G_CALLBACK(sample_new_dialog_update), NULL); g_object_set_data (G_OBJECT (dialog), "duration_entry", entry); label = gtk_label_new (_("hh:mm:ss.xxx")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); /* Right side */ vbox = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(main_hbox), vbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER(vbox), 4); gtk_widget_show (vbox); /* Sampling rate */ entry = samplerate_chooser_new (NULL); samplerate_chooser_set_rate (entry, sample_rate); gtk_box_pack_start (GTK_BOX(vbox), entry, FALSE, FALSE, 4); gtk_widget_show (entry); g_signal_connect (G_OBJECT(entry), "number-changed", G_CALLBACK(sample_new_dialog_update), NULL); g_object_set_data (G_OBJECT (dialog), "rate_chooser", entry); /* Channels */ entry = channelcount_chooser_new (NULL); channelcount_chooser_set_count (entry, nr_channels); gtk_box_pack_start (GTK_BOX(vbox), entry, FALSE, FALSE, 4); gtk_widget_show (entry); g_signal_connect (G_OBJECT(entry), "number-changed", G_CALLBACK(sample_new_dialog_update), NULL); g_object_set_data (G_OBJECT (dialog), "channelcount_chooser", entry); /* Defaults */ hbox = gtk_hbox_new (FALSE, 4); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 4); gtk_container_set_border_width (GTK_CONTAINER(hbox), 12); gtk_widget_show (hbox); checkbutton = gtk_check_button_new_with_label (_("Remember this format")); gtk_box_pack_start (GTK_BOX (hbox), checkbutton, TRUE, TRUE, 0); gtk_widget_show (checkbutton); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, checkbutton, _("Remember this sampling rate and channel " "configuration for creating new files."), NULL); g_object_set_data (G_OBJECT (dialog), "rem_format_chb", checkbutton); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(checkbutton), do_reset); hbox2 = gtk_hbox_new (TRUE, 4); gtk_box_pack_start (GTK_BOX (hbox), hbox2, FALSE, TRUE, 0); gtk_widget_show (hbox2); button = gtk_button_new_with_label (_("Reset")); gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(sample_new_dialog_reset_cb), NULL); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Reset to the last remembered format for new files."), NULL); button = gtk_button_new_with_label (_("Defaults")); gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(sample_new_dialog_defaults_cb), NULL); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Set to the default format for new files."), NULL); /* Data memory */ frame = gtk_frame_new (NULL); gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE, TRUE, 4); gtk_frame_set_shadow_type (GTK_FRAME(frame), GTK_SHADOW_IN); gtk_widget_show (frame); ebox = gtk_event_box_new (); gtk_container_add (GTK_CONTAINER(frame), ebox); gtk_widget_show (ebox); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, ebox, _("Indicates the amount of data memory which " "will be allocated for the selected duration and " "format. All audio data is processed " "internally in 32 bit floating point format."), NULL); hbox = gtk_hbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(ebox), hbox); gtk_container_set_border_width (GTK_CONTAINER(hbox), 2); gtk_widget_show (hbox); pixmap = create_widget_from_xpm (dialog, new_xpm); gtk_box_pack_start (GTK_BOX(hbox), pixmap, FALSE, FALSE, 4); gtk_widget_show (pixmap); label = gtk_label_new (_("Data memory:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); label = gtk_label_new (NULL); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); g_object_set_data (G_OBJECT (dialog), "memsize_label", label); /* OK */ ok_button = gtk_button_new_with_label (_("Create")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET(ok_button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), ok_button, TRUE, TRUE, 0); gtk_widget_show (ok_button); g_signal_connect (G_OBJECT(ok_button), "clicked", G_CALLBACK (sample_new_dialog_ok_cb), NULL); g_object_set_data (G_OBJECT (dialog), "ok_button", ok_button); /* Cancel */ button = gtk_button_new_with_label (_("Don't create")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET(button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (sample_new_dialog_cancel_cb), NULL); gtk_widget_grab_default (ok_button); if (do_reset) { /* Call the reset callback now to set remembered options */ sample_new_dialog_reset_cb (dialog, NULL); } else { sample_new_dialog_update (dialog); } gtk_widget_show (dialog); #undef BUF_LEN } void create_sample_new_dialog_defaults ( gchar * pathname) { create_sample_new_dialog (pathname, DEFAULT_CHANNELS, DEFAULT_SAMPLERATE, 60, TRUE); } void create_sample_new_dialog_like (sw_sample * s) { sw_format * f = s->sounddata->format; create_sample_new_dialog (NULL, f->channels, f->rate, frames_to_time (f, s->sounddata->nr_frames), FALSE); } void sample_destroy (sw_sample * s) { stop_playback (s); sounddata_destroy (s->sounddata); /* XXX: Should do this: */ /* trim_registered_ops (s, 0); */ g_free (s); } sw_sounddata * sample_get_sounddata (sw_sample * s) { return s->sounddata; } void sample_set_pathname (sw_sample * s, gchar * pathname) { sw_view * v; GList * gl; if (pathname == s->pathname) return; if (pathname) { s->pathname = strdup (pathname); } else { if (s->pathname) g_free (s->pathname); s->pathname = NULL; } for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_refresh_title (v); } } GList * sample_bank_list_names (void) { GList * ret = NULL; GList * gl = NULL; sw_sample * s; for (gl = sample_bank; gl; gl = gl->next) { s = (sw_sample *)gl->data; ret = g_list_append (ret, (gpointer *)g_basename (s->pathname)); } return ret; } sw_sample * sample_bank_find_byname (const gchar * name) { GList * gl; sw_sample * sample; if (name == NULL) return NULL; for (gl = sample_bank; gl; gl = gl->next) { sample = (sw_sample *)gl->data; if ((sample->pathname != NULL) && (!strcmp (name, g_basename (sample->pathname)))) return sample; } return NULL; } gboolean sample_bank_contains (sw_sample *s) { return (g_list_find (sample_bank, s) != 0); } void sample_bank_add (sw_sample * s) { /* Check that sample is not already in sample_bank */ if (g_list_find (sample_bank, s)) return; sample_bank = g_list_append (sample_bank, s); undo_dialog_refresh_sample_list (); rec_dialog_refresh_sample_list (); } /* * sample_bank_remove (s) * * Takes a sample out of the sample list. */ void sample_bank_remove (sw_sample * s) { if (s) { sample_destroy(s); sample_bank = g_list_remove(sample_bank, s); undo_dialog_refresh_sample_list (); rec_dialog_refresh_sample_list (); } if (sample_bank == NULL) { sweep_quit (); } } void sweep_quit_ok_cb (GtkWidget * widget, gpointer data) { stop_all_playback (); gtk_main_quit (); } void sweep_quit_cancel_cb (GtkWidget * widget, gpointer data) { GList * gl; sw_sample * s; for (gl = sample_bank; gl; gl = gl->next) { s = (sw_sample *)gl->data; sample_set_tmp_message (s, _("Excellent!!!")); sample_set_progress_ready (s); } } void sweep_quit (void) { GList * gl; sw_sample * s; gboolean any_modified = FALSE; for (gl = sample_bank; gl; gl = gl->next) { s = (sw_sample *)gl->data; if (s->modified) { any_modified = TRUE; break; } } if (any_modified) { question_dialog_new (NULL, _("Files unsaved"), _("Some files are unsaved. If you quit, all " "changes will be lost.\n\n" "Are you sure you want to quit?"), _("Quit"), _("Don't quit"), G_CALLBACK (sweep_quit_ok_cb), NULL, G_CALLBACK (sweep_quit_cancel_cb), NULL, SWEEP_EDIT_MODE_READY); } else if (any_playing()) { question_dialog_new (NULL, _("Files playing"), _("No files are unsaved, but some files are " "currently playing.\n\n" "Are you sure you want to quit?"), _("Quit"), _("Don't quit"), G_CALLBACK (sweep_quit_ok_cb), NULL, G_CALLBACK (sweep_quit_cancel_cb), NULL, SWEEP_EDIT_MODE_READY); } else { sweep_quit_ok_cb (NULL, NULL); } } /* info dialog */ void sample_refresh_views (sw_sample * s) { sw_view * v; GList * gl; g_mutex_lock (s->ops_mutex); sample_info_update (s); for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_refresh (v); } g_mutex_unlock (s->ops_mutex); } void sample_start_marching_ants (sw_sample * s) { sw_view * v; GList * gl; for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; sample_display_start_marching_ants (SAMPLE_DISPLAY(v->display)); } } void sample_stop_marching_ants (sw_sample * s) { sw_view * v; GList * gl; for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; sample_display_stop_marching_ants (SAMPLE_DISPLAY(v->display)); } } /* Edit state */ static void _sample_set_edit_mode (sw_sample * s, sw_edit_mode edit_mode) { GList * gl; sw_view * v; s->edit_mode = edit_mode; for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_refresh_edit_mode (v); } undo_dialog_refresh_edit_mode (s); } void sample_set_edit_mode (sw_sample * s, sw_edit_mode edit_mode) { g_mutex_lock (s->edit_mutex); _sample_set_edit_mode (s, edit_mode); #ifdef DEBUG g_print ("set_edit_mode %d\n", edit_mode); #endif g_mutex_unlock (s->edit_mutex); } void sample_set_edit_state (sw_sample * s, sw_edit_state edit_state) { g_mutex_lock (s->edit_mutex); s->edit_state = edit_state; #ifdef DEBUG g_print ("set_edit_state %d\n", edit_state); #endif if (edit_state == SWEEP_EDIT_STATE_IDLE) { _sample_set_edit_mode (s, SWEEP_EDIT_MODE_READY); } g_mutex_unlock (s->edit_mutex); if (edit_state == SWEEP_EDIT_STATE_PENDING) { g_cond_signal (s->pending_cond); } } /* Playback state */ void sample_refresh_playmode (sw_sample * s) { GList * gl; sw_view * v; sw_head * head = s->play_head; if (!head->going) { if (s->playmarker_tag > 0) { g_source_remove (s->playmarker_tag); } } for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_refresh_playmode (v); } } void sample_set_stop_offset (sw_sample * s) { sw_framecount_t offset; g_mutex_lock (s->play_mutex); offset = s->user_offset; if (offset == s->sounddata->nr_frames) offset = 0; head_set_stop_offset (s->play_head, offset); /* s->play_head->stop_offset = offset;*/ g_mutex_unlock (s->play_mutex); } void sample_set_playmarker (sw_sample * s, sw_framecount_t offset, gboolean by_user) { GList * gl; sw_view * v; sw_head * head = s->play_head; #ifdef DEBUG g_print ("sample_set_playmarker (%p, %d, %s)\n", s, offset, by_user ? "TRUE" : "FALSE"); #endif g_mutex_lock (s->play_mutex); if (offset < 0) offset = 0; if (offset > s->sounddata->nr_frames) offset = s->sounddata->nr_frames; if (by_user) { s->by_user = by_user; s->user_offset = offset; if (!head->going || head->scrubbing == FALSE) { head_set_stop_offset (head, offset); head_set_offset (head, offset); } } else { /* if (head->scrubbing == FALSE) head_set_offset (head, offset); */ } g_mutex_unlock (s->play_mutex); for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_refresh_offset_indicators (v); } } void sample_set_offset_next_bound_left (sw_sample * s) { GList * gl; sw_sel * sel; for (gl = g_list_last (s->sounddata->sels); gl; gl = gl->prev) { sel = (sw_sel *)gl->data; if (sel->sel_end < s->user_offset) { sample_set_playmarker (s, sel->sel_end, TRUE); return; } if (sel->sel_start < s->user_offset) { sample_set_playmarker (s, sel->sel_start, TRUE); return; } } } void sample_set_offset_next_bound_right (sw_sample * s) { GList * gl; sw_sel * sel; for (gl = s->sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; if (sel->sel_start > s->user_offset) { sample_set_playmarker (s, sel->sel_start, TRUE); return; } if (sel->sel_end > s->user_offset) { sample_set_playmarker (s, sel->sel_end, TRUE); return; } } } void sample_set_rec_marker (sw_sample * s, sw_framecount_t offset) { GList * gl; sw_view * v; g_assert (s->rec_head != NULL); head_set_offset (s->rec_head, (gdouble)offset); for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_refresh_rec_offset_indicators (v); } } void sample_refresh_rec_marker (sw_sample * s) { GList * gl; sw_view * v; g_assert (s->rec_head != NULL); for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_refresh_rec_offset_indicators (v); } } void sample_set_scrubbing (sw_sample * s, gboolean scrubbing) { sw_head * head = s->play_head; head_set_scrubbing (head, scrubbing); #if 0 g_mutex_lock (s->play_mutex); s->play_scrubbing = scrubbing; g_mutex_unlock (s->play_mutex); #endif sample_set_progress_ready (s); } void sample_set_looping (sw_sample * s, gboolean looping) { GList * gl; sw_view * v; sw_head * head = s->play_head; head_set_looping (head, looping); #if 0 g_mutex_lock (s->play_mutex); s->play_looping = looping; #endif for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_refresh_looping (v); } #if 0 g_mutex_unlock (s->play_mutex); #endif } void sample_set_playrev (sw_sample * s, gboolean reverse) { GList * gl; sw_view * v; sw_head * head = s->play_head; head_set_reverse (head, reverse); #if 0 g_mutex_lock (s->play_mutex); s->play_reverse = reverse; #endif for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_refresh_playrev (v); } #if 0 g_mutex_unlock (s->play_mutex); #endif } void sample_set_mute (sw_sample * s, gboolean mute) { GList * gl; sw_view * v; sw_head * head = s->play_head; head_set_mute (head, mute); #if 0 g_mutex_lock (s->play_mutex); s->play_mute = mute; #endif for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_refresh_mute (v); } #if 0 g_mutex_unlock (s->play_mutex); #endif } void sample_set_monitor (sw_sample * s, gboolean monitor) { GList * gl; sw_view * v; sw_head * head = s->play_head; head_set_monitor (head, monitor); for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_refresh_monitor (v); } } void sample_set_previewing (sw_sample * s, gboolean previewing) { head_set_previewing (s->play_head, previewing); #if 0 g_mutex_lock (s->play_mutex); s->previewing = previewing; g_mutex_unlock (s->play_mutex); #endif } void sample_set_color (sw_sample * s, gint color) { GList * gl; sw_view * v; if (color < 0 || color > VIEW_COLOR_MAX) return; s->color = color; for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_refresh_display (v); } } void sample_set_progress_text (sw_sample * s, gchar * text) { GList * gl; sw_view * v; s->tmp_message_active = FALSE; for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_set_progress_text (v, text); } } void sample_set_progress_percent (sw_sample * s, gint percent) { s->progress_percent = CLAMP (percent, 0, 100); } void sample_refresh_progress_percent (sw_sample * s) { GList * gl; sw_view * v; if (s->edit_state == SWEEP_EDIT_STATE_IDLE) return; for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_set_progress_percent (v, s->progress_percent); } } int sample_set_progress_ready (sw_sample * s) { GList * gl; sw_view * v; if (s->edit_state != SWEEP_EDIT_STATE_IDLE) return FALSE; if (s->tmp_message_active) { for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_set_tmp_message (v, s->last_tmp_message); } } else { for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; view_set_progress_ready (v); } } return FALSE; /* for use as a one-shot timeout function */ } gint sample_clear_tmp_message (gpointer data) { sw_sample * sample = (sw_sample *)data; sample->tmp_message_active = FALSE; if (sample->edit_state == SWEEP_EDIT_STATE_IDLE) sample_set_progress_ready (sample); g_free (sample->last_tmp_message); sample->last_tmp_message = NULL; sample->tmp_message_tag = -1; return FALSE; } void sample_set_tmp_message (sw_sample * s, const char * fmt, ...) { va_list ap; #undef BUF_LEN #define BUF_LEN 512 char buf[BUF_LEN]; va_start (ap, fmt); vsnprintf (buf, BUF_LEN, fmt, ap); va_end (ap); s->tmp_message_active = TRUE; s->last_tmp_message = g_strdup (buf); if (s->tmp_message_tag != -1) { sweep_timeout_remove (s->tmp_message_tag); } s->tmp_message_tag = sweep_timeout_add ((guint32)5000, (GtkFunction)sample_clear_tmp_message, s); sweep_timeout_add ((guint32)0, (GtkFunction)sample_set_progress_ready, s); } /* * sample_replace_throughout (os, s) * * Replaces os with s throughout the program, ie: * - in the sample bank * - in all os's views * * Destroys os. * * This function is not needed in general filters because sw_sample * pointers are persistent across sounddata modifications. * However, this function is still required where the entire sample * changes but the view must stay the same, eg. for File->Revert. */ void sample_replace_throughout (sw_sample * os, sw_sample * s) { sw_view * v; GList * gl; if (os == s) return; if ((!os) || (!s)) return; s->views = os->views; for(gl = s->views; gl; gl = gl->next) { v = (sw_view *)gl->data; v->sample = s; /* view_refresh (v); */ } sample_bank_remove (os); sample_bank_add (s); } gboolean sample_offset_in_sel (sw_sample * s, sw_framecount_t offset) { GList * gl; sw_sel * sel; for (gl = s->sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; if (sel->sel_start <= offset && sel->sel_end >= offset) return TRUE; } return FALSE; } guint sample_sel_nr_regions (sw_sample * s) { return g_list_length (s->sounddata->sels); } void sample_clear_selection (sw_sample * s) { sounddata_clear_selection (s->sounddata); sample_stop_marching_ants (s); } static void sample_normalise_selection (sw_sample * s) { sounddata_normalise_selection (s->sounddata); } void sample_add_selection (sw_sample * s, sw_sel * sel) { if (!s->sounddata->sels) sample_start_marching_ants (s); sounddata_add_selection (s->sounddata, sel); } sw_sel * sample_add_selection_1 (sw_sample * s, sw_framecount_t start, sw_framecount_t end) { return sounddata_add_selection_1 (s->sounddata, start, end); } void sample_set_selection (sw_sample * s, GList * gl) { sample_clear_selection(s); s->sounddata->sels = sels_copy (gl); } sw_sel * sample_set_selection_1 (sw_sample * s, sw_framecount_t start, sw_framecount_t end) { return sounddata_set_selection_1 (s->sounddata, start, end); } void sample_selection_modify (sw_sample * s, sw_sel * sel, sw_framecount_t new_start, sw_framecount_t new_end) { sel->sel_start = new_start; sel->sel_end = new_end; sample_normalise_selection (s); } static sw_sample * ss_invert (sw_sample * s, sw_param_set unused, gpointer unused2) { sw_sounddata * sounddata = s->sounddata; GList * gl; GList * osels; sw_sel * osel, * sel; g_mutex_lock (sounddata->sels_mutex); #if 0 sounddata->sels = sels_invert (sounddata->sels, sounddata->nr_frames); #else if (!sounddata->sels) { sounddata_set_selection_1 (sounddata, 0, sounddata->nr_frames); goto out; } gl = osels = sounddata->sels; sounddata->sels = NULL; sel = osel = (sw_sel *)gl->data; if (osel->sel_start > 0) { sounddata_add_selection_1 (sounddata, 0, osel->sel_start - 1); } gl = gl->next; for (; gl; gl = gl->next) { sel = (sw_sel *)gl->data; sounddata_add_selection_1 (sounddata, osel->sel_end, sel->sel_start - 1); osel = sel; } if (sel->sel_end != sounddata->nr_frames) { sounddata_add_selection_1 (sounddata, sel->sel_end, sounddata->nr_frames); } g_list_free (osels); out: #endif g_mutex_unlock (sounddata->sels_mutex); return s; } void sample_selection_invert (sw_sample * s) { perform_selection_op (s, _("Invert selection"), ss_invert, NULL, NULL); } static sw_sample * ss_select_all (sw_sample * s, sw_param_set unused, gpointer unused2) { sw_sounddata * sounddata = s->sounddata; g_mutex_lock (sounddata->sels_mutex); sounddata_set_selection_1 (sounddata, 0, sounddata->nr_frames); g_mutex_unlock (sounddata->sels_mutex); return s; } void sample_selection_select_all (sw_sample * s) { perform_selection_op (s, _("Select all"), ss_select_all, NULL, NULL); } static sw_sample * ss_select_none (sw_sample * s, sw_param_set unused, gpointer unused2) { sw_sounddata * sounddata = s->sounddata; g_mutex_lock (sounddata->sels_mutex); sounddata_clear_selection (sounddata); g_mutex_unlock (sounddata->sels_mutex); return s; } void sample_selection_select_none (sw_sample * s) { perform_selection_op (s, _("Select none"), ss_select_none, NULL, NULL); } static sw_sample * ss_halve (sw_sample * s, sw_param_set unused, gpointer unused2) { sw_sounddata * sounddata = s->sounddata; g_mutex_lock (sounddata->sels_mutex); sounddata_selection_scale (sounddata, 0.5); g_mutex_unlock (sounddata->sels_mutex); return s; } void sample_selection_halve (sw_sample * s) { perform_selection_op (s, _("Halve selection"), ss_halve, NULL, NULL); } static sw_sample * ss_double (sw_sample * s, sw_param_set unused, gpointer unused2) { sw_sounddata * sounddata = s->sounddata; g_mutex_lock (sounddata->sels_mutex); sounddata_selection_scale (sounddata, 2.0); g_mutex_unlock (sounddata->sels_mutex); return s; } void sample_selection_double (sw_sample * s) { perform_selection_op (s, _("Double selection"), ss_double, NULL, NULL); } static sw_sample * ss_shift_left (sw_sample * s, sw_param_set unused, gpointer unused2) { sw_sounddata * sounddata = s->sounddata; sw_framecount_t delta; g_mutex_lock (sounddata->sels_mutex); delta = - (sounddata_selection_width (sounddata)); sounddata_selection_translate (sounddata, delta); g_mutex_unlock (sounddata->sels_mutex); return s; } void sample_selection_shift_left (sw_sample * s) { perform_selection_op (s, _("Selection left"), ss_shift_left, NULL, NULL); } static sw_sample * ss_shift_right (sw_sample * s, sw_param_set unused, gpointer unused2) { sw_sounddata * sounddata = s->sounddata; sw_framecount_t delta; g_mutex_lock (sounddata->sels_mutex); delta = (sounddata_selection_width (sounddata)); sounddata_selection_translate (sounddata, delta); g_mutex_unlock (sounddata->sels_mutex); return s; } void sample_selection_shift_right (sw_sample * s) { perform_selection_op (s, _("Selection right"), ss_shift_right, NULL, NULL); } /* * Functions to handle the temporary selection */ void sample_clear_tmp_sel (sw_sample * s) { if (s->tmp_sel) g_free (s->tmp_sel); s->tmp_sel = NULL; last_tmp_view = NULL; } /* * sample_set_tmp_sel (s, tsel) * * sets the tmp_sel of sample s to a list containing only tsel. * If tsel was part of the actual selection of s, it is first * removed from the selection. */ void sample_set_tmp_sel (sw_sample * s, sw_view * tview, sw_sel * tsel) { GList * gl; sw_sel * sel; /* XXX: Dump old tmp_sel */ sample_clear_tmp_sel (s); s->tmp_sel = sel_copy (tsel); /* XXX: try to do this without copying? */ last_tmp_view = tview; g_mutex_lock (s->sounddata->sels_mutex); for(gl = s->sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; if(sel == tsel) { s->sounddata->sels = g_list_remove(s->sounddata->sels, sel); } } g_mutex_unlock (s->sounddata->sels_mutex); } void sample_set_tmp_sel_1 (sw_sample * s, sw_view * tview, sw_framecount_t start, sw_framecount_t end) { sw_sel * tsel; tsel = sel_new (start, end); sample_set_tmp_sel (s, tview, tsel); } /* For convenience, as the tmp_sel handling is internal to the application, * we pass the actual sw_sample pointer to the tmp_sel handling ops. */ static sw_sample * ssits (sw_sample * s, sw_param_set unused, gpointer data) { sw_sel * sel = (sw_sel *)data; g_mutex_lock (s->sounddata->sels_mutex); sample_add_selection (s, sel); sample_normalise_selection (s); g_mutex_unlock (s->sounddata->sels_mutex); return s; } void sample_selection_insert_tmp_sel (sw_sample * s) { int n; #undef BUF_LEN #define BUF_LEN 64 gchar buf[BUF_LEN]; sw_format * format = s->sounddata->format; sw_sel * sel; n = snprintf (buf, BUF_LEN, _("Insert selection [")); n += snprint_time (buf+n, BUF_LEN-n, frames_to_time (format, s->tmp_sel->sel_start)); n += snprintf (buf+n, BUF_LEN-n, " - "); n += snprint_time (buf+n, BUF_LEN-n, frames_to_time (format, s->tmp_sel->sel_end)); n += snprintf (buf+n, BUF_LEN-n, "]"); g_mutex_lock (s->sounddata->sels_mutex); sel = sel_copy (s->tmp_sel); s->tmp_sel = NULL; last_tmp_view = NULL; g_mutex_unlock (s->sounddata->sels_mutex); perform_selection_op (s, buf, ssits, NULL, sel); #undef BUF_LEN } static sw_sample * sssts (sw_sample * s, sw_param_set unused, gpointer data) { GList * sels; sw_sel * sel = (sw_sel *)data; g_mutex_lock (s->sounddata->sels_mutex); sels = s->sounddata->sels; sels = sels_invert (sels, s->sounddata->nr_frames); s->sounddata->sels = sels_add_selection (sels, sel); sample_normalise_selection (s); sels = s->sounddata->sels; s->sounddata->sels = sels_invert (sels, s->sounddata->nr_frames); g_mutex_unlock (s->sounddata->sels_mutex); return s; } void sample_selection_subtract_tmp_sel (sw_sample * s) { int n; #define BUF_LEN 64 gchar buf[BUF_LEN]; sw_format * format = s->sounddata->format; sw_sel * sel; n = snprintf (buf, BUF_LEN, _("Subtract selection [")); n += snprint_time (buf+n, BUF_LEN-n, frames_to_time (format, s->tmp_sel->sel_start)); n += snprintf (buf+n, BUF_LEN-n, " - "); n += snprint_time (buf+n, BUF_LEN-n, frames_to_time (format, s->tmp_sel->sel_end)); n += snprintf (buf+n, BUF_LEN-n, "]"); g_mutex_lock (s->sounddata->sels_mutex); sel = sel_copy (s->tmp_sel); s->tmp_sel = NULL; last_tmp_view = NULL; g_mutex_unlock (s->sounddata->sels_mutex); perform_selection_op (s, buf, sssts, NULL, sel); } static sw_sample * ssrwts (sw_sample * s, sw_param_set unused, gpointer data) { sw_sel * sel = (sw_sel *)data; g_mutex_lock (s->sounddata->sels_mutex); sample_clear_selection (s); sample_add_selection (s, sel); g_mutex_unlock (s->sounddata->sels_mutex); return s; } void sample_selection_replace_with_tmp_sel (sw_sample * s) { int n; #define BUF_LEN 64 gchar buf[BUF_LEN]; sw_format * format = s->sounddata->format; sw_sel * sel; n = snprintf (buf, BUF_LEN, _("Set selection [")); n += snprint_time (buf+n, BUF_LEN-n, frames_to_time (format, s->tmp_sel->sel_start)); n += snprintf (buf+n, BUF_LEN-n, " - "); n += snprint_time (buf+n, BUF_LEN-n, frames_to_time (format, s->tmp_sel->sel_end)); n += snprintf (buf+n, BUF_LEN-n, "]"); g_mutex_lock (s->sounddata->sels_mutex); sel = sel_copy (s->tmp_sel); s->tmp_sel = NULL; last_tmp_view = NULL; g_mutex_unlock (s->sounddata->sels_mutex); perform_selection_op (s, buf, ssrwts, NULL, sel); } /* Sample info dialog */ static void sample_info_update (sw_sample * sample) { sw_sounddata * sounddata = sample->sounddata; GtkWidget * clist = sample->info_clist; #define RATE_BUF_LEN 16 char rate_buf[RATE_BUF_LEN]; #define CHAN_BUF_LEN 16 char chan_buf[CHAN_BUF_LEN]; #define BYTE_BUF_LEN 16 char byte_buf[BYTE_BUF_LEN]; #define TIME_BUF_LEN 16 char time_buf[TIME_BUF_LEN]; if (clist == NULL) return; snprintf (rate_buf, RATE_BUF_LEN, "%d Hz", sounddata->format->rate); snprintf (chan_buf, CHAN_BUF_LEN, "%d", sounddata->format->channels); snprint_bytes (byte_buf, BYTE_BUF_LEN, frames_to_bytes (sounddata->format, sounddata->nr_frames)); snprint_time (time_buf, TIME_BUF_LEN, frames_to_time (sounddata->format, sounddata->nr_frames)); gtk_clist_set_text (GTK_CLIST(clist), 0, 1, g_basename(sample->pathname)); gtk_clist_set_text (GTK_CLIST(clist), 1, 1, rate_buf); gtk_clist_set_text (GTK_CLIST(clist), 2, 1, chan_buf); gtk_clist_set_text (GTK_CLIST(clist), 3, 1, byte_buf); gtk_clist_set_text (GTK_CLIST(clist), 4, 1, time_buf); } static void sample_info_dialog_destroy_cb (GtkWidget * widget, gpointer data) { sw_sample * sample = (sw_sample *)data; sample->info_clist = NULL; } static void sample_info_dialog_ok_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; dialog = gtk_widget_get_toplevel (widget); gtk_widget_hide (dialog); } /* static gchar * filename_info[] = { N_("Filename:"), "" }; static gchar * rate_info[] = { N_("Sampling rate:"), "" }; static gchar * channels_info[] = { N_("Channels:"), "" }; static gchar * size_info[] = { N_("Data memory:"), "" }; static gchar * duration_info[] = { N_("Duration:"), "" }; */ void sample_show_info_dialog (sw_sample * sample) { GtkWidget * dialog; GtkWidget * clist; GtkWidget * ok_button; gchar * list_item[] = { "" }; gint i=0; if (sample->info_clist == NULL) { dialog = gtk_dialog_new (); gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER); gtk_window_set_title (GTK_WINDOW(dialog), _("Sweep: File properties")); gtk_container_set_border_width (GTK_CONTAINER(dialog), 8); g_signal_connect (G_OBJECT(dialog), "destroy", G_CALLBACK(sample_info_dialog_destroy_cb), sample); clist = gtk_clist_new (2); gtk_clist_set_selection_mode (GTK_CLIST(clist), GTK_SELECTION_BROWSE); gtk_clist_set_column_justification (GTK_CLIST(clist), 0, GTK_JUSTIFY_RIGHT); gtk_clist_set_column_justification (GTK_CLIST(clist), 1, GTK_JUSTIFY_LEFT); gtk_box_pack_start (GTK_BOX(GTK_DIALOG(dialog)->vbox), clist, FALSE, FALSE, 0); /* gtk_clist_append (GTK_CLIST(clist), filename_info); gtk_clist_append (GTK_CLIST(clist), rate_info); gtk_clist_append (GTK_CLIST(clist), channels_info); gtk_clist_append (GTK_CLIST(clist), size_info); gtk_clist_append (GTK_CLIST(clist), duration_info); */ gtk_clist_append (GTK_CLIST(clist), list_item); gtk_clist_set_text (GTK_CLIST(clist), i++, 0, _("Filename: ")); gtk_clist_append (GTK_CLIST(clist), list_item); gtk_clist_set_text (GTK_CLIST(clist), i++, 0, _("Sampling rate: ")); gtk_clist_append (GTK_CLIST(clist), list_item); gtk_clist_set_text (GTK_CLIST(clist), i++, 0, _("Channels: ")); gtk_clist_append (GTK_CLIST(clist), list_item); gtk_clist_set_text (GTK_CLIST(clist), i++, 0, _("Data memory: ")); gtk_clist_append (GTK_CLIST(clist), list_item); gtk_clist_set_text (GTK_CLIST(clist), i++, 0, _("Duration: ")); gtk_clist_set_column_min_width (GTK_CLIST(clist), 0, 120); gtk_clist_set_column_min_width (GTK_CLIST(clist), 1, 160); gtk_widget_show (clist); sample->info_clist = clist; /* OK */ ok_button = gtk_button_new_with_label (_("OK")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (ok_button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), ok_button, TRUE, TRUE, 0); gtk_widget_show (ok_button); g_signal_connect (G_OBJECT(ok_button), "clicked", G_CALLBACK (sample_info_dialog_ok_cb), sample); gtk_widget_grab_default (ok_button); } else { dialog = gtk_widget_get_toplevel (sample->info_clist); } sample_info_update (sample); if (!GTK_WIDGET_VISIBLE(dialog)) { gtk_widget_show (dialog); } else { gdk_window_raise (dialog->window); } } sweep-0.9.3/src/file_vorbis.c0000644000175000017500000013307110777660160014641 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * Copyright (C) 2002 CSIRO Australia * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* * This file adapted from "decoder_example.c" and "encoder_example.c" in * the OggVorbis software codec source code, Copyright (C) 1994-2002 by * the XIPHOPHORUS Company. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * GOVERNED BY the following BSD-style license. * * Copyright (c) 2002, Xiph.org Foundation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * - Neither the name of the Xiph.org Foundation nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * */ #ifdef HAVE_CONFIG_H # include #endif #ifdef HAVE_OGGVORBIS #include #include #include #include #include #include #include #include #include #include #include #define BUFFER_LEN 1024 #include #include #include #include #include #include #include #include #include #include "sample.h" #include "interface.h" #include "file_dialogs.h" #include "file_sndfile.h" #include "question_dialogs.h" #include "preferences.h" #include "print.h" #include "view.h" #include "../pixmaps/white-ogg.xpm" #include "../pixmaps/vorbisword2.xpm" #include "../pixmaps/xifish.xpm" #define BUF_LEN 128 #define QUALITY_KEY "OggVorbis_Quality" #define ABR_KEY "OggVorbis_ABR" #define NOMINAL_KEY "OggVorbis_NominalBR" #define MINIMUM_KEY "OggVorbis_MinBR" #define MAXIMUM_KEY "OggVorbis_MaxBR" #define SERIALNO_KEY "OggVorbis_Serialno" #define DEFAULT_NOMINAL 128L #define DEFAULT_QUALITY 3.0 extern GtkStyle * style_bw; #ifdef DEVEL_CODE typedef struct _sw_metadata sw_metadata; struct _sw_metadata { char * name; char * content; }; static sw_metadata * vorbis_metadata_from_str (char * str) { sw_metadata * meta = NULL; gint i; for (i = 0; str[i]; i++) { if (i == 0) { str[i] = toupper(str[i]); } else { str[i] = tolower(str[i]); } if (str[i] == '=') { str[i] = '\0'; meta = g_malloc (sizeof (sw_metadata)); meta->name = g_strdup (str); meta->content = g_strdup (&str[i+1]); break; } } return meta; } #endif /* DEVEL_CODE */ static sw_sample * sample_load_vorbis_data (sw_op_instance * inst) { sw_sample * sample = inst->sample; OggVorbis_File * vf = (OggVorbis_File *)sample->file_info; int channels; float ** pcm; int i, j; sw_audio_t * d; sw_framecount_t remaining, n, run_total; sw_framecount_t cframes; gint percent; int bitstream; struct stat statbuf; gboolean active = TRUE; channels = sample->sounddata->format->channels; remaining = sample->sounddata->nr_frames; run_total = 0; d = sample->sounddata->data; cframes = remaining / 100; if (cframes == 0) cframes = 1; while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { n = MIN (remaining, 1024); #ifdef OV_READ_FLOAT_THREE_ARGS n = ov_read_float (vf, &pcm, &bitstream); #else n = ov_read_float (vf, &pcm, n, &bitstream); #endif if (n == 0) { /* EOF */ remaining = 0; } else if (n < 0) { /* XXX: corrupt data; ignore? */ } else { for (i = 0; i < channels; i++) { for (j = 0; j < n; j++) { d[j*channels + i] = pcm[i][j]; } } d += (n * channels); remaining -= n; run_total += n; percent = run_total / cframes; sample_set_progress_percent (sample, percent); } } g_mutex_unlock (sample->ops_mutex); } ov_clear (vf); stat (sample->pathname, &statbuf); sample->last_mtime = statbuf.st_mtime; sample->edit_ignore_mtime = FALSE; sample->modified = FALSE; sample_set_edit_state (sample, SWEEP_EDIT_STATE_DONE); return sample; } static sw_operation vorbis_load_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)sample_load_vorbis_data, (SweepFunction)NULL, (SweepCallback)NULL, /* undo */ (SweepFunction)NULL, (SweepCallback)NULL, /* redo */ (SweepFunction)NULL }; static sw_sample * sample_load_vorbis_info (sw_sample * sample, char * pathname) { FILE * f; OggVorbis_File * vf; vorbis_info * vi; int ret; #undef BUF_LEN #define BUF_LEN 128 char buf[BUF_LEN]; gboolean isnew = (sample == NULL); sw_view * v; f = fopen (pathname, "r"); vf = g_malloc (sizeof (OggVorbis_File)); if ((ret = ov_open (f, vf, NULL, 0)) < 0) { switch (ret) { case OV_EREAD: printf ("vorbis: read from media returned an error\n"); break; case OV_ENOTVORBIS: /* No need to report this one -- this was not a vorbis file */ #ifdef DEBUG printf ("vorbis: Bitstream is not Vorbis data\n"); #endif break; case OV_EVERSION: printf ("vorbis: Vorbis version mismatch\n"); break; case OV_EBADHEADER: printf ("vorbis: Invalid Vorbis bitstream header\n"); break; case OV_EFAULT: printf ("vorbis: Internal logic fault\n"); break; default: break; } g_free (vf); return NULL; } /* Get the vorbis info (channels, rate) */ vi = ov_info (vf, -1); if (sample == NULL) { sample = sample_new_empty(pathname, vi->channels, vi->rate, (sw_framecount_t) ov_pcm_total (vf, -1)); } else { sounddata_destroy (sample->sounddata); sample->sounddata = sounddata_new_empty (vi->channels, vi->rate, (sw_framecount_t) ov_pcm_total (vf, -1)); } if(!sample) { g_free (vf); return NULL; } sample->file_method = SWEEP_FILE_METHOD_OGGVORBIS; sample->file_info = vf; sample_bank_add(sample); if (isnew) { v = view_new_all (sample, 1.0); sample_add_view (sample, v); } else { trim_registered_ops (sample, 0); } g_snprintf (buf, BUF_LEN, _("Loading %s"), g_basename (sample->pathname)); #ifdef DEVEL_CODE /* Throw the comments plus a few lines about the bitstream we're decoding */ { GList * metadata_list = NULL; sw_metadata * metadata = NULL; #undef BUF_LEN #define BUF_LEN 1024 char buf[BUF_LEN]; int n = 0; char **ptr = ov_comment(vf, -1)->user_comments; while(*ptr) { metadata = vorbis_metadata_from_str (*ptr); if (metadata != NULL) { /* Store the metadata for later use, except the encoder comment */ if (g_strcasecmp (metadata->content, "encoder")) metadata_list = g_list_append (metadata_list, metadata); n += snprintf (buf+n, BUF_LEN-n, "%s: %s\n", metadata->name, metadata->content); } ++ptr; } info_dialog_new (g_basename (sample->pathname), xifish_xpm, _("Decoding %s\n" "Encoded by: %s\n\n" "%s"), g_basename (sample->pathname), ov_comment(vf,-1)->vendor, buf); } #endif /* DEVEL_CODE */ schedule_operation (sample, buf, &vorbis_load_op, sample); return sample; } sw_sample * vorbis_sample_reload (sw_sample * sample) { if (sample == NULL) return NULL; return sample_load_vorbis_info (sample, sample->pathname); } sw_sample * vorbis_sample_load (char * pathname) { if (pathname == NULL) return NULL; return sample_load_vorbis_info (NULL, pathname); } typedef struct { gchar * pathname; gboolean use_abr; gfloat quality; long max_bitrate; long nominal_bitrate; long min_bitrate; long serialno; } vorbis_save_options; static int vorbis_sample_save_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; char * pathname = (char *)inst->do_data; FILE * outfile; sw_format * format; sw_audio_t * d; sw_framecount_t remaining, len, run_total; sw_framecount_t nr_frames, cframes; gint percent = 0; vorbis_save_options * so; ogg_stream_state os; /* take physical pages, weld into a logical stream of packets */ ogg_page og; /* one Ogg bitstream page. Vorbis packets are inside */ ogg_packet op; /* one raw packet of data for decode */ vorbis_info vi; /* struct that stores all the static vorbis bitstream settings */ vorbis_comment vc; /* struct that stores all the user comments */ vorbis_dsp_state vd; /* central working state for the packet->PCM decoder */ vorbis_block vb; /* local working space for packet->PCM decode */ int eos=0,ret; float **pcm; long i, j; gboolean active = TRUE; size_t n, bytes_written = 0; double average_bitrate = 0.0; struct stat statbuf; int errno_save = 0; if (sample == NULL) return -1; so = (vorbis_save_options *)sample->file_info; format = sample->sounddata->format; nr_frames = sample->sounddata->nr_frames; cframes = nr_frames / 100; if (cframes == 0) cframes = 1; remaining = nr_frames; run_total = 0; d = sample->sounddata->data; if (!(outfile = fopen (pathname, "w"))) { sweep_perror (errno, pathname); return -1; } vorbis_info_init (&vi); if (so->use_abr) { printf ("%ld, %ld, %ld\n", so->max_bitrate, so->nominal_bitrate, so->min_bitrate); ret = vorbis_encode_init (&vi, format->channels, format->rate, so->max_bitrate, so->nominal_bitrate, so->min_bitrate); } else { ret = vorbis_encode_init_vbr (&vi, format->channels, format->rate, so->quality /* quality: 0 to 1 */); } if (ret) { switch (ret) { case OV_EIMPL: sample_set_tmp_message (sample, _("Unsupported encoding mode")); break; default: sample_set_tmp_message (sample, _("Invalid encoding options")); } return -1; } vorbis_comment_init (&vc); vorbis_comment_add_tag (&vc, "ENCODER", "Sweep " VERSION " (metadecks.org)"); /* set up the analysis state and auxiliary encoding storage */ vorbis_analysis_init (&vd, &vi); vorbis_block_init (&vd, &vb); /* set up our packet->stream encoder */ ogg_stream_init (&os, so->serialno); /* Vorbis streams begin with three headers; the initial header (with most of the codec setup parameters) which is mandated by the Ogg bitstream spec. The second header holds any comment fields. The third header holds the bitstream codebook. We merely need to make the headers, then pass them to libvorbis one at a time; libvorbis handles the additional Ogg bitstream constraints */ { ogg_packet header; ogg_packet header_comm; ogg_packet header_code; vorbis_analysis_headerout(&vd,&vc,&header,&header_comm,&header_code); ogg_stream_packetin(&os,&header); /* automatically placed in its own page */ ogg_stream_packetin(&os,&header_comm); ogg_stream_packetin(&os,&header_code); /* This ensures the actual * audio data will start on a new page, as per spec */ while(!eos){ int result=ogg_stream_flush(&os,&og); if(result==0)break; n = fwrite (og.header, 1, og.header_len, outfile); n += fwrite (og.body, 1, og.body_len, outfile); if (fflush (outfile) == 0) { bytes_written += n; } else { errno_save = errno; eos = 1; /* pffft -- this encoding wasn't going anywhere */ } } } while (!eos) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } if (active == FALSE || remaining <= 0) { /* Tell the library we're at end of stream so that it can handle * the last frame and mark end of stream in the output properly */ vorbis_analysis_wrote (&vd, 0); } else { /* data to encode */ len = MIN (remaining, 1024); /* expose the buffer to submit data */ pcm = vorbis_analysis_buffer (&vd, 1024); /* uninterleave samples */ for (i = 0; i < format->channels; i++) { for (j = 0; j < len; j++) { pcm[i][j] = d[j*format->channels + i]; } } /* tell the library how much we actually submitted */ vorbis_analysis_wrote(&vd, len); d += (len * format->channels); remaining -= len; run_total += len; percent = run_total / cframes; sample_set_progress_percent (sample, percent); } g_mutex_unlock (sample->ops_mutex); /* vorbis does some data preanalysis, then divvies up blocks for more involved (potentially parallel) processing. Get a single block for encoding now */ while(vorbis_analysis_blockout(&vd,&vb)==1){ /* analysis, assume we want to use bitrate management */ vorbis_analysis(&vb,NULL); vorbis_bitrate_addblock(&vb); while(vorbis_bitrate_flushpacket(&vd,&op)){ /* weld the packet into the bitstream */ ogg_stream_packetin(&os,&op); /* write out pages (if any) */ while(!eos){ int result=ogg_stream_pageout(&os,&og); if(result==0)break; n = fwrite (og.header, 1, og.header_len, outfile); n += fwrite (og.body, 1, og.body_len, outfile); if (fflush (outfile) == 0) { bytes_written += n; } else { errno_save = errno; active = FALSE; } /* this could be set above, but for illustrative purposes, I do it here (to show that vorbis does know where the stream ends) */ if(ogg_page_eos(&og))eos=1; } } } } /* clean up and exit. vorbis_info_clear() must be called last */ ogg_stream_clear(&os); vorbis_block_clear(&vb); vorbis_dsp_clear(&vd); vorbis_comment_clear(&vc); vorbis_info_clear(&vi); fclose (outfile); /* Report success or failure; Calculate and display statistics */ #undef BUF_LEN #define BUF_LEN 16 if (remaining <= 0) { char time_buf[BUF_LEN], bytes_buf[BUF_LEN]; #if 1 sample_store_and_free_pathname (sample, pathname); #else g_free (pathname); #endif /* Mark the last mtime for this sample */ stat (sample->pathname, &statbuf); sample->last_mtime = statbuf.st_mtime; sample->edit_ignore_mtime = FALSE; sample->modified = FALSE; snprint_time (time_buf, BUF_LEN, frames_to_time (format, nr_frames - remaining)); snprint_bytes (bytes_buf, BUF_LEN, bytes_written); average_bitrate = 8.0/1000.0*((double)bytes_written/((double)nr_frames/(double)format->rate)); info_dialog_new (_("Ogg Vorbis encoding results"), xifish_xpm, "Encoding of %s succeeded.\n\n" "%s written, %s audio\n" "Average bitrate: %.1f kbps", g_basename (sample->pathname), bytes_buf, time_buf, average_bitrate); } else { char time_buf[BUF_LEN], bytes_buf[BUF_LEN]; snprint_time (time_buf, BUF_LEN, frames_to_time (format, nr_frames - remaining)); snprint_bytes (bytes_buf, BUF_LEN, bytes_written); average_bitrate = 8.0/1000.0*((double)bytes_written/((double)(nr_frames - remaining)/(double)format->rate)); if (isnan(average_bitrate)) average_bitrate = 0.0; if (errno_save == 0) { info_dialog_new (_("Ogg Vorbis encoding results"), xifish_xpm, "Encoding of %s FAILED\n\n" "%s written, %s audio (%d%% complete)\n" "Average bitrate: %.1f kbps", g_basename (pathname), bytes_buf, time_buf, percent, average_bitrate); } else { sweep_perror (errno_save, "Encoding of %s FAILED\n\n" "%s written, %s audio (%d%% complete)\n" "Average bitrate: %.1f kbps", g_basename (pathname), bytes_buf, time_buf, percent, average_bitrate); } } sample_set_edit_state (sample, SWEEP_EDIT_STATE_DONE); return 0; } static sw_operation vorbis_save_op = { SWEEP_EDIT_MODE_META, (SweepCallback)vorbis_sample_save_thread, (SweepFunction)NULL, (SweepCallback)NULL, /* undo */ (SweepFunction)NULL, (SweepCallback)NULL, /* redo */ (SweepFunction)NULL }; int vorbis_sample_save (sw_sample * sample, char * pathname) { #undef BUF_LEN #define BUF_LEN 64 char buf[BUF_LEN]; g_snprintf (buf, BUF_LEN, _("Saving %s"), g_basename (pathname)); schedule_operation (sample, buf, &vorbis_save_op, pathname); return 0; } static void vorbis_save_options_dialog_ok_cb (GtkWidget * widget, gpointer data) { sw_sample * sample = (sw_sample *)data; GtkWidget * dialog; vorbis_save_options * so; GtkWidget * checkbutton; GtkWidget * entry; const gchar * text; gboolean use_abr; GtkObject * quality_adj; gfloat quality = -1.0; long max_bitrate = -1, nominal_bitrate = -1, min_bitrate = -1; gboolean rem_encode; long serialno; gboolean rem_serialno; char * pathname; so = g_malloc (sizeof(vorbis_save_options)); dialog = gtk_widget_get_toplevel (widget); checkbutton = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "abr_chb")); use_abr = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(checkbutton)); if (use_abr) { entry = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "nominal_bitrate_entry")); text = gtk_entry_get_text (GTK_ENTRY(entry)); nominal_bitrate = strtol (text, (char **)NULL, 0); if (nominal_bitrate == LONG_MIN || nominal_bitrate == LONG_MAX || nominal_bitrate == 0) nominal_bitrate = DEFAULT_NOMINAL; entry = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "max_bitrate_entry")); text = gtk_entry_get_text (GTK_ENTRY(entry)); max_bitrate = strtol (text, (char **)NULL, 0); if (max_bitrate == LONG_MIN || max_bitrate == LONG_MAX || max_bitrate == 0) max_bitrate = -1; entry = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "min_bitrate_entry")); text = gtk_entry_get_text (GTK_ENTRY(entry)); min_bitrate = strtol (text, (char **)NULL, 0); if (min_bitrate == LONG_MIN || min_bitrate == LONG_MAX || min_bitrate == 0) min_bitrate = -1; } else { quality_adj = GTK_OBJECT(g_object_get_data (G_OBJECT(dialog), "quality_adj")); quality = GTK_ADJUSTMENT(quality_adj)->value; } checkbutton = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "rem_encode_chb")); rem_encode = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(checkbutton)); entry = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "serialno_entry")); text = gtk_entry_get_text (GTK_ENTRY(entry)); serialno = strtol (text, (char **)NULL, 0); if (serialno == LONG_MIN || serialno == LONG_MAX) serialno = random (); checkbutton = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "rem_serialno_chb")); rem_serialno = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(checkbutton)); pathname = g_object_get_data (G_OBJECT(dialog), "pathname"); gtk_widget_destroy (dialog); if (rem_encode) { prefs_set_int (ABR_KEY, use_abr); if (use_abr) { prefs_set_long (NOMINAL_KEY, nominal_bitrate); prefs_set_long (MAXIMUM_KEY, max_bitrate); prefs_set_long (MINIMUM_KEY, min_bitrate); } else { prefs_set_float (QUALITY_KEY, quality); } } if (rem_serialno) { prefs_set_long (SERIALNO_KEY, serialno); } else { prefs_delete (SERIALNO_KEY); } if (sample->file_info) { g_free (sample->file_info); } so->use_abr = use_abr; if (use_abr) { if (max_bitrate > 0) max_bitrate *= 1000; nominal_bitrate *= 1000; if (min_bitrate > 0) min_bitrate *= 1000; so->max_bitrate = max_bitrate; so->nominal_bitrate = nominal_bitrate; so->min_bitrate = min_bitrate; } else { g_assert (quality != -1.0); so->quality = quality / 10.0; } so->serialno = serialno; sample->file_info = so; vorbis_sample_save (sample, pathname); } static void vorbis_save_options_dialog_cancel_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; dialog = gtk_widget_get_toplevel (widget); gtk_widget_destroy (dialog); /* if the sample bank is empty, quit the program */ sample_bank_remove (NULL); } static void bitrate_enable_cb (GtkWidget * widget, gpointer data) { GtkWidget * bitrate_widget = (GtkWidget *)data; GtkWidget * quality_widget; gboolean active; quality_widget = g_object_get_data (G_OBJECT(widget), "quality_widget"); active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget)); gtk_widget_set_sensitive (quality_widget, !active); gtk_widget_set_sensitive (bitrate_widget, active); } static void vorbis_encode_options_reset_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkWidget * checkbutton; GtkWidget * entry; int * i; gboolean use_abr; GtkObject * quality_adj; float * q, quality; long * l, bitrate; dialog = gtk_widget_get_toplevel (widget); /* Quality */ quality_adj = GTK_OBJECT(g_object_get_data (G_OBJECT(dialog), "quality_adj")); q = prefs_get_float (QUALITY_KEY); if (q == NULL) { quality = DEFAULT_QUALITY; } else { quality = *q; } gtk_adjustment_set_value (GTK_ADJUSTMENT(quality_adj), quality); /* Nominal bitrate */ entry = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "nominal_bitrate_entry")); l = prefs_get_long (NOMINAL_KEY); if (l == NULL) { bitrate = DEFAULT_NOMINAL; } else { bitrate = *l; } gtk_entry_set_text (GTK_ENTRY (entry), g_strdup_printf ("%ld", bitrate)); /* Max bitrate */ entry = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "max_bitrate_entry")); l = prefs_get_long (MAXIMUM_KEY); if (l != NULL && (*l != -1)) { gtk_entry_set_text (GTK_ENTRY (entry), g_strdup_printf ("%ld", *l)); } /* Min bitrate */ entry = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "min_bitrate_entry")); l = prefs_get_long (MINIMUM_KEY); if (l != NULL && (*l != -1)) { gtk_entry_set_text (GTK_ENTRY (entry), g_strdup_printf ("%ld", *l)); } /* Use ABR */ i = prefs_get_int (ABR_KEY); if (i == NULL) { use_abr = FALSE; } else { use_abr = (gboolean) *i; } checkbutton = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "abr_chb")); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(checkbutton), use_abr); } static void vorbis_encode_options_default_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkWidget * checkbutton; GtkWidget * entry; GtkObject * quality_adj; dialog = gtk_widget_get_toplevel (widget); /* Quality */ quality_adj = GTK_OBJECT(g_object_get_data (G_OBJECT(dialog), "quality_adj")); gtk_adjustment_set_value (GTK_ADJUSTMENT(quality_adj), DEFAULT_QUALITY); /* Nominal bitrate */ entry = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "nominal_bitrate_entry")); gtk_entry_set_text (GTK_ENTRY (entry), g_strdup_printf ("%ld", DEFAULT_NOMINAL)); /* Max bitrate */ entry = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "max_bitrate_entry")); gtk_entry_set_text (GTK_ENTRY (entry), ""); /* Min bitrate */ entry = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "min_bitrate_entry")); gtk_entry_set_text (GTK_ENTRY (entry), ""); /* Use ABR */ checkbutton = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "abr_chb")); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(checkbutton), FALSE); } #ifdef DEVEL_CODE static void metadata_table_add_row (GtkWidget * table, int row, char * title, char * tip) { GtkWidget * hbox; GtkWidget * label; GtkWidget * entry; GtkTooltips * tooltips; hbox = gtk_hbox_new (FALSE, 0); gtk_table_attach (GTK_TABLE(table), hbox, 0, 1, row, row+1, GTK_FILL, GTK_SHRINK, 0, 0); gtk_widget_show (hbox); label = gtk_label_new (title); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); entry = gtk_entry_new (); gtk_table_attach (GTK_TABLE(table), entry, 1, 2, row, row+1, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (entry); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, entry, tip, NULL); } #endif static void remember_serialno_clicked_cb (GtkWidget * widget, gpointer data) { sw_sample * sample = (sw_sample *)data; gboolean active; active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget)); if (active) { sample_set_tmp_message (sample, _("Hack the planet!")); } else { sample_clear_tmp_message (sample); } } static gboolean randomise_serialno (gpointer data) { GtkWidget * entry = (GtkWidget *)data; gchar * new_text; new_text = g_strdup_printf ("%ld", random ()); gtk_entry_set_text (GTK_ENTRY (entry), new_text); g_free (new_text); return TRUE; } static void randomise_serialno_pressed_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkWidget * checkbutton; gint tag; dialog = gtk_widget_get_toplevel (widget); checkbutton = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "rem_serialno_chb")); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(checkbutton), FALSE); tag = g_timeout_add (30, randomise_serialno, data); g_object_set_data (G_OBJECT(widget), "tag", GINT_TO_POINTER(tag)); } static void randomise_serialno_released_cb (GtkWidget * widget, gpointer data) { gint tag; tag = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "tag")); g_source_remove (tag); } static GtkWidget * create_vorbis_encoding_options_dialog (sw_sample * sample, char * pathname) { GtkWidget * dialog; GtkWidget * ok_button, * button; GtkWidget * main_vbox; GtkWidget * ebox; GtkWidget * vbox; GtkWidget * hbox, * hbox2; GtkWidget * label; GtkWidget * pixmap; GtkWidget * notebook; GtkWidget * checkbutton; GtkWidget * frame; GtkObject * quality_adj; GtkWidget * quality_hscale; GtkWidget * table; GtkWidget * entry; GtkTooltips * tooltips; long * l; #ifdef DEVEL_CODE /* metadata */ int t; /* table row */ GtkWidget * scrolled; #endif dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW(dialog), _("Sweep: Ogg Vorbis save options")); gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER); attach_window_close_accel(GTK_WINDOW(dialog)); g_object_set_data (G_OBJECT(dialog), "pathname", pathname); main_vbox = GTK_DIALOG(dialog)->vbox; ebox = gtk_event_box_new (); gtk_box_pack_start (GTK_BOX(main_vbox), ebox, TRUE, TRUE, 0); gtk_widget_set_style (ebox, style_bw); gtk_widget_show (ebox); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(ebox), vbox); gtk_widget_show (vbox); /* Ogg Vorbis pixmaps */ hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER(hbox), 4); gtk_widget_show (hbox); pixmap = create_widget_from_xpm (dialog, white_ogg_xpm); gtk_box_pack_start (GTK_BOX(hbox), pixmap, FALSE, FALSE, 0); gtk_widget_show (pixmap); pixmap = create_widget_from_xpm (dialog, vorbisword2_xpm); gtk_box_pack_start (GTK_BOX(hbox), pixmap, FALSE, FALSE, 0); gtk_widget_show (pixmap); /* filename */ hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER(hbox), 4); gtk_widget_show (hbox); /* pangoise? style = gtk_style_new (); gdk_font_unref (style->font); style->font = gdk_font_load("-*-helvetica-medium-r-normal-*-*-180-*-*-*-*-*-*"); gtk_widget_push_style (style); */ label = gtk_label_new (g_basename (pathname)); gtk_box_pack_start (GTK_BOX(hbox), label, TRUE, FALSE, 0); gtk_widget_show (label); /* gtk_widget_pop_style ();*/ notebook = gtk_notebook_new (); gtk_box_pack_start (GTK_BOX(main_vbox), notebook, TRUE, TRUE, 4); gtk_widget_show (notebook); /* Encoding quality */ label = gtk_label_new (_("Vorbis encoding")); vbox = gtk_vbox_new (FALSE, 0); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), vbox, label); gtk_container_set_border_width (GTK_CONTAINER(vbox), 4); gtk_widget_show (vbox); hbox = gtk_hbox_new (FALSE, 4); gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 4); gtk_container_set_border_width (GTK_CONTAINER(hbox), 12); gtk_widget_show (hbox); label = gtk_label_new (_("Encoding quality:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); quality_adj = gtk_adjustment_new (DEFAULT_QUALITY, /* value */ 0.1, /* lower */ 10.0, /* upper */ 0.001, /* step incr */ 0.001, /* page incr */ 0.001 /* page size */ ); { /* How sucky ... we create a vbox in order to center the hscale within * its allocation, thus actually lining it up with its label ... */ GtkWidget * vbox_pants; vbox_pants = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(hbox), vbox_pants, TRUE, TRUE, 0); gtk_widget_show (vbox_pants); quality_hscale = gtk_hscale_new (GTK_ADJUSTMENT(quality_adj)); gtk_box_pack_start (GTK_BOX (vbox_pants), quality_hscale, TRUE, TRUE, 0); gtk_scale_set_draw_value (GTK_SCALE (quality_hscale), TRUE); gtk_widget_set_size_request (quality_hscale, gdk_screen_width() / 8, -1); gtk_widget_show (quality_hscale); label = gtk_label_new (NULL); gtk_box_pack_start (GTK_BOX(vbox_pants), label, FALSE, FALSE, 0); gtk_widget_show (label); } tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, quality_hscale, _("Encoding quality between 0 (lowest quality, " "smallest file) and 10 (highest quality, largest " "file) using variable bitrate mode (VBR)."), NULL); g_object_set_data (G_OBJECT (dialog), "quality_adj", quality_adj); /* Bitrate management (ABR) */ checkbutton = gtk_check_button_new_with_label (_("Enable bitrate management engine")); gtk_box_pack_start (GTK_BOX(vbox), checkbutton, FALSE, FALSE, 4); gtk_widget_show (checkbutton); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, checkbutton, _("This enables average bitrate mode (ABR). You must " "suggest a nominal average bitrate and may specify " "minimum and maximum bounds.\n" "For best results it is generally recommended that " "you use the variable bitrate 'encoding quality' " "control (above) instead."), NULL); g_object_set_data (G_OBJECT(checkbutton), "quality_widget", hbox); frame = gtk_frame_new (_("Bitrate management engine")); gtk_box_pack_start (GTK_BOX(vbox), frame, TRUE, TRUE, 4); gtk_container_set_border_width (GTK_CONTAINER(frame), 12); gtk_widget_show (frame); table = gtk_table_new (3, 3, FALSE); gtk_table_set_row_spacings (GTK_TABLE(table), 8); gtk_table_set_col_spacings (GTK_TABLE(table), 8); gtk_container_add (GTK_CONTAINER(frame), table); gtk_container_set_border_width (GTK_CONTAINER(table), 8); gtk_widget_show (table); g_signal_connect (G_OBJECT(checkbutton), "toggled", G_CALLBACK(bitrate_enable_cb), frame); g_object_set_data (G_OBJECT (dialog), "abr_chb", checkbutton); gtk_widget_set_sensitive (frame, FALSE); /* Nominal bitrate */ hbox = gtk_hbox_new (FALSE, 0); gtk_table_attach (GTK_TABLE(table), hbox, 0, 1, 0, 1, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (hbox); label = gtk_label_new (_("Nominal bitrate (ABR):")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); entry = gtk_entry_new (); gtk_table_attach (GTK_TABLE(table), entry, 1, 2, 0, 1, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (entry); g_object_set_data (G_OBJECT (dialog), "nominal_bitrate_entry", entry); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, entry, _("Specify a nominal bitrate. Attempt to " "encode at a bitrate averaging this."), NULL); label = gtk_label_new (_("kbps")); gtk_table_attach (GTK_TABLE(table), label, 2, 3, 0, 1, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (label); /* Minimum bitrate */ hbox = gtk_hbox_new (FALSE, 0); gtk_table_attach (GTK_TABLE(table), hbox, 0, 1, 1, 2, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (hbox); label = gtk_label_new (_("Minimum bitrate:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); entry = gtk_entry_new (); gtk_table_attach (GTK_TABLE(table), entry, 1, 2, 1, 2, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (entry); g_object_set_data (G_OBJECT (dialog), "min_bitrate_entry", entry); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, entry, _("Specify a minimum bitrate, useful for " "encoding for a fixed-size channel. (Optional)"), NULL); label = gtk_label_new (_("kbps")); gtk_table_attach (GTK_TABLE(table), label, 2, 3, 1, 2, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (label); /* Maximum bitrate */ hbox = gtk_hbox_new (FALSE, 0); gtk_table_attach (GTK_TABLE(table), hbox, 0, 1, 2, 3, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (hbox); label = gtk_label_new (_("Maximum bitrate:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); entry = gtk_entry_new (); gtk_table_attach (GTK_TABLE(table), entry, 1, 2, 2, 3, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (entry); g_object_set_data (G_OBJECT (dialog), "max_bitrate_entry", entry); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, entry, _("Specify a maximum bitrate, useful for " "streaming applications. (Optional)"), NULL); label = gtk_label_new (_("kbps")); gtk_table_attach (GTK_TABLE(table), label, 2, 3, 2, 3, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (label); /* Remember / Reset */ hbox = gtk_hbox_new (FALSE, 4); gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 4); gtk_container_set_border_width (GTK_CONTAINER(hbox), 12); gtk_widget_show (hbox); checkbutton = gtk_check_button_new_with_label (_("Remember these encoding options")); gtk_box_pack_start (GTK_BOX (hbox), checkbutton, TRUE, TRUE, 0); gtk_widget_show (checkbutton); g_object_set_data (G_OBJECT (dialog), "rem_encode_chb", checkbutton); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(checkbutton), TRUE); hbox2 = gtk_hbox_new (TRUE, 4); gtk_box_pack_start (GTK_BOX (hbox), hbox2, FALSE, TRUE, 0); gtk_widget_show (hbox2); button = gtk_button_new_with_label (_("Reset")); gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(vorbis_encode_options_reset_cb), NULL); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Reset to the last remembered encoding options."), NULL); /* Call the reset callback now to set remembered options */ vorbis_encode_options_reset_cb (button, NULL); button = gtk_button_new_with_label (_("Defaults")); gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(vorbis_encode_options_default_cb), NULL); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Set to default encoding options."), NULL); #ifdef DEVEL_CODE /* Metadata */ label = gtk_label_new (_("Metadata")); scrolled = gtk_scrolled_window_new (NULL, NULL); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), scrolled, label); gtk_widget_show (scrolled); t = 0; table = gtk_table_new (1, 2, FALSE); gtk_table_set_row_spacings (GTK_TABLE(table), 8); gtk_table_set_col_spacings (GTK_TABLE(table), 8); gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled), table); gtk_container_set_border_width (GTK_CONTAINER(table), 8); gtk_widget_show (table); /* These fields and descriptions derived from libvorbis API documentation: * /usr/share/doc/libvorbis-dev/v-comment.html */ metadata_table_add_row (table, t++, _("Title:"), _("Track/Work name")); metadata_table_add_row (table, t++, _("Version:"), _("The version field may be used to differentiate " "multiple versions of the same track title in a " "single collection. (e.g. remix info)")); metadata_table_add_row (table, t++, _("Album:"), _("The collection name to which this track belongs")); metadata_table_add_row (table, t++, _("Artist:"), _("The artist generally considered responsible for " "the work. In popular music this is usually the " "performing band or singer. For classical music " "it would be the composer. For an audio book it " "would be the author of the original text.")); metadata_table_add_row (table, t++, _("Performer:"), _("The artist(s) who performed the work. In " "classical music this would be the conductor, " "orchestra, soloists. In an audio book it would " "be the actor who did the reading. In popular " "music this is typically the same as the ARTIST " "and is omitted.")); metadata_table_add_row (table, t++, _("Copyright:"), _("Copyright attribution, e.g., '2001 Nobody's " "Band' or '1999 Jack Moffitt'")); metadata_table_add_row (table, t++, _("License:"), _("License information, eg, 'All Rights Reserved', " "'Any Use Permitted', a URL to a license such as " "a Creative Commons license " "(\"www.creativecommons.org/blahblah/license.html\") " "or the EFF Open Audio License ('distributed " "under the terms of the Open Audio License. see " "http://www.eff.org/IP/Open_licenses/eff_oal.html " "for details'), etc.")); metadata_table_add_row (table, t++, _("Organization:"), _("Name of the organization producing the track " "(i.e. the 'record label')")); metadata_table_add_row (table, t++, _("Description:"), _("A short text description of the contents")); metadata_table_add_row (table, t++, _("Genre:"), _("A short text indication of music genre")); metadata_table_add_row (table, t++, _("Date:"), _("Date the track was recorded")); metadata_table_add_row (table, t++, _("Location:"), _("Location where track was recorded")); metadata_table_add_row (table, t++, _("Contact:"), _("Contact information for the creators or " "distributors of the track. This could be a URL, " "an email address, the physical address of the " "producing label.")); metadata_table_add_row (table, t++, _("ISRC:"), _("ISRC number for the track; see the ISRC intro " "page (http://www.ifpi.org/site-content/online/isrc_intro.html) " "for more information on ISRC numbers.")); #endif /* DEVEL_CODE */ /* Ogg stream */ label = gtk_label_new (_("Ogg stream")); vbox = gtk_vbox_new (FALSE, 4); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), vbox, label); gtk_widget_show (vbox); /* Stream serial no. */ hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER(hbox), 12); gtk_widget_show (hbox); label = gtk_label_new (_("Ogg stream serial number:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); entry = gtk_entry_new (); gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 4); gtk_widget_show (entry); g_object_set_data (G_OBJECT (dialog), "serialno_entry", entry); /* Remember serialno ? */ hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); button = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 8); gtk_widget_show (button); checkbutton = gtk_check_button_new_with_label (_("Remember this serial number")); gtk_box_pack_start (GTK_BOX (hbox), checkbutton, FALSE, TRUE, 0); gtk_widget_show (checkbutton); g_signal_connect (G_OBJECT(checkbutton), "toggled", G_CALLBACK(remember_serialno_clicked_cb), sample); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, checkbutton, _("Remember this serial number for future re-use.\n" "USE OF THIS OPTION IS NOT RECOMMENDED.\n" "Each encoded file should have a different " "serial number; " "re-use of Ogg serial numbers in different files " "may create incompatabilities with streaming " "applications. " "This option is provided for bitstream engineering " "purposes only.\n" "If this option is not checked, new serial numbers " "will be randomly generated for each file encoded."), NULL); g_object_set_data (G_OBJECT (dialog), "rem_serialno_chb", checkbutton); l = prefs_get_long (SERIALNO_KEY); if (l == NULL) { randomise_serialno (entry); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(checkbutton), FALSE); } else { gtk_entry_set_text (GTK_ENTRY(entry), g_strdup_printf ("%ld", *l)); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(checkbutton), TRUE); } /* Randomise serialno! */ button = gtk_button_new_with_label (_("Randomize!")); gtk_container_set_border_width (GTK_CONTAINER(button), 64); gtk_box_pack_start (GTK_BOX (vbox), button, TRUE, TRUE, 0); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Generate a random serial number for the " "Ogg bitstream. The number will change while " "this button is held down."), NULL); g_signal_connect (G_OBJECT(button), "pressed", G_CALLBACK(randomise_serialno_pressed_cb), entry); g_signal_connect (G_OBJECT(button), "released", G_CALLBACK(randomise_serialno_released_cb), entry); /* About */ label = gtk_label_new (_("About")); ebox = gtk_event_box_new (); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), ebox, label); gtk_widget_set_style (ebox, style_bw); gtk_widget_show (ebox); gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK(notebook), ebox, TRUE, TRUE, GTK_PACK_END); vbox = gtk_vbox_new (FALSE, 16); gtk_container_add (GTK_CONTAINER(ebox), vbox); gtk_container_set_border_width (GTK_CONTAINER(vbox), 8); gtk_widget_show (vbox); label = gtk_label_new (_("Ogg Vorbis is a high quality general purpose\n" "perceptual audio codec. It is free, open and\n" "unpatented.")); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); hbox = gtk_hbox_new (FALSE, 16); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); label = gtk_label_new (_("Ogg, Vorbis, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission.")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 8); gtk_widget_show (label); pixmap = create_widget_from_xpm (dialog, xifish_xpm); gtk_box_pack_start (GTK_BOX(hbox), pixmap, FALSE, FALSE, 8); gtk_widget_show (pixmap); button = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX(vbox), button, FALSE, FALSE, 8); gtk_widget_show (button); label = gtk_label_new (_("This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n\n")); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* OK */ ok_button = gtk_button_new_with_label (_("Save")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (ok_button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), ok_button, TRUE, TRUE, 0); gtk_widget_show (ok_button); g_signal_connect (G_OBJECT(ok_button), "clicked", G_CALLBACK (vorbis_save_options_dialog_ok_cb), sample); /* Cancel */ button = gtk_button_new_with_label (_("Don't save")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (vorbis_save_options_dialog_cancel_cb), sample); gtk_widget_grab_default (ok_button); return (dialog); } int vorbis_save_options_dialog (sw_sample * sample, char * pathname) { GtkWidget * dialog; dialog = create_vorbis_encoding_options_dialog (sample, pathname); gtk_widget_show (dialog); return 0; } #endif /* HAVE_OGGVORBIS */ sweep-0.9.3/src/tdb/0000755000175000017500000000000011001133766012722 5ustar userusersweep-0.9.3/src/tdb/tdb.h0000644000175000017500000001262610777660154013672 0ustar useruser#ifndef __TDB_H__ #define __TDB_H__ /* Unix SMB/CIFS implementation. trivial database library Copyright (C) Andrew Tridgell 1999-2004 ** NOTE! The following LGPL license applies to the tdb ** library. This does NOT imply that all of Samba is released ** under the LGPL This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifdef __cplusplus extern "C" { #endif #ifndef PRINTF_ATTRIBUTE /** Use gcc attribute to check printf fns. a1 is the 1-based index of * the parameter containing the format, and a2 the index of the first * argument. Note that some gcc 2.x versions don't handle this * properly **/ #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) #define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2))) #else #define PRINTF_ATTRIBUTE(a1, a2) #endif #endif /* flags to tdb_store() */ #define TDB_REPLACE 1 #define TDB_INSERT 2 #define TDB_MODIFY 3 /* flags for tdb_open() */ #define TDB_DEFAULT 0 /* just a readability place holder */ #define TDB_CLEAR_IF_FIRST 1 #define TDB_INTERNAL 2 /* don't store on disk */ #define TDB_NOLOCK 4 /* don't do any locking */ #define TDB_NOMMAP 8 /* don't use mmap */ #define TDB_CONVERT 16 /* convert endian (internal use) */ #define TDB_BIGENDIAN 32 /* header is big-endian (internal use) */ #define TDB_ERRCODE(code, ret) ((tdb->ecode = (code)), ret) /* error codes */ enum TDB_ERROR {TDB_SUCCESS=0, TDB_ERR_CORRUPT, TDB_ERR_IO, TDB_ERR_LOCK, TDB_ERR_OOM, TDB_ERR_EXISTS, TDB_ERR_NOLOCK, TDB_ERR_LOCK_TIMEOUT, TDB_ERR_NOEXIST}; #ifndef u32 #define u32 unsigned #endif typedef struct { char *dptr; size_t dsize; } TDB_DATA; typedef u32 tdb_len; typedef u32 tdb_off; /* this is stored at the front of every database */ struct tdb_header { char magic_food[32]; /* for /etc/magic */ u32 version; /* version of the code */ u32 hash_size; /* number of hash entries */ tdb_off rwlocks; tdb_off reserved[31]; }; struct tdb_lock_type { u32 count; u32 ltype; }; struct tdb_traverse_lock { struct tdb_traverse_lock *next; u32 off; u32 hash; }; /* this is the context structure that is returned from a db open */ typedef struct tdb_context { char *name; /* the name of the database */ void *map_ptr; /* where it is currently mapped */ int fd; /* open file descriptor for the database */ tdb_len map_size; /* how much space has been mapped */ int read_only; /* opened read-only */ struct tdb_lock_type *locked; /* array of chain locks */ enum TDB_ERROR ecode; /* error code for last tdb error */ struct tdb_header header; /* a cached copy of the header */ u32 flags; /* the flags passed to tdb_open */ struct tdb_traverse_lock travlocks; /* current traversal locks */ struct tdb_context *next; /* all tdbs to avoid multiple opens */ dev_t device; /* uniquely identifies this tdb */ ino_t inode; /* uniquely identifies this tdb */ void (*log_fn)(struct tdb_context *tdb, int level, const char *, ...) PRINTF_ATTRIBUTE(3,4); /* logging function */ u32 (*hash_fn)(TDB_DATA *key); int open_flags; /* flags used in the open - needed by reopen */ } TDB_CONTEXT; typedef int (*tdb_traverse_func)(TDB_CONTEXT *, TDB_DATA, TDB_DATA, void *); typedef void (*tdb_log_func)(TDB_CONTEXT *, int , const char *, ...); typedef u32 (*tdb_hash_func)(TDB_DATA *key); TDB_CONTEXT *tdb_open(const char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode); TDB_CONTEXT *tdb_open_ex(const char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode, tdb_log_func log_fn, tdb_hash_func hash_fn); int tdb_reopen(TDB_CONTEXT *tdb); int tdb_reopen_all(void); void tdb_logging_function(TDB_CONTEXT *tdb, tdb_log_func); enum TDB_ERROR tdb_error(TDB_CONTEXT *tdb); const char *tdb_errorstr(TDB_CONTEXT *tdb); TDB_DATA tdb_fetch(TDB_CONTEXT *tdb, TDB_DATA key); int tdb_delete(TDB_CONTEXT *tdb, TDB_DATA key); int tdb_store(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf, int flag); int tdb_append(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA new_dbuf); int tdb_close(TDB_CONTEXT *tdb); TDB_DATA tdb_firstkey(TDB_CONTEXT *tdb); TDB_DATA tdb_nextkey(TDB_CONTEXT *tdb, TDB_DATA key); int tdb_traverse(TDB_CONTEXT *tdb, tdb_traverse_func fn, void *); int tdb_exists(TDB_CONTEXT *tdb, TDB_DATA key); int tdb_lockall(TDB_CONTEXT *tdb); void tdb_unlockall(TDB_CONTEXT *tdb); /* Low level locking functions: use with care */ void tdb_set_lock_alarm(sig_atomic_t *palarm); int tdb_chainlock(TDB_CONTEXT *tdb, TDB_DATA key); int tdb_chainunlock(TDB_CONTEXT *tdb, TDB_DATA key); int tdb_chainlock_read(TDB_CONTEXT *tdb, TDB_DATA key); int tdb_chainunlock_read(TDB_CONTEXT *tdb, TDB_DATA key); /* Debug functions. Not used in production. */ void tdb_dump_all(TDB_CONTEXT *tdb); int tdb_printfreelist(TDB_CONTEXT *tdb); extern TDB_DATA tdb_null; #ifdef __cplusplus } #endif #endif /* tdb.h */ sweep-0.9.3/src/tdb/Makefile.in0000644000175000017500000003641010777670415015013 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = ../.. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = src/tdb DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = LIBRARIES = $(noinst_LIBRARIES) ARFLAGS = cru libtdb_a_AR = $(AR) $(ARFLAGS) libtdb_a_LIBADD = am_libtdb_a_OBJECTS = tdb.$(OBJEXT) spinlock.$(OBJEXT) libtdb_a_OBJECTS = $(am_libtdb_a_OBJECTS) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(libtdb_a_SOURCES) DIST_SOURCES = $(libtdb_a_SOURCES) HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ EXTRA_DIST = svn-update.sh AM_CFLAGS = -DSTANDALONE noinst_LIBRARIES = libtdb.a noinst_HEADERS = tdb.h spinlock.h libtdb_a_SOURCES = tdb.c spinlock.c all: 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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/tdb/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/tdb/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 clean-noinstLIBRARIES: -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) libtdb.a: $(libtdb_a_OBJECTS) $(libtdb_a_DEPENDENCIES) -rm -f libtdb.a $(libtdb_a_AR) libtdb.a $(libtdb_a_OBJECTS) $(libtdb_a_LIBADD) $(RANLIB) libtdb.a mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/spinlock.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tdb.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(LIBRARIES) $(HEADERS) installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \ mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLIBRARIES ctags distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-tags distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sweep-0.9.3/src/tdb/tdb.c0000644000175000017500000015406410777660154013670 0ustar useruser /* Unix SMB/CIFS implementation. trivial database library Copyright (C) Andrew Tridgell 1999-2004 Copyright (C) Paul `Rusty' Russell 2000 Copyright (C) Jeremy Allison 2000-2003 ** NOTE! The following LGPL license applies to the tdb ** library. This does NOT imply that all of Samba is released ** under the LGPL This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* NOTE: If you use tdbs under valgrind, and in particular if you run * tdbtorture, you may get spurious "uninitialized value" warnings. I * think this is because valgrind doesn't understand that the mmap'd * area may be written to by other processes. Memory can, from the * point of view of the grinded process, spontaneously become * initialized. * * I can think of a few solutions. [mbp 20030311] * * 1 - Write suppressions for Valgrind so that it doesn't complain * about this. Probably the most reasonable but people need to * remember to use them. * * 2 - Use IO not mmap when running under valgrind. Not so nice. * * 3 - Use the special valgrind macros to mark memory as valid at the * right time. Probably too hard -- the process just doesn't know. */ #ifdef STANDALONE #if HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include #include #include "tdb.h" #include "spinlock.h" #else #include "includes.h" #if defined(PARANOID_MALLOC_CHECKER) #ifdef malloc #undef malloc #endif #ifdef realloc #undef realloc #endif #ifdef calloc #undef calloc #endif #ifdef strdup #undef strdup #endif #ifdef strndup #undef strndup #endif #endif #endif #define TDB_MAGIC_FOOD "TDB file\n" #define TDB_VERSION (0x26011967 + 6) #define TDB_MAGIC (0x26011999U) #define TDB_FREE_MAGIC (~TDB_MAGIC) #define TDB_DEAD_MAGIC (0xFEE1DEAD) #define TDB_ALIGNMENT 4 #define MIN_REC_SIZE (2*sizeof(struct list_struct) + TDB_ALIGNMENT) #define DEFAULT_HASH_SIZE 131 #define TDB_PAGE_SIZE 0x2000 #define FREELIST_TOP (sizeof(struct tdb_header)) #define TDB_ALIGN(x,a) (((x) + (a)-1) & ~((a)-1)) #define TDB_BYTEREV(x) (((((x)&0xff)<<24)|((x)&0xFF00)<<8)|(((x)>>8)&0xFF00)|((x)>>24)) #define TDB_DEAD(r) ((r)->magic == TDB_DEAD_MAGIC) #define TDB_BAD_MAGIC(r) ((r)->magic != TDB_MAGIC && !TDB_DEAD(r)) #define TDB_HASH_TOP(hash) (FREELIST_TOP + (BUCKET(hash)+1)*sizeof(tdb_off)) #define TDB_DATA_START(hash_size) (TDB_HASH_TOP(hash_size-1) + TDB_SPINLOCK_SIZE(hash_size)) /* NB assumes there is a local variable called "tdb" that is the * current context, also takes doubly-parenthesized print-style * argument. */ #define TDB_LOG(x) (tdb->log_fn?((tdb->log_fn x),0) : 0) /* lock offsets */ #define GLOBAL_LOCK 0 #define ACTIVE_LOCK 4 #ifndef MAP_FILE #define MAP_FILE 0 #endif #ifndef MAP_FAILED #define MAP_FAILED ((void *)-1) #endif /* free memory if the pointer is valid and zero the pointer */ #ifndef SAFE_FREE #define SAFE_FREE(x) do { if ((x) != NULL) {free((x)); (x)=NULL;} } while(0) #endif #define BUCKET(hash) ((hash) % tdb->header.hash_size) TDB_DATA tdb_null; /* all contexts, to ensure no double-opens (fcntl locks don't nest!) */ static TDB_CONTEXT *tdbs = NULL; static int tdb_munmap(TDB_CONTEXT *tdb) { if (tdb->flags & TDB_INTERNAL) return 0; #ifdef HAVE_MMAP if (tdb->map_ptr) { int ret = munmap(tdb->map_ptr, tdb->map_size); if (ret != 0) return ret; } #endif tdb->map_ptr = NULL; return 0; } static void tdb_mmap(TDB_CONTEXT *tdb) { if (tdb->flags & TDB_INTERNAL) return; #ifdef HAVE_MMAP if (!(tdb->flags & TDB_NOMMAP)) { tdb->map_ptr = mmap(NULL, tdb->map_size, PROT_READ|(tdb->read_only? 0:PROT_WRITE), MAP_SHARED|MAP_FILE, tdb->fd, 0); /* * NB. When mmap fails it returns MAP_FAILED *NOT* NULL !!!! */ if (tdb->map_ptr == MAP_FAILED) { tdb->map_ptr = NULL; TDB_LOG((tdb, 2, "tdb_mmap failed for size %d (%s)\n", tdb->map_size, strerror(errno))); } } else { tdb->map_ptr = NULL; } #else tdb->map_ptr = NULL; #endif } /* Endian conversion: we only ever deal with 4 byte quantities */ static void *convert(void *buf, u32 size) { u32 i, *p = buf; for (i = 0; i < size / 4; i++) p[i] = TDB_BYTEREV(p[i]); return buf; } #define DOCONV() (tdb->flags & TDB_CONVERT) #define CONVERT(x) (DOCONV() ? convert(&x, sizeof(x)) : &x) /* the body of the database is made of one list_struct for the free space plus a separate data list for each hash value */ struct list_struct { tdb_off next; /* offset of the next record in the list */ tdb_len rec_len; /* total byte length of record */ tdb_len key_len; /* byte length of key */ tdb_len data_len; /* byte length of data */ u32 full_hash; /* the full 32 bit hash of the key */ u32 magic; /* try to catch errors */ /* the following union is implied: union { char record[rec_len]; struct { char key[key_len]; char data[data_len]; } u32 totalsize; (tailer) } */ }; /*************************************************************** Allow a caller to set a "alarm" flag that tdb can check to abort a blocking lock on SIGALRM. ***************************************************************/ static sig_atomic_t *palarm_fired; void tdb_set_lock_alarm(sig_atomic_t *palarm) { palarm_fired = palarm; } /* a byte range locking function - return 0 on success this functions locks/unlocks 1 byte at the specified offset. On error, errno is also set so that errors are passed back properly through tdb_open(). */ static int tdb_brlock(TDB_CONTEXT *tdb, tdb_off offset, int rw_type, int lck_type, int probe) { struct flock fl; int ret; if (tdb->flags & TDB_NOLOCK) return 0; if ((rw_type == F_WRLCK) && (tdb->read_only)) { errno = EACCES; return -1; } fl.l_type = rw_type; fl.l_whence = SEEK_SET; fl.l_start = offset; fl.l_len = 1; fl.l_pid = 0; do { ret = fcntl(tdb->fd,lck_type,&fl); if (ret == -1 && errno == EINTR && palarm_fired && *palarm_fired) break; } while (ret == -1 && errno == EINTR); if (ret == -1) { if (!probe && lck_type != F_SETLK) { /* Ensure error code is set for log fun to examine. */ if (errno == EINTR && palarm_fired && *palarm_fired) tdb->ecode = TDB_ERR_LOCK_TIMEOUT; else tdb->ecode = TDB_ERR_LOCK; TDB_LOG((tdb, 5,"tdb_brlock failed (fd=%d) at offset %d rw_type=%d lck_type=%d\n", tdb->fd, offset, rw_type, lck_type)); } /* Was it an alarm timeout ? */ if (errno == EINTR && palarm_fired && *palarm_fired) { TDB_LOG((tdb, 5, "tdb_brlock timed out (fd=%d) at offset %d rw_type=%d lck_type=%d\n", tdb->fd, offset, rw_type, lck_type)); return TDB_ERRCODE(TDB_ERR_LOCK_TIMEOUT, -1); } /* Otherwise - generic lock error. errno set by fcntl. * EAGAIN is an expected return from non-blocking * locks. */ if (errno != EAGAIN) { TDB_LOG((tdb, 5, "tdb_brlock failed (fd=%d) at offset %d rw_type=%d lck_type=%d: %s\n", tdb->fd, offset, rw_type, lck_type, strerror(errno))); } return TDB_ERRCODE(TDB_ERR_LOCK, -1); } return 0; } /* lock a list in the database. list -1 is the alloc list */ static int tdb_lock(TDB_CONTEXT *tdb, int list, int ltype) { if (list < -1 || list >= (int)tdb->header.hash_size) { TDB_LOG((tdb, 0,"tdb_lock: invalid list %d for ltype=%d\n", list, ltype)); return -1; } if (tdb->flags & TDB_NOLOCK) return 0; /* Since fcntl locks don't nest, we do a lock for the first one, and simply bump the count for future ones */ if (tdb->locked[list+1].count == 0) { if (!tdb->read_only && tdb->header.rwlocks) { if (tdb_spinlock(tdb, list, ltype)) { TDB_LOG((tdb, 0, "tdb_lock spinlock failed on list %d ltype=%d\n", list, ltype)); return -1; } } else if (tdb_brlock(tdb,FREELIST_TOP+4*list,ltype,F_SETLKW, 0)) { TDB_LOG((tdb, 0,"tdb_lock failed on list %d ltype=%d (%s)\n", list, ltype, strerror(errno))); return -1; } tdb->locked[list+1].ltype = ltype; } tdb->locked[list+1].count++; return 0; } /* unlock the database: returns void because it's too late for errors. */ /* changed to return int it may be interesting to know there has been an error --simo */ static int tdb_unlock(TDB_CONTEXT *tdb, int list, int ltype) { int ret = -1; if (tdb->flags & TDB_NOLOCK) return 0; /* Sanity checks */ if (list < -1 || list >= (int)tdb->header.hash_size) { TDB_LOG((tdb, 0, "tdb_unlock: list %d invalid (%d)\n", list, tdb->header.hash_size)); return ret; } if (tdb->locked[list+1].count==0) { TDB_LOG((tdb, 0, "tdb_unlock: count is 0\n")); return ret; } if (tdb->locked[list+1].count == 1) { /* Down to last nested lock: unlock underneath */ if (!tdb->read_only && tdb->header.rwlocks) { ret = tdb_spinunlock(tdb, list, ltype); } else { ret = tdb_brlock(tdb, FREELIST_TOP+4*list, F_UNLCK, F_SETLKW, 0); } } else { ret = 0; } tdb->locked[list+1].count--; if (ret) TDB_LOG((tdb, 0,"tdb_unlock: An error occurred unlocking!\n")); return ret; } /* check for an out of bounds access - if it is out of bounds then see if the database has been expanded by someone else and expand if necessary note that "len" is the minimum length needed for the db */ static int tdb_oob(TDB_CONTEXT *tdb, tdb_off len, int probe) { struct stat st; if (len <= tdb->map_size) return 0; if (tdb->flags & TDB_INTERNAL) { if (!probe) { /* Ensure ecode is set for log fn. */ tdb->ecode = TDB_ERR_IO; TDB_LOG((tdb, 0,"tdb_oob len %d beyond internal malloc size %d\n", (int)len, (int)tdb->map_size)); } return TDB_ERRCODE(TDB_ERR_IO, -1); } if (fstat(tdb->fd, &st) == -1) return TDB_ERRCODE(TDB_ERR_IO, -1); if (st.st_size < (size_t)len) { if (!probe) { /* Ensure ecode is set for log fn. */ tdb->ecode = TDB_ERR_IO; TDB_LOG((tdb, 0,"tdb_oob len %d beyond eof at %d\n", (int)len, (int)st.st_size)); } return TDB_ERRCODE(TDB_ERR_IO, -1); } /* Unmap, update size, remap */ if (tdb_munmap(tdb) == -1) return TDB_ERRCODE(TDB_ERR_IO, -1); tdb->map_size = st.st_size; tdb_mmap(tdb); return 0; } /* write a lump of data at a specified offset */ static int tdb_write(TDB_CONTEXT *tdb, tdb_off off, void *buf, tdb_len len) { if (tdb_oob(tdb, off + len, 0) != 0) return -1; if (tdb->map_ptr) memcpy(off + (char *)tdb->map_ptr, buf, len); #ifdef HAVE_PWRITE else if (pwrite(tdb->fd, buf, len, off) != (ssize_t)len) { #else else if (lseek(tdb->fd, off, SEEK_SET) != off || write(tdb->fd, buf, len) != (ssize_t)len) { #endif /* Ensure ecode is set for log fn. */ tdb->ecode = TDB_ERR_IO; TDB_LOG((tdb, 0,"tdb_write failed at %d len=%d (%s)\n", off, len, strerror(errno))); return TDB_ERRCODE(TDB_ERR_IO, -1); } return 0; } /* read a lump of data at a specified offset, maybe convert */ static int tdb_read(TDB_CONTEXT *tdb,tdb_off off,void *buf,tdb_len len,int cv) { if (tdb_oob(tdb, off + len, 0) != 0) return -1; if (tdb->map_ptr) memcpy(buf, off + (char *)tdb->map_ptr, len); #ifdef HAVE_PREAD else if (pread(tdb->fd, buf, len, off) != (ssize_t)len) { #else else if (lseek(tdb->fd, off, SEEK_SET) != off || read(tdb->fd, buf, len) != (ssize_t)len) { #endif /* Ensure ecode is set for log fn. */ tdb->ecode = TDB_ERR_IO; TDB_LOG((tdb, 0,"tdb_read failed at %d len=%d (%s)\n", off, len, strerror(errno))); return TDB_ERRCODE(TDB_ERR_IO, -1); } if (cv) convert(buf, len); return 0; } /* read a lump of data, allocating the space for it */ static char *tdb_alloc_read(TDB_CONTEXT *tdb, tdb_off offset, tdb_len len) { char *buf; if (!(buf = malloc(len))) { /* Ensure ecode is set for log fn. */ tdb->ecode = TDB_ERR_OOM; TDB_LOG((tdb, 0,"tdb_alloc_read malloc failed len=%d (%s)\n", len, strerror(errno))); return TDB_ERRCODE(TDB_ERR_OOM, buf); } if (tdb_read(tdb, offset, buf, len, 0) == -1) { SAFE_FREE(buf); return NULL; } return buf; } /* read/write a tdb_off */ static int ofs_read(TDB_CONTEXT *tdb, tdb_off offset, tdb_off *d) { return tdb_read(tdb, offset, (char*)d, sizeof(*d), DOCONV()); } static int ofs_write(TDB_CONTEXT *tdb, tdb_off offset, tdb_off *d) { tdb_off off = *d; return tdb_write(tdb, offset, CONVERT(off), sizeof(*d)); } /* read/write a record */ static int rec_read(TDB_CONTEXT *tdb, tdb_off offset, struct list_struct *rec) { if (tdb_read(tdb, offset, rec, sizeof(*rec),DOCONV()) == -1) return -1; if (TDB_BAD_MAGIC(rec)) { /* Ensure ecode is set for log fn. */ tdb->ecode = TDB_ERR_CORRUPT; TDB_LOG((tdb, 0,"rec_read bad magic 0x%x at offset=%d\n", rec->magic, offset)); return TDB_ERRCODE(TDB_ERR_CORRUPT, -1); } return tdb_oob(tdb, rec->next+sizeof(*rec), 0); } static int rec_write(TDB_CONTEXT *tdb, tdb_off offset, struct list_struct *rec) { struct list_struct r = *rec; return tdb_write(tdb, offset, CONVERT(r), sizeof(r)); } /* read a freelist record and check for simple errors */ static int rec_free_read(TDB_CONTEXT *tdb, tdb_off off, struct list_struct *rec) { if (tdb_read(tdb, off, rec, sizeof(*rec),DOCONV()) == -1) return -1; if (rec->magic == TDB_MAGIC) { /* this happens when a app is showdown while deleting a record - we should not completely fail when this happens */ TDB_LOG((tdb, 0,"rec_free_read non-free magic 0x%x at offset=%d - fixing\n", rec->magic, off)); rec->magic = TDB_FREE_MAGIC; if (tdb_write(tdb, off, rec, sizeof(*rec)) == -1) return -1; } if (rec->magic != TDB_FREE_MAGIC) { /* Ensure ecode is set for log fn. */ tdb->ecode = TDB_ERR_CORRUPT; TDB_LOG((tdb, 0,"rec_free_read bad magic 0x%x at offset=%d\n", rec->magic, off)); return TDB_ERRCODE(TDB_ERR_CORRUPT, -1); } if (tdb_oob(tdb, rec->next+sizeof(*rec), 0) != 0) return -1; return 0; } /* update a record tailer (must hold allocation lock) */ static int update_tailer(TDB_CONTEXT *tdb, tdb_off offset, const struct list_struct *rec) { tdb_off totalsize; /* Offset of tailer from record header */ totalsize = sizeof(*rec) + rec->rec_len; return ofs_write(tdb, offset + totalsize - sizeof(tdb_off), &totalsize); } static tdb_off tdb_dump_record(TDB_CONTEXT *tdb, tdb_off offset) { struct list_struct rec; tdb_off tailer_ofs, tailer; if (tdb_read(tdb, offset, (char *)&rec, sizeof(rec), DOCONV()) == -1) { printf("ERROR: failed to read record at %u\n", offset); return 0; } printf(" rec: offset=%u next=%d rec_len=%d key_len=%d data_len=%d full_hash=0x%x magic=0x%x\n", offset, rec.next, rec.rec_len, rec.key_len, rec.data_len, rec.full_hash, rec.magic); tailer_ofs = offset + sizeof(rec) + rec.rec_len - sizeof(tdb_off); if (ofs_read(tdb, tailer_ofs, &tailer) == -1) { printf("ERROR: failed to read tailer at %u\n", tailer_ofs); return rec.next; } if (tailer != rec.rec_len + sizeof(rec)) { printf("ERROR: tailer does not match record! tailer=%u totalsize=%u\n", (unsigned)tailer, (unsigned)(rec.rec_len + sizeof(rec))); } return rec.next; } static int tdb_dump_chain(TDB_CONTEXT *tdb, int i) { tdb_off rec_ptr, top; int hash_length = 0; top = TDB_HASH_TOP(i); if (tdb_lock(tdb, i, F_WRLCK) != 0) return -1; if (ofs_read(tdb, top, &rec_ptr) == -1) return tdb_unlock(tdb, i, F_WRLCK); if (rec_ptr) printf("hash=%d\n", i); while (rec_ptr) { rec_ptr = tdb_dump_record(tdb, rec_ptr); hash_length += 1; } printf("chain %d length %d\n", i, hash_length); return tdb_unlock(tdb, i, F_WRLCK); } void tdb_dump_all(TDB_CONTEXT *tdb) { int i; for (i=0;iheader.hash_size;i++) { tdb_dump_chain(tdb, i); } tdb_printfreelist(tdb); } int tdb_printfreelist(TDB_CONTEXT *tdb) { int ret; long total_free = 0; tdb_off offset, rec_ptr; struct list_struct rec; if ((ret = tdb_lock(tdb, -1, F_WRLCK)) != 0) return ret; offset = FREELIST_TOP; /* read in the freelist top */ if (ofs_read(tdb, offset, &rec_ptr) == -1) { tdb_unlock(tdb, -1, F_WRLCK); return 0; } printf("freelist top=[0x%08x]\n", rec_ptr ); while (rec_ptr) { if (tdb_read(tdb, rec_ptr, (char *)&rec, sizeof(rec), DOCONV()) == -1) { tdb_unlock(tdb, -1, F_WRLCK); return -1; } if (rec.magic != TDB_FREE_MAGIC) { printf("bad magic 0x%08x in free list\n", rec.magic); tdb_unlock(tdb, -1, F_WRLCK); return -1; } printf("entry offset=[0x%08x], rec.rec_len = [0x%08x (%d)]\n", rec.next, rec.rec_len, rec.rec_len ); total_free += rec.rec_len; /* move to the next record */ rec_ptr = rec.next; } printf("total rec_len = [0x%08x (%d)]\n", (int)total_free, (int)total_free); return tdb_unlock(tdb, -1, F_WRLCK); } /* Remove an element from the freelist. Must have alloc lock. */ static int remove_from_freelist(TDB_CONTEXT *tdb, tdb_off off, tdb_off next) { tdb_off last_ptr, i; /* read in the freelist top */ last_ptr = FREELIST_TOP; while (ofs_read(tdb, last_ptr, &i) != -1 && i != 0) { if (i == off) { /* We've found it! */ return ofs_write(tdb, last_ptr, &next); } /* Follow chain (next offset is at start of record) */ last_ptr = i; } TDB_LOG((tdb, 0,"remove_from_freelist: not on list at off=%d\n", off)); return TDB_ERRCODE(TDB_ERR_CORRUPT, -1); } /* Add an element into the freelist. Merge adjacent records if neccessary. */ static int tdb_free(TDB_CONTEXT *tdb, tdb_off offset, struct list_struct *rec) { tdb_off right, left; /* Allocation and tailer lock */ if (tdb_lock(tdb, -1, F_WRLCK) != 0) return -1; /* set an initial tailer, so if we fail we don't leave a bogus record */ if (update_tailer(tdb, offset, rec) != 0) { TDB_LOG((tdb, 0, "tdb_free: upfate_tailer failed!\n")); goto fail; } /* Look right first (I'm an Australian, dammit) */ right = offset + sizeof(*rec) + rec->rec_len; if (right + sizeof(*rec) <= tdb->map_size) { struct list_struct r; if (tdb_read(tdb, right, &r, sizeof(r), DOCONV()) == -1) { TDB_LOG((tdb, 0, "tdb_free: right read failed at %u\n", right)); goto left; } /* If it's free, expand to include it. */ if (r.magic == TDB_FREE_MAGIC) { if (remove_from_freelist(tdb, right, r.next) == -1) { TDB_LOG((tdb, 0, "tdb_free: right free failed at %u\n", right)); goto left; } rec->rec_len += sizeof(r) + r.rec_len; } } left: /* Look left */ left = offset - sizeof(tdb_off); if (left > TDB_DATA_START(tdb->header.hash_size)) { struct list_struct l; tdb_off leftsize; /* Read in tailer and jump back to header */ if (ofs_read(tdb, left, &leftsize) == -1) { TDB_LOG((tdb, 0, "tdb_free: left offset read failed at %u\n", left)); goto update; } left = offset - leftsize; /* Now read in record */ if (tdb_read(tdb, left, &l, sizeof(l), DOCONV()) == -1) { TDB_LOG((tdb, 0, "tdb_free: left read failed at %u (%u)\n", left, leftsize)); goto update; } /* If it's free, expand to include it. */ if (l.magic == TDB_FREE_MAGIC) { if (remove_from_freelist(tdb, left, l.next) == -1) { TDB_LOG((tdb, 0, "tdb_free: left free failed at %u\n", left)); goto update; } else { offset = left; rec->rec_len += leftsize; } } } update: if (update_tailer(tdb, offset, rec) == -1) { TDB_LOG((tdb, 0, "tdb_free: update_tailer failed at %u\n", offset)); goto fail; } /* Now, prepend to free list */ rec->magic = TDB_FREE_MAGIC; if (ofs_read(tdb, FREELIST_TOP, &rec->next) == -1 || rec_write(tdb, offset, rec) == -1 || ofs_write(tdb, FREELIST_TOP, &offset) == -1) { TDB_LOG((tdb, 0, "tdb_free record write failed at offset=%d\n", offset)); goto fail; } /* And we're done. */ tdb_unlock(tdb, -1, F_WRLCK); return 0; fail: tdb_unlock(tdb, -1, F_WRLCK); return -1; } /* expand a file. we prefer to use ftruncate, as that is what posix says to use for mmap expansion */ static int expand_file(TDB_CONTEXT *tdb, tdb_off size, tdb_off addition) { char buf[1024]; #if HAVE_FTRUNCATE_EXTEND if (ftruncate(tdb->fd, size+addition) != 0) { TDB_LOG((tdb, 0, "expand_file ftruncate to %d failed (%s)\n", size+addition, strerror(errno))); return -1; } #else char b = 0; #ifdef HAVE_PWRITE if (pwrite(tdb->fd, &b, 1, (size+addition) - 1) != 1) { #else if (lseek(tdb->fd, (size+addition) - 1, SEEK_SET) != (size+addition) - 1 || write(tdb->fd, &b, 1) != 1) { #endif TDB_LOG((tdb, 0, "expand_file to %d failed (%s)\n", size+addition, strerror(errno))); return -1; } #endif /* now fill the file with something. This ensures that the file isn't sparse, which would be very bad if we ran out of disk. This must be done with write, not via mmap */ memset(buf, 0x42, sizeof(buf)); while (addition) { int n = addition>sizeof(buf)?sizeof(buf):addition; #ifdef HAVE_PWRITE int ret = pwrite(tdb->fd, buf, n, size); #else int ret; if (lseek(tdb->fd, size, SEEK_SET) != size) return -1; ret = write(tdb->fd, buf, n); #endif if (ret != n) { TDB_LOG((tdb, 0, "expand_file write of %d failed (%s)\n", n, strerror(errno))); return -1; } addition -= n; size += n; } return 0; } /* expand the database at least size bytes by expanding the underlying file and doing the mmap again if necessary */ static int tdb_expand(TDB_CONTEXT *tdb, tdb_off size) { struct list_struct rec; tdb_off offset; if (tdb_lock(tdb, -1, F_WRLCK) == -1) { TDB_LOG((tdb, 0, "lock failed in tdb_expand\n")); return -1; } /* must know about any previous expansions by another process */ tdb_oob(tdb, tdb->map_size + 1, 1); /* always make room for at least 10 more records, and round the database up to a multiple of TDB_PAGE_SIZE */ size = TDB_ALIGN(tdb->map_size + size*10, TDB_PAGE_SIZE) - tdb->map_size; if (!(tdb->flags & TDB_INTERNAL)) tdb_munmap(tdb); /* * We must ensure the file is unmapped before doing this * to ensure consistency with systems like OpenBSD where * writes and mmaps are not consistent. */ /* expand the file itself */ if (!(tdb->flags & TDB_INTERNAL)) { if (expand_file(tdb, tdb->map_size, size) != 0) goto fail; } tdb->map_size += size; if (tdb->flags & TDB_INTERNAL) { char *new_map_ptr = realloc(tdb->map_ptr, tdb->map_size); if (!new_map_ptr) { tdb->map_size -= size; goto fail; } tdb->map_ptr = new_map_ptr; } else { /* * We must ensure the file is remapped before adding the space * to ensure consistency with systems like OpenBSD where * writes and mmaps are not consistent. */ /* We're ok if the mmap fails as we'll fallback to read/write */ tdb_mmap(tdb); } /* form a new freelist record */ memset(&rec,'\0',sizeof(rec)); rec.rec_len = size - sizeof(rec); /* link it into the free list */ offset = tdb->map_size - size; if (tdb_free(tdb, offset, &rec) == -1) goto fail; tdb_unlock(tdb, -1, F_WRLCK); return 0; fail: tdb_unlock(tdb, -1, F_WRLCK); return -1; } /* allocate some space from the free list. The offset returned points to a unconnected list_struct within the database with room for at least length bytes of total data 0 is returned if the space could not be allocated */ static tdb_off tdb_allocate(TDB_CONTEXT *tdb, tdb_len length, struct list_struct *rec) { tdb_off rec_ptr, last_ptr, newrec_ptr; struct list_struct newrec; memset(&newrec, '\0', sizeof(newrec)); if (tdb_lock(tdb, -1, F_WRLCK) == -1) return 0; /* Extra bytes required for tailer */ length += sizeof(tdb_off); again: last_ptr = FREELIST_TOP; /* read in the freelist top */ if (ofs_read(tdb, FREELIST_TOP, &rec_ptr) == -1) goto fail; /* keep looking until we find a freelist record big enough */ while (rec_ptr) { if (rec_free_read(tdb, rec_ptr, rec) == -1) goto fail; if (rec->rec_len >= length) { /* found it - now possibly split it up */ if (rec->rec_len > length + MIN_REC_SIZE) { /* Length of left piece */ length = TDB_ALIGN(length, TDB_ALIGNMENT); /* Right piece to go on free list */ newrec.rec_len = rec->rec_len - (sizeof(*rec) + length); newrec_ptr = rec_ptr + sizeof(*rec) + length; /* And left record is shortened */ rec->rec_len = length; } else newrec_ptr = 0; /* Remove allocated record from the free list */ if (ofs_write(tdb, last_ptr, &rec->next) == -1) goto fail; /* Update header: do this before we drop alloc lock, otherwise tdb_free() might try to merge with us, thinking we're free. (Thanks Jeremy Allison). */ rec->magic = TDB_MAGIC; if (rec_write(tdb, rec_ptr, rec) == -1) goto fail; /* Did we create new block? */ if (newrec_ptr) { /* Update allocated record tailer (we shortened it). */ if (update_tailer(tdb, rec_ptr, rec) == -1) goto fail; /* Free new record */ if (tdb_free(tdb, newrec_ptr, &newrec) == -1) goto fail; } /* all done - return the new record offset */ tdb_unlock(tdb, -1, F_WRLCK); return rec_ptr; } /* move to the next record */ last_ptr = rec_ptr; rec_ptr = rec->next; } /* we didn't find enough space. See if we can expand the database and if we can then try again */ if (tdb_expand(tdb, length + sizeof(*rec)) == 0) goto again; fail: tdb_unlock(tdb, -1, F_WRLCK); return 0; } /* initialise a new database with a specified hash size */ static int tdb_new_database(TDB_CONTEXT *tdb, int hash_size) { struct tdb_header *newdb; int size, ret = -1; /* We make it up in memory, then write it out if not internal */ size = sizeof(struct tdb_header) + (hash_size+1)*sizeof(tdb_off); if (!(newdb = calloc(size, 1))) return TDB_ERRCODE(TDB_ERR_OOM, -1); /* Fill in the header */ newdb->version = TDB_VERSION; newdb->hash_size = hash_size; #ifdef USE_SPINLOCKS newdb->rwlocks = size; #endif if (tdb->flags & TDB_INTERNAL) { tdb->map_size = size; tdb->map_ptr = (char *)newdb; memcpy(&tdb->header, newdb, sizeof(tdb->header)); /* Convert the `ondisk' version if asked. */ CONVERT(*newdb); return 0; } if (lseek(tdb->fd, 0, SEEK_SET) == -1) goto fail; if (ftruncate(tdb->fd, 0) == -1) goto fail; /* This creates an endian-converted header, as if read from disk */ CONVERT(*newdb); memcpy(&tdb->header, newdb, sizeof(tdb->header)); /* Don't endian-convert the magic food! */ memcpy(newdb->magic_food, TDB_MAGIC_FOOD, strlen(TDB_MAGIC_FOOD)+1); if (write(tdb->fd, newdb, size) != size) ret = -1; else ret = tdb_create_rwlocks(tdb->fd, hash_size); fail: SAFE_FREE(newdb); return ret; } /* Returns 0 on fail. On success, return offset of record, and fills in rec */ static tdb_off tdb_find(TDB_CONTEXT *tdb, TDB_DATA key, u32 hash, struct list_struct *r) { tdb_off rec_ptr; /* read in the hash top */ if (ofs_read(tdb, TDB_HASH_TOP(hash), &rec_ptr) == -1) return 0; /* keep looking until we find the right record */ while (rec_ptr) { if (rec_read(tdb, rec_ptr, r) == -1) return 0; if (!TDB_DEAD(r) && hash==r->full_hash && key.dsize==r->key_len) { char *k; /* a very likely hit - read the key */ k = tdb_alloc_read(tdb, rec_ptr + sizeof(*r), r->key_len); if (!k) return 0; if (memcmp(key.dptr, k, key.dsize) == 0) { SAFE_FREE(k); return rec_ptr; } SAFE_FREE(k); } rec_ptr = r->next; } return TDB_ERRCODE(TDB_ERR_NOEXIST, 0); } /* As tdb_find, but if you succeed, keep the lock */ static tdb_off tdb_find_lock_hash(TDB_CONTEXT *tdb, TDB_DATA key, u32 hash, int locktype, struct list_struct *rec) { u32 rec_ptr; if (tdb_lock(tdb, BUCKET(hash), locktype) == -1) return 0; if (!(rec_ptr = tdb_find(tdb, key, hash, rec))) tdb_unlock(tdb, BUCKET(hash), locktype); return rec_ptr; } enum TDB_ERROR tdb_error(TDB_CONTEXT *tdb) { return tdb->ecode; } static struct tdb_errname { enum TDB_ERROR ecode; const char *estring; } emap[] = { {TDB_SUCCESS, "Success"}, {TDB_ERR_CORRUPT, "Corrupt database"}, {TDB_ERR_IO, "IO Error"}, {TDB_ERR_LOCK, "Locking error"}, {TDB_ERR_OOM, "Out of memory"}, {TDB_ERR_EXISTS, "Record exists"}, {TDB_ERR_NOLOCK, "Lock exists on other keys"}, {TDB_ERR_NOEXIST, "Record does not exist"} }; /* Error string for the last tdb error */ const char *tdb_errorstr(TDB_CONTEXT *tdb) { u32 i; for (i = 0; i < sizeof(emap) / sizeof(struct tdb_errname); i++) if (tdb->ecode == emap[i].ecode) return emap[i].estring; return "Invalid error code"; } /* update an entry in place - this only works if the new data size is <= the old data size and the key exists. on failure return -1. */ static int tdb_update_hash(TDB_CONTEXT *tdb, TDB_DATA key, u32 hash, TDB_DATA dbuf) { struct list_struct rec; tdb_off rec_ptr; /* find entry */ if (!(rec_ptr = tdb_find(tdb, key, hash, &rec))) return -1; /* must be long enough key, data and tailer */ if (rec.rec_len < key.dsize + dbuf.dsize + sizeof(tdb_off)) { tdb->ecode = TDB_SUCCESS; /* Not really an error */ return -1; } if (tdb_write(tdb, rec_ptr + sizeof(rec) + rec.key_len, dbuf.dptr, dbuf.dsize) == -1) return -1; if (dbuf.dsize != rec.data_len) { /* update size */ rec.data_len = dbuf.dsize; return rec_write(tdb, rec_ptr, &rec); } return 0; } /* find an entry in the database given a key */ /* If an entry doesn't exist tdb_err will be set to * TDB_ERR_NOEXIST. If a key has no data attached * tdb_err will not be set. Both will return a * zero pptr and zero dsize. */ TDB_DATA tdb_fetch(TDB_CONTEXT *tdb, TDB_DATA key) { tdb_off rec_ptr; struct list_struct rec; TDB_DATA ret; u32 hash; /* find which hash bucket it is in */ hash = tdb->hash_fn(&key); if (!(rec_ptr = tdb_find_lock_hash(tdb,key,hash,F_RDLCK,&rec))) return tdb_null; if (rec.data_len) ret.dptr = tdb_alloc_read(tdb, rec_ptr + sizeof(rec) + rec.key_len, rec.data_len); else ret.dptr = NULL; ret.dsize = rec.data_len; tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK); return ret; } /* check if an entry in the database exists note that 1 is returned if the key is found and 0 is returned if not found this doesn't match the conventions in the rest of this module, but is compatible with gdbm */ static int tdb_exists_hash(TDB_CONTEXT *tdb, TDB_DATA key, u32 hash) { struct list_struct rec; if (tdb_find_lock_hash(tdb, key, hash, F_RDLCK, &rec) == 0) return 0; tdb_unlock(tdb, BUCKET(rec.full_hash), F_RDLCK); return 1; } int tdb_exists(TDB_CONTEXT *tdb, TDB_DATA key) { u32 hash = tdb->hash_fn(&key); return tdb_exists_hash(tdb, key, hash); } /* record lock stops delete underneath */ static int lock_record(TDB_CONTEXT *tdb, tdb_off off) { return off ? tdb_brlock(tdb, off, F_RDLCK, F_SETLKW, 0) : 0; } /* Write locks override our own fcntl readlocks, so check it here. Note this is meant to be F_SETLK, *not* F_SETLKW, as it's not an error to fail to get the lock here. */ static int write_lock_record(TDB_CONTEXT *tdb, tdb_off off) { struct tdb_traverse_lock *i; for (i = &tdb->travlocks; i; i = i->next) if (i->off == off) return -1; return tdb_brlock(tdb, off, F_WRLCK, F_SETLK, 1); } /* Note this is meant to be F_SETLK, *not* F_SETLKW, as it's not an error to fail to get the lock here. */ static int write_unlock_record(TDB_CONTEXT *tdb, tdb_off off) { return tdb_brlock(tdb, off, F_UNLCK, F_SETLK, 0); } /* fcntl locks don't stack: avoid unlocking someone else's */ static int unlock_record(TDB_CONTEXT *tdb, tdb_off off) { struct tdb_traverse_lock *i; u32 count = 0; if (off == 0) return 0; for (i = &tdb->travlocks; i; i = i->next) if (i->off == off) count++; return (count == 1 ? tdb_brlock(tdb, off, F_UNLCK, F_SETLKW, 0) : 0); } /* actually delete an entry in the database given the offset */ static int do_delete(TDB_CONTEXT *tdb, tdb_off rec_ptr, struct list_struct*rec) { tdb_off last_ptr, i; struct list_struct lastrec; if (tdb->read_only) return -1; if (write_lock_record(tdb, rec_ptr) == -1) { /* Someone traversing here: mark it as dead */ rec->magic = TDB_DEAD_MAGIC; return rec_write(tdb, rec_ptr, rec); } if (write_unlock_record(tdb, rec_ptr) != 0) return -1; /* find previous record in hash chain */ if (ofs_read(tdb, TDB_HASH_TOP(rec->full_hash), &i) == -1) return -1; for (last_ptr = 0; i != rec_ptr; last_ptr = i, i = lastrec.next) if (rec_read(tdb, i, &lastrec) == -1) return -1; /* unlink it: next ptr is at start of record. */ if (last_ptr == 0) last_ptr = TDB_HASH_TOP(rec->full_hash); if (ofs_write(tdb, last_ptr, &rec->next) == -1) return -1; /* recover the space */ if (tdb_free(tdb, rec_ptr, rec) == -1) return -1; return 0; } /* Uses traverse lock: 0 = finish, -1 = error, other = record offset */ static int tdb_next_lock(TDB_CONTEXT *tdb, struct tdb_traverse_lock *tlock, struct list_struct *rec) { int want_next = (tlock->off != 0); /* Lock each chain from the start one. */ for (; tlock->hash < tdb->header.hash_size; tlock->hash++) { if (tdb_lock(tdb, tlock->hash, F_WRLCK) == -1) return -1; /* No previous record? Start at top of chain. */ if (!tlock->off) { if (ofs_read(tdb, TDB_HASH_TOP(tlock->hash), &tlock->off) == -1) goto fail; } else { /* Otherwise unlock the previous record. */ if (unlock_record(tdb, tlock->off) != 0) goto fail; } if (want_next) { /* We have offset of old record: grab next */ if (rec_read(tdb, tlock->off, rec) == -1) goto fail; tlock->off = rec->next; } /* Iterate through chain */ while( tlock->off) { tdb_off current; if (rec_read(tdb, tlock->off, rec) == -1) goto fail; /* Detect infinite loops. From "Shlomi Yaakobovich" . */ if (tlock->off == rec->next) { TDB_LOG((tdb, 0, "tdb_next_lock: loop detected.\n")); goto fail; } if (!TDB_DEAD(rec)) { /* Woohoo: we found one! */ if (lock_record(tdb, tlock->off) != 0) goto fail; return tlock->off; } /* Try to clean dead ones from old traverses */ current = tlock->off; tlock->off = rec->next; if (!tdb->read_only && do_delete(tdb, current, rec) != 0) goto fail; } tdb_unlock(tdb, tlock->hash, F_WRLCK); want_next = 0; } /* We finished iteration without finding anything */ return TDB_ERRCODE(TDB_SUCCESS, 0); fail: tlock->off = 0; if (tdb_unlock(tdb, tlock->hash, F_WRLCK) != 0) TDB_LOG((tdb, 0, "tdb_next_lock: On error unlock failed!\n")); return -1; } /* traverse the entire database - calling fn(tdb, key, data) on each element. return -1 on error or the record count traversed if fn is NULL then it is not called a non-zero return value from fn() indicates that the traversal should stop */ int tdb_traverse(TDB_CONTEXT *tdb, tdb_traverse_func fn, void *private_val) { TDB_DATA key, dbuf; struct list_struct rec; struct tdb_traverse_lock tl = { NULL, 0, 0 }; int ret, count = 0; /* This was in the initializaton, above, but the IRIX compiler * did not like it. crh */ tl.next = tdb->travlocks.next; /* fcntl locks don't stack: beware traverse inside traverse */ tdb->travlocks.next = &tl; /* tdb_next_lock places locks on the record returned, and its chain */ while ((ret = tdb_next_lock(tdb, &tl, &rec)) > 0) { count++; /* now read the full record */ key.dptr = tdb_alloc_read(tdb, tl.off + sizeof(rec), rec.key_len + rec.data_len); if (!key.dptr) { ret = -1; if (tdb_unlock(tdb, tl.hash, F_WRLCK) != 0) goto out; if (unlock_record(tdb, tl.off) != 0) TDB_LOG((tdb, 0, "tdb_traverse: key.dptr == NULL and unlock_record failed!\n")); goto out; } key.dsize = rec.key_len; dbuf.dptr = key.dptr + rec.key_len; dbuf.dsize = rec.data_len; /* Drop chain lock, call out */ if (tdb_unlock(tdb, tl.hash, F_WRLCK) != 0) { ret = -1; goto out; } if (fn && fn(tdb, key, dbuf, private_val)) { /* They want us to terminate traversal */ ret = count; if (unlock_record(tdb, tl.off) != 0) { TDB_LOG((tdb, 0, "tdb_traverse: unlock_record failed!\n"));; ret = -1; } tdb->travlocks.next = tl.next; SAFE_FREE(key.dptr); return count; } SAFE_FREE(key.dptr); } out: tdb->travlocks.next = tl.next; if (ret < 0) return -1; else return count; } /* find the first entry in the database and return its key */ TDB_DATA tdb_firstkey(TDB_CONTEXT *tdb) { TDB_DATA key; struct list_struct rec; /* release any old lock */ if (unlock_record(tdb, tdb->travlocks.off) != 0) return tdb_null; tdb->travlocks.off = tdb->travlocks.hash = 0; if (tdb_next_lock(tdb, &tdb->travlocks, &rec) <= 0) return tdb_null; /* now read the key */ key.dsize = rec.key_len; key.dptr =tdb_alloc_read(tdb,tdb->travlocks.off+sizeof(rec),key.dsize); if (tdb_unlock(tdb, BUCKET(tdb->travlocks.hash), F_WRLCK) != 0) TDB_LOG((tdb, 0, "tdb_firstkey: error occurred while tdb_unlocking!\n")); return key; } /* find the next entry in the database, returning its key */ TDB_DATA tdb_nextkey(TDB_CONTEXT *tdb, TDB_DATA oldkey) { u32 oldhash; TDB_DATA key = tdb_null; struct list_struct rec; char *k = NULL; /* Is locked key the old key? If so, traverse will be reliable. */ if (tdb->travlocks.off) { if (tdb_lock(tdb,tdb->travlocks.hash,F_WRLCK)) return tdb_null; if (rec_read(tdb, tdb->travlocks.off, &rec) == -1 || !(k = tdb_alloc_read(tdb,tdb->travlocks.off+sizeof(rec), rec.key_len)) || memcmp(k, oldkey.dptr, oldkey.dsize) != 0) { /* No, it wasn't: unlock it and start from scratch */ if (unlock_record(tdb, tdb->travlocks.off) != 0) return tdb_null; if (tdb_unlock(tdb, tdb->travlocks.hash, F_WRLCK) != 0) return tdb_null; tdb->travlocks.off = 0; } SAFE_FREE(k); } if (!tdb->travlocks.off) { /* No previous element: do normal find, and lock record */ tdb->travlocks.off = tdb_find_lock_hash(tdb, oldkey, tdb->hash_fn(&oldkey), F_WRLCK, &rec); if (!tdb->travlocks.off) return tdb_null; tdb->travlocks.hash = BUCKET(rec.full_hash); if (lock_record(tdb, tdb->travlocks.off) != 0) { TDB_LOG((tdb, 0, "tdb_nextkey: lock_record failed (%s)!\n", strerror(errno))); return tdb_null; } } oldhash = tdb->travlocks.hash; /* Grab next record: locks chain and returned record, unlocks old record */ if (tdb_next_lock(tdb, &tdb->travlocks, &rec) > 0) { key.dsize = rec.key_len; key.dptr = tdb_alloc_read(tdb, tdb->travlocks.off+sizeof(rec), key.dsize); /* Unlock the chain of this new record */ if (tdb_unlock(tdb, tdb->travlocks.hash, F_WRLCK) != 0) TDB_LOG((tdb, 0, "tdb_nextkey: WARNING tdb_unlock failed!\n")); } /* Unlock the chain of old record */ if (tdb_unlock(tdb, BUCKET(oldhash), F_WRLCK) != 0) TDB_LOG((tdb, 0, "tdb_nextkey: WARNING tdb_unlock failed!\n")); return key; } /* delete an entry in the database given a key */ static int tdb_delete_hash(TDB_CONTEXT *tdb, TDB_DATA key, u32 hash) { tdb_off rec_ptr; struct list_struct rec; int ret; if (!(rec_ptr = tdb_find_lock_hash(tdb, key, hash, F_WRLCK, &rec))) return -1; ret = do_delete(tdb, rec_ptr, &rec); if (tdb_unlock(tdb, BUCKET(rec.full_hash), F_WRLCK) != 0) TDB_LOG((tdb, 0, "tdb_delete: WARNING tdb_unlock failed!\n")); return ret; } int tdb_delete(TDB_CONTEXT *tdb, TDB_DATA key) { u32 hash = tdb->hash_fn(&key); return tdb_delete_hash(tdb, key, hash); } /* store an element in the database, replacing any existing element with the same key return 0 on success, -1 on failure */ int tdb_store(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf, int flag) { struct list_struct rec; u32 hash; tdb_off rec_ptr; char *p = NULL; int ret = 0; /* find which hash bucket it is in */ hash = tdb->hash_fn(&key); if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1) return -1; /* check for it existing, on insert. */ if (flag == TDB_INSERT) { if (tdb_exists_hash(tdb, key, hash)) { tdb->ecode = TDB_ERR_EXISTS; goto fail; } } else { /* first try in-place update, on modify or replace. */ if (tdb_update_hash(tdb, key, hash, dbuf) == 0) goto out; if (tdb->ecode == TDB_ERR_NOEXIST && flag == TDB_MODIFY) { /* if the record doesn't exist and we are in TDB_MODIFY mode then we should fail the store */ goto fail; } } /* reset the error code potentially set by the tdb_update() */ tdb->ecode = TDB_SUCCESS; /* delete any existing record - if it doesn't exist we don't care. Doing this first reduces fragmentation, and avoids coalescing with `allocated' block before it's updated. */ if (flag != TDB_INSERT) tdb_delete_hash(tdb, key, hash); /* Copy key+value *before* allocating free space in case malloc fails and we are left with a dead spot in the tdb. */ if (!(p = (char *)malloc(key.dsize + dbuf.dsize))) { tdb->ecode = TDB_ERR_OOM; goto fail; } memcpy(p, key.dptr, key.dsize); if (dbuf.dsize) memcpy(p+key.dsize, dbuf.dptr, dbuf.dsize); /* we have to allocate some space */ if (!(rec_ptr = tdb_allocate(tdb, key.dsize + dbuf.dsize, &rec))) goto fail; /* Read hash top into next ptr */ if (ofs_read(tdb, TDB_HASH_TOP(hash), &rec.next) == -1) goto fail; rec.key_len = key.dsize; rec.data_len = dbuf.dsize; rec.full_hash = hash; rec.magic = TDB_MAGIC; /* write out and point the top of the hash chain at it */ if (rec_write(tdb, rec_ptr, &rec) == -1 || tdb_write(tdb, rec_ptr+sizeof(rec), p, key.dsize+dbuf.dsize)==-1 || ofs_write(tdb, TDB_HASH_TOP(hash), &rec_ptr) == -1) { /* Need to tdb_unallocate() here */ goto fail; } out: SAFE_FREE(p); tdb_unlock(tdb, BUCKET(hash), F_WRLCK); return ret; fail: ret = -1; goto out; } /* Attempt to append data to an entry in place - this only works if the new data size is <= the old data size and the key exists. on failure return -1. Record must be locked before calling. */ static int tdb_append_inplace(TDB_CONTEXT *tdb, TDB_DATA key, u32 hash, TDB_DATA new_dbuf) { struct list_struct rec; tdb_off rec_ptr; /* find entry */ if (!(rec_ptr = tdb_find(tdb, key, hash, &rec))) return -1; /* Append of 0 is always ok. */ if (new_dbuf.dsize == 0) return 0; /* must be long enough for key, old data + new data and tailer */ if (rec.rec_len < key.dsize + rec.data_len + new_dbuf.dsize + sizeof(tdb_off)) { /* No room. */ tdb->ecode = TDB_SUCCESS; /* Not really an error */ return -1; } if (tdb_write(tdb, rec_ptr + sizeof(rec) + rec.key_len + rec.data_len, new_dbuf.dptr, new_dbuf.dsize) == -1) return -1; /* update size */ rec.data_len += new_dbuf.dsize; return rec_write(tdb, rec_ptr, &rec); } /* Append to an entry. Create if not exist. */ int tdb_append(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA new_dbuf) { struct list_struct rec; u32 hash; tdb_off rec_ptr; char *p = NULL; int ret = 0; size_t new_data_size = 0; /* find which hash bucket it is in */ hash = tdb->hash_fn(&key); if (tdb_lock(tdb, BUCKET(hash), F_WRLCK) == -1) return -1; /* first try in-place. */ if (tdb_append_inplace(tdb, key, hash, new_dbuf) == 0) goto out; /* reset the error code potentially set by the tdb_append_inplace() */ tdb->ecode = TDB_SUCCESS; /* find entry */ if (!(rec_ptr = tdb_find(tdb, key, hash, &rec))) { if (tdb->ecode != TDB_ERR_NOEXIST) goto fail; /* Not found - create. */ ret = tdb_store(tdb, key, new_dbuf, TDB_INSERT); goto out; } new_data_size = rec.data_len + new_dbuf.dsize; /* Copy key+old_value+value *before* allocating free space in case malloc fails and we are left with a dead spot in the tdb. */ if (!(p = (char *)malloc(key.dsize + new_data_size))) { tdb->ecode = TDB_ERR_OOM; goto fail; } /* Copy the key in place. */ memcpy(p, key.dptr, key.dsize); /* Now read the old data into place. */ if (rec.data_len && tdb_read(tdb, rec_ptr + sizeof(rec) + rec.key_len, p + key.dsize, rec.data_len, 0) == -1) goto fail; /* Finally append the new data. */ if (new_dbuf.dsize) memcpy(p+key.dsize+rec.data_len, new_dbuf.dptr, new_dbuf.dsize); /* delete any existing record - if it doesn't exist we don't care. Doing this first reduces fragmentation, and avoids coalescing with `allocated' block before it's updated. */ tdb_delete_hash(tdb, key, hash); if (!(rec_ptr = tdb_allocate(tdb, key.dsize + new_data_size, &rec))) goto fail; /* Read hash top into next ptr */ if (ofs_read(tdb, TDB_HASH_TOP(hash), &rec.next) == -1) goto fail; rec.key_len = key.dsize; rec.data_len = new_data_size; rec.full_hash = hash; rec.magic = TDB_MAGIC; /* write out and point the top of the hash chain at it */ if (rec_write(tdb, rec_ptr, &rec) == -1 || tdb_write(tdb, rec_ptr+sizeof(rec), p, key.dsize+new_data_size)==-1 || ofs_write(tdb, TDB_HASH_TOP(hash), &rec_ptr) == -1) { /* Need to tdb_unallocate() here */ goto fail; } out: SAFE_FREE(p); tdb_unlock(tdb, BUCKET(hash), F_WRLCK); return ret; fail: ret = -1; goto out; } static int tdb_already_open(dev_t device, ino_t ino) { TDB_CONTEXT *i; for (i = tdbs; i; i = i->next) { if (i->device == device && i->inode == ino) { return 1; } } return 0; } /* This is based on the hash algorithm from gdbm */ static u32 default_tdb_hash(TDB_DATA *key) { u32 value; /* Used to compute the hash value. */ u32 i; /* Used to cycle through random values. */ /* Set the initial value from the key size. */ for (value = 0x238F13AF * key->dsize, i=0; i < key->dsize; i++) value = (value + (key->dptr[i] << (i*5 % 24))); return (1103515243 * value + 12345); } /* open the database, creating it if necessary The open_flags and mode are passed straight to the open call on the database file. A flags value of O_WRONLY is invalid. The hash size is advisory, use zero for a default value. Return is NULL on error, in which case errno is also set. Don't try to call tdb_error or tdb_errname, just do strerror(errno). @param name may be NULL for internal databases. */ TDB_CONTEXT *tdb_open(const char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode) { return tdb_open_ex(name, hash_size, tdb_flags, open_flags, mode, NULL, NULL); } TDB_CONTEXT *tdb_open_ex(const char *name, int hash_size, int tdb_flags, int open_flags, mode_t mode, tdb_log_func log_fn, tdb_hash_func hash_fn) { TDB_CONTEXT *tdb; struct stat st; int rev = 0, locked = 0; unsigned char *vp; u32 vertest; if (!(tdb = calloc(1, sizeof *tdb))) { /* Can't log this */ errno = ENOMEM; goto fail; } tdb->fd = -1; tdb->name = NULL; tdb->map_ptr = NULL; tdb->flags = tdb_flags; tdb->open_flags = open_flags; tdb->log_fn = log_fn; tdb->hash_fn = hash_fn ? hash_fn : default_tdb_hash; if ((open_flags & O_ACCMODE) == O_WRONLY) { TDB_LOG((tdb, 0, "tdb_open_ex: can't open tdb %s write-only\n", name)); errno = EINVAL; goto fail; } if (hash_size == 0) hash_size = DEFAULT_HASH_SIZE; if ((open_flags & O_ACCMODE) == O_RDONLY) { tdb->read_only = 1; /* read only databases don't do locking or clear if first */ tdb->flags |= TDB_NOLOCK; tdb->flags &= ~TDB_CLEAR_IF_FIRST; } /* internal databases don't mmap or lock, and start off cleared */ if (tdb->flags & TDB_INTERNAL) { tdb->flags |= (TDB_NOLOCK | TDB_NOMMAP); tdb->flags &= ~TDB_CLEAR_IF_FIRST; if (tdb_new_database(tdb, hash_size) != 0) { TDB_LOG((tdb, 0, "tdb_open_ex: tdb_new_database failed!")); goto fail; } goto internal; } if ((tdb->fd = open(name, open_flags, mode)) == -1) { TDB_LOG((tdb, 5, "tdb_open_ex: could not open file %s: %s\n", name, strerror(errno))); goto fail; /* errno set by open(2) */ } /* ensure there is only one process initialising at once */ if (tdb_brlock(tdb, GLOBAL_LOCK, F_WRLCK, F_SETLKW, 0) == -1) { TDB_LOG((tdb, 0, "tdb_open_ex: failed to get global lock on %s: %s\n", name, strerror(errno))); goto fail; /* errno set by tdb_brlock */ } /* we need to zero database if we are the only one with it open */ if ((tdb_flags & TDB_CLEAR_IF_FIRST) && (locked = (tdb_brlock(tdb, ACTIVE_LOCK, F_WRLCK, F_SETLK, 0) == 0))) { open_flags |= O_CREAT; if (ftruncate(tdb->fd, 0) == -1) { TDB_LOG((tdb, 0, "tdb_open_ex: " "failed to truncate %s: %s\n", name, strerror(errno))); goto fail; /* errno set by ftruncate */ } } if (read(tdb->fd, &tdb->header, sizeof(tdb->header)) != sizeof(tdb->header) || strcmp(tdb->header.magic_food, TDB_MAGIC_FOOD) != 0 || (tdb->header.version != TDB_VERSION && !(rev = (tdb->header.version==TDB_BYTEREV(TDB_VERSION))))) { /* its not a valid database - possibly initialise it */ if (!(open_flags & O_CREAT) || tdb_new_database(tdb, hash_size) == -1) { errno = EIO; /* ie bad format or something */ goto fail; } rev = (tdb->flags & TDB_CONVERT); } vp = (unsigned char *)&tdb->header.version; vertest = (((u32)vp[0]) << 24) | (((u32)vp[1]) << 16) | (((u32)vp[2]) << 8) | (u32)vp[3]; tdb->flags |= (vertest==TDB_VERSION) ? TDB_BIGENDIAN : 0; if (!rev) tdb->flags &= ~TDB_CONVERT; else { tdb->flags |= TDB_CONVERT; convert(&tdb->header, sizeof(tdb->header)); } if (fstat(tdb->fd, &st) == -1) goto fail; /* Is it already in the open list? If so, fail. */ if (tdb_already_open(st.st_dev, st.st_ino)) { TDB_LOG((tdb, 2, "tdb_open_ex: " "%s (%d,%d) is already open in this process\n", name, (int)st.st_dev, (int)st.st_ino)); errno = EBUSY; goto fail; } if (!(tdb->name = (char *)strdup(name))) { errno = ENOMEM; goto fail; } tdb->map_size = st.st_size; tdb->device = st.st_dev; tdb->inode = st.st_ino; tdb->locked = calloc(tdb->header.hash_size+1, sizeof(tdb->locked[0])); if (!tdb->locked) { TDB_LOG((tdb, 2, "tdb_open_ex: " "failed to allocate lock structure for %s\n", name)); errno = ENOMEM; goto fail; } tdb_mmap(tdb); if (locked) { if (!tdb->read_only) if (tdb_clear_spinlocks(tdb) != 0) { TDB_LOG((tdb, 0, "tdb_open_ex: " "failed to clear spinlock\n")); goto fail; } if (tdb_brlock(tdb, ACTIVE_LOCK, F_UNLCK, F_SETLK, 0) == -1) { TDB_LOG((tdb, 0, "tdb_open_ex: " "failed to take ACTIVE_LOCK on %s: %s\n", name, strerror(errno))); goto fail; } } /* We always need to do this if the CLEAR_IF_FIRST flag is set, even if we didn't get the initial exclusive lock as we need to let all other users know we're using it. */ if (tdb_flags & TDB_CLEAR_IF_FIRST) { /* leave this lock in place to indicate it's in use */ if (tdb_brlock(tdb, ACTIVE_LOCK, F_RDLCK, F_SETLKW, 0) == -1) goto fail; } internal: /* Internal (memory-only) databases skip all the code above to * do with disk files, and resume here by releasing their * global lock and hooking into the active list. */ if (tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0) == -1) goto fail; tdb->next = tdbs; tdbs = tdb; return tdb; fail: { int save_errno = errno; if (!tdb) return NULL; if (tdb->map_ptr) { if (tdb->flags & TDB_INTERNAL) SAFE_FREE(tdb->map_ptr); else tdb_munmap(tdb); } SAFE_FREE(tdb->name); if (tdb->fd != -1) if (close(tdb->fd) != 0) TDB_LOG((tdb, 5, "tdb_open_ex: failed to close tdb->fd on error!\n")); SAFE_FREE(tdb->locked); SAFE_FREE(tdb); errno = save_errno; return NULL; } } /** * Close a database. * * @returns -1 for error; 0 for success. **/ int tdb_close(TDB_CONTEXT *tdb) { TDB_CONTEXT **i; int ret = 0; if (tdb->map_ptr) { if (tdb->flags & TDB_INTERNAL) SAFE_FREE(tdb->map_ptr); else tdb_munmap(tdb); } SAFE_FREE(tdb->name); if (tdb->fd != -1) ret = close(tdb->fd); SAFE_FREE(tdb->locked); /* Remove from contexts list */ for (i = &tdbs; *i; i = &(*i)->next) { if (*i == tdb) { *i = tdb->next; break; } } memset(tdb, 0, sizeof(*tdb)); SAFE_FREE(tdb); return ret; } /* lock/unlock entire database */ int tdb_lockall(TDB_CONTEXT *tdb) { u32 i; /* There are no locks on read-only dbs */ if (tdb->read_only) return TDB_ERRCODE(TDB_ERR_LOCK, -1); for (i = 0; i < tdb->header.hash_size; i++) if (tdb_lock(tdb, i, F_WRLCK)) break; /* If error, release locks we have... */ if (i < tdb->header.hash_size) { u32 j; for ( j = 0; j < i; j++) tdb_unlock(tdb, j, F_WRLCK); return TDB_ERRCODE(TDB_ERR_NOLOCK, -1); } return 0; } void tdb_unlockall(TDB_CONTEXT *tdb) { u32 i; for (i=0; i < tdb->header.hash_size; i++) tdb_unlock(tdb, i, F_WRLCK); } /* lock/unlock one hash chain. This is meant to be used to reduce contention - it cannot guarantee how many records will be locked */ int tdb_chainlock(TDB_CONTEXT *tdb, TDB_DATA key) { return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); } int tdb_chainunlock(TDB_CONTEXT *tdb, TDB_DATA key) { return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_WRLCK); } int tdb_chainlock_read(TDB_CONTEXT *tdb, TDB_DATA key) { return tdb_lock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); } int tdb_chainunlock_read(TDB_CONTEXT *tdb, TDB_DATA key) { return tdb_unlock(tdb, BUCKET(tdb->hash_fn(&key)), F_RDLCK); } /* register a loging function */ void tdb_logging_function(TDB_CONTEXT *tdb, void (*fn)(TDB_CONTEXT *, int , const char *, ...)) { tdb->log_fn = fn; } /* reopen a tdb - this can be used after a fork to ensure that we have an independent seek pointer from our parent and to re-establish locks */ int tdb_reopen(TDB_CONTEXT *tdb) { struct stat st; if (tdb->flags & TDB_INTERNAL) return 0; /* Nothing to do. */ if (tdb_munmap(tdb) != 0) { TDB_LOG((tdb, 0, "tdb_reopen: munmap failed (%s)\n", strerror(errno))); goto fail; } if (close(tdb->fd) != 0) TDB_LOG((tdb, 0, "tdb_reopen: WARNING closing tdb->fd failed!\n")); tdb->fd = open(tdb->name, tdb->open_flags & ~(O_CREAT|O_TRUNC), 0); if (tdb->fd == -1) { TDB_LOG((tdb, 0, "tdb_reopen: open failed (%s)\n", strerror(errno))); goto fail; } if (fstat(tdb->fd, &st) != 0) { TDB_LOG((tdb, 0, "tdb_reopen: fstat failed (%s)\n", strerror(errno))); goto fail; } if (st.st_ino != tdb->inode || st.st_dev != tdb->device) { TDB_LOG((tdb, 0, "tdb_reopen: file dev/inode has changed!\n")); goto fail; } tdb_mmap(tdb); if ((tdb->flags & TDB_CLEAR_IF_FIRST) && (tdb_brlock(tdb, ACTIVE_LOCK, F_RDLCK, F_SETLKW, 0) == -1)) { TDB_LOG((tdb, 0, "tdb_reopen: failed to obtain active lock\n")); goto fail; } return 0; fail: tdb_close(tdb); return -1; } /* reopen all tdb's */ int tdb_reopen_all(void) { TDB_CONTEXT *tdb; for (tdb=tdbs; tdb; tdb = tdb->next) { /* Ensure no clear-if-first. */ tdb->flags &= ~TDB_CLEAR_IF_FIRST; if (tdb_reopen(tdb) != 0) return -1; } return 0; } sweep-0.9.3/src/tdb/spinlock.h0000644000175000017500000000272210777660154014737 0ustar useruser#ifndef __SPINLOCK_H__ #define __SPINLOCK_H__ #ifdef HAVE_CONFIG_H #include #endif #include "tdb.h" #ifdef USE_SPINLOCKS #define RWLOCK_BIAS 0x1000UL /* OS SPECIFIC */ #define MAX_BUSY_LOOPS 1000 #undef USE_SCHED_YIELD /* ARCH SPECIFIC */ /* We should make sure these are padded to a cache line */ #if defined(SPARC_SPINLOCKS) typedef volatile char spinlock_t; #elif defined(POWERPC_SPINLOCKS) typedef volatile unsigned long spinlock_t; #elif defined(INTEL_SPINLOCKS) typedef volatile int spinlock_t; #elif defined(MIPS_SPINLOCKS) typedef volatile unsigned long spinlock_t; #else #error Need to implement spinlock code in spinlock.h #endif typedef struct { spinlock_t lock; volatile int count; } tdb_rwlock_t; int tdb_spinlock(TDB_CONTEXT *tdb, int list, int rw_type); int tdb_spinunlock(TDB_CONTEXT *tdb, int list, int rw_type); int tdb_create_rwlocks(int fd, unsigned int hash_size); int tdb_clear_spinlocks(TDB_CONTEXT *tdb); #define TDB_SPINLOCK_SIZE(hash_size) (((hash_size) + 1) * sizeof(tdb_rwlock_t)) #else /* !USE_SPINLOCKS */ #if 0 #define tdb_create_rwlocks(fd, hash_size) 0 #define tdb_spinlock(tdb, list, rw_type) (-1) #define tdb_spinunlock(tdb, list, rw_type) (-1) #else int tdb_spinlock(TDB_CONTEXT *tdb, int list, int rw_type); int tdb_spinunlock(TDB_CONTEXT *tdb, int list, int rw_type); int tdb_create_rwlocks(int fd, unsigned int hash_size); #endif int tdb_clear_spinlocks(TDB_CONTEXT *tdb); #define TDB_SPINLOCK_SIZE(hash_size) 0 #endif #endif sweep-0.9.3/src/tdb/Makefile.am0000644000175000017500000000023110777660154014771 0ustar useruserEXTRA_DIST = svn-update.sh AM_CFLAGS = -DSTANDALONE noinst_LIBRARIES = libtdb.a noinst_HEADERS = tdb.h spinlock.h libtdb_a_SOURCES = tdb.c spinlock.c sweep-0.9.3/src/tdb/svn-update.sh0000755000175000017500000000203510777660154015366 0ustar useruser#!/bin/sh # svn-update.sh # Update source files from an upstream Subversion repository # # Conrad Parker, 2004 # The files to update FILES="tdb.c tdb.h spinlock.c spinlock.h" # The directory in a subversion repository containing the source files REPOSITORY="svn://svnanon.samba.org/samba/trunk/source/tdb" # The name of the working dir for checkout UPSTREAM="svnanon.samba.org:tdb" # The name of the generated diff file CHANGES="changes.diff" ## End configuration ## COPIED="" echo "Retrieving sources from $REPOSITORY ..." rm -rf $UPSTREAM svn co $REPOSITORY $UPSTREAM [ $? != 0 ] && exit 1 [ -e $CHANGES ] && mv $CHANGES $CHANGES.bak for i in $FILES; do if [ -e $i ] ; then diff -u $i $UPSTREAM/$i >> $CHANGES if [ $? != 0 ] ; then mv $i $i.bak cp $UPSTREAM/$i . COPIED="$COPIED $i" fi else cp $UPSTREAM/$i . COPIED="$COPIED $i" fi done if [ "x$COPIED" != "x" ] ; then echo "Copied files: $COPIED" [ -e $CHANGES ] && echo "Differences: $CHANGES" else rm $CHANGES echo "No changes." fi sweep-0.9.3/src/tdb/spinlock.c0000644000175000017500000002205510777660154014733 0ustar useruser/* Unix SMB/CIFS implementation. trivial database library Copyright (C) Anton Blanchard 2001 ** NOTE! The following LGPL license applies to the tdb ** library. This does NOT imply that all of Samba is released ** under the LGPL This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #if HAVE_CONFIG_H #include #endif #ifdef STANDALONE #include #include #include #include #include #include #include #include #include #include "tdb.h" #include "spinlock.h" #define DEBUG #else #include "includes.h" #endif #ifdef USE_SPINLOCKS /* * ARCH SPECIFIC */ #if defined(SPARC_SPINLOCKS) static inline int __spin_trylock(spinlock_t *lock) { unsigned int result; asm volatile("ldstub [%1], %0" : "=r" (result) : "r" (lock) : "memory"); return (result == 0) ? 0 : EBUSY; } static inline void __spin_unlock(spinlock_t *lock) { asm volatile("":::"memory"); *lock = 0; } static inline void __spin_lock_init(spinlock_t *lock) { *lock = 0; } static inline int __spin_is_locked(spinlock_t *lock) { return (*lock != 0); } #elif defined(POWERPC_SPINLOCKS) static inline int __spin_trylock(spinlock_t *lock) { unsigned int result; __asm__ __volatile__( "1: lwarx %0,0,%1\n\ cmpwi 0,%0,0\n\ li %0,0\n\ bne- 2f\n\ li %0,1\n\ stwcx. %0,0,%1\n\ bne- 1b\n\ isync\n\ 2:" : "=&r"(result) : "r"(lock) : "cr0", "memory"); return (result == 1) ? 0 : EBUSY; } static inline void __spin_unlock(spinlock_t *lock) { asm volatile("eieio":::"memory"); *lock = 0; } static inline void __spin_lock_init(spinlock_t *lock) { *lock = 0; } static inline int __spin_is_locked(spinlock_t *lock) { return (*lock != 0); } #elif defined(INTEL_SPINLOCKS) static inline int __spin_trylock(spinlock_t *lock) { int oldval; asm volatile("xchgl %0,%1" : "=r" (oldval), "=m" (*lock) : "0" (0) : "memory"); return oldval > 0 ? 0 : EBUSY; } static inline void __spin_unlock(spinlock_t *lock) { asm volatile("":::"memory"); *lock = 1; } static inline void __spin_lock_init(spinlock_t *lock) { *lock = 1; } static inline int __spin_is_locked(spinlock_t *lock) { return (*lock != 1); } #elif defined(MIPS_SPINLOCKS) && defined(sgi) && (_COMPILER_VERSION >= 730) /* Implement spinlocks on IRIX using the MIPSPro atomic fetch operations. See * sync(3) for the details of the intrinsic operations. * * "sgi" and "_COMPILER_VERSION" are always defined by MIPSPro. */ #ifdef STANDALONE /* MIPSPro 7.3 has "__inline" as an extension, but not "inline. */ #define inline __inline #endif /* STANDALONE */ /* Returns 0 if the lock is acquired, EBUSY otherwise. */ static inline int __spin_trylock(spinlock_t *lock) { unsigned int val; val = __lock_test_and_set(lock, 1); return val == 0 ? 0 : EBUSY; } static inline void __spin_unlock(spinlock_t *lock) { __lock_release(lock); } static inline void __spin_lock_init(spinlock_t *lock) { __lock_release(lock); } /* Returns 1 if the lock is held, 0 otherwise. */ static inline int __spin_is_locked(spinlock_t *lock) { unsigned int val; val = __add_and_fetch(lock, 0); return val; } #elif defined(MIPS_SPINLOCKS) static inline unsigned int load_linked(unsigned long addr) { unsigned int res; __asm__ __volatile__("ll\t%0,(%1)" : "=r" (res) : "r" (addr)); return res; } static inline unsigned int store_conditional(unsigned long addr, unsigned int value) { unsigned int res; __asm__ __volatile__("sc\t%0,(%2)" : "=r" (res) : "0" (value), "r" (addr)); return res; } static inline int __spin_trylock(spinlock_t *lock) { unsigned int mw; do { mw = load_linked(lock); if (mw) return EBUSY; } while (!store_conditional(lock, 1)); asm volatile("":::"memory"); return 0; } static inline void __spin_unlock(spinlock_t *lock) { asm volatile("":::"memory"); *lock = 0; } static inline void __spin_lock_init(spinlock_t *lock) { *lock = 0; } static inline int __spin_is_locked(spinlock_t *lock) { return (*lock != 0); } #else #error Need to implement spinlock code in spinlock.c #endif /* * OS SPECIFIC */ static void yield_cpu(void) { struct timespec tm; #ifdef USE_SCHED_YIELD sched_yield(); #else /* Linux will busy loop for delays < 2ms on real time tasks */ tm.tv_sec = 0; tm.tv_nsec = 2000000L + 1; nanosleep(&tm, NULL); #endif } static int this_is_smp(void) { #if defined(HAVE_SYSCONF) && defined(SYSCONF_SC_NPROC_ONLN) return (sysconf(_SC_NPROC_ONLN) > 1) ? 1 : 0; #else return 0; #endif } /* * GENERIC */ static int smp_machine = 0; static inline void __spin_lock(spinlock_t *lock) { int ntries = 0; while(__spin_trylock(lock)) { while(__spin_is_locked(lock)) { if (smp_machine && ntries++ < MAX_BUSY_LOOPS) continue; yield_cpu(); } } } static void __read_lock(tdb_rwlock_t *rwlock) { int ntries = 0; while(1) { __spin_lock(&rwlock->lock); if (!(rwlock->count & RWLOCK_BIAS)) { rwlock->count++; __spin_unlock(&rwlock->lock); return; } __spin_unlock(&rwlock->lock); while(rwlock->count & RWLOCK_BIAS) { if (smp_machine && ntries++ < MAX_BUSY_LOOPS) continue; yield_cpu(); } } } static void __write_lock(tdb_rwlock_t *rwlock) { int ntries = 0; while(1) { __spin_lock(&rwlock->lock); if (rwlock->count == 0) { rwlock->count |= RWLOCK_BIAS; __spin_unlock(&rwlock->lock); return; } __spin_unlock(&rwlock->lock); while(rwlock->count != 0) { if (smp_machine && ntries++ < MAX_BUSY_LOOPS) continue; yield_cpu(); } } } static void __write_unlock(tdb_rwlock_t *rwlock) { __spin_lock(&rwlock->lock); #ifdef DEBUG if (!(rwlock->count & RWLOCK_BIAS)) fprintf(stderr, "bug: write_unlock\n"); #endif rwlock->count &= ~RWLOCK_BIAS; __spin_unlock(&rwlock->lock); } static void __read_unlock(tdb_rwlock_t *rwlock) { __spin_lock(&rwlock->lock); #ifdef DEBUG if (!rwlock->count) fprintf(stderr, "bug: read_unlock\n"); if (rwlock->count & RWLOCK_BIAS) fprintf(stderr, "bug: read_unlock\n"); #endif rwlock->count--; __spin_unlock(&rwlock->lock); } /* TDB SPECIFIC */ /* lock a list in the database. list -1 is the alloc list */ int tdb_spinlock(TDB_CONTEXT *tdb, int list, int rw_type) { tdb_rwlock_t *rwlocks; if (!tdb->map_ptr) return -1; rwlocks = (tdb_rwlock_t *)((char *)tdb->map_ptr + tdb->header.rwlocks); switch(rw_type) { case F_RDLCK: __read_lock(&rwlocks[list+1]); break; case F_WRLCK: __write_lock(&rwlocks[list+1]); break; default: return TDB_ERRCODE(TDB_ERR_LOCK, -1); } return 0; } /* unlock the database. */ int tdb_spinunlock(TDB_CONTEXT *tdb, int list, int rw_type) { tdb_rwlock_t *rwlocks; if (!tdb->map_ptr) return -1; rwlocks = (tdb_rwlock_t *)((char *)tdb->map_ptr + tdb->header.rwlocks); switch(rw_type) { case F_RDLCK: __read_unlock(&rwlocks[list+1]); break; case F_WRLCK: __write_unlock(&rwlocks[list+1]); break; default: return TDB_ERRCODE(TDB_ERR_LOCK, -1); } return 0; } int tdb_create_rwlocks(int fd, unsigned int hash_size) { unsigned size, i; tdb_rwlock_t *rwlocks; size = TDB_SPINLOCK_SIZE(hash_size); rwlocks = malloc(size); if (!rwlocks) return -1; for(i = 0; i < hash_size+1; i++) { __spin_lock_init(&rwlocks[i].lock); rwlocks[i].count = 0; } /* Write it out (appending to end) */ if (write(fd, rwlocks, size) != size) { free(rwlocks); return -1; } smp_machine = this_is_smp(); free(rwlocks); return 0; } int tdb_clear_spinlocks(TDB_CONTEXT *tdb) { tdb_rwlock_t *rwlocks; unsigned i; if (tdb->header.rwlocks == 0) return 0; if (!tdb->map_ptr) return -1; /* We're mmapped here */ rwlocks = (tdb_rwlock_t *)((char *)tdb->map_ptr + tdb->header.rwlocks); for(i = 0; i < tdb->header.hash_size+1; i++) { __spin_lock_init(&rwlocks[i].lock); rwlocks[i].count = 0; } return 0; } #else int tdb_create_rwlocks(int fd, unsigned int hash_size) { return 0; } int tdb_spinlock(TDB_CONTEXT *tdb, int list, int rw_type) { return -1; } int tdb_spinunlock(TDB_CONTEXT *tdb, int list, int rw_type) { return -1; } /* Non-spinlock version: remove spinlock pointer */ int tdb_clear_spinlocks(TDB_CONTEXT *tdb) { tdb_off off = (tdb_off)((char *)&tdb->header.rwlocks - (char *)&tdb->header); tdb->header.rwlocks = 0; if (lseek(tdb->fd, off, SEEK_SET) != off || write(tdb->fd, (void *)&tdb->header.rwlocks, sizeof(tdb->header.rwlocks)) != sizeof(tdb->header.rwlocks)) return -1; return 0; } #endif sweep-0.9.3/src/about_dialog.c0000644000175000017500000001061610777660160014766 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include "about_dialog.h" static void about_dialog_destroy(void); static int about_dialog_button(GtkWidget * widget, GdkEventButton * event); static GtkWidget *about_dialog = NULL; static void sweep_homepage (GtkWidget * widget, gpointer data) { system ("gnome-moz-remote http://sweep.sourceforge.net/"); } void about_dialog_create() { /* FIXME: for unused about box font style, reimplement?) * GtkStyle *style; */ GtkWidget *vbox; GtkWidget *label; #define BUF_LEN 64 gchar buf[BUF_LEN]; GtkWidget * button; GtkWidget * about_image; GtkWidget * about_ebox; gchar buf2[1024]; if (!about_dialog) { about_dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_type_hint (GTK_WINDOW(about_dialog), GDK_WINDOW_TYPE_HINT_SPLASHSCREEN); gtk_window_set_decorated ( GTK_WINDOW (about_dialog), FALSE); gtk_window_set_wmclass(GTK_WINDOW(about_dialog), "about_dialog", "Sweep"); gtk_window_set_resizable (GTK_WINDOW(about_dialog), FALSE); gtk_window_set_position (GTK_WINDOW(about_dialog), GTK_WIN_POS_CENTER); g_signal_connect(GTK_OBJECT(about_dialog), "destroy", G_CALLBACK(about_dialog_destroy), NULL); g_signal_connect(GTK_OBJECT(about_dialog), "button_press_event", G_CALLBACK(about_dialog_button), NULL); gtk_widget_set_events(about_dialog, GDK_BUTTON_PRESS_MASK); vbox = gtk_vbox_new(FALSE, 1); gtk_container_add(GTK_CONTAINER(about_dialog), vbox); gtk_widget_show(vbox); about_ebox = gtk_event_box_new(); gtk_box_pack_start(GTK_BOX(vbox), about_ebox, TRUE, TRUE, 0); gtk_widget_show(about_ebox); snprintf(buf2, sizeof (buf2), "%s/sweep_splash.png", PACKAGE_DATA_DIR); about_image = gtk_image_new_from_file (buf2); gtk_container_add(GTK_CONTAINER(about_ebox), about_image); gtk_widget_show(about_ebox); gtk_widget_show(about_image); /* FIXME: old gtk font code. reimplement? * style = gtk_style_new(); * gdk_font_unref(style->font); * style->font = gdk_font_load("-Adobe-Helvetica-Medium-R-Normal--*-140-*-*-*-*-*-*"); * gtk_widget_push_style(style); */ snprintf (buf, BUF_LEN, "%s %s", _("This is Sweep version"), VERSION); label = gtk_label_new(buf); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, TRUE, 0); gtk_widget_show(label); #if 0 label = gtk_label_new("Copyright (c) 2000 Conrad Parker, conrad@vergenet.net"); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, TRUE, 0); gtk_widget_show(label); #endif /* FIXME: old style code * gtk_widget_pop_style(); */ #if 0 alignment = gtk_alignment_new(0.5, 0.5, 0.0, 0.0); gtk_box_pack_start(GTK_BOX(vbox), alignment, FALSE, TRUE, 0); gtk_widget_show(alignment); label = gtk_label_new(_("http://sweep.sourceforge.net/")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, TRUE, 0); gtk_widget_show(label); #endif button = gtk_button_new_with_label ("http://sweep.sourceforge.net/"); gtk_box_pack_start (GTK_BOX(vbox), button, FALSE, TRUE, 0); gtk_widget_show (button); g_signal_connect (GTK_OBJECT(button), "clicked", G_CALLBACK(sweep_homepage), NULL); } if (!GTK_WIDGET_VISIBLE(about_dialog)) { gtk_widget_show(about_dialog); } else { gdk_window_raise(about_dialog->window); } } static void about_dialog_destroy() { about_dialog = NULL; } static int about_dialog_button(GtkWidget * widget, GdkEventButton * event) { gtk_widget_hide(about_dialog); return FALSE; } sweep-0.9.3/src/db_ruler.h0000644000175000017500000000402610777660160014136 0ustar useruser/* * Sweep, a sound wave editor. * * db_ruler, modified from hruler in GTK+ 1.2.x * by Conrad Parker 2000 for Sweep. * * 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. */ /* * GTK - The GIMP Toolkit * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald */ /* * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS * file for a list of people on the GTK+ Team. See the ChangeLog * files for a list of changes. These files are distributed with * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ #ifndef __DB_RULER_H__ #define __DB_RULER_H__ #include #include #include #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define DB_RULER(obj) GTK_CHECK_CAST (obj, db_ruler_get_type (), DbRuler) #define DB_RULER_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, db_ruler_get_type (), DbRulerClass) #define GTK_IS_DB_RULER(obj) GTK_CHECK_TYPE (obj, db_ruler_get_type ()) typedef struct _DbRuler DbRuler; typedef struct _DbRulerClass DbRulerClass; struct _DbRuler { GtkRuler ruler; gfloat y; gboolean dragging; }; struct _DbRulerClass { GtkRulerClass parent_class; void (*changed) (DbRuler * ruler); }; GType db_ruler_get_type (void); GtkWidget* db_ruler_new (void); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __DB_RULER_H__ */ sweep-0.9.3/src/channelops.h0000644000175000017500000000247510777660160014500 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * Copyright (C) 2002 CSIRO Australia * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __CHANNELOPS_H__ #define __CHANNELOPS_H__ void dup_stereo_cb (GtkWidget * widget, gpointer data); void dup_channels_dialog_new_cb (GtkWidget * widget, gpointer data); void mono_mixdown_cb (GtkWidget * widget, gpointer data); void remove_left_cb (GtkWidget * widget, gpointer data); void remove_right_cb (GtkWidget * widget, gpointer data); void stereo_swap_cb (GtkWidget * widget, gpointer data); void channels_dialog_new_cb (GtkWidget * widget, gpointer data); #endif /* __CHANNELOPS_H__ */ sweep-0.9.3/src/play.h0000644000175000017500000000251110777660160013302 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __PLAY_H__ #define __PLAY_H__ #include "sweep_app.h" void init_playback (void); void play_view_all (sw_view * view); void play_preroll (sw_view * view); void play_preview_cut (sw_view * view); void play_view_sel (sw_view * view); void play_view_all_pitch (sw_view * view, gfloat pitch); void stop_all_playback (void); void sample_play (sw_sample * sample); void sample_update_device (sw_sample * sample); void pause_playback (sw_sample * s); void stop_playback (sw_sample * sample); gboolean any_playing (void); #endif /* __PLAY_H__ */ sweep-0.9.3/src/preferences.c0000644000175000017500000001506110777660160014635 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include #include "question_dialogs.h" #include "tdb.h" static TDB_CONTEXT * prefs_tdb = NULL; gboolean ignore_failed_tdb_lock = FALSE; #define DIR_MODE (S_IRWXU) #define FILE_MODE (S_IRUSR | S_IWUSR) void prefs_init () { G_CONST_RETURN char * prefs_path; struct stat sbuf; prefs_path = g_get_home_dir (); prefs_path = g_strconcat (prefs_path, "/.sweep", NULL); if (stat (prefs_path, &sbuf) == -1) { switch (errno) { case ENOENT: if (mkdir (prefs_path, DIR_MODE) == -1) { if (errno != EEXIST) { perror (_("Error creating ~/.sweep")); exit (1); } } else { printf (_("Created %s/ mode %04o\n"), prefs_path, DIR_MODE); } break; case EACCES: /* Directory exists, permission denied -- handled at access test */ break; default: perror (_("Error on ~/.sweep")); exit (1); } } if (access (prefs_path, W_OK) == -1) { switch (errno) { case EACCES: if (chmod (prefs_path, DIR_MODE) == -1) { perror (_("Error setting permissions on ~/.sweep")); exit (1); } else { printf ("Changed mode of %s to %04o\n", prefs_path, DIR_MODE); } break; default: perror (_("Error accessing ~/.sweep")); exit (1); } } prefs_path = g_strconcat (prefs_path, "/preferences.tdb", NULL); if (access (prefs_path, R_OK | W_OK) == -1) { switch (errno) { case EACCES: if (chmod (prefs_path, FILE_MODE) == -1) { perror ("Error setting permissions on ~/.sweep/preferences.tdb"); exit (1); } else { printf ("Changed mode of %s to %04o\n", prefs_path, FILE_MODE); } break; default: break; } } prefs_tdb = tdb_open (prefs_path, 0, 0, O_RDWR | O_CREAT, FILE_MODE); if (prefs_tdb == NULL) { if (ignore_failed_tdb_lock == TRUE) { prefs_tdb = tdb_open (prefs_path, 0, TDB_NOLOCK, O_RDWR | O_CREAT, FILE_MODE); if (prefs_tdb != NULL) { fprintf(stderr, "Warning: couldn't get lock to ~/.sweep/preferences.tdb.\n" " opened without locking\n"); return; } } perror (_("Error opening ~/.sweep/preferences.tdb")); exit (1); } } int prefs_close (void) { if (prefs_tdb == NULL) return 0; return tdb_close (prefs_tdb); } int prefs_delete (char * key) { TDB_DATA key_data; if (prefs_tdb == NULL) return -1; key_data.dptr = key; key_data.dsize = strlen (key); return tdb_delete (prefs_tdb, key_data); } int * prefs_get_int (char * key) { TDB_DATA key_data, val_data; int nval, val; if (prefs_tdb == NULL) return NULL; key_data.dptr = key; key_data.dsize = strlen (key); val_data = tdb_fetch (prefs_tdb, key_data); if (val_data.dptr == NULL) { return NULL; } nval = * (int *)val_data.dptr; val = g_ntohl (nval); * (int *)val_data.dptr = val; return (int *)val_data.dptr; } int prefs_set_int (char * key, int val) { TDB_DATA key_data, val_data; int nval; if (prefs_tdb == NULL) return -1; key_data.dptr = key; key_data.dsize = strlen (key); nval = g_htonl (val); val_data.dptr = (char *)&nval; val_data.dsize = sizeof (int); return tdb_store (prefs_tdb, key_data, val_data, TDB_REPLACE); } long * prefs_get_long (char * key) { TDB_DATA key_data, val_data; long nval, val; if (prefs_tdb == NULL) return NULL; key_data.dptr = key; key_data.dsize = strlen (key); val_data = tdb_fetch (prefs_tdb, key_data); if (val_data.dptr == NULL) { return NULL; } nval = * (long *)val_data.dptr; #if 0 val = g_ntohl (nval); #else val = nval; #endif * (long *)val_data.dptr = val; return (long *)val_data.dptr; } int prefs_set_long (char * key, long val) { TDB_DATA key_data, val_data; long nval; if (prefs_tdb == NULL) return -1; key_data.dptr = key; key_data.dsize = strlen (key); #if 0 nval = g_htonl (val); #else nval = val; #endif val_data.dptr = (char *)&nval; val_data.dsize = sizeof (long); return tdb_store (prefs_tdb, key_data, val_data, TDB_REPLACE); } float * prefs_get_float (char * key) { TDB_DATA key_data, val_data; int nval, val; float fval; union { int *ip; float *fp;} fp; if (prefs_tdb == NULL) return NULL; key_data.dptr = key; key_data.dsize = strlen (key); val_data = tdb_fetch (prefs_tdb, key_data); if (val_data.dptr == NULL) { return NULL; } nval = *(int *)val_data.dptr; val = g_ntohl (nval); fp.ip = &val; fval = *fp.fp; #ifdef DEBUG printf ("preferences.c: got %s is %f\n", key, fval); #endif *(float *)val_data.dptr = fval; return (float *)val_data.dptr; } int prefs_set_float (char * key, float val) { TDB_DATA key_data, val_data; int nval, ival; union { int *ip; float *fp;} fp; if (prefs_tdb == NULL) return -1; #ifdef DEBUG printf ("preferences.c: setting %s to %f\n", key, val); #endif key_data.dptr = key; key_data.dsize = strlen (key); fp.fp = &val; ival = *fp.ip; nval = g_htonl (ival); val_data.dptr = (char *)&nval; val_data.dsize = sizeof (float); return tdb_store (prefs_tdb, key_data, val_data, TDB_REPLACE); } char * prefs_get_string (char * key) { TDB_DATA key_data, val_data; if (prefs_tdb == NULL) return NULL; key_data.dptr = key; key_data.dsize = strlen (key); val_data = tdb_fetch (prefs_tdb, key_data); return (char *)val_data.dptr; } int prefs_set_string (char * key, char * val) { TDB_DATA key_data, val_data; if (prefs_tdb == NULL) return -1; key_data.dptr = key; key_data.dsize = strlen (key); val_data.dptr = val; val_data.dsize = strlen (val) + 1; return tdb_store (prefs_tdb, key_data, val_data, TDB_REPLACE); } sweep-0.9.3/src/format.c0000644000175000017500000000247610777660160013632 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include sw_format * format_new (gint nr_channels, gint frame_rate) { sw_format * format; format = g_malloc (sizeof(sw_format)); format->channels = nr_channels; format->rate = frame_rate; return format; } sw_format * format_copy (sw_format * f) { sw_format * format; format = format_new (f->channels, f->rate); return format; } gint format_equal (sw_format * f1, sw_format * f2) { return (f1->channels == f2->channels && f1->rate == f2->rate); } sweep-0.9.3/src/record.c0000644000175000017500000003356710777660160013625 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000-2002 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include "callbacks.h" #include #include #include #include #include #include #include "sample.h" #include "interface.h" #include "edit.h" #include "head.h" #include "levelmeter.h" #include "sample-display.h" #include "play.h" #include "driver.h" #include "undo_dialog.h" #include "db_slider.h" #define DEBUG extern GtkStyle * style_wb; extern GtkStyle * style_LCD; extern GtkStyle * style_light_grey; extern GtkStyle * style_red_grey; extern GtkStyle * style_green_grey; extern GtkStyle * style_red; static GtkWidget * rec_dialog = NULL; static sw_handle * rec_handle = NULL; static gboolean rec_prepared = FALSE; static gint update_tag = -1; static GtkWidget * rec_ind_ebox; static GtkWidget * rec_ind_label; static gboolean rec_ind_state = FALSE; static GtkWidget * combo; static GtkWidget * mix_slider, * gain_slider; static sw_head_controller * head_controller; static sw_head * rec_head = NULL; static gint update_rec_ind (gpointer data) { sw_head * h = (sw_head *)data; if (rec_dialog == NULL) { return FALSE; } else if (!h->going) { gtk_label_set_text (GTK_LABEL(rec_ind_label), _("Ready to record")); gtk_widget_set_style (rec_ind_ebox, style_light_grey); return FALSE; } else { rec_ind_state = !rec_ind_state; if (rec_ind_state) { gtk_widget_set_style (rec_ind_ebox, style_red); } else { gtk_widget_set_style (rec_ind_ebox, style_light_grey); } return TRUE; } } static gint update_recmarker (gpointer data) { sw_head * h = (sw_head *)data; if (rec_dialog == NULL || !h->going) { update_tag = 0; head_set_going (h, FALSE); return FALSE; } else { sample_set_rec_marker (h->sample, h->offset); head_set_offset (h, h->offset); return TRUE; } } static void start_recmarker (sw_head * head) { if (update_tag > 0) { g_source_remove (update_tag); } update_tag = g_timeout_add ((guint32)30, (GSourceFunc)update_recmarker, (gpointer)head); gtk_label_set_text (GTK_LABEL(rec_ind_label), "RECORDING"); gtk_widget_set_style (rec_ind_ebox, style_red); rec_ind_state = TRUE; g_timeout_add ((guint32)500, (GSourceFunc)update_rec_ind, (gpointer)head); } static void mix_value_changed_cb (GtkWidget * widget, gfloat value, gpointer data) { sw_head * head = (sw_head *)data; head->mix = value; } static void gain_value_changed_cb (GtkWidget * widget, gfloat value, gpointer data) { sw_head * head = (sw_head *)data; head->gain = value; } void stop_recording (sw_sample * sample) { head_set_going (sample->rec_head, FALSE); } static void prepare_recording (sw_format * format) { rec_handle = device_open (0, O_RDONLY); if (rec_handle == NULL) return; device_setup (rec_handle, format); rec_prepared = TRUE; } static struct timeval tv_instant = {0, 0}; static void do_record_regions (sw_sample * sample) { sw_head * head = sample->rec_head; sw_sounddata * sounddata = sample->sounddata; sw_format * f = sounddata->format; fd_set fds; sw_framecount_t sel_total, run_total; sw_framecount_t offset, remaining, n, count; gint percent; gboolean rec_mixing = FALSE; sw_audio_t * rbuf; gboolean active = TRUE; if (!rec_prepared) prepare_recording (f); if (rec_handle == NULL) goto done; head->restricted = TRUE; sel_total = sounddata_selection_nr_frames (sounddata) / 100; if (sel_total == 0) sel_total = 1; run_total = 0; rbuf = alloca (1024 * f->channels * sizeof (sw_audio_t)); rec_mixing = TRUE; while (active) { FD_ZERO (&fds); FD_SET (rec_handle->driver_fd, &fds); if (select (rec_handle->driver_fd+1, &fds, NULL, NULL, &tv_instant) == 0); n = 1024; count = n * f->channels; count = device_read (rec_handle, rbuf, count); g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL || count == -1 || !head->going) { active = FALSE; } else { head_write (head, rbuf, n); remaining -= n; offset += n; run_total += n; percent = run_total / sel_total; percent = MIN (100, percent); sample_set_progress_percent (sample, percent); } g_mutex_unlock (sample->ops_mutex); } done: if (rec_handle != NULL) { device_close (rec_handle); } gtk_widget_set_sensitive (combo, TRUE); rec_prepared = FALSE; } static void do_record_regions_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; sw_edit_buffer * old_eb; paste_over_data * p; old_eb = edit_buffer_from_sample (sample); p = paste_over_data_new (old_eb, old_eb); inst->redo_data = inst->undo_data = p; set_active_op (sample, inst); do_record_regions (sample); if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { p->new_eb = edit_buffer_from_sample (sample); register_operation (sample, inst); } } static sw_operation record_regions_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)do_record_regions_thread, (SweepFunction)NULL, (SweepCallback)undo_by_paste_over, (SweepFunction)paste_over_data_destroy, (SweepCallback)redo_by_paste_over, (SweepFunction)paste_over_data_destroy }; void record_cb (GtkWidget * widget, gpointer data) { sw_head * head = (sw_head *)data; sw_sample * sample = head->sample; if (head->going) { stop_recording (sample); } else { if (sounddata_selection_nr_frames (sample->sounddata) > 0) { head->going = TRUE; gtk_widget_set_sensitive (combo, FALSE); schedule_operation (sample, "Record", &record_regions_op, NULL); start_recmarker (head); } else { head_set_going (head, FALSE); sample_set_tmp_message (sample, _("No selection to record into")); } } } static void rec_dialog_destroy (GtkWidget * widget, gpointer data) { sw_head * head = (sw_head *)data; rec_dialog = NULL; rec_head = NULL; stop_recording (head->sample); } static void _rec_dialog_set_sample (sw_sample * sample, gboolean select_current) { sw_head * head; gtk_entry_set_text (GTK_ENTRY(GTK_COMBO(combo)->entry), g_basename (sample->pathname)); if (sample->rec_head == NULL) { sample->rec_head = head_new (sample, SWEEP_HEAD_RECORD); } head = sample->rec_head; if (rec_head != NULL) { g_signal_handlers_disconnect_matched (GTK_OBJECT(mix_slider), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, rec_head); g_signal_handlers_disconnect_matched (GTK_OBJECT(gain_slider), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, rec_head); } db_slider_set_value (DB_SLIDER(mix_slider), head->mix); g_signal_connect (G_OBJECT(mix_slider), "value-changed", G_CALLBACK(mix_value_changed_cb), head); db_slider_set_value (DB_SLIDER(gain_slider), head->gain); g_signal_connect (G_OBJECT(gain_slider), "value-changed", G_CALLBACK(gain_value_changed_cb), head); rec_head = head; head_controller_set_head (head_controller, rec_head); } void rec_dialog_refresh_sample_list (void) { GList * cbitems = NULL; if (rec_dialog == NULL) return; if ((cbitems = sample_bank_list_names ()) != NULL) gtk_combo_set_popdown_strings (GTK_COMBO(combo), cbitems); g_list_free (cbitems); } static void rec_dialog_entry_changed_cb (GtkWidget * widget, gpointer data) { GtkEntry * entry; const gchar * new_text; sw_sample * sample; entry = GTK_ENTRY(GTK_COMBO(combo)->entry); new_text = gtk_entry_get_text (entry); sample = sample_bank_find_byname (new_text); if (sample == NULL) return; g_signal_handlers_block_matched (GTK_OBJECT(entry), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, NULL); _rec_dialog_set_sample (sample, TRUE); g_signal_handlers_unblock_matched (GTK_OBJECT(entry), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, NULL); } void rec_dialog_create (sw_sample * sample) { GtkWidget * window; GtkWidget * main_vbox; GtkWidget * separator; GtkWidget * frame; GtkWidget * hbox; GtkWidget * label; GtkWidget * slider; GtkWidget * ebox; GtkWidget * hctl; GtkTooltips * tooltips; #ifdef DEVEL_CODE GtkWidget * levelmeter; #endif /* GSList * group;*/ GtkAccelGroup * accel_group; sw_head * head; if (sample->rec_head == NULL) { sample->rec_head = head_new (sample, SWEEP_HEAD_RECORD); } head = sample->rec_head; if (rec_dialog == NULL) { window = gtk_window_new(GTK_WINDOW_TOPLEVEL); sweep_set_window_icon (GTK_WINDOW(window)); attach_window_close_accel(GTK_WINDOW(window)); rec_dialog = window; main_vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(window), main_vbox); gtk_widget_show (main_vbox); gtk_window_set_wmclass(GTK_WINDOW(rec_dialog), "rec_dialog", "Sweep"); gtk_window_set_title(GTK_WINDOW(rec_dialog), _("Sweep: Record")); gtk_window_set_position(GTK_WINDOW(rec_dialog), GTK_WIN_POS_MOUSE); accel_group = gtk_accel_group_new (); gtk_window_add_accel_group (GTK_WINDOW(rec_dialog), accel_group); g_signal_connect (G_OBJECT(rec_dialog), "destroy", G_CALLBACK(rec_dialog_destroy), head); hbox = gtk_hbox_new (FALSE, 8); gtk_box_pack_start (GTK_BOX(main_vbox), hbox, FALSE, TRUE, 8); gtk_widget_show (hbox); label = gtk_label_new (_("File:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 8); gtk_widget_show (label); combo = gtk_combo_new (); gtk_box_pack_start (GTK_BOX(hbox), combo, TRUE, TRUE, 8); gtk_widget_show (combo); gtk_editable_set_editable (GTK_EDITABLE(GTK_COMBO(combo)->entry), FALSE); g_signal_connect (G_OBJECT(GTK_COMBO(combo)->entry), "changed", G_CALLBACK(rec_dialog_entry_changed_cb), NULL); separator = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX(main_vbox), separator, FALSE, FALSE, 0); gtk_widget_show (separator); hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(main_vbox), hbox, TRUE, TRUE, 8); gtk_widget_show (hbox); /* Old signal */ frame = gtk_frame_new (_("Previous sound")); gtk_container_set_border_width (GTK_CONTAINER(frame), 8); gtk_box_pack_start (GTK_BOX(hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); tooltips = gtk_tooltips_new (); slider = db_slider_new (_("Gain"), head->mix, 0.0, 1.0); gtk_container_add (GTK_CONTAINER(frame), slider); gtk_widget_show (slider); mix_slider = slider; gtk_tooltips_set_tip (tooltips, slider, _("This slider allows you to mix the new recording " "in with the previous contents of the buffer. " "Set it to -inf dB to overwrite the previous " "sound."), NULL); /* New signal */ frame = gtk_frame_new (_("Recorded sound")); gtk_container_set_border_width (GTK_CONTAINER(frame), 8); gtk_box_pack_start (GTK_BOX(hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); slider = db_slider_new (_("Gain"), head->gain, 0.0, 1.0); gtk_container_add (GTK_CONTAINER(frame), slider); gtk_widget_show (slider); gain_slider = slider; gtk_tooltips_set_tip (tooltips, slider, _("This slider allows you to reduce the level of " "the recorded sound. Set it to 0 dB to record " "without any reduction. " "Note that setting this to -inf dB will record " "silence."), NULL); /* Level meters */ #ifdef DEVEL_CODE levelmeter = levelmeter_new (7); gtk_box_pack_start (GTK_BOX(hbox), levelmeter, FALSE, TRUE, 3); gtk_widget_show (levelmeter); levelmeter = levelmeter_new (7); gtk_box_pack_start (GTK_BOX(hbox), levelmeter, FALSE, TRUE, 3); gtk_widget_show (levelmeter); #endif hctl = head_controller_create (sample->rec_head, rec_dialog, &head_controller); gtk_box_pack_start (GTK_BOX (main_vbox), hctl, FALSE, TRUE, 0); gtk_widget_show (hctl); ebox = gtk_event_box_new (); gtk_widget_set_style (ebox, style_light_grey); gtk_box_pack_start (GTK_BOX(main_vbox), ebox, FALSE, TRUE, 0); gtk_widget_show (ebox); rec_ind_ebox = ebox; label = gtk_label_new (_("Ready to record")); gtk_container_add (GTK_CONTAINER(ebox), label); gtk_widget_show (label); rec_ind_label = label; } rec_dialog_refresh_sample_list (); _rec_dialog_set_sample (sample, TRUE); if (!GTK_WIDGET_VISIBLE(rec_dialog)) { gtk_widget_show (rec_dialog); } else { gdk_window_raise (rec_dialog->window); } } sweep-0.9.3/src/pcmio.h0000644000175000017500000000232710777660160013451 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __PCMIO_H__ #define __PCMIO_H__ #include #define USE_MONITOR_KEY "UseMonitor" #define DEFAULT_LOG_FRAGS 6 #define LOG_FRAGS_MIN 1 #define LOG_FRAGS_MAX 10 #define DEFAULT_USE_MONITOR FALSE #define LOGFRAGS_TO_FRAGS(l) (1 << ((int)(floor((l)) - 1))) char * pcmio_get_main_dev (void); char * pcmio_get_monitor_dev (void); gboolean pcmio_get_use_monitor (void); int pcmio_get_log_frags (void); #endif /* __PCMIO_H__ */ sweep-0.9.3/src/undo_dialog.h0000644000175000017500000000222110777660160014617 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __UNDO_DIALOG_H__ #define __UNDO_DIALOG_H__ #include void undo_dialog_create (sw_sample * sample); void undo_dialog_set_sample (sw_sample * sample); void undo_dialog_refresh_history (sw_sample * sample); void undo_dialog_refresh_sample_list (void); void undo_dialog_refresh_edit_mode (sw_sample * sample); #endif /* __UNDO_DIALOG_H__ */ sweep-0.9.3/src/record.h0000644000175000017500000000203410777660160013613 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __RECORD_H__ #define __RECORD_H__ void record_cb (GtkWidget * widget, gpointer data); void stop_recording (sw_sample * sample); void rec_dialog_refresh_sample_list (void); void rec_dialog_create (sw_sample * sample); #endif /* __RECORD_H__ */ sweep-0.9.3/src/Makefile.in0000644000175000017500000031714310777670415014247 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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 = sweep$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_sweep_OBJECTS = sweep-main.$(OBJEXT) sweep-about_dialog.$(OBJEXT) \ sweep-callbacks.$(OBJEXT) sweep-channelops.$(OBJEXT) \ sweep-cursors.$(OBJEXT) sweep-db_ruler.$(OBJEXT) \ sweep-db_slider.$(OBJEXT) sweep-driver.$(OBJEXT) \ sweep-driver_alsa.$(OBJEXT) sweep-driver_oss.$(OBJEXT) \ sweep-driver_solaris.$(OBJEXT) sweep-edit.$(OBJEXT) \ sweep-file_dialogs.$(OBJEXT) sweep-file_sndfile1.$(OBJEXT) \ sweep-file_mad.$(OBJEXT) sweep-file_speex.$(OBJEXT) \ sweep-file_vorbis.$(OBJEXT) sweep-format.$(OBJEXT) \ sweep-head.$(OBJEXT) sweep-interface.$(OBJEXT) \ sweep-levelmeter.$(OBJEXT) sweep-notes.$(OBJEXT) \ sweep-param.$(OBJEXT) sweep-paste_dialogs.$(OBJEXT) \ sweep-play.$(OBJEXT) sweep-plugin.$(OBJEXT) \ sweep-preferences.$(OBJEXT) sweep-print.$(OBJEXT) \ sweep-question_dialogs.$(OBJEXT) sweep-record.$(OBJEXT) \ sweep-sample-display.$(OBJEXT) sweep-samplerate.$(OBJEXT) \ sweep-sw_chooser.$(OBJEXT) sweep-sweep_filter.$(OBJEXT) \ sweep-sweep_sample.$(OBJEXT) sweep-sweep_sounddata.$(OBJEXT) \ sweep-sweep_selection.$(OBJEXT) \ sweep-sweep_typeconvert.$(OBJEXT) sweep-sweep_undo.$(OBJEXT) \ sweep-time_ruler.$(OBJEXT) sweep-timeouts.$(OBJEXT) \ sweep-undo_dialog.$(OBJEXT) sweep-view.$(OBJEXT) sweep_OBJECTS = $(am_sweep_OBJECTS) am__DEPENDENCIES_1 = $(top_builddir)/src/tdb/libtdb.a am__DEPENDENCIES_2 = sweep_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) \ $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_2) \ $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_2) \ $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_2) \ $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_2) \ $(am__DEPENDENCIES_2) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(sweep_SOURCES) DIST_SOURCES = $(sweep_SOURCES) RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ SUBDIRS = tdb INCLUDES = \ -I$(top_srcdir)/intl \ -I$(top_srcdir)/include \ -I$(top_srcdir)/src/tdb \ @SNDFILE_CFLAGS@ \ @OGG_CFLAGS@ @VORBIS_CFLAGS@ \ @SAMPLERATE_CFLAGS@ \ @GTK_CFLAGS@ \ @GLIB_CFLAGS@ \ @GTHREADS_CFLAGS@ \ @ALSA_CFLAGS@ TDB_LIBS = $(top_builddir)/src/tdb/libtdb.a sweep_SOURCES = \ sweep_app.h sweep_compat.h\ main.c \ about_dialog.c about_dialog.h \ callbacks.c callbacks.h \ channelops.c channelops.h \ cursors.c cursors.h \ db_ruler.c db_ruler.h \ db_slider.c db_slider.h \ driver.c driver.h \ driver_alsa.c \ driver_oss.c \ driver_solaris.c \ edit.c edit.h \ file_dialogs.c file_dialogs.h \ file_sndfile.h \ file_sndfile1.c \ file_mad.c \ file_speex.c \ file_vorbis.c \ format.c format.h \ head.c head.h \ interface.c interface.h \ levelmeter.c levelmeter.h \ notes.c notes.h \ param.c param.h \ paste_dialogs.c paste_dialogs.h \ pcmio.h \ pixmaps.h \ play.c play.h \ plugin.c plugin.h \ preferences.c preferences.h \ print.c print.h \ question_dialogs.c question_dialogs.h \ record.c record.h \ sample-display.c sample-display.h \ samplerate.c \ sw_chooser.c sw_chooser.h \ sweep_filter.c \ sweep_sample.c sample.h \ sweep_sounddata.c \ sweep_selection.c \ sweep_typeconvert.c \ sweep_undo.c \ time_ruler.c time_ruler.h \ timeouts.c \ undo_dialog.c undo_dialog.h \ view.c view.h \ view_pixmaps.h sweep_LDADD = $(TDB_LIBS) \ @GTK_LIBS@ $(INTLLIBS) $(PTHREAD_LIBS) \ $(SNDFILE_LIBS) \ $(OGG_LIBS) $(VORBIS_LIBS) $(VORBISFILE_LIBS) $(VORBISENC_LIBS) \ $(MAD_LIBS) $(SPEEX_LIBS) \ $(SAMPLERATE_LIBS) \ @GLIB_LIBS@ @GTHREADS_LIBS@ \ @ALSA_LIBS@ sweep_LDFLAGS = @EXPORT_DYNAMIC_FLAGS@ sweep_CFLAGS = -DPACKAGE_DATA_DIR='@PACKAGE_DATA_DIR@' all: all-recursive .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 \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu 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 install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done sweep$(EXEEXT): $(sweep_OBJECTS) $(sweep_DEPENDENCIES) @rm -f sweep$(EXEEXT) $(LINK) $(sweep_LDFLAGS) $(sweep_OBJECTS) $(sweep_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-about_dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-callbacks.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-channelops.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-cursors.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-db_ruler.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-db_slider.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-driver.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-driver_alsa.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-driver_oss.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-driver_solaris.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-edit.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-file_dialogs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-file_mad.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-file_sndfile1.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-file_speex.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-file_vorbis.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-format.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-head.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-interface.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-levelmeter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-notes.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-param.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-paste_dialogs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-play.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-plugin.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-preferences.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-print.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-question_dialogs.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-record.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-sample-display.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-samplerate.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-sw_chooser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-sweep_filter.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-sweep_sample.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-sweep_selection.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-sweep_sounddata.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-sweep_typeconvert.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-sweep_undo.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-time_ruler.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-timeouts.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-undo_dialog.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sweep-view.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< sweep-main.o: main.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-main.o -MD -MP -MF "$(DEPDIR)/sweep-main.Tpo" -c -o sweep-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-main.Tpo" "$(DEPDIR)/sweep-main.Po"; else rm -f "$(DEPDIR)/sweep-main.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='sweep-main.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c sweep-main.obj: main.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-main.obj -MD -MP -MF "$(DEPDIR)/sweep-main.Tpo" -c -o sweep-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-main.Tpo" "$(DEPDIR)/sweep-main.Po"; else rm -f "$(DEPDIR)/sweep-main.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='sweep-main.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` sweep-about_dialog.o: about_dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-about_dialog.o -MD -MP -MF "$(DEPDIR)/sweep-about_dialog.Tpo" -c -o sweep-about_dialog.o `test -f 'about_dialog.c' || echo '$(srcdir)/'`about_dialog.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-about_dialog.Tpo" "$(DEPDIR)/sweep-about_dialog.Po"; else rm -f "$(DEPDIR)/sweep-about_dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='about_dialog.c' object='sweep-about_dialog.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-about_dialog.o `test -f 'about_dialog.c' || echo '$(srcdir)/'`about_dialog.c sweep-about_dialog.obj: about_dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-about_dialog.obj -MD -MP -MF "$(DEPDIR)/sweep-about_dialog.Tpo" -c -o sweep-about_dialog.obj `if test -f 'about_dialog.c'; then $(CYGPATH_W) 'about_dialog.c'; else $(CYGPATH_W) '$(srcdir)/about_dialog.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-about_dialog.Tpo" "$(DEPDIR)/sweep-about_dialog.Po"; else rm -f "$(DEPDIR)/sweep-about_dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='about_dialog.c' object='sweep-about_dialog.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-about_dialog.obj `if test -f 'about_dialog.c'; then $(CYGPATH_W) 'about_dialog.c'; else $(CYGPATH_W) '$(srcdir)/about_dialog.c'; fi` sweep-callbacks.o: callbacks.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-callbacks.o -MD -MP -MF "$(DEPDIR)/sweep-callbacks.Tpo" -c -o sweep-callbacks.o `test -f 'callbacks.c' || echo '$(srcdir)/'`callbacks.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-callbacks.Tpo" "$(DEPDIR)/sweep-callbacks.Po"; else rm -f "$(DEPDIR)/sweep-callbacks.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='callbacks.c' object='sweep-callbacks.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-callbacks.o `test -f 'callbacks.c' || echo '$(srcdir)/'`callbacks.c sweep-callbacks.obj: callbacks.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-callbacks.obj -MD -MP -MF "$(DEPDIR)/sweep-callbacks.Tpo" -c -o sweep-callbacks.obj `if test -f 'callbacks.c'; then $(CYGPATH_W) 'callbacks.c'; else $(CYGPATH_W) '$(srcdir)/callbacks.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-callbacks.Tpo" "$(DEPDIR)/sweep-callbacks.Po"; else rm -f "$(DEPDIR)/sweep-callbacks.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='callbacks.c' object='sweep-callbacks.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-callbacks.obj `if test -f 'callbacks.c'; then $(CYGPATH_W) 'callbacks.c'; else $(CYGPATH_W) '$(srcdir)/callbacks.c'; fi` sweep-channelops.o: channelops.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-channelops.o -MD -MP -MF "$(DEPDIR)/sweep-channelops.Tpo" -c -o sweep-channelops.o `test -f 'channelops.c' || echo '$(srcdir)/'`channelops.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-channelops.Tpo" "$(DEPDIR)/sweep-channelops.Po"; else rm -f "$(DEPDIR)/sweep-channelops.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='channelops.c' object='sweep-channelops.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-channelops.o `test -f 'channelops.c' || echo '$(srcdir)/'`channelops.c sweep-channelops.obj: channelops.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-channelops.obj -MD -MP -MF "$(DEPDIR)/sweep-channelops.Tpo" -c -o sweep-channelops.obj `if test -f 'channelops.c'; then $(CYGPATH_W) 'channelops.c'; else $(CYGPATH_W) '$(srcdir)/channelops.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-channelops.Tpo" "$(DEPDIR)/sweep-channelops.Po"; else rm -f "$(DEPDIR)/sweep-channelops.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='channelops.c' object='sweep-channelops.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-channelops.obj `if test -f 'channelops.c'; then $(CYGPATH_W) 'channelops.c'; else $(CYGPATH_W) '$(srcdir)/channelops.c'; fi` sweep-cursors.o: cursors.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-cursors.o -MD -MP -MF "$(DEPDIR)/sweep-cursors.Tpo" -c -o sweep-cursors.o `test -f 'cursors.c' || echo '$(srcdir)/'`cursors.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-cursors.Tpo" "$(DEPDIR)/sweep-cursors.Po"; else rm -f "$(DEPDIR)/sweep-cursors.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cursors.c' object='sweep-cursors.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-cursors.o `test -f 'cursors.c' || echo '$(srcdir)/'`cursors.c sweep-cursors.obj: cursors.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-cursors.obj -MD -MP -MF "$(DEPDIR)/sweep-cursors.Tpo" -c -o sweep-cursors.obj `if test -f 'cursors.c'; then $(CYGPATH_W) 'cursors.c'; else $(CYGPATH_W) '$(srcdir)/cursors.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-cursors.Tpo" "$(DEPDIR)/sweep-cursors.Po"; else rm -f "$(DEPDIR)/sweep-cursors.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cursors.c' object='sweep-cursors.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-cursors.obj `if test -f 'cursors.c'; then $(CYGPATH_W) 'cursors.c'; else $(CYGPATH_W) '$(srcdir)/cursors.c'; fi` sweep-db_ruler.o: db_ruler.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-db_ruler.o -MD -MP -MF "$(DEPDIR)/sweep-db_ruler.Tpo" -c -o sweep-db_ruler.o `test -f 'db_ruler.c' || echo '$(srcdir)/'`db_ruler.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-db_ruler.Tpo" "$(DEPDIR)/sweep-db_ruler.Po"; else rm -f "$(DEPDIR)/sweep-db_ruler.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='db_ruler.c' object='sweep-db_ruler.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-db_ruler.o `test -f 'db_ruler.c' || echo '$(srcdir)/'`db_ruler.c sweep-db_ruler.obj: db_ruler.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-db_ruler.obj -MD -MP -MF "$(DEPDIR)/sweep-db_ruler.Tpo" -c -o sweep-db_ruler.obj `if test -f 'db_ruler.c'; then $(CYGPATH_W) 'db_ruler.c'; else $(CYGPATH_W) '$(srcdir)/db_ruler.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-db_ruler.Tpo" "$(DEPDIR)/sweep-db_ruler.Po"; else rm -f "$(DEPDIR)/sweep-db_ruler.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='db_ruler.c' object='sweep-db_ruler.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-db_ruler.obj `if test -f 'db_ruler.c'; then $(CYGPATH_W) 'db_ruler.c'; else $(CYGPATH_W) '$(srcdir)/db_ruler.c'; fi` sweep-db_slider.o: db_slider.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-db_slider.o -MD -MP -MF "$(DEPDIR)/sweep-db_slider.Tpo" -c -o sweep-db_slider.o `test -f 'db_slider.c' || echo '$(srcdir)/'`db_slider.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-db_slider.Tpo" "$(DEPDIR)/sweep-db_slider.Po"; else rm -f "$(DEPDIR)/sweep-db_slider.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='db_slider.c' object='sweep-db_slider.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-db_slider.o `test -f 'db_slider.c' || echo '$(srcdir)/'`db_slider.c sweep-db_slider.obj: db_slider.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-db_slider.obj -MD -MP -MF "$(DEPDIR)/sweep-db_slider.Tpo" -c -o sweep-db_slider.obj `if test -f 'db_slider.c'; then $(CYGPATH_W) 'db_slider.c'; else $(CYGPATH_W) '$(srcdir)/db_slider.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-db_slider.Tpo" "$(DEPDIR)/sweep-db_slider.Po"; else rm -f "$(DEPDIR)/sweep-db_slider.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='db_slider.c' object='sweep-db_slider.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-db_slider.obj `if test -f 'db_slider.c'; then $(CYGPATH_W) 'db_slider.c'; else $(CYGPATH_W) '$(srcdir)/db_slider.c'; fi` sweep-driver.o: driver.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-driver.o -MD -MP -MF "$(DEPDIR)/sweep-driver.Tpo" -c -o sweep-driver.o `test -f 'driver.c' || echo '$(srcdir)/'`driver.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-driver.Tpo" "$(DEPDIR)/sweep-driver.Po"; else rm -f "$(DEPDIR)/sweep-driver.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='driver.c' object='sweep-driver.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-driver.o `test -f 'driver.c' || echo '$(srcdir)/'`driver.c sweep-driver.obj: driver.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-driver.obj -MD -MP -MF "$(DEPDIR)/sweep-driver.Tpo" -c -o sweep-driver.obj `if test -f 'driver.c'; then $(CYGPATH_W) 'driver.c'; else $(CYGPATH_W) '$(srcdir)/driver.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-driver.Tpo" "$(DEPDIR)/sweep-driver.Po"; else rm -f "$(DEPDIR)/sweep-driver.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='driver.c' object='sweep-driver.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-driver.obj `if test -f 'driver.c'; then $(CYGPATH_W) 'driver.c'; else $(CYGPATH_W) '$(srcdir)/driver.c'; fi` sweep-driver_alsa.o: driver_alsa.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-driver_alsa.o -MD -MP -MF "$(DEPDIR)/sweep-driver_alsa.Tpo" -c -o sweep-driver_alsa.o `test -f 'driver_alsa.c' || echo '$(srcdir)/'`driver_alsa.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-driver_alsa.Tpo" "$(DEPDIR)/sweep-driver_alsa.Po"; else rm -f "$(DEPDIR)/sweep-driver_alsa.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='driver_alsa.c' object='sweep-driver_alsa.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-driver_alsa.o `test -f 'driver_alsa.c' || echo '$(srcdir)/'`driver_alsa.c sweep-driver_alsa.obj: driver_alsa.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-driver_alsa.obj -MD -MP -MF "$(DEPDIR)/sweep-driver_alsa.Tpo" -c -o sweep-driver_alsa.obj `if test -f 'driver_alsa.c'; then $(CYGPATH_W) 'driver_alsa.c'; else $(CYGPATH_W) '$(srcdir)/driver_alsa.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-driver_alsa.Tpo" "$(DEPDIR)/sweep-driver_alsa.Po"; else rm -f "$(DEPDIR)/sweep-driver_alsa.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='driver_alsa.c' object='sweep-driver_alsa.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-driver_alsa.obj `if test -f 'driver_alsa.c'; then $(CYGPATH_W) 'driver_alsa.c'; else $(CYGPATH_W) '$(srcdir)/driver_alsa.c'; fi` sweep-driver_oss.o: driver_oss.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-driver_oss.o -MD -MP -MF "$(DEPDIR)/sweep-driver_oss.Tpo" -c -o sweep-driver_oss.o `test -f 'driver_oss.c' || echo '$(srcdir)/'`driver_oss.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-driver_oss.Tpo" "$(DEPDIR)/sweep-driver_oss.Po"; else rm -f "$(DEPDIR)/sweep-driver_oss.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='driver_oss.c' object='sweep-driver_oss.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-driver_oss.o `test -f 'driver_oss.c' || echo '$(srcdir)/'`driver_oss.c sweep-driver_oss.obj: driver_oss.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-driver_oss.obj -MD -MP -MF "$(DEPDIR)/sweep-driver_oss.Tpo" -c -o sweep-driver_oss.obj `if test -f 'driver_oss.c'; then $(CYGPATH_W) 'driver_oss.c'; else $(CYGPATH_W) '$(srcdir)/driver_oss.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-driver_oss.Tpo" "$(DEPDIR)/sweep-driver_oss.Po"; else rm -f "$(DEPDIR)/sweep-driver_oss.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='driver_oss.c' object='sweep-driver_oss.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-driver_oss.obj `if test -f 'driver_oss.c'; then $(CYGPATH_W) 'driver_oss.c'; else $(CYGPATH_W) '$(srcdir)/driver_oss.c'; fi` sweep-driver_solaris.o: driver_solaris.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-driver_solaris.o -MD -MP -MF "$(DEPDIR)/sweep-driver_solaris.Tpo" -c -o sweep-driver_solaris.o `test -f 'driver_solaris.c' || echo '$(srcdir)/'`driver_solaris.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-driver_solaris.Tpo" "$(DEPDIR)/sweep-driver_solaris.Po"; else rm -f "$(DEPDIR)/sweep-driver_solaris.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='driver_solaris.c' object='sweep-driver_solaris.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-driver_solaris.o `test -f 'driver_solaris.c' || echo '$(srcdir)/'`driver_solaris.c sweep-driver_solaris.obj: driver_solaris.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-driver_solaris.obj -MD -MP -MF "$(DEPDIR)/sweep-driver_solaris.Tpo" -c -o sweep-driver_solaris.obj `if test -f 'driver_solaris.c'; then $(CYGPATH_W) 'driver_solaris.c'; else $(CYGPATH_W) '$(srcdir)/driver_solaris.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-driver_solaris.Tpo" "$(DEPDIR)/sweep-driver_solaris.Po"; else rm -f "$(DEPDIR)/sweep-driver_solaris.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='driver_solaris.c' object='sweep-driver_solaris.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-driver_solaris.obj `if test -f 'driver_solaris.c'; then $(CYGPATH_W) 'driver_solaris.c'; else $(CYGPATH_W) '$(srcdir)/driver_solaris.c'; fi` sweep-edit.o: edit.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-edit.o -MD -MP -MF "$(DEPDIR)/sweep-edit.Tpo" -c -o sweep-edit.o `test -f 'edit.c' || echo '$(srcdir)/'`edit.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-edit.Tpo" "$(DEPDIR)/sweep-edit.Po"; else rm -f "$(DEPDIR)/sweep-edit.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='edit.c' object='sweep-edit.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-edit.o `test -f 'edit.c' || echo '$(srcdir)/'`edit.c sweep-edit.obj: edit.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-edit.obj -MD -MP -MF "$(DEPDIR)/sweep-edit.Tpo" -c -o sweep-edit.obj `if test -f 'edit.c'; then $(CYGPATH_W) 'edit.c'; else $(CYGPATH_W) '$(srcdir)/edit.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-edit.Tpo" "$(DEPDIR)/sweep-edit.Po"; else rm -f "$(DEPDIR)/sweep-edit.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='edit.c' object='sweep-edit.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-edit.obj `if test -f 'edit.c'; then $(CYGPATH_W) 'edit.c'; else $(CYGPATH_W) '$(srcdir)/edit.c'; fi` sweep-file_dialogs.o: file_dialogs.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-file_dialogs.o -MD -MP -MF "$(DEPDIR)/sweep-file_dialogs.Tpo" -c -o sweep-file_dialogs.o `test -f 'file_dialogs.c' || echo '$(srcdir)/'`file_dialogs.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-file_dialogs.Tpo" "$(DEPDIR)/sweep-file_dialogs.Po"; else rm -f "$(DEPDIR)/sweep-file_dialogs.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file_dialogs.c' object='sweep-file_dialogs.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-file_dialogs.o `test -f 'file_dialogs.c' || echo '$(srcdir)/'`file_dialogs.c sweep-file_dialogs.obj: file_dialogs.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-file_dialogs.obj -MD -MP -MF "$(DEPDIR)/sweep-file_dialogs.Tpo" -c -o sweep-file_dialogs.obj `if test -f 'file_dialogs.c'; then $(CYGPATH_W) 'file_dialogs.c'; else $(CYGPATH_W) '$(srcdir)/file_dialogs.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-file_dialogs.Tpo" "$(DEPDIR)/sweep-file_dialogs.Po"; else rm -f "$(DEPDIR)/sweep-file_dialogs.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file_dialogs.c' object='sweep-file_dialogs.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-file_dialogs.obj `if test -f 'file_dialogs.c'; then $(CYGPATH_W) 'file_dialogs.c'; else $(CYGPATH_W) '$(srcdir)/file_dialogs.c'; fi` sweep-file_sndfile1.o: file_sndfile1.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-file_sndfile1.o -MD -MP -MF "$(DEPDIR)/sweep-file_sndfile1.Tpo" -c -o sweep-file_sndfile1.o `test -f 'file_sndfile1.c' || echo '$(srcdir)/'`file_sndfile1.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-file_sndfile1.Tpo" "$(DEPDIR)/sweep-file_sndfile1.Po"; else rm -f "$(DEPDIR)/sweep-file_sndfile1.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file_sndfile1.c' object='sweep-file_sndfile1.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-file_sndfile1.o `test -f 'file_sndfile1.c' || echo '$(srcdir)/'`file_sndfile1.c sweep-file_sndfile1.obj: file_sndfile1.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-file_sndfile1.obj -MD -MP -MF "$(DEPDIR)/sweep-file_sndfile1.Tpo" -c -o sweep-file_sndfile1.obj `if test -f 'file_sndfile1.c'; then $(CYGPATH_W) 'file_sndfile1.c'; else $(CYGPATH_W) '$(srcdir)/file_sndfile1.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-file_sndfile1.Tpo" "$(DEPDIR)/sweep-file_sndfile1.Po"; else rm -f "$(DEPDIR)/sweep-file_sndfile1.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file_sndfile1.c' object='sweep-file_sndfile1.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-file_sndfile1.obj `if test -f 'file_sndfile1.c'; then $(CYGPATH_W) 'file_sndfile1.c'; else $(CYGPATH_W) '$(srcdir)/file_sndfile1.c'; fi` sweep-file_mad.o: file_mad.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-file_mad.o -MD -MP -MF "$(DEPDIR)/sweep-file_mad.Tpo" -c -o sweep-file_mad.o `test -f 'file_mad.c' || echo '$(srcdir)/'`file_mad.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-file_mad.Tpo" "$(DEPDIR)/sweep-file_mad.Po"; else rm -f "$(DEPDIR)/sweep-file_mad.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file_mad.c' object='sweep-file_mad.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-file_mad.o `test -f 'file_mad.c' || echo '$(srcdir)/'`file_mad.c sweep-file_mad.obj: file_mad.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-file_mad.obj -MD -MP -MF "$(DEPDIR)/sweep-file_mad.Tpo" -c -o sweep-file_mad.obj `if test -f 'file_mad.c'; then $(CYGPATH_W) 'file_mad.c'; else $(CYGPATH_W) '$(srcdir)/file_mad.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-file_mad.Tpo" "$(DEPDIR)/sweep-file_mad.Po"; else rm -f "$(DEPDIR)/sweep-file_mad.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file_mad.c' object='sweep-file_mad.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-file_mad.obj `if test -f 'file_mad.c'; then $(CYGPATH_W) 'file_mad.c'; else $(CYGPATH_W) '$(srcdir)/file_mad.c'; fi` sweep-file_speex.o: file_speex.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-file_speex.o -MD -MP -MF "$(DEPDIR)/sweep-file_speex.Tpo" -c -o sweep-file_speex.o `test -f 'file_speex.c' || echo '$(srcdir)/'`file_speex.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-file_speex.Tpo" "$(DEPDIR)/sweep-file_speex.Po"; else rm -f "$(DEPDIR)/sweep-file_speex.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file_speex.c' object='sweep-file_speex.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-file_speex.o `test -f 'file_speex.c' || echo '$(srcdir)/'`file_speex.c sweep-file_speex.obj: file_speex.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-file_speex.obj -MD -MP -MF "$(DEPDIR)/sweep-file_speex.Tpo" -c -o sweep-file_speex.obj `if test -f 'file_speex.c'; then $(CYGPATH_W) 'file_speex.c'; else $(CYGPATH_W) '$(srcdir)/file_speex.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-file_speex.Tpo" "$(DEPDIR)/sweep-file_speex.Po"; else rm -f "$(DEPDIR)/sweep-file_speex.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file_speex.c' object='sweep-file_speex.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-file_speex.obj `if test -f 'file_speex.c'; then $(CYGPATH_W) 'file_speex.c'; else $(CYGPATH_W) '$(srcdir)/file_speex.c'; fi` sweep-file_vorbis.o: file_vorbis.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-file_vorbis.o -MD -MP -MF "$(DEPDIR)/sweep-file_vorbis.Tpo" -c -o sweep-file_vorbis.o `test -f 'file_vorbis.c' || echo '$(srcdir)/'`file_vorbis.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-file_vorbis.Tpo" "$(DEPDIR)/sweep-file_vorbis.Po"; else rm -f "$(DEPDIR)/sweep-file_vorbis.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file_vorbis.c' object='sweep-file_vorbis.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-file_vorbis.o `test -f 'file_vorbis.c' || echo '$(srcdir)/'`file_vorbis.c sweep-file_vorbis.obj: file_vorbis.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-file_vorbis.obj -MD -MP -MF "$(DEPDIR)/sweep-file_vorbis.Tpo" -c -o sweep-file_vorbis.obj `if test -f 'file_vorbis.c'; then $(CYGPATH_W) 'file_vorbis.c'; else $(CYGPATH_W) '$(srcdir)/file_vorbis.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-file_vorbis.Tpo" "$(DEPDIR)/sweep-file_vorbis.Po"; else rm -f "$(DEPDIR)/sweep-file_vorbis.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file_vorbis.c' object='sweep-file_vorbis.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-file_vorbis.obj `if test -f 'file_vorbis.c'; then $(CYGPATH_W) 'file_vorbis.c'; else $(CYGPATH_W) '$(srcdir)/file_vorbis.c'; fi` sweep-format.o: format.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-format.o -MD -MP -MF "$(DEPDIR)/sweep-format.Tpo" -c -o sweep-format.o `test -f 'format.c' || echo '$(srcdir)/'`format.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-format.Tpo" "$(DEPDIR)/sweep-format.Po"; else rm -f "$(DEPDIR)/sweep-format.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='format.c' object='sweep-format.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-format.o `test -f 'format.c' || echo '$(srcdir)/'`format.c sweep-format.obj: format.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-format.obj -MD -MP -MF "$(DEPDIR)/sweep-format.Tpo" -c -o sweep-format.obj `if test -f 'format.c'; then $(CYGPATH_W) 'format.c'; else $(CYGPATH_W) '$(srcdir)/format.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-format.Tpo" "$(DEPDIR)/sweep-format.Po"; else rm -f "$(DEPDIR)/sweep-format.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='format.c' object='sweep-format.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-format.obj `if test -f 'format.c'; then $(CYGPATH_W) 'format.c'; else $(CYGPATH_W) '$(srcdir)/format.c'; fi` sweep-head.o: head.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-head.o -MD -MP -MF "$(DEPDIR)/sweep-head.Tpo" -c -o sweep-head.o `test -f 'head.c' || echo '$(srcdir)/'`head.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-head.Tpo" "$(DEPDIR)/sweep-head.Po"; else rm -f "$(DEPDIR)/sweep-head.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='head.c' object='sweep-head.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-head.o `test -f 'head.c' || echo '$(srcdir)/'`head.c sweep-head.obj: head.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-head.obj -MD -MP -MF "$(DEPDIR)/sweep-head.Tpo" -c -o sweep-head.obj `if test -f 'head.c'; then $(CYGPATH_W) 'head.c'; else $(CYGPATH_W) '$(srcdir)/head.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-head.Tpo" "$(DEPDIR)/sweep-head.Po"; else rm -f "$(DEPDIR)/sweep-head.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='head.c' object='sweep-head.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-head.obj `if test -f 'head.c'; then $(CYGPATH_W) 'head.c'; else $(CYGPATH_W) '$(srcdir)/head.c'; fi` sweep-interface.o: interface.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-interface.o -MD -MP -MF "$(DEPDIR)/sweep-interface.Tpo" -c -o sweep-interface.o `test -f 'interface.c' || echo '$(srcdir)/'`interface.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-interface.Tpo" "$(DEPDIR)/sweep-interface.Po"; else rm -f "$(DEPDIR)/sweep-interface.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='interface.c' object='sweep-interface.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-interface.o `test -f 'interface.c' || echo '$(srcdir)/'`interface.c sweep-interface.obj: interface.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-interface.obj -MD -MP -MF "$(DEPDIR)/sweep-interface.Tpo" -c -o sweep-interface.obj `if test -f 'interface.c'; then $(CYGPATH_W) 'interface.c'; else $(CYGPATH_W) '$(srcdir)/interface.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-interface.Tpo" "$(DEPDIR)/sweep-interface.Po"; else rm -f "$(DEPDIR)/sweep-interface.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='interface.c' object='sweep-interface.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-interface.obj `if test -f 'interface.c'; then $(CYGPATH_W) 'interface.c'; else $(CYGPATH_W) '$(srcdir)/interface.c'; fi` sweep-levelmeter.o: levelmeter.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-levelmeter.o -MD -MP -MF "$(DEPDIR)/sweep-levelmeter.Tpo" -c -o sweep-levelmeter.o `test -f 'levelmeter.c' || echo '$(srcdir)/'`levelmeter.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-levelmeter.Tpo" "$(DEPDIR)/sweep-levelmeter.Po"; else rm -f "$(DEPDIR)/sweep-levelmeter.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='levelmeter.c' object='sweep-levelmeter.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-levelmeter.o `test -f 'levelmeter.c' || echo '$(srcdir)/'`levelmeter.c sweep-levelmeter.obj: levelmeter.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-levelmeter.obj -MD -MP -MF "$(DEPDIR)/sweep-levelmeter.Tpo" -c -o sweep-levelmeter.obj `if test -f 'levelmeter.c'; then $(CYGPATH_W) 'levelmeter.c'; else $(CYGPATH_W) '$(srcdir)/levelmeter.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-levelmeter.Tpo" "$(DEPDIR)/sweep-levelmeter.Po"; else rm -f "$(DEPDIR)/sweep-levelmeter.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='levelmeter.c' object='sweep-levelmeter.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-levelmeter.obj `if test -f 'levelmeter.c'; then $(CYGPATH_W) 'levelmeter.c'; else $(CYGPATH_W) '$(srcdir)/levelmeter.c'; fi` sweep-notes.o: notes.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-notes.o -MD -MP -MF "$(DEPDIR)/sweep-notes.Tpo" -c -o sweep-notes.o `test -f 'notes.c' || echo '$(srcdir)/'`notes.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-notes.Tpo" "$(DEPDIR)/sweep-notes.Po"; else rm -f "$(DEPDIR)/sweep-notes.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='notes.c' object='sweep-notes.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-notes.o `test -f 'notes.c' || echo '$(srcdir)/'`notes.c sweep-notes.obj: notes.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-notes.obj -MD -MP -MF "$(DEPDIR)/sweep-notes.Tpo" -c -o sweep-notes.obj `if test -f 'notes.c'; then $(CYGPATH_W) 'notes.c'; else $(CYGPATH_W) '$(srcdir)/notes.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-notes.Tpo" "$(DEPDIR)/sweep-notes.Po"; else rm -f "$(DEPDIR)/sweep-notes.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='notes.c' object='sweep-notes.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-notes.obj `if test -f 'notes.c'; then $(CYGPATH_W) 'notes.c'; else $(CYGPATH_W) '$(srcdir)/notes.c'; fi` sweep-param.o: param.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-param.o -MD -MP -MF "$(DEPDIR)/sweep-param.Tpo" -c -o sweep-param.o `test -f 'param.c' || echo '$(srcdir)/'`param.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-param.Tpo" "$(DEPDIR)/sweep-param.Po"; else rm -f "$(DEPDIR)/sweep-param.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='param.c' object='sweep-param.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-param.o `test -f 'param.c' || echo '$(srcdir)/'`param.c sweep-param.obj: param.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-param.obj -MD -MP -MF "$(DEPDIR)/sweep-param.Tpo" -c -o sweep-param.obj `if test -f 'param.c'; then $(CYGPATH_W) 'param.c'; else $(CYGPATH_W) '$(srcdir)/param.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-param.Tpo" "$(DEPDIR)/sweep-param.Po"; else rm -f "$(DEPDIR)/sweep-param.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='param.c' object='sweep-param.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-param.obj `if test -f 'param.c'; then $(CYGPATH_W) 'param.c'; else $(CYGPATH_W) '$(srcdir)/param.c'; fi` sweep-paste_dialogs.o: paste_dialogs.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-paste_dialogs.o -MD -MP -MF "$(DEPDIR)/sweep-paste_dialogs.Tpo" -c -o sweep-paste_dialogs.o `test -f 'paste_dialogs.c' || echo '$(srcdir)/'`paste_dialogs.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-paste_dialogs.Tpo" "$(DEPDIR)/sweep-paste_dialogs.Po"; else rm -f "$(DEPDIR)/sweep-paste_dialogs.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='paste_dialogs.c' object='sweep-paste_dialogs.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-paste_dialogs.o `test -f 'paste_dialogs.c' || echo '$(srcdir)/'`paste_dialogs.c sweep-paste_dialogs.obj: paste_dialogs.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-paste_dialogs.obj -MD -MP -MF "$(DEPDIR)/sweep-paste_dialogs.Tpo" -c -o sweep-paste_dialogs.obj `if test -f 'paste_dialogs.c'; then $(CYGPATH_W) 'paste_dialogs.c'; else $(CYGPATH_W) '$(srcdir)/paste_dialogs.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-paste_dialogs.Tpo" "$(DEPDIR)/sweep-paste_dialogs.Po"; else rm -f "$(DEPDIR)/sweep-paste_dialogs.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='paste_dialogs.c' object='sweep-paste_dialogs.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-paste_dialogs.obj `if test -f 'paste_dialogs.c'; then $(CYGPATH_W) 'paste_dialogs.c'; else $(CYGPATH_W) '$(srcdir)/paste_dialogs.c'; fi` sweep-play.o: play.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-play.o -MD -MP -MF "$(DEPDIR)/sweep-play.Tpo" -c -o sweep-play.o `test -f 'play.c' || echo '$(srcdir)/'`play.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-play.Tpo" "$(DEPDIR)/sweep-play.Po"; else rm -f "$(DEPDIR)/sweep-play.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='play.c' object='sweep-play.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-play.o `test -f 'play.c' || echo '$(srcdir)/'`play.c sweep-play.obj: play.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-play.obj -MD -MP -MF "$(DEPDIR)/sweep-play.Tpo" -c -o sweep-play.obj `if test -f 'play.c'; then $(CYGPATH_W) 'play.c'; else $(CYGPATH_W) '$(srcdir)/play.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-play.Tpo" "$(DEPDIR)/sweep-play.Po"; else rm -f "$(DEPDIR)/sweep-play.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='play.c' object='sweep-play.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-play.obj `if test -f 'play.c'; then $(CYGPATH_W) 'play.c'; else $(CYGPATH_W) '$(srcdir)/play.c'; fi` sweep-plugin.o: plugin.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-plugin.o -MD -MP -MF "$(DEPDIR)/sweep-plugin.Tpo" -c -o sweep-plugin.o `test -f 'plugin.c' || echo '$(srcdir)/'`plugin.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-plugin.Tpo" "$(DEPDIR)/sweep-plugin.Po"; else rm -f "$(DEPDIR)/sweep-plugin.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='plugin.c' object='sweep-plugin.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-plugin.o `test -f 'plugin.c' || echo '$(srcdir)/'`plugin.c sweep-plugin.obj: plugin.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-plugin.obj -MD -MP -MF "$(DEPDIR)/sweep-plugin.Tpo" -c -o sweep-plugin.obj `if test -f 'plugin.c'; then $(CYGPATH_W) 'plugin.c'; else $(CYGPATH_W) '$(srcdir)/plugin.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-plugin.Tpo" "$(DEPDIR)/sweep-plugin.Po"; else rm -f "$(DEPDIR)/sweep-plugin.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='plugin.c' object='sweep-plugin.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-plugin.obj `if test -f 'plugin.c'; then $(CYGPATH_W) 'plugin.c'; else $(CYGPATH_W) '$(srcdir)/plugin.c'; fi` sweep-preferences.o: preferences.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-preferences.o -MD -MP -MF "$(DEPDIR)/sweep-preferences.Tpo" -c -o sweep-preferences.o `test -f 'preferences.c' || echo '$(srcdir)/'`preferences.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-preferences.Tpo" "$(DEPDIR)/sweep-preferences.Po"; else rm -f "$(DEPDIR)/sweep-preferences.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='preferences.c' object='sweep-preferences.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-preferences.o `test -f 'preferences.c' || echo '$(srcdir)/'`preferences.c sweep-preferences.obj: preferences.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-preferences.obj -MD -MP -MF "$(DEPDIR)/sweep-preferences.Tpo" -c -o sweep-preferences.obj `if test -f 'preferences.c'; then $(CYGPATH_W) 'preferences.c'; else $(CYGPATH_W) '$(srcdir)/preferences.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-preferences.Tpo" "$(DEPDIR)/sweep-preferences.Po"; else rm -f "$(DEPDIR)/sweep-preferences.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='preferences.c' object='sweep-preferences.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-preferences.obj `if test -f 'preferences.c'; then $(CYGPATH_W) 'preferences.c'; else $(CYGPATH_W) '$(srcdir)/preferences.c'; fi` sweep-print.o: print.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-print.o -MD -MP -MF "$(DEPDIR)/sweep-print.Tpo" -c -o sweep-print.o `test -f 'print.c' || echo '$(srcdir)/'`print.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-print.Tpo" "$(DEPDIR)/sweep-print.Po"; else rm -f "$(DEPDIR)/sweep-print.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print.c' object='sweep-print.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-print.o `test -f 'print.c' || echo '$(srcdir)/'`print.c sweep-print.obj: print.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-print.obj -MD -MP -MF "$(DEPDIR)/sweep-print.Tpo" -c -o sweep-print.obj `if test -f 'print.c'; then $(CYGPATH_W) 'print.c'; else $(CYGPATH_W) '$(srcdir)/print.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-print.Tpo" "$(DEPDIR)/sweep-print.Po"; else rm -f "$(DEPDIR)/sweep-print.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print.c' object='sweep-print.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-print.obj `if test -f 'print.c'; then $(CYGPATH_W) 'print.c'; else $(CYGPATH_W) '$(srcdir)/print.c'; fi` sweep-question_dialogs.o: question_dialogs.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-question_dialogs.o -MD -MP -MF "$(DEPDIR)/sweep-question_dialogs.Tpo" -c -o sweep-question_dialogs.o `test -f 'question_dialogs.c' || echo '$(srcdir)/'`question_dialogs.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-question_dialogs.Tpo" "$(DEPDIR)/sweep-question_dialogs.Po"; else rm -f "$(DEPDIR)/sweep-question_dialogs.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='question_dialogs.c' object='sweep-question_dialogs.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-question_dialogs.o `test -f 'question_dialogs.c' || echo '$(srcdir)/'`question_dialogs.c sweep-question_dialogs.obj: question_dialogs.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-question_dialogs.obj -MD -MP -MF "$(DEPDIR)/sweep-question_dialogs.Tpo" -c -o sweep-question_dialogs.obj `if test -f 'question_dialogs.c'; then $(CYGPATH_W) 'question_dialogs.c'; else $(CYGPATH_W) '$(srcdir)/question_dialogs.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-question_dialogs.Tpo" "$(DEPDIR)/sweep-question_dialogs.Po"; else rm -f "$(DEPDIR)/sweep-question_dialogs.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='question_dialogs.c' object='sweep-question_dialogs.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-question_dialogs.obj `if test -f 'question_dialogs.c'; then $(CYGPATH_W) 'question_dialogs.c'; else $(CYGPATH_W) '$(srcdir)/question_dialogs.c'; fi` sweep-record.o: record.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-record.o -MD -MP -MF "$(DEPDIR)/sweep-record.Tpo" -c -o sweep-record.o `test -f 'record.c' || echo '$(srcdir)/'`record.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-record.Tpo" "$(DEPDIR)/sweep-record.Po"; else rm -f "$(DEPDIR)/sweep-record.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='record.c' object='sweep-record.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-record.o `test -f 'record.c' || echo '$(srcdir)/'`record.c sweep-record.obj: record.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-record.obj -MD -MP -MF "$(DEPDIR)/sweep-record.Tpo" -c -o sweep-record.obj `if test -f 'record.c'; then $(CYGPATH_W) 'record.c'; else $(CYGPATH_W) '$(srcdir)/record.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-record.Tpo" "$(DEPDIR)/sweep-record.Po"; else rm -f "$(DEPDIR)/sweep-record.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='record.c' object='sweep-record.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-record.obj `if test -f 'record.c'; then $(CYGPATH_W) 'record.c'; else $(CYGPATH_W) '$(srcdir)/record.c'; fi` sweep-sample-display.o: sample-display.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sample-display.o -MD -MP -MF "$(DEPDIR)/sweep-sample-display.Tpo" -c -o sweep-sample-display.o `test -f 'sample-display.c' || echo '$(srcdir)/'`sample-display.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sample-display.Tpo" "$(DEPDIR)/sweep-sample-display.Po"; else rm -f "$(DEPDIR)/sweep-sample-display.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sample-display.c' object='sweep-sample-display.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sample-display.o `test -f 'sample-display.c' || echo '$(srcdir)/'`sample-display.c sweep-sample-display.obj: sample-display.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sample-display.obj -MD -MP -MF "$(DEPDIR)/sweep-sample-display.Tpo" -c -o sweep-sample-display.obj `if test -f 'sample-display.c'; then $(CYGPATH_W) 'sample-display.c'; else $(CYGPATH_W) '$(srcdir)/sample-display.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sample-display.Tpo" "$(DEPDIR)/sweep-sample-display.Po"; else rm -f "$(DEPDIR)/sweep-sample-display.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sample-display.c' object='sweep-sample-display.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sample-display.obj `if test -f 'sample-display.c'; then $(CYGPATH_W) 'sample-display.c'; else $(CYGPATH_W) '$(srcdir)/sample-display.c'; fi` sweep-samplerate.o: samplerate.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-samplerate.o -MD -MP -MF "$(DEPDIR)/sweep-samplerate.Tpo" -c -o sweep-samplerate.o `test -f 'samplerate.c' || echo '$(srcdir)/'`samplerate.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-samplerate.Tpo" "$(DEPDIR)/sweep-samplerate.Po"; else rm -f "$(DEPDIR)/sweep-samplerate.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='samplerate.c' object='sweep-samplerate.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-samplerate.o `test -f 'samplerate.c' || echo '$(srcdir)/'`samplerate.c sweep-samplerate.obj: samplerate.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-samplerate.obj -MD -MP -MF "$(DEPDIR)/sweep-samplerate.Tpo" -c -o sweep-samplerate.obj `if test -f 'samplerate.c'; then $(CYGPATH_W) 'samplerate.c'; else $(CYGPATH_W) '$(srcdir)/samplerate.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-samplerate.Tpo" "$(DEPDIR)/sweep-samplerate.Po"; else rm -f "$(DEPDIR)/sweep-samplerate.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='samplerate.c' object='sweep-samplerate.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-samplerate.obj `if test -f 'samplerate.c'; then $(CYGPATH_W) 'samplerate.c'; else $(CYGPATH_W) '$(srcdir)/samplerate.c'; fi` sweep-sw_chooser.o: sw_chooser.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sw_chooser.o -MD -MP -MF "$(DEPDIR)/sweep-sw_chooser.Tpo" -c -o sweep-sw_chooser.o `test -f 'sw_chooser.c' || echo '$(srcdir)/'`sw_chooser.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sw_chooser.Tpo" "$(DEPDIR)/sweep-sw_chooser.Po"; else rm -f "$(DEPDIR)/sweep-sw_chooser.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sw_chooser.c' object='sweep-sw_chooser.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sw_chooser.o `test -f 'sw_chooser.c' || echo '$(srcdir)/'`sw_chooser.c sweep-sw_chooser.obj: sw_chooser.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sw_chooser.obj -MD -MP -MF "$(DEPDIR)/sweep-sw_chooser.Tpo" -c -o sweep-sw_chooser.obj `if test -f 'sw_chooser.c'; then $(CYGPATH_W) 'sw_chooser.c'; else $(CYGPATH_W) '$(srcdir)/sw_chooser.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sw_chooser.Tpo" "$(DEPDIR)/sweep-sw_chooser.Po"; else rm -f "$(DEPDIR)/sweep-sw_chooser.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sw_chooser.c' object='sweep-sw_chooser.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sw_chooser.obj `if test -f 'sw_chooser.c'; then $(CYGPATH_W) 'sw_chooser.c'; else $(CYGPATH_W) '$(srcdir)/sw_chooser.c'; fi` sweep-sweep_filter.o: sweep_filter.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sweep_filter.o -MD -MP -MF "$(DEPDIR)/sweep-sweep_filter.Tpo" -c -o sweep-sweep_filter.o `test -f 'sweep_filter.c' || echo '$(srcdir)/'`sweep_filter.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sweep_filter.Tpo" "$(DEPDIR)/sweep-sweep_filter.Po"; else rm -f "$(DEPDIR)/sweep-sweep_filter.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sweep_filter.c' object='sweep-sweep_filter.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sweep_filter.o `test -f 'sweep_filter.c' || echo '$(srcdir)/'`sweep_filter.c sweep-sweep_filter.obj: sweep_filter.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sweep_filter.obj -MD -MP -MF "$(DEPDIR)/sweep-sweep_filter.Tpo" -c -o sweep-sweep_filter.obj `if test -f 'sweep_filter.c'; then $(CYGPATH_W) 'sweep_filter.c'; else $(CYGPATH_W) '$(srcdir)/sweep_filter.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sweep_filter.Tpo" "$(DEPDIR)/sweep-sweep_filter.Po"; else rm -f "$(DEPDIR)/sweep-sweep_filter.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sweep_filter.c' object='sweep-sweep_filter.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sweep_filter.obj `if test -f 'sweep_filter.c'; then $(CYGPATH_W) 'sweep_filter.c'; else $(CYGPATH_W) '$(srcdir)/sweep_filter.c'; fi` sweep-sweep_sample.o: sweep_sample.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sweep_sample.o -MD -MP -MF "$(DEPDIR)/sweep-sweep_sample.Tpo" -c -o sweep-sweep_sample.o `test -f 'sweep_sample.c' || echo '$(srcdir)/'`sweep_sample.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sweep_sample.Tpo" "$(DEPDIR)/sweep-sweep_sample.Po"; else rm -f "$(DEPDIR)/sweep-sweep_sample.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sweep_sample.c' object='sweep-sweep_sample.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sweep_sample.o `test -f 'sweep_sample.c' || echo '$(srcdir)/'`sweep_sample.c sweep-sweep_sample.obj: sweep_sample.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sweep_sample.obj -MD -MP -MF "$(DEPDIR)/sweep-sweep_sample.Tpo" -c -o sweep-sweep_sample.obj `if test -f 'sweep_sample.c'; then $(CYGPATH_W) 'sweep_sample.c'; else $(CYGPATH_W) '$(srcdir)/sweep_sample.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sweep_sample.Tpo" "$(DEPDIR)/sweep-sweep_sample.Po"; else rm -f "$(DEPDIR)/sweep-sweep_sample.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sweep_sample.c' object='sweep-sweep_sample.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sweep_sample.obj `if test -f 'sweep_sample.c'; then $(CYGPATH_W) 'sweep_sample.c'; else $(CYGPATH_W) '$(srcdir)/sweep_sample.c'; fi` sweep-sweep_sounddata.o: sweep_sounddata.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sweep_sounddata.o -MD -MP -MF "$(DEPDIR)/sweep-sweep_sounddata.Tpo" -c -o sweep-sweep_sounddata.o `test -f 'sweep_sounddata.c' || echo '$(srcdir)/'`sweep_sounddata.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sweep_sounddata.Tpo" "$(DEPDIR)/sweep-sweep_sounddata.Po"; else rm -f "$(DEPDIR)/sweep-sweep_sounddata.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sweep_sounddata.c' object='sweep-sweep_sounddata.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sweep_sounddata.o `test -f 'sweep_sounddata.c' || echo '$(srcdir)/'`sweep_sounddata.c sweep-sweep_sounddata.obj: sweep_sounddata.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sweep_sounddata.obj -MD -MP -MF "$(DEPDIR)/sweep-sweep_sounddata.Tpo" -c -o sweep-sweep_sounddata.obj `if test -f 'sweep_sounddata.c'; then $(CYGPATH_W) 'sweep_sounddata.c'; else $(CYGPATH_W) '$(srcdir)/sweep_sounddata.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sweep_sounddata.Tpo" "$(DEPDIR)/sweep-sweep_sounddata.Po"; else rm -f "$(DEPDIR)/sweep-sweep_sounddata.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sweep_sounddata.c' object='sweep-sweep_sounddata.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sweep_sounddata.obj `if test -f 'sweep_sounddata.c'; then $(CYGPATH_W) 'sweep_sounddata.c'; else $(CYGPATH_W) '$(srcdir)/sweep_sounddata.c'; fi` sweep-sweep_selection.o: sweep_selection.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sweep_selection.o -MD -MP -MF "$(DEPDIR)/sweep-sweep_selection.Tpo" -c -o sweep-sweep_selection.o `test -f 'sweep_selection.c' || echo '$(srcdir)/'`sweep_selection.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sweep_selection.Tpo" "$(DEPDIR)/sweep-sweep_selection.Po"; else rm -f "$(DEPDIR)/sweep-sweep_selection.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sweep_selection.c' object='sweep-sweep_selection.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sweep_selection.o `test -f 'sweep_selection.c' || echo '$(srcdir)/'`sweep_selection.c sweep-sweep_selection.obj: sweep_selection.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sweep_selection.obj -MD -MP -MF "$(DEPDIR)/sweep-sweep_selection.Tpo" -c -o sweep-sweep_selection.obj `if test -f 'sweep_selection.c'; then $(CYGPATH_W) 'sweep_selection.c'; else $(CYGPATH_W) '$(srcdir)/sweep_selection.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sweep_selection.Tpo" "$(DEPDIR)/sweep-sweep_selection.Po"; else rm -f "$(DEPDIR)/sweep-sweep_selection.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sweep_selection.c' object='sweep-sweep_selection.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sweep_selection.obj `if test -f 'sweep_selection.c'; then $(CYGPATH_W) 'sweep_selection.c'; else $(CYGPATH_W) '$(srcdir)/sweep_selection.c'; fi` sweep-sweep_typeconvert.o: sweep_typeconvert.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sweep_typeconvert.o -MD -MP -MF "$(DEPDIR)/sweep-sweep_typeconvert.Tpo" -c -o sweep-sweep_typeconvert.o `test -f 'sweep_typeconvert.c' || echo '$(srcdir)/'`sweep_typeconvert.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sweep_typeconvert.Tpo" "$(DEPDIR)/sweep-sweep_typeconvert.Po"; else rm -f "$(DEPDIR)/sweep-sweep_typeconvert.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sweep_typeconvert.c' object='sweep-sweep_typeconvert.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sweep_typeconvert.o `test -f 'sweep_typeconvert.c' || echo '$(srcdir)/'`sweep_typeconvert.c sweep-sweep_typeconvert.obj: sweep_typeconvert.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sweep_typeconvert.obj -MD -MP -MF "$(DEPDIR)/sweep-sweep_typeconvert.Tpo" -c -o sweep-sweep_typeconvert.obj `if test -f 'sweep_typeconvert.c'; then $(CYGPATH_W) 'sweep_typeconvert.c'; else $(CYGPATH_W) '$(srcdir)/sweep_typeconvert.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sweep_typeconvert.Tpo" "$(DEPDIR)/sweep-sweep_typeconvert.Po"; else rm -f "$(DEPDIR)/sweep-sweep_typeconvert.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sweep_typeconvert.c' object='sweep-sweep_typeconvert.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sweep_typeconvert.obj `if test -f 'sweep_typeconvert.c'; then $(CYGPATH_W) 'sweep_typeconvert.c'; else $(CYGPATH_W) '$(srcdir)/sweep_typeconvert.c'; fi` sweep-sweep_undo.o: sweep_undo.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sweep_undo.o -MD -MP -MF "$(DEPDIR)/sweep-sweep_undo.Tpo" -c -o sweep-sweep_undo.o `test -f 'sweep_undo.c' || echo '$(srcdir)/'`sweep_undo.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sweep_undo.Tpo" "$(DEPDIR)/sweep-sweep_undo.Po"; else rm -f "$(DEPDIR)/sweep-sweep_undo.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sweep_undo.c' object='sweep-sweep_undo.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sweep_undo.o `test -f 'sweep_undo.c' || echo '$(srcdir)/'`sweep_undo.c sweep-sweep_undo.obj: sweep_undo.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-sweep_undo.obj -MD -MP -MF "$(DEPDIR)/sweep-sweep_undo.Tpo" -c -o sweep-sweep_undo.obj `if test -f 'sweep_undo.c'; then $(CYGPATH_W) 'sweep_undo.c'; else $(CYGPATH_W) '$(srcdir)/sweep_undo.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-sweep_undo.Tpo" "$(DEPDIR)/sweep-sweep_undo.Po"; else rm -f "$(DEPDIR)/sweep-sweep_undo.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sweep_undo.c' object='sweep-sweep_undo.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-sweep_undo.obj `if test -f 'sweep_undo.c'; then $(CYGPATH_W) 'sweep_undo.c'; else $(CYGPATH_W) '$(srcdir)/sweep_undo.c'; fi` sweep-time_ruler.o: time_ruler.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-time_ruler.o -MD -MP -MF "$(DEPDIR)/sweep-time_ruler.Tpo" -c -o sweep-time_ruler.o `test -f 'time_ruler.c' || echo '$(srcdir)/'`time_ruler.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-time_ruler.Tpo" "$(DEPDIR)/sweep-time_ruler.Po"; else rm -f "$(DEPDIR)/sweep-time_ruler.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='time_ruler.c' object='sweep-time_ruler.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-time_ruler.o `test -f 'time_ruler.c' || echo '$(srcdir)/'`time_ruler.c sweep-time_ruler.obj: time_ruler.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-time_ruler.obj -MD -MP -MF "$(DEPDIR)/sweep-time_ruler.Tpo" -c -o sweep-time_ruler.obj `if test -f 'time_ruler.c'; then $(CYGPATH_W) 'time_ruler.c'; else $(CYGPATH_W) '$(srcdir)/time_ruler.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-time_ruler.Tpo" "$(DEPDIR)/sweep-time_ruler.Po"; else rm -f "$(DEPDIR)/sweep-time_ruler.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='time_ruler.c' object='sweep-time_ruler.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-time_ruler.obj `if test -f 'time_ruler.c'; then $(CYGPATH_W) 'time_ruler.c'; else $(CYGPATH_W) '$(srcdir)/time_ruler.c'; fi` sweep-timeouts.o: timeouts.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-timeouts.o -MD -MP -MF "$(DEPDIR)/sweep-timeouts.Tpo" -c -o sweep-timeouts.o `test -f 'timeouts.c' || echo '$(srcdir)/'`timeouts.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-timeouts.Tpo" "$(DEPDIR)/sweep-timeouts.Po"; else rm -f "$(DEPDIR)/sweep-timeouts.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='timeouts.c' object='sweep-timeouts.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-timeouts.o `test -f 'timeouts.c' || echo '$(srcdir)/'`timeouts.c sweep-timeouts.obj: timeouts.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-timeouts.obj -MD -MP -MF "$(DEPDIR)/sweep-timeouts.Tpo" -c -o sweep-timeouts.obj `if test -f 'timeouts.c'; then $(CYGPATH_W) 'timeouts.c'; else $(CYGPATH_W) '$(srcdir)/timeouts.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-timeouts.Tpo" "$(DEPDIR)/sweep-timeouts.Po"; else rm -f "$(DEPDIR)/sweep-timeouts.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='timeouts.c' object='sweep-timeouts.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-timeouts.obj `if test -f 'timeouts.c'; then $(CYGPATH_W) 'timeouts.c'; else $(CYGPATH_W) '$(srcdir)/timeouts.c'; fi` sweep-undo_dialog.o: undo_dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-undo_dialog.o -MD -MP -MF "$(DEPDIR)/sweep-undo_dialog.Tpo" -c -o sweep-undo_dialog.o `test -f 'undo_dialog.c' || echo '$(srcdir)/'`undo_dialog.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-undo_dialog.Tpo" "$(DEPDIR)/sweep-undo_dialog.Po"; else rm -f "$(DEPDIR)/sweep-undo_dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='undo_dialog.c' object='sweep-undo_dialog.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-undo_dialog.o `test -f 'undo_dialog.c' || echo '$(srcdir)/'`undo_dialog.c sweep-undo_dialog.obj: undo_dialog.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-undo_dialog.obj -MD -MP -MF "$(DEPDIR)/sweep-undo_dialog.Tpo" -c -o sweep-undo_dialog.obj `if test -f 'undo_dialog.c'; then $(CYGPATH_W) 'undo_dialog.c'; else $(CYGPATH_W) '$(srcdir)/undo_dialog.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-undo_dialog.Tpo" "$(DEPDIR)/sweep-undo_dialog.Po"; else rm -f "$(DEPDIR)/sweep-undo_dialog.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='undo_dialog.c' object='sweep-undo_dialog.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-undo_dialog.obj `if test -f 'undo_dialog.c'; then $(CYGPATH_W) 'undo_dialog.c'; else $(CYGPATH_W) '$(srcdir)/undo_dialog.c'; fi` sweep-view.o: view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-view.o -MD -MP -MF "$(DEPDIR)/sweep-view.Tpo" -c -o sweep-view.o `test -f 'view.c' || echo '$(srcdir)/'`view.c; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-view.Tpo" "$(DEPDIR)/sweep-view.Po"; else rm -f "$(DEPDIR)/sweep-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='view.c' object='sweep-view.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-view.o `test -f 'view.c' || echo '$(srcdir)/'`view.c sweep-view.obj: view.c @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -MT sweep-view.obj -MD -MP -MF "$(DEPDIR)/sweep-view.Tpo" -c -o sweep-view.obj `if test -f 'view.c'; then $(CYGPATH_W) 'view.c'; else $(CYGPATH_W) '$(srcdir)/view.c'; fi`; \ @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/sweep-view.Tpo" "$(DEPDIR)/sweep-view.Po"; else rm -f "$(DEPDIR)/sweep-view.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='view.c' object='sweep-view.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sweep_CFLAGS) $(CFLAGS) -c -o sweep-view.obj `if test -f 'view.c'; then $(CYGPATH_W) 'view.c'; else $(CYGPATH_W) '$(srcdir)/view.c'; fi` mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (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" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ 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 || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile $(PROGRAMS) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-exec-am: install-binPROGRAMS install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ clean clean-binPROGRAMS clean-generic clean-libtool \ clean-recursive ctags ctags-recursive distclean \ distclean-compile distclean-generic distclean-libtool \ distclean-recursive distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic \ maintainer-clean-recursive mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-binPROGRAMS uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sweep-0.9.3/src/sweep_app.h0000644000175000017500000001451010777660315014324 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __SWEEP_APP_H__ #define __SWEEP_APP_H__ #include #include /* #include "i18n.h" */ typedef struct _sw_perform_data sw_perform_data; struct _sw_perform_data { SweepFunction func; sw_param_set pset; gpointer custom_data; }; /* Tools */ typedef enum { TOOL_NONE = 0, TOOL_SELECT, TOOL_MOVE, TOOL_ZOOM, TOOL_CROP, TOOL_SCRUB, TOOL_PENCIL, TOOL_NOISE, TOOL_HAND } sw_tool_t; /* View colors */ enum { VIEW_COLOR_BLACK, VIEW_COLOR_RED, VIEW_COLOR_ORANGE, VIEW_COLOR_YELLOW, VIEW_COLOR_BLUE, VIEW_COLOR_WHITE, VIEW_COLOR_RADAR, VIEW_COLOR_DEFAULT_MAX=VIEW_COLOR_RADAR, VIEW_COLOR_BLUESCREEN, VIEW_COLOR_MAX }; typedef enum { SW_TOOLBAR_BUTTON, SW_TOOLBAR_TOGGLE_BUTTON, SW_TOOLBAR_RADIO_BUTTON, } sw_toolbar_button_type; typedef struct { sw_framecount_t start, end; } sw_view_bounds; typedef struct _sw_view sw_view; struct _sw_view { sw_sample * sample; sw_framecount_t start, end; /* bounds of visible frames */ sw_audio_t vlow, vhigh; /* bounds of vertical zoom */ /* gfloat gain;*/ /*gfloat rate;*/ sw_tool_t current_tool; gint repeater_tag; gboolean following; /* whether or not to follow playmarker */ gint hand_offset; GtkWidget * window; GtkWidget * time_ruler; GtkWidget * scrollbar; GtkWidget * display; GtkWidget * pos; GtkWidget * status; GtkWidget * menubar; GtkWidget * menu; GtkWidget * zoom_combo; GtkWidget * progress; GtkWidget * follow_toggle; GtkWidget * play_pos; GtkWidget * loop_toggle; GtkWidget * playrev_toggle; GtkWidget * play_toggle; GtkWidget * play_sel_toggle; GtkWidget * mute_toggle; GtkWidget * monitor_toggle; GtkWidget * menu_sel; GtkWidget * menu_point; GtkWidget * channelops_menuitem; GtkWidget * channelops_submenu; GList * channelops_widgets; GtkWidget * follow_checkmenu; GtkWidget * color_menuitems[VIEW_COLOR_MAX]; GtkWidget * loop_checkmenu; GtkWidget * playrev_checkmenu; GtkWidget * mute_checkmenu; GtkWidget * monitor_checkmenu; GtkObject * adj; GtkObject * gain_adj; GtkObject * rate_adj; GtkWidget * db_rulers_vbox; GList * db_rulers; GList * tool_buttons; GList * noready_widgets; /* Widgets to set insensitive on READY only */ GList * nomodify_widgets; /* Widgets to set insensitive on MODIFY or ALLOC */ GList * noalloc_widgets; /* Widgets to set insensitive on ALLOC only */ }; typedef struct _sw_head sw_head; typedef struct _sw_head_controller sw_head_controller; typedef enum { SWEEP_HEAD_PLAY, SWEEP_HEAD_RECORD } sw_head_t; struct _sw_head_controller { sw_head * head; GtkWidget * follow_toggle; GtkWidget * pos_label; GtkWidget * loop_toggle; GtkWidget * reverse_toggle; GtkWidget * go_toggle; GtkWidget * go_sel_toggle; GtkWidget * mute_toggle; GtkObject * gain_adj; }; struct _sw_head { sw_sample * sample; GMutex * head_mutex; sw_head_t type; /* SWEEP_HEAD_PLAY or SWEEP_HEAD_RECORD */ /* sw_transport_type transport_mode;*/ sw_framecount_t stop_offset; gdouble offset; sw_framecount_t realoffset; /* offset according to device */ gboolean going; /* stopped or going? */ gboolean restricted; /* restricted to sample->sounddata->sels ? */ gboolean looping; gboolean previewing; gboolean reverse; gboolean mute; gboolean monitor; gfloat delta; /* current motion delta */ gfloat gain; gfloat rate; gfloat mix; /* record mixing level */ sw_head * scrub_master; /* another head this is being scrubbed by */ gboolean scrubbing; /* if this head is a scrub master, is it scrubbing ? */ gint repeater_tag; GList * controllers; }; typedef enum { SWEEP_FILE_METHOD_BY_EXTENSION=0, /* Guess */ SWEEP_FILE_METHOD_LIBSNDFILE, SWEEP_FILE_METHOD_OGGVORBIS, SWEEP_FILE_METHOD_SPEEX, SWEEP_FILE_METHOD_MP3=1000666 /* Random high number -- unsupported */ } sw_file_method_t; /* * sw_sample */ struct _sw_sample { sw_sounddata * sounddata; GList * views; sw_view_bounds stored_views[10]; gchar * pathname; time_t last_mtime; gboolean edit_ignore_mtime; sw_file_method_t file_method; /* file handler; eg. libsndfile, libvorbis */ int file_format; /* format within handler, eg. WAV */ gpointer file_info; /* parameters of original file or last save */ sw_sel * tmp_sel; /* Temporary selection, used while selecting */ /* Operations; lock on scheduling */ pthread_t ops_thread; GMutex * ops_mutex; GList * registered_ops; GList * current_undo; GList * current_redo; sw_op_instance * active_op; gint op_progress_tag; /* Per-edit locking */ GMutex * edit_mutex; /* Mutex for access to edit state */ sw_edit_mode edit_mode; /* READY/MODIFYING/ALLOC */ sw_edit_state edit_state; /* IDLE/BUSY/DONE/CANCEL */ gboolean modified; /* modified since last save ? */ GCond * pending_cond; /* held with edit_mutex */ GList * pending_ops; /* Playback, recording, scrubbing */ sw_framecount_t user_offset; /* XXX: Actual offset of driver (frames) */ gboolean by_user; /* Offset was last changed by user */ GMutex * play_mutex; /* Mutex for access to play state */ sw_head * play_head; sw_head * rec_head; gfloat rate; /* XXX: */ gint color; GtkWidget * info_clist; gint progress_percent; /* completion percentage of current op */ gint playmarker_tag; /* gtk_timeout tag for playmarkers */ gboolean tmp_message_active; gchar * last_tmp_message; gint tmp_message_tag; }; void sweep_quit (void); guint sweep_timeout_add (guint32 interval, GtkFunction function, gpointer data); void sweep_timeout_remove (guint sweep_timeout_handler_id); #endif /* __SWEEP_APP_H__ */ sweep-0.9.3/src/db_slider.h0000644000175000017500000000336510777660160014274 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * Copyright (C) 2002 Commonwealth Scientific and Industrial Research * Organisation (CSIRO), Australia * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __DB_SLIDER_H__ #define __DB_SLIDER_H__ #define DB_SLIDER(obj) GTK_CHECK_CAST (obj, db_slider_get_type (), DbSlider) #define DB_SLIDER_CLASS(klass) \ GTK_CHECK_CLASS_CAST (klass, db_slider_get_type (), DbSliderClass) #define IS_DB_SLIDER(obj) GTK_CHECK_TYPE (obj, db_slider_get_type ()) typedef struct _DbSlider DbSlider; typedef struct _DbSliderClass DbSliderClass; struct _DbSlider { GtkEventBox ebox; GtkObject * adj; GtkWidget * db_label; gfloat lower; gfloat upper; }; struct _DbSliderClass { GtkVBoxClass parent_class; void (*value_changed) (DbSlider * slider, gfloat value); }; GType db_slider_get_type (void); GtkWidget * db_slider_new (gchar * title, gfloat value, gfloat lower, gfloat upper); gfloat db_slider_get_value (DbSlider * slider); void db_slider_set_value (DbSlider * slider, gfloat value); #endif /* __DB_SLIDER_H__ */ sweep-0.9.3/src/db_slider.c0000644000175000017500000001407210777660160014264 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * Copyright (C) 2002 Commonwealth Scientific and Industrial Research * Organisation (CSIRO), Australia * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include #include "interface.h" #include "db_slider.h" enum { VALUE_CHANGED_SIGNAL, LAST_SIGNAL }; static gint db_slider_signals[LAST_SIGNAL] = { 0 }; static void db_slider_class_init(DbSliderClass * klass) { GtkObjectClass *object_class; object_class = (GtkObjectClass *) klass; db_slider_signals[VALUE_CHANGED_SIGNAL] = g_signal_new ("value-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (DbSliderClass, value_changed), NULL, NULL, g_cclosure_marshal_VOID__FLOAT, G_TYPE_NONE, 1, G_TYPE_FLOAT); klass->value_changed = NULL; } static void db_slider_init (GtkWidget * slider) { } GType db_slider_get_type() { static GType db_slider_type = 0; if (!db_slider_type) { static const GTypeInfo db_slider_info = { sizeof(DbSliderClass), NULL, /* base_init */ NULL, /* base_finalize */ (GClassInitFunc) db_slider_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (DbSlider), 0, (GInstanceInitFunc) db_slider_init, }; db_slider_type = g_type_register_static(GTK_TYPE_VBOX, "DbSlider" ,&db_slider_info, 0); } return db_slider_type; } #if 0 static int slider_get_value (GtkWidget * slider) { return GPOINTER_TO_INT (g_object_get_data (G_OBJECT(slider), "value")); } static int slider_set_value (GtkWidget * slider, int value) { GtkWidget * combo_entry; int i; combo_entry = GTK_WIDGET (g_object_get_data (G_OBJECT(slider), "combo_entry")); for (i = 0; choices[i].name != NULL; i++) { if (value == choices[i].value) { gtk_entry_set_text (GTK_ENTRY(combo_entry), choices[i].name); return value; } } /* not in the entry -- assume first choice is "Custom" and set that */ gtk_entry_set_text (GTK_ENTRY(combo_entry), choices[0].name); return slider_set_value_direct (slider, value);; } #endif #define VALUE_TO_DB(v) (20 * log10(v)) #define DB_TO_VALUE(d) (pow (10, ((d) / 20))) #define SQR(x) ((x)*(x)) #define ADJ_TO_VALUE(a) SQR((100.0 - (a)) / 100.0) #define VALUE_TO_ADJ(v) ((1.0 - sqrt(v)) * 100.0) gfloat db_slider_get_value (DbSlider * slider) { return ADJ_TO_VALUE(GTK_ADJUSTMENT(slider->adj)->value); } void db_slider_set_value (DbSlider * slider, gfloat value) { gtk_adjustment_set_value (GTK_ADJUSTMENT(slider->adj), VALUE_TO_ADJ(value)); } static void db_slider_value_changed_cb (GtkWidget * widget, gpointer data) { GtkWidget * slider = (GtkWidget *)data; gfloat value, db_value; gchar * db_text; value = db_slider_get_value (DB_SLIDER(slider)); db_value = VALUE_TO_DB (value); if (db_value > -10.0) { db_text = g_strdup_printf ("%1.1f dB", db_value); } else { db_text = g_strdup_printf ("%2.0f dB", db_value); } gtk_label_set_text (GTK_LABEL(DB_SLIDER(slider)->db_label), db_text); g_free (db_text); g_signal_emit_by_name (GTK_OBJECT(slider), "value-changed", value); } static void db_slider_build (GtkWidget * slider, gchar * title, gfloat value) { GtkWidget * vbox; GtkWidget * label; GtkWidget * vscale; GtkObject * adj; gchar * range_text; vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(slider), vbox); gtk_widget_show (vbox); label = gtk_label_new (NULL); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); DB_SLIDER(slider)->db_label = label; adj = gtk_adjustment_new (VALUE_TO_ADJ(value), /* value */ VALUE_TO_ADJ(DB_SLIDER(slider)->upper), /* lower */ VALUE_TO_ADJ(DB_SLIDER(slider)->lower), /* upper */ 0.3, /* step incr */ 3.0, /* page incr */ 0.0 /* page size */ ); vscale = gtk_vscale_new (GTK_ADJUSTMENT(adj)); gtk_scale_set_draw_value (GTK_SCALE(vscale), FALSE); gtk_range_set_update_policy (GTK_RANGE(vscale), GTK_UPDATE_CONTINUOUS); gtk_widget_set_size_request (vscale, -1, gdk_screen_height() / 8); gtk_box_pack_start (GTK_BOX(vbox), vscale, TRUE, TRUE, 0); gtk_widget_show (vscale); g_signal_connect (G_OBJECT(adj), "value_changed", G_CALLBACK(db_slider_value_changed_cb), slider); DB_SLIDER(slider)->adj = adj; db_slider_value_changed_cb (NULL, slider); range_text = g_strdup_printf ("%s\n[%2.0f to %2.0f dB]", title, VALUE_TO_DB(DB_SLIDER(slider)->lower), VALUE_TO_DB(DB_SLIDER(slider)->upper)); label = gtk_label_new (range_text); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); } GtkWidget * db_slider_new (gchar * title, gfloat value, gfloat lower, gfloat upper) { DbSlider * slider = DB_SLIDER (g_object_new (db_slider_get_type (), NULL)); slider->lower = lower; slider->upper = upper; db_slider_build (GTK_WIDGET (slider), title, value); return GTK_WIDGET (slider); } sweep-0.9.3/src/time_ruler.h0000644000175000017500000000410210777660160014502 0ustar useruser/* * Sweep, a sound wave editor. * * time_ruler, modified from hruler in GTK+ 1.2.x * by Conrad Parker 2000 for Sweep. * * 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. */ /* * GTK - The GIMP Toolkit * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald */ /* * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS * file for a list of people on the GTK+ Team. See the ChangeLog * files for a list of changes. These files are distributed with * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ #ifndef __TIME_RULER_H__ #define __TIME_RULER_H__ #include #include #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define TIME_RULER(obj) GTK_CHECK_CAST (obj, time_ruler_get_type (), TimeRuler) #define TIME_RULER_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, time_ruler_get_type (), TimeRulerClass) #define GTK_IS_TIME_RULER(obj) GTK_CHECK_TYPE (obj, time_ruler_get_type ()) typedef struct _TimeRuler TimeRuler; typedef struct _TimeRulerClass TimeRulerClass; struct _TimeRuler { GtkRuler ruler; gint samplerate; }; struct _TimeRulerClass { GtkRulerClass parent_class; }; GType time_ruler_get_type (void); GtkWidget* time_ruler_new (void); void time_ruler_set_format (TimeRuler * time_ruler, sw_format * f); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __TIME_RULER_H__ */ sweep-0.9.3/src/levelmeter.h0000644000175000017500000000316110777660160014503 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __LEVELMETER_H__ #define __LEVELMETER_H__ #include #include #ifdef __cplusplus extern "C" { #endif #define LEVELMETER(obj) GTK_CHECK_CAST(obj, levelmeter_get_type (), LevelMeter) #define LEVELMETER_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, levelmeter_get_type (), LevelMeterClass) #define IS_LEVELMETER(obj) GTK_CHECK_TYPE(obj, levelmeter_get_type()) typedef struct _LevelMeter LevelMeter; typedef struct _LevelMeterClass LevelMeterClass; struct _LevelMeter { GtkWidget widget; guint level; }; struct _LevelMeterClass { GtkWidgetClass parent_class; }; GtkWidget *levelmeter_new(guint state); GType levelmeter_get_type(void); guint levelmeter_get_level(LevelMeter * levelmeter); void levelmeter_set_level(LevelMeter * levelmeter, guint level); #ifdef __cplusplus } #endif #endif /* __LEVELMETER_H__ */ sweep-0.9.3/src/question_dialogs.c0000644000175000017500000001657510777660275015727 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include "interface.h" #include "../pixmaps/scrubby.xpm" #include "../pixmaps/scrubby_system.xpm" static gboolean up_and_running = FALSE; static void question_dialog_destroy_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; sw_sample * sample; gboolean quit_if_no_files = FALSE; dialog = gtk_widget_get_toplevel (widget); quit_if_no_files = (gboolean) GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "quit_nofiles")); sample = g_object_get_data (G_OBJECT(dialog), "default"); if (sample && sample_bank_contains (sample)) { sample_set_edit_mode (sample, SWEEP_EDIT_MODE_READY); } if (quit_if_no_files || !up_and_running) sample_bank_remove (NULL); } static void question_dialog_answer_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GCallback(*func) (GtkWidget* widget, gpointer data); up_and_running = TRUE; func = g_object_get_data (G_OBJECT(widget), "default"); dialog = gtk_widget_get_toplevel (widget); if (func != NULL) func (widget, data); /* "destroy" will call destroy above */ gtk_widget_destroy (dialog); } static void query_dialog_new (sw_sample * sample, char * title, char * question, gboolean show_cancel, char * ok_answer, char * no_answer, GCallback ok_callback, gpointer ok_callback_data, GCallback no_callback, gpointer no_callback_data, gpointer xpm_data, gboolean quit_if_no_files) { gchar * new_title; GtkWidget * window; GtkWidget * button, * ok_button; GtkWidget * vbox; GtkWidget * hbox; GtkWidget * label; GtkWidget * pixmap; window = gtk_dialog_new (); sweep_set_window_icon (GTK_WINDOW(window)); new_title = g_strdup_printf ("%s: %s", "Sweep", title); gtk_window_set_title (GTK_WINDOW(window), new_title); g_free (new_title); gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_MOUSE); gtk_container_set_border_width (GTK_CONTAINER(window), 8); g_object_set_data (G_OBJECT(window), "default", sample); g_signal_connect (G_OBJECT(window), "destroy", G_CALLBACK(question_dialog_destroy_cb), window); attach_window_close_accel(GTK_WINDOW(window)); g_object_set_data (G_OBJECT(window), "quit_nofiles", GINT_TO_POINTER((gint)quit_if_no_files)); vbox = GTK_DIALOG(window)->vbox; /* Question */ hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(vbox), hbox, TRUE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER(hbox), 12); gtk_widget_show (hbox); if (xpm_data == NULL) xpm_data = scrubby_xpm; pixmap = create_widget_from_xpm (window, xpm_data); gtk_box_pack_start (GTK_BOX(hbox), pixmap, FALSE, FALSE, 12); gtk_widget_show (pixmap); label = gtk_label_new (question); gtk_box_pack_start (GTK_BOX(hbox), label, TRUE, FALSE, 12); gtk_widget_show (label); /* New layout of buttons */ gtk_button_box_set_layout (GTK_BUTTON_BOX(GTK_DIALOG(window)->action_area), GTK_BUTTONBOX_SPREAD); /* OK */ if (ok_answer == NULL) ok_answer = _("OK"); ok_button = gtk_button_new_with_label (ok_answer); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (ok_button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(window)->action_area), ok_button, TRUE, TRUE, 0); g_object_set_data (G_OBJECT(ok_button), "default", ok_callback); gtk_widget_show (ok_button); g_signal_connect (G_OBJECT(ok_button), "clicked", G_CALLBACK (question_dialog_answer_cb), ok_callback_data); /* Cancel */ if (show_cancel) { if (no_answer == NULL) no_answer = _("Cancel"); button = gtk_button_new_with_label (no_answer); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(window)->action_area), button, TRUE, TRUE, 0); g_object_set_data (G_OBJECT(button), "default", no_callback); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (question_dialog_answer_cb), no_callback_data); } gtk_widget_grab_default (ok_button); gtk_widget_show (window); } void question_dialog_new (sw_sample * sample, char * title, char * question, char * yes_answer, char * no_answer, GCallback yes_callback, gpointer yes_callback_data, GCallback no_callback, gpointer no_callback_data, sw_edit_mode edit_mode) { if (edit_mode != SWEEP_EDIT_MODE_READY) sample_set_edit_mode (sample, edit_mode); query_dialog_new (sample, title, question, TRUE, yes_answer, no_answer, yes_callback, yes_callback_data, no_callback, no_callback_data, NULL, FALSE); } /* Thread safe info dialogs */ typedef struct { char * title; char * message; gpointer xpm_data; } info_dialog_data; static gint do_info_dialog (gpointer data) { info_dialog_data * id = (info_dialog_data *)data; query_dialog_new (NULL, id->title, id->message, FALSE, _("OK"), NULL, NULL, NULL, NULL, NULL, id->xpm_data, TRUE); g_free (id->title); g_free (id->message); return FALSE; } void info_dialog_new (char * title, gpointer xpm_data, const char * fmt, ...) { info_dialog_data * id; va_list ap; #define BUF_LEN 512 char buf[BUF_LEN]; va_start (ap, fmt); vsnprintf (buf, BUF_LEN, fmt, ap); va_end (ap); id = g_malloc (sizeof (info_dialog_data)); id->title = g_strdup (title); id->message = g_strdup (buf); id->xpm_data = xpm_data; sweep_timeout_add ((guint32)0, (GtkFunction)do_info_dialog, id); } /* Thread safe GUI perror reporting */ typedef struct { int thread_errno; char * message; } sweep_perror_data; static gint syserror_dialog_new (gpointer data) { sweep_perror_data * pd = (sweep_perror_data *)data; gchar * sys_errstr = NULL; char * new_message; sys_errstr = (gchar *) g_strerror (pd->thread_errno); if (sys_errstr != NULL) { new_message = g_strdup_printf ("%s:\n\n%s", pd->message, sys_errstr); query_dialog_new (NULL, sys_errstr, new_message, FALSE, _("OK"), NULL, NULL, NULL, NULL, NULL, scrubby_system_xpm, TRUE); } g_free (pd->message); g_free (pd); return FALSE; } void sweep_perror (int thread_errno, const char * fmt, ...) { sweep_perror_data * pd; va_list ap; #undef BUF_LEN #define BUF_LEN 512 char buf[BUF_LEN]; va_start (ap, fmt); vsnprintf (buf, BUF_LEN, fmt, ap); va_end (ap); pd = g_malloc (sizeof (sweep_perror_data)); pd->thread_errno = thread_errno; pd->message = g_strdup (buf); sweep_timeout_add ((guint32)0, (GtkFunction)syserror_dialog_new, pd); } sweep-0.9.3/src/file_mad.c0000644000175000017500000002553010777660160014076 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * Copyright (C) 2002 CSIRO Australia * */ /* * This file adapted from "player.c" in the "mad MPEG audio decoder" * source distribution: * * Copyright (C) 2000-2001 Robert Leslie * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef HAVE_MAD #include #include #include #include #include #include #include #include #include #include #include #include #include #define BUFFER_LEN 4096 #include #include #include #include #include #include #include #include #include #include "sample.h" #include "interface.h" #include "file_dialogs.h" #include "file_sndfile.h" #include "question_dialogs.h" #include "preferences.h" #include "print.h" #include "view.h" static gboolean file_is_mpeg_audio (const char * pathname) { int fd; /* FIXME * the mpeg frame marker can occur in non mpeg files so * one blind check for a marker can produce a false postive. * similarly, due to the metadata tags, the max * frame size may also not be a large enough window within * which to find a frame in a legal mpegfile. * * reimplement this check as a contextual verfification of * a sequence of frames, starting from somewhere in the middle * of a file. in the mean time, raise BUF_LEN from 2048 to 8192 * to mitigate the chance of a false negative. (with an increased * change of a false positive as a result.) */ #define BUF_LEN 8192 unsigned char buf[BUF_LEN]; int n, i; fd = open (pathname, O_RDONLY); if (fd == -1) goto out_false; n = read (fd, buf, BUF_LEN); if (n < 4) goto out_false; /* Check for MPEG frame marker */ for (i = 0; i < BUF_LEN-1; i++) { if ((buf[i] & 0xff) == 0xff && (buf[i+1] & 0xe0) == 0xe0) { goto out_true; } } out_false: close (fd); return FALSE; out_true: close (fd); return TRUE; } /* * This is a private message structure. A generic pointer to this structure * is passed to each of the callback functions. Put here any data you need * to access from within the callbacks. */ struct mad_info { sw_sample * sample; /* file size */ size_t length; /* input buffer */ unsigned char const *start; unsigned long offset; unsigned long remaining; unsigned char * end_buffer; int eof; /* output */ sw_framecount_t nr_frames; }; /* * This is the input callback. The purpose of this callback is to (re)fill * the stream buffer which is to be decoded. In this example, an entire file * has been mapped into memory, so we just call mad_stream_buffer() with the * address and length of the mapping. When this callback is called a second * time, we are finished decoding. */ static enum mad_flow input(void *data, struct mad_stream *stream) { struct mad_info * info = data; unsigned long n; if (info->eof) return MAD_FLOW_STOP; if (stream->next_frame) { info->offset = stream->next_frame - info->start; info->remaining = info->length - info->offset; n = MIN (info->remaining, BUFFER_LEN); if (n == info->remaining) { info->end_buffer = g_malloc0 (info->remaining + MAD_BUFFER_GUARD); if (info->end_buffer == NULL) return MAD_FLOW_BREAK; info->eof = 1; memcpy (info->end_buffer, info->start + info->offset, info->remaining); mad_stream_buffer (stream, info->end_buffer, info->remaining + MAD_BUFFER_GUARD); info->offset += n; info->remaining -= n; return MAD_FLOW_CONTINUE; } } else { n = MIN (info->remaining, BUFFER_LEN); } mad_stream_buffer(stream, info->start + info->offset, n); info->offset += n; info->remaining -= n; return MAD_FLOW_CONTINUE; } /* * This is the output callback function. It is called after each frame of * MPEG audio data has been completely decoded. The purpose of this callback * is to output (or play) the decoded PCM audio. */ static enum mad_flow output(void *data, struct mad_header const *header, struct mad_pcm *pcm) { struct mad_info * info = data; sw_sample * sample = info->sample; sw_framecount_t data_start; sw_audio_t * d; int i, j; gint percent; gboolean active = TRUE; g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { sample->sounddata->format->channels = pcm->channels; sample->sounddata->format->rate = pcm->samplerate; data_start = info->nr_frames; info->nr_frames += pcm->length; if (info->nr_frames > sample->sounddata->nr_frames) { g_mutex_lock(sample->sounddata->data_mutex); sample->sounddata->data = g_realloc(sample->sounddata->data, frames_to_bytes (sample->sounddata->format, info->nr_frames)); g_mutex_unlock(sample->sounddata->data_mutex); } sample->sounddata->nr_frames = info->nr_frames; d = (sw_audio_t *)sample->sounddata->data; d = &d[data_start * pcm->channels]; for (i = 0; i < pcm->channels; i++) { for (j = 0; j < pcm->length; j++) { d[j*pcm->channels + i] = (sw_audio_t)mad_f_todouble(pcm->samples[i][j]); } } percent = (info->length - info->remaining) * 100 / info->length; sample_set_progress_percent (info->sample, percent); #ifdef DEBUG printf ("decoded %u samples, %d%% percent complete (%u / %u)\n", nsamples, percent, info->remaining, info->length); #endif } g_mutex_unlock (sample->ops_mutex); return (active ? MAD_FLOW_CONTINUE : MAD_FLOW_STOP); } /* * This is the error callback function. It is called whenever a decoding * error occurs. The error is indicated by stream->error; the list of * possible MAD_ERROR_* errors can be found in the mad.h (or * libmad/stream.h) header file. */ static enum mad_flow error(void *data, struct mad_stream *stream, struct mad_frame *frame) { struct mad_info * info = data; switch (stream->error) { case MAD_ERROR_BADDATAPTR: return MAD_FLOW_CONTINUE; case MAD_ERROR_LOSTSYNC: if (stream->next_frame) return MAD_FLOW_CONTINUE; /* else fall through */ default: fprintf(stderr, "decoding error 0x%04x (%s) at byte offset %u\n", stream->error, mad_stream_errorstr(stream), stream->this_frame - info->start); break; } if (MAD_RECOVERABLE (stream->error)) return MAD_FLOW_CONTINUE; else return MAD_FLOW_BREAK; } static sw_sample * sample_load_mad_data (sw_op_instance * inst) { sw_sample * sample = inst->sample; int fd; void * fdm; struct stat statbuf; struct mad_decoder decoder; struct mad_info info; int result; fd = open (sample->pathname, O_RDONLY); if (fstat (fd, &statbuf) == -1 || statbuf.st_size == 0) return NULL; fdm = mmap (0, statbuf.st_size, PROT_READ, MAP_SHARED, fd, 0); if (fdm == MAP_FAILED) { perror (NULL); close (fd); return NULL; } #if defined (HAVE_MADVISE) madvise (fdm, statbuf.st_size, MADV_SEQUENTIAL); #endif info.sample = sample; info.length = statbuf.st_size; info.start = fdm; info.offset = 0; info.remaining = (unsigned long) statbuf.st_size; info.eof = 0; info.end_buffer = NULL; info.nr_frames = 0; mad_decoder_init (&decoder, &info, input, 0 /* header */, 0 /* filter */, output, error, 0 /* message */); result = mad_decoder_run (&decoder, MAD_DECODER_MODE_SYNC); mad_decoder_finish (&decoder); if (info.end_buffer != NULL) { g_free (info.end_buffer); } if (munmap (fdm, statbuf.st_size) == -1) { perror (NULL); } close (fd); stat (sample->pathname, &statbuf); sample->last_mtime = statbuf.st_mtime; sample->edit_ignore_mtime = FALSE; sample->modified = FALSE; sample_set_edit_state (sample, SWEEP_EDIT_STATE_DONE); return sample; } static sw_operation mad_load_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)sample_load_mad_data, (SweepFunction)NULL, (SweepCallback)NULL, /* undo */ (SweepFunction)NULL, (SweepCallback)NULL, /* redo */ (SweepFunction)NULL }; static sw_sample * sample_load_mad_info (sw_sample * sample, char * pathname) { #undef BUF_LEN #define BUF_LEN 128 char buf[BUF_LEN]; gboolean isnew = (sample == NULL); sw_view * v; if (!file_is_mpeg_audio (pathname)) return NULL; #if 0 fd = open (pathname, O_RDONLY); if (fstat (fd, &statbuf) == -1 || statbuf.st_size == 0) return NULL; #endif /* Create the sample/sounddata, initially with length 0, to be grown * as the file is decoded */ if (sample == NULL) { /* Channels and rate will be set during decoding and are basically * irrelevent here. Set them to 2, 44100 assuming these are the most * likely values, in which case the file info displayed in the window * will not change suddenly */ sample = sample_new_empty(pathname, 2, 44100, 0); } else { int channels, rate; /* Set the channels and rate of the recreated sounddata to be the same * as the old one, as they are most likely the same after a reload */ channels = sample->sounddata->format->channels; rate = sample->sounddata->format->rate; sounddata_destroy (sample->sounddata); sample->sounddata = sounddata_new_empty (channels, rate, 0); } if(!sample) { /*close (fd);*/ return NULL; } sample->file_method = SWEEP_FILE_METHOD_MP3; /*sample->file_info = GINT_TO_POINTER(fd);*/ sample_bank_add(sample); if (isnew) { v = view_new_all (sample, 1.0); sample_add_view (sample, v); } else { trim_registered_ops (sample, 0); } g_snprintf (buf, BUF_LEN, _("Loading %s"), g_basename (sample->pathname)); schedule_operation (sample, buf, &mad_load_op, sample); return sample; } sw_sample * mad_sample_reload (sw_sample * sample) { if (sample == NULL) return NULL; return sample_load_mad_info (sample, sample->pathname); } sw_sample * mad_sample_load (char * pathname) { if (pathname == NULL) return NULL; return sample_load_mad_info (NULL, pathname); } #endif /* HAVE_MAD */ sweep-0.9.3/src/sample.h0000644000175000017500000000402010777660160013613 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __SAMPLE_H__ #define __SAMPLE_H__ #include #include "sweep_app.h" void create_sample_new_dialog_defaults (char * pathname); void create_sample_new_dialog_like (sw_sample * s); void sample_add_view (sw_sample * s, sw_view * v); void sample_remove_view (sw_sample * s, sw_view * v); gint sample_clear_tmp_message (gpointer data); void sample_set_monitor (sw_sample * s, gboolean monitor); void sample_set_offset_next_bound_left (sw_sample * s); void sample_set_offset_next_bound_right (sw_sample * s); void sample_refresh_rec_marker (sw_sample * s); /* * Functions to handle the temporary selection. */ void sample_clear_tmp_sel (sw_sample * s); /* sample_set_tmp_sel (s, tsel) * * sets the tmp_sel of sample s to a list containing only tsel. * If tsel was part of the actual selection of s, it is first * removed from the selection. */ void sample_set_tmp_sel (sw_sample * s, sw_view * tview, sw_sel * tsel); void sample_set_tmp_sel_1 (sw_sample * s, sw_view * tview, sw_framecount_t start, sw_framecount_t end); void sample_selection_insert_tmp_sel (sw_sample * s); void sample_selection_subtract_tmp_sel (sw_sample * s); void sample_selection_replace_with_tmp_sel (sw_sample * s); #endif /* __SAMPLE_H__ */ sweep-0.9.3/src/file_speex.c0000644000175000017500000016457110777663646014506 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * Copyright (C) 2002 CSIRO Australia * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* * This file adapted from "speexdec.c" and "speexenc.c" in the Speex coded * source code, Copyright (C) 2002 Jean-Marc Valin * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * - Neither the name of the Xiph.org Foundation nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef HAVE_SPEEX #include #include #include #include #include #include #include #include #include #include #include #include #ifdef HAVE_SPEEX_SUBDIR #include #include #include #include #else #include #include #include #include #endif #define BUFFER_LEN 1024 #include #include #include #include #include #include #include #include #include #include "sample.h" #include "interface.h" #include "file_dialogs.h" #include "file_sndfile.h" #include "question_dialogs.h" #include "preferences.h" #include "print.h" #include "view.h" #include "../pixmaps/xifish.xpm" #include "../pixmaps/speex_logo.xpm" /* MAINTENANCE: * * Upon release of Speex 1.0, force a requirement on that version in * configure. Then, remove all references to SPEEX_HAVE_BETA4 (assume * this is true, as those features will be available), and also assume * that SPEEX_NB_MODES > 2. This should reduce the random ifdef'ing * present to accomodate the flux of prerelease versions of Speex. */ #ifdef SPEEX_SET_DTX #define HAVE_SPEEX_BETA4 #endif #define BUF_LEN 128 #define MODE_KEY "Speex_Mode" #define FEATURES_KEY "Speex_Features" #define QUALITY_KEY "Speex_Quality" #define BR_KEY "Speex_BR" #define BITRATE_KEY "Speex_Bitrate" #define COMPLEXITY_KEY "Speex_Complexity" #define SERIALNO_KEY "OggSpeex_Serialno" #define FRAMEPACK_KEY "OggSpeex_FramePack" /* Mode choices */ #define MODE_NARROWBAND 0 #define MODE_WIDEBAND 1 #define MODE_ULTRAWIDEBAND 2 /* Feature flags */ #define FEAT_VBR 1 #define FEAT_VAD 2 #define FEAT_DTX 4 #ifdef HAVE_SPEEX_BETA4 #define DEFAULT_FEATURES (FEAT_VBR | FEAT_VAD | FEAT_DTX) #else #define DEFAULT_FEATURES (FEAT_VBR) #endif #define DEFAULT_QUALITY 8.0 #define DEFAULT_COMPLEXITY 3.0 #define DEFAULT_FRAMEPACK 1 #define DEFAULT_ENH_ENABLED 1 extern GtkStyle * style_bw; #define READ_SIZE 200 /* * file_is_ogg_speex (pathname) * * This function attempts to determine if a given file is an ogg speex file * by attempting to parse enough of the stream to decode an initial speex * header. If any steps along the way fail, it returns false; */ static gboolean file_is_ogg_speex (const char * pathname) { int fd; ssize_t nread; ogg_sync_state oy; ogg_page og; ogg_packet op; ogg_stream_state os; char * ogg_data; const SpeexMode *mode; SpeexHeader *header; fd = open (pathname, O_RDONLY); if (fd == -1) { return FALSE; } ogg_sync_init (&oy); ogg_data = ogg_sync_buffer (&oy, READ_SIZE); if (ogg_data == NULL) goto out_false_sync; if ((nread = read (fd, ogg_data, READ_SIZE)) <= 0) goto out_false_sync; ogg_sync_wrote (&oy, nread); if (ogg_sync_pageout (&oy, &og) != 1) goto out_false_sync; ogg_stream_init (&os, ogg_page_serialno (&og)); ogg_stream_pagein (&os, &og); if (ogg_stream_packetout (&os, &op) != 1) goto out_false_stream; header = speex_packet_to_header (op.packet, op.bytes); if (!header) goto out_false_stream; if (header->mode >= SPEEX_NB_MODES) goto out_false_stream; mode = speex_mode_list[header->mode]; if (mode->bitstream_version != header->mode_bitstream_version) goto out_false_stream; ogg_sync_clear (&oy); ogg_stream_clear (&os); close (fd); return TRUE; out_false_stream: ogg_stream_clear (&os); out_false_sync: ogg_sync_clear (&oy); close (fd); return FALSE; } static void * process_header(ogg_packet *op, int enh_enabled, int * frame_size, int * rate, int * nframes, int forceMode, int * channels, SpeexStereoState * stereo, int * extra_headers) { void *st; SpeexMode *mode; SpeexHeader *header; int modeID; SpeexCallback callback; header = speex_packet_to_header((char*)op->packet, op->bytes); if (!header) { info_dialog_new ("Speex error", NULL, "Speex: cannot read header"); return NULL; } if (header->mode >= SPEEX_NB_MODES || header->mode < 0) { info_dialog_new ("Speex error", NULL, "Mode number %d does not (any longer) exist in this version\n", header->mode); return NULL; } modeID = header->mode; if (forceMode!=-1) modeID = forceMode; mode = (SpeexMode *)speex_mode_list[modeID]; #ifdef HAVE_SPEEX_BETA4 if (header->speex_version_id > 1) { info_dialog_new ("Speex error", NULL, "This file was encoded with Speex bit-stream version %d, " "which I don't know how to decode\n", header->speex_version_id); return NULL; } #endif if (mode->bitstream_version < header->mode_bitstream_version) { info_dialog_new ("Speex error", NULL, "The file was encoded with a newer version of Speex. " "You need to upgrade in order to play it.\n"); return NULL; } if (mode->bitstream_version > header->mode_bitstream_version) { info_dialog_new ("Speex error", NULL, "The file was encoded with an older version of Speex. " "You would need to downgrade the version in order to play it.\n"); return NULL; } st = speex_decoder_init(mode); if (!st) { info_dialog_new ("Speex error", NULL, "Decoder initialization failed.\n"); return NULL; } speex_decoder_ctl(st, SPEEX_SET_ENH, &enh_enabled); speex_decoder_ctl(st, SPEEX_GET_FRAME_SIZE, frame_size); if (!(*channels==1)) { callback.callback_id = SPEEX_INBAND_STEREO; callback.func = speex_std_stereo_request_handler; callback.data = stereo; speex_decoder_ctl(st, SPEEX_SET_HANDLER, &callback); } if (*rate==-1) *rate = header->rate; /* Adjust rate if --force-* options are used */ if (forceMode!=-1) { if (header->mode < forceMode) *rate <<= (forceMode - header->mode); if (header->mode > forceMode) *rate >>= (header->mode - forceMode); } speex_decoder_ctl(st, SPEEX_SET_SAMPLING_RATE, rate); *nframes = header->frames_per_packet; if (*channels == -1) *channels = header->nb_channels; #ifdef DEBUG fprintf (stderr, "Decoding %d Hz audio using %s mode", *rate, mode->modeName); if (*channels==1) fprintf (stderr, " (mono"); else fprintf (stderr, " (stereo"); if (header->vbr) fprintf (stderr, " (VBR)\n"); else fprintf(stderr, "\n"); #endif #ifdef HAVE_SPEEX_BETA4 *extra_headers = header->extra_headers; #else *extra_headers = 0; #endif free(header); return st; } static sw_sample * sample_load_speex_data (sw_op_instance * inst) { sw_sample * sample = inst->sample; int fd; struct stat statbuf; void * st = NULL; SpeexBits bits; int frame_size = 0; int rate = -1; int channels = -1; int extra_headers; SpeexStereoState stereo = SPEEX_STEREO_STATE_INIT; int packet_count = 0; int stream_init = 0; ogg_sync_state oy; ogg_page og; ogg_packet op; ogg_stream_state os; char * ogg_data; int enh_enabled = DEFAULT_ENH_ENABLED; int nframes = 2; int eos = 0; int forceMode = -1; int i, j; sw_audio_t * d = NULL; sw_framecount_t frames_total = 0, frames_decoded = 0; size_t file_length, remaining, n; ssize_t nread; gint percent; gboolean active = TRUE; fd = open (sample->pathname, O_RDONLY); if (fd == -1) { sweep_perror (errno, "failed open in sample_load_speex_data"); return NULL; } if (fstat (fd, &statbuf) == -1) { sweep_perror (errno, "failed stat in sample_load_speex_data"); return NULL; } file_length = remaining = statbuf.st_size; /* Init Ogg sync */ ogg_sync_init (&oy); speex_bits_init (&bits); while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { n = MIN (remaining, READ_SIZE); ogg_data = ogg_sync_buffer (&oy, n); nread = read (fd, ogg_data, n); if (nread == -1) { sweep_perror (errno, "speex: %s", sample->pathname); active = FALSE; } else if (nread == 0) { /* eof */ active = FALSE; } else { ogg_sync_wrote (&oy, nread); n = (size_t)nread; } /* Loop for all complete pages we got */ while (active && ogg_sync_pageout (&oy, &og) == 1) { if (stream_init == 0) { ogg_stream_init (&os, ogg_page_serialno (&og)); stream_init = 1; } /* Add page to the bitstream */ ogg_stream_pagein (&os, &og); /* Extract all available packets */ while (!eos && ogg_stream_packetout (&os, &op) == 1) { if (packet_count == 0) {/* header */ st = process_header (&op, enh_enabled, &frame_size, &rate, &nframes, forceMode, &channels, &stereo, &extra_headers); if (st == NULL) { /*printf ("Not Speex!\n");*/ active = FALSE; } sample->sounddata->format->rate = rate; sample->sounddata->format->channels = channels; if (nframes == 0) nframes = 1; } else if (packet_count <= 1+extra_headers) { /* XXX: metadata, extra_headers: ignore */ } else { if (op.e_o_s) eos = 1; /* Copy Ogg packet to Speex bitstream */ speex_bits_read_from (&bits, (char *)op.packet, op.bytes); frames_total += nframes * frame_size; if (sample->sounddata->nr_frames != frames_total) { sample->sounddata->data = g_realloc (sample->sounddata->data, frames_total * channels * sizeof (sw_audio_t)); } sample->sounddata->nr_frames = frames_total; d = &((sw_audio_t *)sample->sounddata->data) [frames_decoded * channels]; if (d != NULL) { for (j = 0; j < nframes; j++) { /* Decode frame */ speex_decode (st, &bits, d); #ifdef DEBUG if (speex_bits_remaining (&bits) < 0) { info_dialog_new ("Speex warning", NULL, "Speex: decoding overflow -- corrupted stream at frame %ld", frames_decoded + (j * frame_size)); } #endif if (channels == 2) speex_decode_stereo (d, frame_size, &stereo); for (i = 0; i < frame_size * channels; i++) { d[i] /= 32767.0; } d += (frame_size * channels); frames_decoded += frame_size; } } } packet_count ++; } remaining -= n; percent = (file_length - remaining) * 100 / file_length; sample_set_progress_percent (sample, percent); } } g_mutex_unlock (sample->ops_mutex); } if (st) speex_decoder_destroy (st); speex_bits_destroy (&bits); ogg_sync_clear (&oy); ogg_stream_clear (&os); close (fd); if (remaining <= 0) { stat (sample->pathname, &statbuf); sample->last_mtime = statbuf.st_mtime; sample->edit_ignore_mtime = FALSE; sample->modified = FALSE; } sample_set_edit_state (sample, SWEEP_EDIT_STATE_DONE); return sample; } static sw_operation speex_load_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)sample_load_speex_data, (SweepFunction)NULL, (SweepCallback)NULL, /* undo */ (SweepFunction)NULL, (SweepCallback)NULL, /* redo */ (SweepFunction)NULL }; static sw_sample * sample_load_speex_info (sw_sample * sample, char * pathname) { #undef BUF_LEN #define BUF_LEN 128 char buf[BUF_LEN]; gboolean isnew = (sample == NULL); sw_view * v; if (!file_is_ogg_speex (pathname)) return NULL; /* Create the sample/sounddata, initially with length 0, to be grown * as the file is decoded */ if (sample == NULL) { /* Channels and rate will be set during decoding and are basically * irrelevent here. Set them to 1, 8000 assuming these are the most * likely values, in which case the file info displayed in the window * will not change suddenly */ sample = sample_new_empty(pathname, 1, 8000, 0); } else { int channels, rate; /* Set the channels and rate of the recreated sounddata to be the same * as the old one, as they are most likely the same after a reload */ channels = sample->sounddata->format->channels; rate = sample->sounddata->format->rate; sounddata_destroy (sample->sounddata); sample->sounddata = sounddata_new_empty (channels, rate, 0); } if(!sample) { return NULL; } sample->file_method = SWEEP_FILE_METHOD_SPEEX; sample->file_info = NULL; sample_bank_add(sample); if (isnew) { v = view_new_all (sample, 1.0); sample_add_view (sample, v); } else { trim_registered_ops (sample, 0); } g_snprintf (buf, BUF_LEN, _("Loading %s"), g_basename (sample->pathname)); schedule_operation (sample, buf, &speex_load_op, sample); return sample; } sw_sample * speex_sample_reload (sw_sample * sample) { if (sample == NULL) return NULL; return sample_load_speex_info (sample, sample->pathname); } sw_sample * speex_sample_load (char * pathname) { if (pathname == NULL) return NULL; return sample_load_speex_info (NULL, pathname); } /* * comment creation: from speexenc.c */ /* Comments will be stored in the Vorbis style. It is describled in the "Structure" section of http://www.xiph.org/ogg/vorbis/doc/v-comment.html The comment header is decoded as follows: 1) [vendor_length] = read an unsigned integer of 32 bits 2) [vendor_string] = read a UTF-8 vector as [vendor_length] octets 3) [user_comment_list_length] = read an unsigned integer of 32 bits 4) iterate [user_comment_list_length] times { 5) [length] = read an unsigned integer of 32 bits 6) this iteration's user comment = read a UTF-8 vector as [length] octets } 7) [framing_bit] = read a single bit as boolean 8) if ( [framing_bit] unset or end of packet ) then ERROR 9) done. If you have troubles, please write to ymnk@jcraft.com. */ #define readint(buf, base) (((buf[base+3]<<24)&0xff000000)| \ ((buf[base+2]<<16)&0xff0000)| \ ((buf[base+1]<<8)&0xff00)| \ (buf[base]&0xff)) #define writeint(buf, base, val) do{ buf[base+3]=(val>>24)&0xff; \ buf[base+2]=(val>>16)&0xff; \ buf[base+1]=(val>>8)&0xff; \ buf[base]=(val)&0xff; \ }while(0) void comment_init(char **comments, int* length, char *vendor_string) { int vendor_length=strlen(vendor_string); int user_comment_list_length=0; int len=4+vendor_length+4; char *p=(char*)malloc(len); if(p==NULL){ } writeint(p, 0, vendor_length); memcpy(p+4, vendor_string, vendor_length); writeint(p, 4+vendor_length, user_comment_list_length); *length=len; *comments=p; } void comment_add(char **comments, int* length, char *tag, char *val) { char* p=*comments; int vendor_length=readint(p, 0); int user_comment_list_length=readint(p, 4+vendor_length); int tag_len=(tag?strlen(tag):0); int val_len=strlen(val); int len=(*length)+4+tag_len+val_len; p=realloc(p, len); if(p==NULL){ } writeint(p, *length, (tag_len+val_len)); /* length of comment */ if(tag) memcpy(p+*length+4, tag, tag_len); /* comment */ memcpy(p+*length+4+tag_len, val, val_len); /* comment */ writeint(p, 4+vendor_length, (user_comment_list_length+1)); *comments=p; *length=len; } #undef readint #undef writeint typedef struct { gchar * pathname; gint mode; gint features; gboolean use_br; gfloat quality; /* either way */ gint bitrate; gint complexity; gint framepack; long serialno; } speex_save_options; #define MAX_FRAME_SIZE 2000 #define MAX_FRAME_BYTES 2000 static int speex_sample_save_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; gchar * pathname = (gchar *)inst->do_data; FILE * outfile; sw_format * format; sw_audio_t * d; sw_framecount_t remaining, len, run_total; sw_framecount_t nr_frames, cframes; gint percent = 0; speex_save_options * so; ogg_stream_state os; /* take physical pages, weld into a logical stream of packets */ ogg_page og; /* one Ogg bitstream page. Speex packets are inside */ ogg_packet op; /* one raw packet of data for decode */ float input[MAX_FRAME_SIZE]; gchar cbits[MAX_FRAME_BYTES]; int nbBytes; int id = 0; int frame_size; SpeexMode * mode = NULL; SpeexHeader header; void * st; SpeexBits bits; gchar * vendor_string = "Encoded with Sweep " VERSION " (metadecks.org)"; gchar * comments = NULL; int comments_length = 0; int eos = 0; int i, j; gboolean active = TRUE; size_t n, bytes_written = 0; double average_bitrate = 0.0; struct stat statbuf; int errno_save = 0; if (sample == NULL) return -1; so = (speex_save_options *)sample->file_info; format = sample->sounddata->format; nr_frames = sample->sounddata->nr_frames; cframes = nr_frames / 100; if (cframes == 0) cframes = 1; remaining = nr_frames; run_total = 0; #if 0 if (format->channels != 1) { fprintf (stderr, "Unsupported channel count for Speex encoding\n"); return -1; } #endif if (!(outfile = fopen (pathname, "w"))) { sweep_perror (errno, pathname); return -1; } switch (so->mode) { case MODE_NARROWBAND: mode = (SpeexMode *) &speex_nb_mode; break; case MODE_WIDEBAND: mode = (SpeexMode *) &speex_wb_mode; break; #if (SPEEX_NB_MODES > 2) case MODE_ULTRAWIDEBAND: mode = (SpeexMode *) &speex_uwb_mode; break; #endif default: mode = (SpeexMode *) &speex_nb_mode; break; } speex_init_header (&header, format->rate, 1 , mode); header.frames_per_packet = so->framepack; header.vbr = (so->features & FEAT_VBR) ? 1 : 0; header.nb_channels = format->channels; #ifdef DEBUG fprintf (stderr, "Encoding %d Hz audio using %s mode\n", header.rate, mode->modeName); #endif /* initialise Speex encoder */ st = speex_encoder_init (mode); /* initialise comments */ comment_init (&comments, &comments_length, vendor_string); /* set up our packet->stream encoder */ ogg_stream_init (&os, so->serialno); /* write header */ { int bytes = op.bytes; op.packet = (unsigned char *) speex_header_to_packet (&header, &bytes); op.bytes = bytes; op.b_o_s = 1; op.e_o_s = 0; op.granulepos = 0; op.packetno = 0; ogg_stream_packetin(&os, &op); free(op.packet); op.packet = (unsigned char *)comments; op.bytes = comments_length; op.b_o_s = 0; op.e_o_s = 0; op.granulepos = 0; op.packetno = 1; ogg_stream_packetin(&os, &op); /* This ensures the actual * audio data will start on a new page, as per spec */ while(!eos){ int result = ogg_stream_flush (&os, &og); if (result == 0) break; n = fwrite (og.header, 1, og.header_len, outfile); n += fwrite (og.body, 1, og.body_len, outfile); if (fflush (outfile) == 0) { bytes_written += n; } else { errno_save = errno; eos = 1; /* pffft -- this encoding wasn't going anywhere */ } } } if (comments) g_free (comments); speex_encoder_ctl (st, SPEEX_SET_SAMPLING_RATE, &format->rate); speex_encoder_ctl (st, SPEEX_GET_FRAME_SIZE, &frame_size); speex_encoder_ctl (st, SPEEX_SET_COMPLEXITY, &so->complexity); if (so->features & FEAT_VBR) { int tmp = 1; speex_encoder_ctl (st, SPEEX_SET_VBR, &tmp); speex_encoder_ctl (st, SPEEX_SET_VBR_QUALITY, &so->quality); #ifdef HAVE_SPEEX_BETA4 if (so->use_br) { speex_encoder_ctl (st, SPEEX_SET_ABR, &so->bitrate); } #endif } else { int tmp = (int)floor(so->quality); speex_encoder_ctl (st, SPEEX_SET_QUALITY, &tmp); if (so->use_br) { speex_encoder_ctl (st, SPEEX_SET_BITRATE, &so->bitrate); } } #ifdef HAVE_SPEEX_BETA4 if (so->features & FEAT_VAD) { int tmp = 1; speex_encoder_ctl (st, SPEEX_SET_VAD, &tmp); if (so->features & FEAT_DTX) { speex_encoder_ctl (st, SPEEX_SET_DTX, &tmp); } } #endif speex_bits_init (&bits); while (!eos) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } if (active == FALSE || remaining <= 0) { /* Mark the end of stream */ /* XXX: this will be set when this packet is paged out: eos = 1; */ op.e_o_s = 1; } else { op.e_o_s = 0; /* data to encode */ for (i = 0; i < so->framepack; i++) { if (remaining > 0) { len = MIN (remaining, frame_size); d = &((sw_audio_t *)sample->sounddata->data) [run_total * format->channels]; memcpy (input, d, sizeof (sw_audio_t) * len * format->channels); /* rip channel 0 out, in required format */ for (j = 0; j < len * format->channels; j++) { input[j] *= 32767.0; } if (format->channels == 2) speex_encode_stereo (input, len, &bits); speex_encode (st, input, &bits); remaining -= len; run_total += len; percent = run_total / cframes; sample_set_progress_percent (sample, percent); } else { /*speex_bits_pack (&bits, 0, 7);*/ speex_bits_pack (&bits, 15, 5); } id++; } } g_mutex_unlock (sample->ops_mutex); nbBytes = speex_bits_write (&bits, cbits, MAX_FRAME_BYTES); speex_bits_reset (&bits); /* Put it in an ogg packet */ op.packet = (unsigned char *)cbits; op.bytes = nbBytes; op.b_o_s = 0; /* op.e_o_s was set above */ #if 0 /* XXX: was set above */ if (eos) op.e_o_s = 1; else op.e_o_s = 0; #endif op.granulepos = id * frame_size; op.packetno = 2 + (id-1)/so->framepack; /* weld the packet into the bitstream */ ogg_stream_packetin(&os,&op); /* write out pages (if any) */ while(!eos){ int result=ogg_stream_pageout(&os,&og); if(result==0)break; n = fwrite (og.header, 1, og.header_len, outfile); n += fwrite (og.body, 1, og.body_len, outfile); if (fflush (outfile) == 0) { bytes_written += n; } else { errno_save = errno; active = FALSE; } /* this could be set above, but for illustrative purposes, I do it here (to show that we know where the stream ends) */ if (ogg_page_eos(&og)) eos=1; } } #if 0 /*Flush all pages left to be written*/ while (ogg_stream_flush(&os, &og)) { n = fwrite (og.header, 1, og.header_len, outfile); n += fwrite (og.body, 1, og.body_len, outfile); if (fflush (outfile) == 0) { bytes_written += n; } else { errno_save = errno; active = FALSE; } } #endif /* clean up and exit. speex_info_clear() must be called last */ speex_encoder_destroy (st); speex_bits_destroy (&bits); ogg_stream_clear(&os); fclose (outfile); /* Report success or failure; Calculate and display statistics */ #undef BUF_LEN #define BUF_LEN 16 if (remaining <= 0) { char time_buf[BUF_LEN], bytes_buf[BUF_LEN]; #if 1 sample_store_and_free_pathname (sample, pathname); #else g_free (pathname); #endif /* Mark the last mtime for this sample */ stat (sample->pathname, &statbuf); sample->last_mtime = statbuf.st_mtime; sample->edit_ignore_mtime = FALSE; sample->modified = FALSE; snprint_time (time_buf, BUF_LEN, frames_to_time (format, nr_frames - remaining)); snprint_bytes (bytes_buf, BUF_LEN, bytes_written); average_bitrate = 8.0/1000.0*((double)bytes_written/((double)nr_frames/(double)format->rate)); info_dialog_new (_("Speex encoding results"), xifish_xpm, "Encoding of %s succeeded.\n\n" "%s written, %s audio\n" "Average bitrate: %.1f kbps", g_basename (sample->pathname), bytes_buf, time_buf, average_bitrate); } else { char time_buf[BUF_LEN], bytes_buf[BUF_LEN]; snprint_time (time_buf, BUF_LEN, frames_to_time (format, nr_frames - remaining)); snprint_bytes (bytes_buf, BUF_LEN, bytes_written); average_bitrate = 8.0/1000.0*((double)bytes_written/((double)(nr_frames - remaining)/(double)format->rate)); if (isnan(average_bitrate)) average_bitrate = 0.0; if (errno_save == 0) { info_dialog_new (_("Speex encoding results"), xifish_xpm, "Encoding of %s FAILED\n\n" "%s written, %s audio (%d%% complete)\n" "Average bitrate: %.1f kbps", g_basename (pathname), bytes_buf, time_buf, percent, average_bitrate); } else { sweep_perror (errno_save, "Encoding of %s FAILED\n\n" "%s written, %s audio (%d%% complete)\n" "Average bitrate: %.1f kbps", g_basename (pathname), bytes_buf, time_buf, percent, average_bitrate); } } sample_set_edit_state (sample, SWEEP_EDIT_STATE_DONE); return 0; } static sw_operation speex_save_op = { SWEEP_EDIT_MODE_META, (SweepCallback)speex_sample_save_thread, (SweepFunction)NULL, (SweepCallback)NULL, /* undo */ (SweepFunction)NULL, (SweepCallback)NULL, /* redo */ (SweepFunction)NULL }; int speex_sample_save (sw_sample * sample, char * pathname) { #undef BUF_LEN #define BUF_LEN 64 char buf[BUF_LEN]; g_snprintf (buf, BUF_LEN, _("Saving %s"), g_basename (pathname)); schedule_operation (sample, buf, &speex_save_op, pathname); return 0; } static void speex_save_options_dialog_ok_cb (GtkWidget * widget, gpointer data) { sw_sample * sample = (sw_sample *)data; GtkWidget * dialog; speex_save_options * so; GtkWidget * checkbutton; GtkWidget * entry; const gchar * text; gboolean use_br; GtkObject * adj; int mode, features, quality, bitrate, complexity, framepack; gboolean rem_encode; long serialno; gboolean rem_serialno; char * pathname; so = g_malloc (sizeof(speex_save_options)); dialog = gtk_widget_get_toplevel (widget); /* Mode */ mode = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(dialog), "mode_choice")); /* Features */ features = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(dialog), "features_choice")); adj = GTK_OBJECT(g_object_get_data (G_OBJECT(dialog), "quality_adj")); quality = (int)GTK_ADJUSTMENT(adj)->value; adj = GTK_OBJECT(g_object_get_data (G_OBJECT(dialog), "complexity_adj")); complexity = (int)GTK_ADJUSTMENT(adj)->value; adj = GTK_OBJECT(g_object_get_data (G_OBJECT(dialog), "framepack_adj")); framepack = (int)GTK_ADJUSTMENT(adj)->value; checkbutton = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "br_chb")); use_br = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(checkbutton)); entry = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "br_entry")); text = gtk_entry_get_text (GTK_ENTRY(entry)); bitrate = (int)strtol (text, (char **)NULL, 0); /* rem encode */ checkbutton = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "rem_encode_chb")); rem_encode = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(checkbutton)); entry = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "serialno_entry")); text = gtk_entry_get_text (GTK_ENTRY(entry)); serialno = strtol (text, (char **)NULL, 0); if (serialno == LONG_MIN || serialno == LONG_MAX) serialno = random (); checkbutton = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "rem_serialno_chb")); rem_serialno = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(checkbutton)); pathname = g_object_get_data (G_OBJECT(dialog), "pathname"); gtk_widget_destroy (dialog); if (rem_encode) { prefs_set_int (MODE_KEY, mode); prefs_set_int (FEATURES_KEY, features); prefs_set_int (BR_KEY, use_br); prefs_set_int (QUALITY_KEY, quality); prefs_set_int (BITRATE_KEY, bitrate); prefs_set_int (COMPLEXITY_KEY, complexity); prefs_set_int (FRAMEPACK_KEY, framepack); } if (rem_serialno) { prefs_set_long (SERIALNO_KEY, serialno); } else { prefs_delete (SERIALNO_KEY); } if (sample->file_info) { g_free (sample->file_info); } so->mode = mode; so->features = features; so->use_br = use_br; so->quality = quality; so->bitrate = bitrate; so->complexity = complexity; so->framepack = framepack; so->serialno = serialno; sample->file_info = so; speex_sample_save (sample, pathname); } static void speex_save_options_dialog_cancel_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; dialog = gtk_widget_get_toplevel (widget); gtk_widget_destroy (dialog); /* if the sample bank is empty, quit the program */ sample_bank_remove (NULL); } typedef struct { int number; char * name; char * desc; } sw_choice; static sw_choice mode_choices[] = { { MODE_NARROWBAND, N_("Narrowband ~8 kHz (telephone quality)"), NULL }, { MODE_WIDEBAND, N_("Wideband ~16 kHz"), NULL }, #if SPEEX_NB_MODES > 2 { MODE_ULTRAWIDEBAND, N_("Ultra-wideband 32-48 kHz"), NULL }, #endif { 0, NULL, NULL } }; static sw_choice feature_choices[] = { #ifdef HAVE_SPEEX_BETA4 { 0, N_("Constant bitrate (CBR) with no features"), NULL }, { FEAT_VAD, N_("CBR with Voice Activity Detection (VAD)"), N_("VAD generates low bitrate comfort noise to replace non-speech") }, { FEAT_VAD | FEAT_DTX, N_("CBR with VAD and Discontinuous Transmission (DTX)"), N_("DTX marks extended pauses with a minimum bitrate signal") }, { FEAT_VBR | FEAT_VAD, N_("Variable bitrate (VBR) with VAD"), N_("VBR allows the bitrate to adapt to the complexity of the speech; " "this selection uses VBR without DTX, which may improve performance " "compared to full VBR in the presence of background noise.") }, { FEAT_VBR | FEAT_VAD | FEAT_DTX, N_("Variable bitrate (VBR) with all features"), N_("VBR allows the bitrate to adapt to the complexity of the speech, " "and handles pauses using VAD and DTX") }, #else { 0, N_("Constant bitrate (CBR)"), NULL }, { FEAT_VBR, N_("Variable bitrate (VBR)"), N_("VBR allows the bitrate to adapt to the complexity of the speech.") }, #endif { 0, NULL, NULL } }; static void speex_encode_options_update_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkWidget * br_checkbutton; GtkWidget * quality_label; GtkWidget * quality_hscale; GtkWidget * br_label; GtkWidget * br_entry; GtkWidget * br_units; gboolean br; gint features; dialog = gtk_widget_get_toplevel (widget); /* Features */ features = GPOINTER_TO_INT (g_object_get_data (G_OBJECT(dialog), "features_choice")); /* Quality */ quality_label = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "quality_label")); quality_hscale = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "quality_hscale")); /* Bitrate */ br_checkbutton = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "br_chb")); br = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(br_checkbutton)); br_label = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "br_label")); br_entry = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "br_entry")); br_units = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "br_units")); gtk_widget_set_sensitive (br_label, br); gtk_widget_set_sensitive (br_entry, br); gtk_widget_set_sensitive (br_units, br); gtk_widget_set_sensitive (quality_label, !br); gtk_widget_set_sensitive (quality_hscale, !br); if (features & FEAT_VBR) { gtk_scale_set_digits (GTK_SCALE (quality_hscale), 1); gtk_label_set_text (GTK_LABEL(br_label), _("Average bitrate")); } else { gtk_scale_set_digits (GTK_SCALE (quality_hscale), 0); gtk_label_set_text (GTK_LABEL(br_label), _("Maximum bitrate")); } } static void speex_encode_options_mode_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog = GTK_WIDGET (data); int mode; mode = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "default")); g_object_set_data (G_OBJECT(dialog), "mode_choice", GINT_TO_POINTER(mode)); } static void speex_encode_options_mode_auto_cb (GtkWidget * widget, gpointer data) { sw_sample * sample = (sw_sample *)data; sw_format * f = sample->sounddata->format; GtkWidget * dialog; GtkOptionMenu * option_menu; int mode; dialog = gtk_widget_get_toplevel (widget); option_menu = GTK_OPTION_MENU(g_object_get_data (G_OBJECT(dialog), "mode_menu")); #if (SPEEX_NB_MODES > 2) if (f->rate >= 32000) { mode = MODE_ULTRAWIDEBAND; } else #endif if (f->rate >= 16000) { mode = MODE_WIDEBAND; } else { mode = MODE_NARROWBAND; } gtk_option_menu_set_history (option_menu, mode); g_object_set_data (G_OBJECT(dialog), "mode_choice", GINT_TO_POINTER(mode)); } static void speex_encode_options_set_features (GtkWidget * dialog, int features) { GtkOptionMenu * option_menu; int i; option_menu = GTK_OPTION_MENU(g_object_get_data (G_OBJECT(dialog), "features_menu")); for (i = 0; feature_choices[i].name != NULL; i++) { if (feature_choices[i].number == features) gtk_option_menu_set_history (option_menu, i); } g_object_set_data (G_OBJECT(dialog), "features_choice", GINT_TO_POINTER(features)); } static void speex_encode_options_features_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog = GTK_WIDGET (data); int features; features = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "default")); g_object_set_data (G_OBJECT(dialog), "features_choice", GINT_TO_POINTER(features)); speex_encode_options_update_cb (dialog, data); } static void speex_encode_options_reset_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkObject * adj; int * i, features, quality, complexity, framepack; dialog = gtk_widget_get_toplevel (widget); /* Mode menu */ speex_encode_options_mode_auto_cb (widget, data); /* Features menu */ i = prefs_get_int (FEATURES_KEY); if (i == NULL) { features = DEFAULT_FEATURES; } else { features = *i; } speex_encode_options_set_features (dialog, features); /* Quality */ adj = GTK_OBJECT(g_object_get_data (G_OBJECT(dialog), "quality_adj")); i = prefs_get_int (QUALITY_KEY); if (i == NULL) { quality = DEFAULT_QUALITY; } else { quality = *i; } gtk_adjustment_set_value (GTK_ADJUSTMENT(adj), (float)quality); /* Complexity */ adj = GTK_OBJECT(g_object_get_data (G_OBJECT(dialog), "complexity_adj")); i = prefs_get_int (COMPLEXITY_KEY); if (i == NULL) { complexity = DEFAULT_COMPLEXITY; } else { complexity = *i; } gtk_adjustment_set_value (GTK_ADJUSTMENT(adj), (float)complexity); /* Framepack */ adj = GTK_OBJECT(g_object_get_data (G_OBJECT(dialog), "framepack_adj")); i = prefs_get_int (FRAMEPACK_KEY); if (i == NULL) { framepack = DEFAULT_FRAMEPACK; } else { framepack = *i; } gtk_adjustment_set_value (GTK_ADJUSTMENT(adj), (float)framepack); speex_encode_options_update_cb (widget, data); } static void speex_encode_options_default_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkObject * quality_adj; GtkObject * complexity_adj; GtkObject * framepack_adj; dialog = gtk_widget_get_toplevel (widget); /* Mode menu */ speex_encode_options_mode_auto_cb (widget, data); /* Features menu */ speex_encode_options_set_features (dialog, DEFAULT_FEATURES); /* Quality */ quality_adj = GTK_OBJECT(g_object_get_data (G_OBJECT(dialog), "quality_adj")); gtk_adjustment_set_value (GTK_ADJUSTMENT(quality_adj), DEFAULT_QUALITY); /* Complexity */ complexity_adj = GTK_OBJECT(g_object_get_data (G_OBJECT(dialog), "complexity_adj")); gtk_adjustment_set_value (GTK_ADJUSTMENT(complexity_adj), DEFAULT_COMPLEXITY); /* Framepack */ framepack_adj = GTK_OBJECT(g_object_get_data (G_OBJECT(dialog), "framepack_adj")); gtk_adjustment_set_value (GTK_ADJUSTMENT(framepack_adj), DEFAULT_FRAMEPACK); speex_encode_options_update_cb (widget, data); } static void remember_serialno_clicked_cb (GtkWidget * widget, gpointer data) { sw_sample * sample = (sw_sample *)data; gboolean active; active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget)); if (active) { sample_set_tmp_message (sample, _("Hack the planet!")); } else { sample_clear_tmp_message (sample); } } static gboolean randomise_serialno (gpointer data) { GtkWidget * entry = (GtkWidget *)data; gchar * new_text; new_text = g_strdup_printf ("%ld", random ()); gtk_entry_set_text (GTK_ENTRY (entry), new_text); g_free (new_text); return TRUE; } static void randomise_serialno_pressed_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkWidget * checkbutton; gint tag; dialog = gtk_widget_get_toplevel (widget); checkbutton = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "rem_serialno_chb")); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(checkbutton), FALSE); tag = gtk_timeout_add (30, randomise_serialno, data); g_object_set_data (G_OBJECT(widget), "tag", GINT_TO_POINTER(tag)); } static void randomise_serialno_released_cb (GtkWidget * widget, gpointer data) { gint tag; tag = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "tag")); gtk_timeout_remove (tag); } static GtkWidget * create_speex_encoding_options_dialog (sw_sample * sample, char * pathname) { GtkWidget * dialog; GtkWidget * ok_button, * button; GtkWidget * main_vbox; GtkWidget * ebox; GtkWidget * vbox; GtkWidget * hbox, * hbox2; GtkWidget * option_menu; GtkWidget * menu; GtkWidget * menuitem; GtkWidget * table; GtkWidget * label; GtkWidget * pixmap; GtkWidget * notebook; GtkWidget * checkbutton; GtkObject * quality_adj; GtkWidget * quality_hscale; GtkObject * complexity_adj; GtkWidget * complexity_hscale; GtkObject * framepack_adj; GtkWidget * framepack_spin; GtkWidget * entry; GtkWidget * separator; GtkTooltips * tooltips; GtkWidget *speex_logo; /* GtkStyle * style; */ int i; long * l; dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW(dialog), _("Sweep: Speex save options")); gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER); sweep_set_window_icon(GTK_WINDOW(dialog)); attach_window_close_accel(GTK_WINDOW(dialog)); g_object_set_data (G_OBJECT(dialog), "pathname", pathname); main_vbox = GTK_DIALOG(dialog)->vbox; ebox = gtk_event_box_new (); gtk_box_pack_start (GTK_BOX(main_vbox), ebox, FALSE, TRUE, 0); gtk_widget_set_style (ebox, style_bw); gtk_widget_show (ebox); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(ebox), vbox); gtk_widget_show (vbox); /* Ogg Speex pixmaps */ hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER(hbox), 4); gtk_widget_show (hbox); speex_logo = create_widget_from_xpm (dialog, speex_logo_xpm); gtk_box_pack_start (GTK_BOX(hbox), speex_logo, FALSE, FALSE, 0); gtk_widget_show (speex_logo); /* filename */ /* worth changing this over to pango? style = gtk_style_new (); gdk_font_unref (style->font); style->font = gdk_font_load("-*-helvetica-medium-r-normal-*-*-180-*-*-*-*-*-*"); gtk_widget_push_style (style); */ label = gtk_label_new (g_basename (pathname)); gtk_box_pack_start (GTK_BOX(vbox), label, TRUE, FALSE, 0); gtk_widget_show (label); /* gtk_widget_pop_style (); */ notebook = gtk_notebook_new (); gtk_box_pack_start (GTK_BOX(main_vbox), notebook, TRUE, TRUE, 4); gtk_widget_show (notebook); label = gtk_label_new (_("Speex encoding")); vbox = gtk_vbox_new (FALSE, 0); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), vbox, label); gtk_container_set_border_width (GTK_CONTAINER(vbox), 4); gtk_widget_show (vbox); /* Mode */ hbox = gtk_hbox_new (FALSE, 4); gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, TRUE, 4); gtk_widget_show (hbox); label = gtk_label_new (_("Mode:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); option_menu = gtk_option_menu_new (); gtk_box_pack_start (GTK_BOX (hbox), option_menu, TRUE, TRUE, 4); gtk_widget_show (option_menu); menu = gtk_menu_new (); for (i = 0; mode_choices[i].name != NULL; i++) { menuitem = gtk_menu_item_new_with_label (_(mode_choices[i].name)); gtk_menu_append (GTK_MENU(menu), menuitem); g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER(mode_choices[i].number)); gtk_widget_show (menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(speex_encode_options_mode_cb), dialog); } gtk_option_menu_set_menu (GTK_OPTION_MENU(option_menu), menu); g_object_set_data (G_OBJECT(dialog), "mode_menu", option_menu); button = gtk_button_new_with_label (_("Auto")); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(speex_encode_options_mode_auto_cb), sample); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Automatically select the encoding mode based on " "the sampling rate of the file."), NULL); separator = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX(vbox), separator, FALSE, TRUE, 4); gtk_widget_show (separator); /* Features */ option_menu = gtk_option_menu_new (); gtk_box_pack_start (GTK_BOX (vbox), option_menu, FALSE, FALSE, 4); gtk_widget_show (option_menu); menu = gtk_menu_new (); for (i = 0; feature_choices[i].name != NULL; i++) { menuitem = gtk_menu_item_new_with_label (_(feature_choices[i].name)); gtk_menu_append (GTK_MENU(menu), menuitem); g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER(feature_choices[i].number)); gtk_widget_show (menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(speex_encode_options_features_cb), dialog); if (feature_choices[i].desc != NULL) { tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, menuitem, _(feature_choices[i].desc), NULL); } } gtk_option_menu_set_menu (GTK_OPTION_MENU(option_menu), menu); g_object_set_data (G_OBJECT(dialog), "features_menu", option_menu); table = gtk_table_new (3, 2, TRUE); gtk_box_pack_start (GTK_BOX(vbox), table, FALSE, FALSE, 4); gtk_container_set_border_width (GTK_CONTAINER(table), 8); gtk_widget_show (table); /* quality */ hbox = gtk_hbox_new (FALSE, 4); /*gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 4);*/ gtk_table_attach (GTK_TABLE(table), hbox, 0, 1, 0, 1, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); /*gtk_container_set_border_width (GTK_CONTAINER(hbox), 12);*/ gtk_widget_show (hbox); label = gtk_label_new (_("Encoding quality:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); g_object_set_data (G_OBJECT (dialog), "quality_label", label); quality_adj = gtk_adjustment_new (DEFAULT_QUALITY, /* value */ 1.0, /* lower */ 11.0, /* upper */ 1.0, /* step incr */ 1.0, /* page incr */ 1.0 /* page size */ ); { /* How sucky ... we create a vbox in order to center the hscale within * its allocation, thus actually lining it up with its label ... */ GtkWidget * vbox_pants; vbox_pants = gtk_vbox_new (FALSE, 0); /*gtk_box_pack_start (GTK_BOX(hbox), vbox_pants, TRUE, TRUE, 0);*/ gtk_table_attach (GTK_TABLE(table), vbox_pants, 1, 2, 0, 1, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (vbox_pants); quality_hscale = gtk_hscale_new (GTK_ADJUSTMENT(quality_adj)); gtk_box_pack_start (GTK_BOX (vbox_pants), quality_hscale, TRUE, TRUE, 0); gtk_scale_set_draw_value (GTK_SCALE (quality_hscale), TRUE); gtk_scale_set_digits (GTK_SCALE (quality_hscale), 0); gtk_widget_set_usize (quality_hscale, gdk_screen_width() / 8, -1); gtk_widget_show (quality_hscale); g_object_set_data (G_OBJECT (dialog), "quality_hscale", quality_hscale); label = gtk_label_new (NULL); gtk_box_pack_start (GTK_BOX(vbox_pants), label, FALSE, FALSE, 0); gtk_widget_show (label); } tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, quality_hscale, _("Encoding quality between 0 (lowest quality, " "smallest file) and 10 (highest quality, largest " "file)."), NULL); g_object_set_data (G_OBJECT (dialog), "quality_adj", quality_adj); /* Bit rate */ checkbutton = gtk_check_button_new_with_label (_("Enable bitrate management")); gtk_table_attach (GTK_TABLE(table), checkbutton, 0, 2, 1, 2, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (checkbutton); g_signal_connect (G_OBJECT(checkbutton), "toggled", G_CALLBACK(speex_encode_options_update_cb), dialog); g_object_set_data (G_OBJECT (dialog), "br_chb", checkbutton); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, checkbutton, _("For non-VBR (constant bitrate) encoding, " "this sets the maximum bitrate." "For VBR encoding, this sets the average bitrate."), NULL); label = gtk_label_new (_("Average bitrate")); gtk_table_attach (GTK_TABLE(table), label, 0, 1, 2, 3, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (label); g_object_set_data (G_OBJECT (dialog), "br_label", label); hbox = gtk_hbox_new (FALSE, 0); gtk_table_attach (GTK_TABLE(table), hbox, 1, 2, 2, 3, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (hbox); entry = gtk_entry_new (); gtk_box_pack_start (GTK_BOX(hbox), entry, TRUE, TRUE, 0); gtk_widget_show (entry); g_object_set_data (G_OBJECT (dialog), "br_entry", entry); label = gtk_label_new (_("bps")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); g_object_set_data (G_OBJECT (dialog), "br_units", label); label = gtk_label_new (_("Extra")); vbox = gtk_vbox_new (FALSE, 0); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), vbox, label); gtk_container_set_border_width (GTK_CONTAINER(vbox), 4); gtk_widget_show (vbox); table = gtk_table_new (2, 2, TRUE); gtk_box_pack_start (GTK_BOX(vbox), table, FALSE, FALSE, 4); /*gtk_container_set_border_width (GTK_CONTAINER(table), 8);*/ gtk_widget_show (table); /* Encoder complexity */ hbox = gtk_hbox_new (FALSE, 4); /*gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 4);*/ gtk_table_attach (GTK_TABLE(table), hbox, 0, 1, 0, 1, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); /*gtk_container_set_border_width (GTK_CONTAINER(hbox), 12);*/ gtk_widget_show (hbox); label = gtk_label_new (_("Encoding complexity:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); complexity_adj = gtk_adjustment_new (DEFAULT_COMPLEXITY, /* value */ 1.0, /* lower */ 11.0, /* upper */ 1.0, /* step incr */ 1.0, /* page incr */ 1.0 /* page size */ ); { /* How sucky ... we create a vbox in order to center the hscale within * its allocation, thus actually lining it up with its label ... */ GtkWidget * vbox_pants; vbox_pants = gtk_vbox_new (FALSE, 0); /*gtk_box_pack_start (GTK_BOX(hbox), vbox_pants, TRUE, TRUE, 0);*/ gtk_table_attach (GTK_TABLE(table), vbox_pants, 1, 2, 0, 1, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (vbox_pants); complexity_hscale = gtk_hscale_new (GTK_ADJUSTMENT(complexity_adj)); gtk_box_pack_start (GTK_BOX (vbox_pants), complexity_hscale, TRUE, TRUE, 0); gtk_scale_set_draw_value (GTK_SCALE (complexity_hscale), TRUE); gtk_scale_set_digits (GTK_SCALE (complexity_hscale), 0); gtk_widget_set_usize (complexity_hscale, gdk_screen_width() / 8, -1); gtk_widget_show (complexity_hscale); label = gtk_label_new (NULL); gtk_box_pack_start (GTK_BOX(vbox_pants), label, FALSE, FALSE, 0); gtk_widget_show (label); } tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, complexity_hscale, _("This sets the encoding speed/quality tradeoff " "between 0 (faster encoding) " "and 10 (slower encoding)"), NULL); g_object_set_data (G_OBJECT (dialog), "complexity_adj", complexity_adj); /* Frames per packet */ hbox = gtk_hbox_new (FALSE, 4); /*gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 4);*/ gtk_table_attach (GTK_TABLE(table), hbox, 0, 1, 1, 2, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); /*gtk_container_set_border_width (GTK_CONTAINER(hbox), 12);*/ gtk_widget_show (hbox); label = gtk_label_new (_("Speex frames per Ogg packet:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); hbox = gtk_hbox_new (FALSE, 4); /*gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 4);*/ gtk_table_attach (GTK_TABLE(table), hbox, 1, 2, 1, 2, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); /*gtk_container_set_border_width (GTK_CONTAINER(hbox), 12);*/ gtk_widget_show (hbox); framepack_adj = gtk_adjustment_new (DEFAULT_FRAMEPACK, /* value */ 1.0, /* lower */ 10.0, /* upper */ 1.0, /* step incr */ 1.0, /* page incr */ 1.0 /* page size */ ); framepack_spin = gtk_spin_button_new (GTK_ADJUSTMENT(framepack_adj), 1.0, 0); gtk_box_pack_start (GTK_BOX (hbox), framepack_spin, FALSE, FALSE, 0); gtk_widget_show (framepack_spin); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, framepack_spin, _("Number of Speex frames to pack into each Ogg " "packet. Higher values save space at low " "bitrates."), NULL); g_object_set_data (G_OBJECT (dialog), "framepack_adj", framepack_adj); /* Remember / Reset */ hbox = gtk_hbox_new (FALSE, 4); gtk_box_pack_start (GTK_BOX(main_vbox), hbox, FALSE, FALSE, 4); gtk_container_set_border_width (GTK_CONTAINER(hbox), 12); gtk_widget_show (hbox); checkbutton = gtk_check_button_new_with_label (_("Remember these encoding options")); gtk_box_pack_start (GTK_BOX (hbox), checkbutton, TRUE, TRUE, 0); gtk_widget_show (checkbutton); g_object_set_data (G_OBJECT (dialog), "rem_encode_chb", checkbutton); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(checkbutton), TRUE); hbox2 = gtk_hbox_new (TRUE, 4); gtk_box_pack_start (GTK_BOX (hbox), hbox2, FALSE, TRUE, 0); gtk_widget_show (hbox2); button = gtk_button_new_with_label (_("Reset")); gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(speex_encode_options_reset_cb), sample); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Reset to the last remembered encoding options."), NULL); /* Call the reset callback now to set remembered options */ speex_encode_options_reset_cb (button, sample); button = gtk_button_new_with_label (_("Defaults")); gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(speex_encode_options_default_cb), sample); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Automatically select best encoding options for this file."), NULL); /* Ogg stream */ label = gtk_label_new (_("Ogg stream")); vbox = gtk_vbox_new (FALSE, 4); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), vbox, label); gtk_widget_show (vbox); /* Stream serial no. */ hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER(hbox), 12); gtk_widget_show (hbox); label = gtk_label_new (_("Ogg stream serial number:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); entry = gtk_entry_new (); gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 4); gtk_widget_show (entry); g_object_set_data (G_OBJECT (dialog), "serialno_entry", entry); /* Remember serialno ? */ hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); button = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 8); gtk_widget_show (button); checkbutton = gtk_check_button_new_with_label (_("Remember this serial number")); gtk_box_pack_start (GTK_BOX (hbox), checkbutton, FALSE, TRUE, 0); gtk_widget_show (checkbutton); g_signal_connect (G_OBJECT(checkbutton), "toggled", G_CALLBACK(remember_serialno_clicked_cb), sample); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, checkbutton, _("Remember this serial number for future re-use.\n" "USE OF THIS OPTION IS NOT RECOMMENDED.\n" "Each encoded file should have a different " "serial number; " "re-use of Ogg serial numbers in different files " "may create incompatabilities with streaming " "applications. " "This option is provided for bitstream engineering " "purposes only.\n" "If this option is not checked, new serial numbers " "will be randomly generated for each file encoded."), NULL); g_object_set_data (G_OBJECT (dialog), "rem_serialno_chb", checkbutton); l = prefs_get_long (SERIALNO_KEY); if (l == NULL) { randomise_serialno (entry); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(checkbutton), FALSE); } else { gtk_entry_set_text (GTK_ENTRY(entry), g_strdup_printf ("%ld", *l)); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(checkbutton), TRUE); } /* Randomise serialno! */ button = gtk_button_new_with_label (_("Randomize!")); gtk_container_set_border_width (GTK_CONTAINER(button), 64); gtk_box_pack_start (GTK_BOX (vbox), button, TRUE, TRUE, 0); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Generate a random serial number for the " "Ogg bitstream. The number will change while " "this button is held down."), NULL); g_signal_connect (G_OBJECT(button), "pressed", G_CALLBACK(randomise_serialno_pressed_cb), entry); g_signal_connect (G_OBJECT(button), "released", G_CALLBACK(randomise_serialno_released_cb), entry); /* About */ label = gtk_label_new (_("About")); ebox = gtk_event_box_new (); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), ebox, label); gtk_widget_set_style (ebox, style_bw); gtk_widget_show (ebox); gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK(notebook), ebox, TRUE, TRUE, GTK_PACK_END); vbox = gtk_vbox_new (FALSE, 16); gtk_container_add (GTK_CONTAINER(ebox), vbox); gtk_container_set_border_width (GTK_CONTAINER(vbox), 8); gtk_widget_show (vbox); label = gtk_label_new (_("Speex is a high quality speech codec designed for\n" "voice over IP (VoIP) and file-based compression.\n" "It is free, open and unpatented.")); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); hbox = gtk_hbox_new (FALSE, 16); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); label = gtk_label_new (_("Ogg, Speex, Xiph.org Foundation and their logos\n" "are trademarks (tm) of the Xiph.org Foundation.\n" "Used with permission.")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 8); gtk_widget_show (label); pixmap = create_widget_from_xpm (dialog, xifish_xpm); gtk_box_pack_start (GTK_BOX(hbox), pixmap, FALSE, FALSE, 8); gtk_widget_show (pixmap); button = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX(vbox), button, FALSE, FALSE, 8); gtk_widget_show (button); label = gtk_label_new (_("This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n\n")); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* OK */ ok_button = gtk_button_new_with_label (_("Save")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (ok_button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), ok_button, TRUE, TRUE, 0); gtk_widget_show (ok_button); g_signal_connect (G_OBJECT(ok_button), "clicked", G_CALLBACK (speex_save_options_dialog_ok_cb), sample); /* Cancel */ button = gtk_button_new_with_label (_("Don't save")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (speex_save_options_dialog_cancel_cb), sample); gtk_widget_grab_default (ok_button); return (dialog); } int speex_save_options_dialog (sw_sample * sample, char * pathname) { GtkWidget * dialog; dialog = create_speex_encoding_options_dialog (sample, pathname); gtk_widget_show (dialog); return 0; } #endif /* HAVE_SPEEX */ sweep-0.9.3/src/sample-display.c0000644000175000017500000022321510777660261015264 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This widget was originally based on sample-display by Michael Krause * in ``The Real Soundtracker'', Copyright (C) 1998-1999 Michael Krause * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "sample-display.h" #include #include #include #include "sweep_app.h" #include "sample.h" #include "head.h" #include "cursors.h" #include "play.h" #include "callbacks.h" #include "edit.h" #include "undo_dialog.h" /*#define DEBUG*/ /*#define DOUBLE_BUFFER */ /*#define ALWAYS_REDRAW_ALL*/ /*#define LEGACY_DRAW_MODE*/ #define SEL_SCRUBS extern GdkCursor * sweep_cursors[]; /* Maximum number of samples to consider per pixel */ #define STEP_MAX 32 /* Whether or not to compile in support for * drawing the crossing vectors */ /* #define DRAW_CROSSING_VECTORS */ #define PIXEL_TO_OFFSET(p) \ ((sw_framecount_t)(((gdouble)(p)) * (((gdouble)(s->view->end - s->view->start)) / ((gdouble)s->width)))) #define XPOS_TO_OFFSET(x) \ CLAMP(s->view->start + PIXEL_TO_OFFSET(x), 0, s->view->sample->sounddata->nr_frames) #define SAMPLE_TO_PIXEL(n) \ ((sw_framecount_t)((gdouble)(n) * (gdouble)s->width / (gdouble)(s->view->end - s->view->start))) #define OFFSET_TO_XPOS(o) \ SAMPLE_TO_PIXEL((o) - s->view->start) #define OFFSET_RANGE(l, x) ((x) < 0 ? 0 : ((x) >= (l) ? (l) - 1 : (x))) #define SET_CURSOR(w, c) \ gdk_window_set_cursor ((w)->window, sweep_cursors[SWEEP_CURSOR_##c]) #define YPOS_TO_CHANNEL(y) \ (s->view->sample->sounddata->format->channels * y / s->height) #define CHANNEL_HEIGHT \ (s->height / s->view->sample->sounddata->format->channels) #define YPOS_TO_VALUE(y) \ ((sw_audio_t)(CHANNEL_HEIGHT/2 - (y - (YPOS_TO_CHANNEL(y) * CHANNEL_HEIGHT)))/(CHANNEL_HEIGHT/2)) #if 0 #define YPOS_TO_CHANNEL(y) \ (s->view->sample->sounddata->format->channels == 2 ? (y > s->height/2) : 0) #define YPOS_TO_VALUE_1(y) \ ((sw_audio_t)(s->height/2 - y)/(s->height/2)) #define YPOS_TO_VALUE_L(y) \ ((sw_audio_t)(s->height/4 - y)/(s->height/4)) #define YPOS_TO_VALUE_R(y) \ ((sw_audio_t)(3*s->height/4 - y)/(s->height/4)) #define YPOS_TO_VALUE_2(y) \ (YPOS_TO_CHANNEL(y) ? YPOS_TO_VALUE_R(y) : YPOS_TO_VALUE_L(y)) #endif #define MARCH_INTERVAL 300 #define PULSE_INTERVAL 450 #define HAND_SCROLL_INTERVAL 50 extern sw_view * last_tmp_view; static int last_button; /* button index which started the last selection; * This is global to allow comparison for * last_tmp_view */ #if 1 static const int default_colors[] = { 200, 200, 193, /* bg */ 199, 203, 158, /* fg */ 0, 0xaa, 0, /* play (mask) */ 220, 230, 255, /* user */ 100, 100, 100, /* zero */ 240, 230, 240, /* sel box */ 110, 110, 100, /* tmp_sel XOR mask */ #if 1 108, 115, 134, /* sel bg */ #else 62, 68, 118, /* sel bg */ #endif 166, 166, 154, /* minmax */ 240, 250, 240, /* highlight */ 81, 101, 81, /* lowlight */ 230, 0, 0, /* rec */ }; #else static const int default_colors[] = { #if 0 86, 86, 80, /* bg */ #elif 0 220, 220, 210, /* bg */ #else 200, 200, 193, /* bg */ #endif 199, 203, 158, /* fg */ 20, 230, 0, /* play */ 200, 200, 200, /* user */ 200, 200, 200, /* zero */ 240, 230, 240, /* sel box */ 110, 110, 100, /* tmp_sel XOR mask */ 118, 118, 108, /* sel bg XOR mask */ 154, 166, 154, /* minmax */ 219, 219, 211, /* highlight */ 81, 101, 81, /* lowlight */ 240, 0, 0, /* rec */ }; #endif static const int bg_colors[] = { 250, 250, 237, /* black bg */ 200, 200, 193, /* red bg */ 147, 147, 140, /* orange bg */ 160, 160, 150, /* yellow bg */ #if 0 210, 210, 193, /* blue bg */ #else 250, 250, 237, /* blue bg */ #endif 160, 160, 150, /* white bg */ 0, 0, 0, /* greenscreen bg */ 60, 70, 170, /* bluescreen bg */ }; static const int fg_colors[] = { 80, 80, 60, /* black fg */ 220, 80, 40, /* red fg */ 220, 170, 120, /* orange fg */ 199, 203, 158, /* yellow fg */ 128, 138, 184, /* blue fg */ 230, 240, 255, /* white fg */ 0, 220, 0, /* greenscreen fg */ 240, 240, 240, /* bluescreen fg */ }; /* Values for s->selecting */ enum { SELECTING_NOTHING = 0, SELECTING_SELECTION_START, SELECTING_SELECTION_END, SELECTING_PAN_WINDOW, SELECTING_PLAYMARKER, SELECTING_PENCIL, SELECTING_NOISE, SELECTING_HAND, }; enum { SELECTION_MODE_NONE = 0, /* Not selecting; used for consistency check. */ SELECTION_MODE_REPLACE, SELECTION_MODE_INTERSECT, SELECTION_MODE_SUBTRACT, SELECTION_MODE_MAX }; enum { SIG_SELECTION_CHANGED, SIG_WINDOW_CHANGED, SIG_MOUSE_OFFSET_CHANGED, LAST_SIGNAL }; static gchar * selection_mode_names[SELECTION_MODE_MAX] = { N_(""), /* NONE */ N_("New selection"), /* REPLACE */ N_("Selection: add/modify region"), /* INTERSECT */ N_("Selection: subtract region"), /* SUBTRACT */ }; #define IS_INITIALIZED(s) (s->view != NULL) static guint sample_display_signals[LAST_SIGNAL] = { 0 }; static gint8 sel_dash_list[2] = { 4, 4 }; /* Equivalent to GDK's default * dash list. */ void sample_display_refresh (SampleDisplay *s) { sw_sample * sample; g_return_if_fail(s != NULL); g_return_if_fail(IS_SAMPLE_DISPLAY(s)); if(!IS_INITIALIZED(s)) return; sample = s->view->sample; s->old_user_offset_x = s->user_offset_x = OFFSET_TO_XPOS(sample->user_offset); s->old_play_offset_x = s->play_offset_x = OFFSET_TO_XPOS(sample->play_head->offset); if (sample->rec_head != NULL) { s->old_rec_offset_x = s->rec_offset_x = OFFSET_TO_XPOS(sample->rec_head->offset); } gtk_widget_queue_draw_area (GTK_WIDGET(s), 0, 0, s->width, s->height); } sw_framecount_t sample_display_get_mouse_offset (SampleDisplay * s) { int x, y; GdkModifierType state; gdk_window_get_pointer (GTK_WIDGET(s)->window, &x, &y, &state); return XPOS_TO_OFFSET(x); } void sample_display_set_view (SampleDisplay *s, sw_view *view) { g_return_if_fail(s != NULL); g_return_if_fail(IS_SAMPLE_DISPLAY(s)); s->view = view; s->old_user_offset_x = -1; s->user_offset_x = -1; s->old_play_offset_x = -1; s->play_offset_x = -1; /* gtk_signal_emit(GTK_OBJECT(s), sample_display_signals[SIG_WINDOW_CHANGED], s->view->start, s->view->start + (s->view->end - s->view->start));*/ s->selecting = SELECTING_NOTHING; s->selection_mode = SELECTION_MODE_NONE; gtk_widget_queue_draw(GTK_WIDGET(s)); } void sample_display_refresh_user_marker (SampleDisplay *s) { sw_sample * sample; gint x, width; g_return_if_fail(s != NULL); g_return_if_fail(IS_SAMPLE_DISPLAY(s)); if(!IS_INITIALIZED(s)) return; sample = s->view->sample; s->user_offset_x = OFFSET_TO_XPOS(sample->user_offset); /* paint changed user cursor pos */ if (s->old_user_offset_x != s->user_offset_x) { x = CLAMP (s->old_user_offset_x - 15, 0, s->width); width = MIN (s->width - x, 29); gtk_widget_queue_draw_area (GTK_WIDGET(s), x, 0, width, s->height); } /* paint cursor */ if (s->user_offset_x >= 0 && s->user_offset_x <= s->width) { x = CLAMP (s->user_offset_x - 15, 0, s->width); width = MIN (s->width - x, 29); gtk_widget_queue_draw_area (GTK_WIDGET(s), x, 0, width, s->height); s->old_user_offset_x = s->user_offset_x; } } void sample_display_refresh_play_marker (SampleDisplay *s) { sw_sample * sample; sw_head * head; gint x, width; g_return_if_fail(s != NULL); g_return_if_fail(IS_SAMPLE_DISPLAY(s)); if(!IS_INITIALIZED(s)) return; sample = s->view->sample; head = sample->play_head; s->play_offset_x = OFFSET_TO_XPOS(head->offset); /* paint play offset */ if (s->old_play_offset_x != s->play_offset_x) { x = CLAMP (s->old_play_offset_x - 15, 0, s->width); width = MIN (s->width - x, 29); gtk_widget_queue_draw_area (GTK_WIDGET(s), x, 0, width, s->height); } if (s->play_offset_x >= 0 && s->play_offset_x <= s->width) { x = CLAMP (s->play_offset_x - 15, 0, s->width); width = MIN (s->width - x, 29); gtk_widget_queue_draw_area (GTK_WIDGET(s), x, 0, width, s->height); s->old_play_offset_x = s->play_offset_x; } } void sample_display_refresh_rec_marker (SampleDisplay *s) { sw_sample * sample; sw_head * rec_head; gint x, width; g_return_if_fail(s != NULL); g_return_if_fail(IS_SAMPLE_DISPLAY(s)); if(!IS_INITIALIZED(s)) return; sample = s->view->sample; rec_head = sample->rec_head; if (rec_head == NULL) return; s->rec_offset_x = OFFSET_TO_XPOS(rec_head->offset); /* paint rec offset */ if (s->old_rec_offset_x != s->rec_offset_x) { x = CLAMP (s->old_rec_offset_x - 15, 0, s->width); width = MIN (s->width - x, 29); gtk_widget_queue_draw_area (GTK_WIDGET(s), x, 0, width, s->height); } if (s->rec_offset_x >= 0 && s->rec_offset_x <= s->width) { x = CLAMP (s->rec_offset_x - 15, 0, s->width); width = MIN (s->width - x, 29); gtk_widget_queue_draw_area (GTK_WIDGET(s), x, 0, width, s->height); s->old_rec_offset_x = s->rec_offset_x; } } static void sample_display_refresh_sels (SampleDisplay * s) { int x, x2; sw_sample * sample; GList * gl; sw_sel * sel; g_return_if_fail(s != NULL); g_return_if_fail(IS_SAMPLE_DISPLAY(s)); if(!IS_INITIALIZED(s)) return; sample = s->view->sample; /* paint marching ants */ /* real selection */ for (gl = sample->sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; x = OFFSET_TO_XPOS(sel->sel_start); x2 = OFFSET_TO_XPOS(sel->sel_end); if ((x >= 0) && (x <= s->width)) { gtk_widget_queue_draw_area (GTK_WIDGET(s), x, 0, 1, s->height); } if ((x2 >= 0) && (x2 <= s->width)) { gtk_widget_queue_draw_area (GTK_WIDGET(s), x2, 0, 1, s->height); } if ((x <= s->width) && (x2 >= 0)) { x = CLAMP (x, 0, s->width); x2 = CLAMP (x2, 0, s->width); gtk_widget_queue_draw_area (GTK_WIDGET(s), x, 0, x2 - x, 1); gtk_widget_queue_draw_area (GTK_WIDGET(s), x, s->height - 1, x2 - x, 1); } } /* temporary selection */ sel = sample->tmp_sel; if (sel) { x = OFFSET_TO_XPOS(sel->sel_start); x2 = OFFSET_TO_XPOS(sel->sel_end); if ((x >= 0) && (x <= s->width)) { gtk_widget_queue_draw_area (GTK_WIDGET(s), x, 0, 1, s->height); } if ((x2 >= 0) && (x2 <= s->width)) { gtk_widget_queue_draw_area (GTK_WIDGET(s), x2, 0, 1, s->height); } if ((x <= s->width) && (x2 >= 0)) { x = CLAMP (x, 0, s->width); x2 = CLAMP (x2, 0, s->width); gtk_widget_queue_draw_area (GTK_WIDGET(s), x, 0, x2 - x, 1); gtk_widget_queue_draw_area (GTK_WIDGET(s), x, s->height - 1, x2 - x, 1); } } } void sample_display_set_cursor (SampleDisplay * s, GdkCursor * cursor) { gdk_window_set_cursor (GTK_WIDGET(s)->window, cursor); } void sample_display_set_default_cursor (SampleDisplay * s) { GdkCursor * cursor; switch (s->view->current_tool) { case TOOL_SELECT: cursor = sweep_cursors[SWEEP_CURSOR_CROSSHAIR]; break; case TOOL_ZOOM: cursor = sweep_cursors[SWEEP_CURSOR_ZOOM_IN]; break; case TOOL_MOVE: cursor = sweep_cursors[SWEEP_CURSOR_MOVE]; break; case TOOL_SCRUB: cursor = sweep_cursors[SWEEP_CURSOR_NEEDLE]; break; case TOOL_PENCIL: cursor = sweep_cursors[SWEEP_CURSOR_PENCIL]; break; case TOOL_NOISE: cursor = sweep_cursors[SWEEP_CURSOR_NOISE]; break; case TOOL_HAND: cursor = sweep_cursors[SWEEP_CURSOR_HAND_OPEN]; break; default: cursor = NULL; break; } gdk_window_set_cursor (GTK_WIDGET(s)->window, cursor); } static void sample_display_set_intersect_cursor (SampleDisplay * s) { sw_sample * sample = s->view->sample; GtkWidget * widget = GTK_WIDGET(s); /* Check if there are other selection regions. * NB. This assumes that tmp_sel has already been * set. */ if (sample_sel_nr_regions(sample) > 0) { SET_CURSOR(widget, HORIZ_PLUS); } else { SET_CURSOR(widget, HORIZ); } } static void sample_display_set_subtract_cursor (SampleDisplay * s) { sw_sample * sample = s->view->sample; GtkWidget * widget = GTK_WIDGET(s); /* Check if there are other selection regions. * NB. This assumes that tmp_sel has already been * set. */ if (sample_sel_nr_regions(sample) > 0) { SET_CURSOR(widget, HORIZ_MINUS); } else { SET_CURSOR(widget, HORIZ); } } void sample_display_set_window (SampleDisplay *s, sw_framecount_t start, sw_framecount_t end) { sw_framecount_t len, vlen; g_return_if_fail(s != NULL); g_return_if_fail(IS_SAMPLE_DISPLAY(s)); len = s->view->sample->sounddata->nr_frames; vlen = end - start; g_return_if_fail(end >= start); if (vlen > len) { /* Align to middle if entire length of sample is visible */ start = (len - vlen) / 2; end = start + vlen; } else if (vlen == 0 && len > 0) { /* Zoom normal if window is zero but there is data; eg. after pasting * into an empty buffer */ start = 0; end = MIN (len, s->width * 1024); } s->view->start = start; s->view->end = end; sample_display_refresh_user_marker (s); g_signal_emit_by_name(GTK_OBJECT(s), "window-changed"); s->mouse_offset = XPOS_TO_OFFSET (s->mouse_x); g_signal_emit_by_name(GTK_OBJECT(s), "mouse-offset-changed"); gtk_widget_queue_draw(GTK_WIDGET(s)); } static void sample_display_init_display (SampleDisplay *s, int w, int h) { GdkWindow * window; GdkVisual * visual; sw_framecount_t len, vlen, vlendelta; /* If the window was already displaying data before this event * was received, we are handling a resize event. * We want to ensure that the relative size of displayed data * remains constant over the resize -- the window simply 'uncovers' * or 'covers' the visualisation. */ if (s->width > 1) { len = s->view->sample->sounddata->nr_frames; vlen = s->view->end - s->view->start; /* If we're already viewing EXACTLY the entire sample, * and dealing with a widening of the window, then * allow the visualisation to stretch. */ if (s->view->start == 0 && vlen == len && w > s->width) goto stretch; /* * Funky integer error minimisation: this gives non-lossy results, * as opposed to just using: * * s->view->end = s->view->start + * (s->view->end - s->view->start) * w / s->width; * * However there is a noticeable waver when resizing the display * when zoomed in far enough that individual samples are visible. * * The alternative is to represent s->view->end (from which the * visible length is determined) as a floating point number. */ vlendelta = vlen * (w - s->width) / s->width; if (vlen+vlendelta > len) { s->view->start = (len - (vlen+vlendelta)) / 2; s->view->end = s->view->start + vlen + vlendelta; } else if (s->view->start < 0) { s->view->end += vlendelta - s->view->start; s->view->start = 0; } else if (s->view->end > len) { s->view->start = s->view->end - vlen - vlendelta; s->view->end = len; } else { s->view->end += vlendelta; } g_signal_emit_by_name(GTK_OBJECT(s), "window-changed"); } stretch: s->width = w; s->height = h; window = GTK_WIDGET(s)->window; visual = gdk_rgb_get_visual(); #if DOUBLE_BUFFER if(s->backing_pixmap) { g_object_unref(s->backing_pixmap); } s->backing_pixmap = gdk_pixmap_new (GTK_WIDGET(s)->window, w, h, visual->depth); #endif } static void sample_display_size_request (GtkWidget *widget, GtkRequisition *requisition) { requisition->width = 40; requisition->height = 20; } static void sample_display_size_allocate (GtkWidget *widget, GtkAllocation *allocation) { SampleDisplay *s; g_return_if_fail (widget != NULL); g_return_if_fail (IS_SAMPLE_DISPLAY (widget)); g_return_if_fail (allocation != NULL); widget->allocation = *allocation; if (GTK_WIDGET_REALIZED (widget)) { s = SAMPLE_DISPLAY (widget); gdk_window_move_resize (widget->window, allocation->x, allocation->y, allocation->width, allocation->height); sample_display_init_display(s, allocation->width, allocation->height); } } static void sample_display_realize (GtkWidget *widget) { GdkWindowAttr attributes; gint attributes_mask; SampleDisplay *s; gint i; g_return_if_fail (widget != NULL); g_return_if_fail (IS_SAMPLE_DISPLAY (widget)); GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED); s = SAMPLE_DISPLAY(widget); attributes.x = widget->allocation.x; attributes.y = widget->allocation.y; attributes.width = widget->allocation.width; attributes.height = widget->allocation.height; attributes.wclass = GDK_INPUT_OUTPUT; attributes.window_type = GDK_WINDOW_CHILD; #if 0 attributes.event_mask = gtk_widget_get_events (widget) | GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_FOCUS_CHANGE_MASK | GDK_KEY_PRESS_MASK; #else attributes.event_mask = GDK_ALL_EVENTS_MASK; #endif attributes.visual = gtk_widget_get_visual (widget); attributes.colormap = gtk_widget_get_colormap (widget); attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP; widget->window = gdk_window_new (widget->parent->window, &attributes, attributes_mask); widget->style = gtk_style_attach (widget->style, widget->window); s->width = 0; s->bg_gc = gdk_gc_new(widget->window); gdk_gc_set_foreground(s->bg_gc, &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->colors[SAMPLE_DISPLAYCOL_BG]); s->fg_gc = gdk_gc_new(widget->window); gdk_gc_set_foreground(s->fg_gc, &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->colors[SAMPLE_DISPLAYCOL_FG]); s->zeroline_gc = gdk_gc_new(widget->window); gdk_gc_set_foreground(s->zeroline_gc, &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->colors[SAMPLE_DISPLAYCOL_ZERO]); s->play_gc = gdk_gc_new(widget->window); gdk_gc_set_foreground(s->play_gc, &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->colors[SAMPLE_DISPLAYCOL_PLAY]); gdk_gc_set_function (s->play_gc, GDK_OR_REVERSE); s->user_gc = gdk_gc_new(widget->window); gdk_gc_set_foreground(s->user_gc, &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->colors[SAMPLE_DISPLAYCOL_PAUSE]); s->rec_gc = gdk_gc_new(widget->window); gdk_gc_set_foreground(s->rec_gc, &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->colors[SAMPLE_DISPLAYCOL_REC]); s->sel_gc = gdk_gc_new(widget->window); gdk_gc_set_foreground(s->sel_gc, &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->colors[SAMPLE_DISPLAYCOL_SEL]); gdk_gc_set_line_attributes(s->sel_gc, 1 /* line width */, GDK_LINE_DOUBLE_DASH, GDK_CAP_BUTT, GDK_JOIN_MITER); s->tmp_sel_gc = gdk_gc_new(widget->window); gdk_gc_set_foreground(s->tmp_sel_gc, &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->colors[SAMPLE_DISPLAYCOL_TMP_SEL]); gdk_gc_set_function (s->tmp_sel_gc, GDK_XOR); s->crossing_gc = gdk_gc_new(widget->window); gdk_gc_set_foreground(s->crossing_gc, &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->colors[SAMPLE_DISPLAYCOL_CROSSING]); s->minmax_gc = gdk_gc_new (widget->window); gdk_gc_set_foreground(s->minmax_gc, &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->colors[SAMPLE_DISPLAYCOL_MINMAX]); s->highlight_gc = gdk_gc_new (widget->window); gdk_gc_set_foreground(s->highlight_gc, &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->colors[SAMPLE_DISPLAYCOL_HIGHLIGHT]); s->lowlight_gc = gdk_gc_new (widget->window); gdk_gc_set_foreground(s->lowlight_gc, &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->colors[SAMPLE_DISPLAYCOL_LOWLIGHT]); for (i = 0; i < VIEW_COLOR_MAX; i++) { s->bg_gcs[i] = gdk_gc_new (widget->window); gdk_gc_set_foreground(s->bg_gcs[i], &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->bg_colors[i]); s->fg_gcs[i] = gdk_gc_new (widget->window); gdk_gc_set_foreground(s->fg_gcs[i], &SAMPLE_DISPLAY_CLASS(GTK_WIDGET_GET_CLASS(widget))->fg_colors[i]); } sample_display_init_display(s, attributes.width, attributes.height); sample_display_set_default_cursor (s); gdk_window_set_user_data (widget->window, widget); } static void sample_display_draw_data_channel (GdkDrawable * win, const SampleDisplay * s, int x, int y, int width, int height, int channel) { GList * gl; GdkGC * gc, * fg_gc; sw_sel * sel; int x1, x2, y1; sw_audio_t vhigh, vlow; sw_audio_intermediate_t totpos, totneg; sw_audio_t d, maxpos, avgpos, minneg, avgneg; sw_audio_t prev_maxpos, prev_minneg; sw_framecount_t i, step, nr_frames, nr_pos, nr_neg; sw_sample * sample; const int channels = s->view->sample->sounddata->format->channels; sample = s->view->sample; fg_gc = s->fg_gcs[sample->color]; gdk_draw_rectangle(win, s->bg_gcs[sample->color], TRUE, x, y, width, height); /* Draw real selection */ for (gl = sample->sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; x1 = OFFSET_TO_XPOS(sel->sel_start); x1 = CLAMP(x1, x, x+width); x2 = OFFSET_TO_XPOS(sel->sel_end); x2 = CLAMP(x2, x, x+width); if (x2 - x1 > 1){ gdk_draw_rectangle (win, s->crossing_gc, TRUE, x1, y, x2 - x1, y + height -1); } } /* Draw temporary selection */ sel = sample->tmp_sel; if (sel) { if (sel->sel_start != sel->sel_end) { x1 = OFFSET_TO_XPOS(sel->sel_start); x1 = CLAMP(x1, x, x+width); x2 = OFFSET_TO_XPOS(sel->sel_end); x2 = CLAMP(x2, x, x+width); if (x2 - x1 > 1) { gdk_draw_rectangle (win, s->tmp_sel_gc, TRUE, x1, y, x2 - x1, y + height -1); } } } vhigh = s->view->vhigh; vlow = s->view->vlow; #define YPOS(v) CLAMP(y + height - ((((v) - vlow) * height) \ / (vhigh - vlow)), y, y+height) /* Draw zero and 6db lines */ y1 = YPOS(0.5); gdk_draw_line(win, s->zeroline_gc, x, y1, x + width - 1, y1); y1 = YPOS(0.0); gdk_draw_line(win, s->zeroline_gc, x, y1, x + width - 1, y1); y1 = YPOS(-0.5); gdk_draw_line(win, s->zeroline_gc, x, y1, x + width - 1, y1); totpos = totneg = 0.0; maxpos = minneg = prev_maxpos = prev_minneg = 0.0; nr_frames = sample->sounddata->nr_frames; /* 'step' ensures that no more than STEP_MAX values get looked at * per pixel */ step = MAX (1, PIXEL_TO_OFFSET(1)/STEP_MAX); #ifdef LEGACY_DRAW_MODE { int py, ty; sw_audio_t peak; py = y+height/2; while (width >= 0) { peak = 0; for (i = OFFSET_RANGE(nr_frames, XPOS_TO_OFFSET(x)); i < OFFSET_RANGE(nr_frames, XPOS_TO_OFFSET(x+1)); i+=step) { d = ((sw_audio_t *)sample->sounddata->data)[i*channels + channel]; if (fabs(d) > fabs(peak)) peak = d; } ty = YPOS(peak); gdk_draw_line (win, fg_gc, x-1, py, x, ty); py = ty; x++; width--; } } #else for (i = OFFSET_RANGE (nr_frames, XPOS_TO_OFFSET(x-1)); i < OFFSET_RANGE (nr_frames, XPOS_TO_OFFSET(x)); i += step) { d = ((sw_audio_t *)sample->sounddata->data)[i*channels + channel]; if (d >= 0) { if (d > prev_maxpos) prev_maxpos = d; } else { if (d < prev_minneg) prev_minneg = d; } } while(width >= 0) { nr_pos = nr_neg = 0; totpos = totneg = 0; maxpos = minneg = 0; /* lock the sounddata against destructive ops to make sure * sounddata->data doesn't change under us */ g_mutex_lock (sample->ops_mutex); for (i = OFFSET_RANGE(nr_frames, XPOS_TO_OFFSET(x)); i < OFFSET_RANGE(nr_frames, XPOS_TO_OFFSET(x+1)); i+=step) { d = ((sw_audio_t *)sample->sounddata->data)[i*channels + channel]; if (d >= 0) { if (d > maxpos) maxpos = d; totpos += d; nr_pos++; } else { if (d < minneg) minneg = d; totneg += d; nr_neg++; } } g_mutex_unlock (sample->ops_mutex); if (nr_pos > 0) { avgpos = totpos / nr_pos; } else { avgpos = 0; } if (nr_neg > 0) { avgneg = totneg / nr_neg; } else { avgneg = 0; } gdk_draw_line(win, s->minmax_gc, x, YPOS(maxpos), x, YPOS(minneg)); gc = maxpos > prev_maxpos ? s->highlight_gc : s->lowlight_gc; gdk_draw_line(win, gc, x, YPOS(prev_maxpos), x, YPOS(maxpos)); gc = minneg > prev_minneg ? s->lowlight_gc : s->highlight_gc; gdk_draw_line(win, gc, x, YPOS(prev_minneg), x, YPOS(minneg)); gdk_draw_line(win, fg_gc, x, YPOS(avgpos), x, YPOS(avgneg)); prev_maxpos = maxpos; prev_minneg = minneg; x++; width--; } #endif } static void sample_display_draw_data (GdkDrawable *win, const SampleDisplay *s, int x, int width) { const int sh = s->height; int start_x, end_x, i, cy, cheight, cerr; const int channels = s->view->sample->sounddata->format->channels; if (width == 0) return; g_return_if_fail(x >= 0); g_return_if_fail(x + width <= s->width); #ifdef DEBUG g_print("draw_data: view %u --> %u, drawing x=%d, width=%d\n", s->view->start, s->view->end, x, width); #endif start_x = OFFSET_TO_XPOS(0); end_x = OFFSET_TO_XPOS(s->view->sample->sounddata->nr_frames); if (start_x > x + width || end_x < x) { gtk_style_apply_default_background (GTK_WIDGET(s)->style, win, TRUE, GTK_STATE_NORMAL, NULL, x, 0, width, sh); return; } if (start_x > x) { gtk_style_apply_default_background (GTK_WIDGET(s)->style, win, TRUE, GTK_STATE_NORMAL, NULL, x, 0, start_x - x, sh); if (start_x > 0) gdk_draw_line (win, s->lowlight_gc, start_x-1, 0, start_x-1, sh); x = start_x; } if (end_x < x + width) { gtk_style_apply_default_background (GTK_WIDGET(s)->style, win, TRUE, GTK_STATE_NORMAL, NULL, end_x, 0, x + width - end_x, sh); gdk_draw_line (win, s->highlight_gc, end_x, 0, end_x, sh); width = end_x - x; } #if 0 cheight = (sh+3)/channels; cerr = (sh+3) - (channels * cheight); if (cerr == channels - 1) { cheight++; cerr = 0; } cy = 0; #else cheight = sh / channels; cerr = sh - (channels * cheight); if (cerr == channels - 1) { cheight++; cerr = 0; } cy = 0; #endif for (i = 0; i < channels; i++) { if (i >= 0) { gtk_style_apply_default_background (GTK_WIDGET(s)->style, win, TRUE, GTK_STATE_NORMAL, NULL, x, cy, width, 1); cy += 1; #if 0 if (i == channels/2) { gtk_style_apply_default_background (GTK_WIDGET(s)->style, win, TRUE, GTK_STATE_NORMAL, NULL, x, cy, width, cerr); cy += cerr; } #endif } sample_display_draw_data_channel (win, s, x, cy, width, cheight-2, i); cy += cheight-2; gtk_style_apply_default_background (GTK_WIDGET(s)->style, win, TRUE, GTK_STATE_NORMAL, NULL, x, cy, width, 1); cy += 1; } if (cy < sh) { gtk_style_apply_default_background (GTK_WIDGET(s)->style, win, TRUE, GTK_STATE_NORMAL, NULL, x, cy, width, sh-cy); } } /*** CROSSING VECTORS ***/ #ifdef DRAW_CROSSING_VECTORS static void sample_display_draw_crossing_vector (GdkDrawable * win, GdkGC * gc, const SampleDisplay * s, int x) { sw_sample * sample = s->view->sample; const int sh = s->height; int cx1, cx2, cy1, cy2; #define VRAD 8 cx1 = ( x > VRAD ? VRAD : 0 ); cx2 = ( x < sample->sounddata->nr_frames - VRAD ? VRAD : 0 ); cy1 = ((sw_audio_t *)sample->sounddata->data)[OFFSET_RANGE(sample->sounddata->nr_frames, XPOS_TO_OFFSET(x)) - cx1]; cy2 = ((sw_audio_t *)sample->sounddata->data)[OFFSET_RANGE(sample->sounddata->nr_frames, XPOS_TO_OFFSET(x)) + cx2]; gdk_draw_line(win, s->crossing_gc, x - cx1, (((cy1 + 1.0) * sh) / 2.0), x + cx2, (((cy2 + 1.0) * sh) / 2.0)); } #endif /*** MARCHING ANTS ***/ /* * sample_display_sel_box_march_ants () * * gtk_idle function to move the marching ants used by * selections. */ static gint sd_march_ants (gpointer data) { SampleDisplay * s = (SampleDisplay *)data; GdkGC * gc = s->sel_gc; static int dash_offset = 0; gdk_gc_set_dashes (gc, dash_offset, sel_dash_list, 2); dash_offset++; dash_offset %= 8; sample_display_refresh_sels (s); return TRUE; } static void sd_start_marching_ants_timeout (SampleDisplay * s) { if (s->marching_tag > 0) g_source_remove (s->marching_tag); s->marching_tag = g_timeout_add (MARCH_INTERVAL, (GSourceFunc)sd_march_ants, s); } void sample_display_start_marching_ants (SampleDisplay * s) { sd_start_marching_ants_timeout (s); s->marching = TRUE; } static void sd_stop_marching_ants_timeout (SampleDisplay * s) { if (s->marching_tag > 0) g_source_remove (s->marching_tag); s->marching_tag = 0; } void sample_display_stop_marching_ants (SampleDisplay * s) { sd_stop_marching_ants_timeout (s); s->marching = FALSE; } /*** SELECTION BOXES ***/ static void sample_display_draw_sel_box(GdkDrawable * win, GdkGC * gc, const SampleDisplay * s, int x, int width, int draw_left, int draw_right) { if (width <= 0) { gdk_draw_line (win, gc, x, 0, x, s->height - 1); return; } /* Must draw individual lines for these: if you optimise by * drawing a rectangle where possible, the marching ants go * crazy. We don't want that to happen, they are cute. */ gdk_draw_line(win, gc, x, 0, x+width, 0); gdk_draw_line(win, gc, x, s->height - 1, x+width, s->height - 1); if (draw_left) { gdk_draw_line(win, gc, x, 0, x, s->height - 1); #ifdef DRAW_CROSSING_VECTORS /* crossing vector */ sample_display_draw_crossing_vector (win, gc, s, x); #endif } if (draw_right) { gdk_draw_line(win, gc, x+width, 0, x+width, s->height - 1); #ifdef DRAW_CROSSING_VECTORS /* crossing vector */ sample_display_draw_crossing_vector (win, gc, s, x+width); #endif } } static void sample_display_draw_sel (GdkDrawable * win, const SampleDisplay * s, int x_min, int x_max) { sw_sample * sample = s->view->sample; GList * gl; sw_sel * sel; int x, x2; int l_end, r_end; /* draw left + right ends of sel */ /* Draw real selection */ for (gl = sample->sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; x = OFFSET_TO_XPOS(sel->sel_start); x2 = OFFSET_TO_XPOS(sel->sel_end); if (x > x_max) break; if (x2 < x_min) continue; l_end = (x >= x_min) && (x <= x_max); x = CLAMP (x, x_min, x_max); r_end = (x2 >= x_min) && (x2 <= x_max); x2 = CLAMP (x2, x_min, x_max); /* draw the selection */ sample_display_draw_sel_box(win, s->sel_gc, s, x, x2 - x - 1, l_end, r_end /* draw_ends */); } /* Draw temporary selection */ sel = sample->tmp_sel; if (sel) { x = OFFSET_TO_XPOS(sel->sel_start); l_end = (x >= x_min) && (x <= x_max); x = CLAMP (x, x_min, x_max); x2 = OFFSET_TO_XPOS(sel->sel_end); r_end = (x2 >= x_min) && (x2 <= x_max); x2 = CLAMP (x2, x_min, x_max); /* draw the selection */ sample_display_draw_sel_box(win, s->tmp_sel_gc, s, x, x2 - x - 1, l_end, r_end /* draw_ends */); } } /*** PLAY MARKER, CURSOR ***/ #if 0 static int sample_display_startoffset_to_xpos (SampleDisplay *s, int offset) { int d = offset - s->view->start; if(d < 0) return 0; if(d >= (s->view->end - s->view->start)) return s->width; return d * s->width / (s->view->end - s->view->start); } static int sample_display_endoffset_to_xpos (SampleDisplay *s, int offset) { if((s->view->end - s->view->start) < s->width) { return sample_display_startoffset_to_xpos(s, offset); } else { int d = offset - s->view->start; int l = (1 - (s->view->end - s->view->start)) / s->width; /* you get these tests by setting the complete formula below * equal to 0 or s->width, respectively, and then resolving * towards d. */ if(d < l) return 0; if(d > (s->view->end - s->view->start) + l) return s->width; return (d * s->width + (s->view->end - s->view->start) - 1) / (s->view->end - s->view->start); } } #endif /* _{start,end}offset_to_xpos */ static gint sd_pulse_cursor (gpointer data) { SampleDisplay * s = (SampleDisplay *)data; if (s->pulse) gdk_gc_set_function (s->user_gc, GDK_NOOP); else gdk_gc_set_function (s->user_gc, GDK_COPY); s->pulse = (!s->pulse); sample_display_refresh_user_marker (s); return TRUE; } void sample_display_start_cursor_pulse (SampleDisplay * s) { gdk_gc_set_function (s->user_gc, GDK_NOOP); sample_display_refresh_user_marker (s); s->pulsing_tag = g_timeout_add (PULSE_INTERVAL, (GSourceFunc)sd_pulse_cursor, s); } void sample_display_stop_cursor_pulse (SampleDisplay * s) { if (s->pulsing_tag > 0) g_source_remove (s->pulsing_tag); s->pulsing_tag = 0; gdk_gc_set_function (s->user_gc, GDK_COPY); sample_display_refresh_user_marker (s); } static void sample_display_draw_user_offset (GdkDrawable * win, GdkGC * gc, SampleDisplay * s, int x, int x_min, int x_max) { GdkPoint poly[4]; gboolean fill; if(x >= x_min && x <= x_max) { gdk_draw_line(win, s->zeroline_gc, x-2, 0, x-2, s->height); gdk_draw_line(win, gc, x-1, 0, x-1, s->height); gdk_draw_line(win, gc, x+1, 0, x+1, s->height); gdk_draw_line(win, s->zeroline_gc, x+2, 0, x+2, s->height); if (!s->view->sample->play_head->going) { fill = !s->view->sample->play_head->mute; if (x < 20) { poly[0].x = 11; poly[1].x = 11; poly[2].x = 14; poly[3].x = 14; } else { poly[0].x = x - 8; poly[1].x = x - 8; poly[2].x = x - 5; poly[3].x = x - 5; } poly[0].y = 4; poly[1].y = 14; poly[2].y = 14; poly[3].y = 4; gdk_draw_polygon (win, gc, fill, poly, 4); gdk_draw_polygon (win, s->zeroline_gc, FALSE, poly, 4); poly[0].x -= 5; poly[1].x -= 5; poly[2].x -= 5; poly[3].x -= 5; gdk_draw_polygon (win, gc, fill, poly, 4); gdk_draw_polygon (win, s->zeroline_gc, FALSE, poly, 4); } } } static void sample_display_draw_play_offset (GdkDrawable * win, GdkGC * gc, SampleDisplay * s, int x, int x_min, int x_max) { sw_sample * sample; GdkPoint poly[4]; sw_head * head; if(x >= x_min && x <= x_max) { gdk_draw_rectangle(win, gc, TRUE, x-1, 0, 3, s->height); sample = s->view->sample; head = sample->play_head; if (head->going) { if (x < 20) { if (head->reverse) { poly[0].x = 14; poly[1].x = 14; poly[2].x = 6; } else { poly[0].x = 6; poly[1].x = 6; poly[2].x = 14; } } else { if (head->reverse) { poly[0].x = x - 5; poly[1].x = x - 5; poly[2].x = x - 13; } else { poly[0].x = x - 13; poly[1].x = x - 13; poly[2].x = x - 5; } } poly[0].y = 4; poly[1].y = 14; poly[2].y = 9; gdk_draw_polygon (win, gc, !head->mute, poly, 3); gdk_draw_polygon (win, s->zeroline_gc, FALSE, poly, 3); } } } static void sample_display_draw_rec_offset (GdkDrawable * win, GdkGC * gc, SampleDisplay * s, int x, int x_min, int x_max) { sw_sample * sample; if(x >= x_min && x <= x_max) { #if 0 gdk_draw_rectangle(win, gc, TRUE, x-1, 0, 3, s->height); #endif gdk_draw_line(win, s->zeroline_gc, x-2, 0, x-2, s->height); #if 1 gdk_draw_line(win, gc, x-1, 0, x-1, s->height); gdk_draw_line(win, gc, x+1, 0, x+1, s->height); #endif gdk_draw_line(win, s->zeroline_gc, x+2, 0, x+2, s->height); sample = s->view->sample; if (x < 20) x = 19; gdk_draw_arc (win, gc, TRUE, x-14, 15, 8, 8, 0, 360 * 64); gdk_draw_arc (win, s->zeroline_gc, FALSE, x-14, 15, 8, 8, 0, 360 * 64); } } /*** DRAW ***/ static void sample_display_draw (GtkWidget *widget, GdkRectangle *area) { SampleDisplay *s = SAMPLE_DISPLAY(widget); sw_sample * sample = s->view->sample; GdkDrawable * drawable; /* g_return_if_fail(area->x >= 0);*/ if (area->x < 0) return; if (area->y < 0) return; if(area->width == 0) return; if(area->x + area->width > s->width) return; #ifdef DEBUG g_print ("sample_display_draw: (%d, %d) [%d, %d]\n", area->x, area->y, area->width, area->height); #endif if(!IS_INITIALIZED(s)) { gtk_style_apply_default_background (GTK_WIDGET(s)->style, widget->window, TRUE, GTK_STATE_NORMAL, NULL, 0, 0, s->width, s->height); #if 0 area->x, area->y, area->width, area->height); #endif } else { const int x_min = area->x; const int x_max = area->x + area->width; #ifdef DOUBLE_BUFFER drawable = s->backing_pixmap; #else drawable = widget->window; #endif /* draw the sample graph */ sample_display_draw_data(drawable, s, x_min, x_max - x_min); /* draw the selection bounds */ sample_display_draw_sel (drawable, s, x_min, x_max); /* draw the offset cursors */ if(!sample->play_head->going) { /* Draw user offset */ sample_display_draw_user_offset (drawable, s->user_gc, s, s->user_offset_x, x_min, x_max); } else { #if 1 /* Draw play offset */ sample_display_draw_play_offset (drawable, s->play_gc, s, s->play_offset_x, x_min, x_max); #endif /* Draw user offset */ sample_display_draw_user_offset (drawable, s->user_gc, s, s->user_offset_x, x_min, x_max); } /* Draw rec offset */ if (sample->rec_head /*&& sample->rec_head->transport_mode != SWEEP_TRANSPORT_STOP*/ ) { sample_display_draw_rec_offset (drawable, s->rec_gc, s, s->rec_offset_x, x_min, x_max); } #if 0 /* Draw focus indicator */ if (GTK_WIDGET_HAS_FOCUS(widget)) { /* ??? */ } #endif #ifdef DOUBLE_BUFFER gdk_draw_pixmap(widget->window, s->fg_gc, s->backing_pixmap, area->x, area->y, area->x, area->y, area->width, area->height); #endif } } /*** EVENT HANDLERS ***/ static gint sample_display_expose (GtkWidget *widget, GdkEventExpose *event) { GdkRectangle * a; a = &event->area; #ifdef DEBUG g_print ("received expose event for (%d, %d) [%d, %d]; %d follow\n", a->x, a->y, a->width, a->height, event->count); #endif sample_display_draw (widget, a); return FALSE; } static gint sample_display_hand_scroll (SampleDisplay * s) { gint new_win_start, win_length; gfloat step; win_length = s->view->end - s->view->start; step = win_length * 1.0 / s->width; new_win_start = s->view->start + s->hand_scroll_delta * step; new_win_start = CLAMP(new_win_start, 0, s->view->sample->sounddata->nr_frames - (s->view->end - s->view->start)); if(new_win_start != s->view->start) { sample_display_set_window (s, new_win_start, new_win_start + win_length); } else { s->hand_scroll_delta = 0; } /* g_print ("s->delta: %i new_win_start: %i\n", s->hand_scroll_delta, new_win_start); */ s->hand_scroll_delta *= 0.98; return (s->hand_scroll_delta != 0); } static gint sample_display_scroll_left (gpointer data) { SampleDisplay * s = (SampleDisplay *)data; int new_win_start, win_length; win_length = s->view->end - s->view->start; new_win_start = s->view->start - win_length/8; new_win_start = CLAMP(new_win_start, 0, s->view->sample->sounddata->nr_frames - (s->view->end - s->view->start)); if(new_win_start != s->view->start) { sample_display_set_window (s, new_win_start, new_win_start + win_length); } s->view->sample->tmp_sel->sel_start = new_win_start; return (new_win_start > 0); } static gint sample_display_scroll_right (gpointer data) { SampleDisplay * s = (SampleDisplay *)data; int new_win_start, win_length; win_length = s->view->end - s->view->start; new_win_start = s->view->start + win_length/8; new_win_start = CLAMP(new_win_start, 0, s->view->sample->sounddata->nr_frames - (s->view->end - s->view->start)); if(new_win_start != s->view->start) { sample_display_set_window (s, new_win_start, new_win_start + win_length); } s->view->sample->tmp_sel->sel_end = s->view->end; return (new_win_start >= (s->view->end - win_length)); } static void sample_display_handle_playmarker_motion (SampleDisplay * s, int x, int y) { sw_sample * sample; sw_framecount_t offset; sample = s->view->sample; offset = XPOS_TO_OFFSET(x); sample_set_playmarker (sample, offset, TRUE); } void sample_display_clear_sel (SampleDisplay * s) { sample_clear_tmp_sel (s->view->sample); s->selecting = SELECTING_NOTHING; s->selection_mode = SELECTION_MODE_NONE; sample_display_set_default_cursor (s); sample_clear_tmp_message (s->view->sample); g_signal_emit_by_name(GTK_OBJECT(s), "selection-changed"); } static void sample_display_handle_sel_motion (SampleDisplay *s, int x, int y, int just_clicked) { sw_sample * sample; sw_sel * sel; int o; int ss, se; gboolean scroll_left = FALSE, scroll_right = FALSE; if (s->view->current_tool != TOOL_SELECT) return; if(!s->selecting) return; if (!s->view->sample) return; if (!s->view->sample->tmp_sel) return; sample = s->view->sample; if (sample->edit_mode != SWEEP_EDIT_MODE_READY) { sample_display_clear_sel (s); return; } o = XPOS_TO_OFFSET(x); #ifdef DEBUG if (o < 0) { g_print ("OI! setting an offset < 0!\n"); } #endif if (!sample->play_head->going) { sample_set_playmarker (sample, o, TRUE); } sel = sample->tmp_sel; ss = sel->sel_start; se = sel->sel_end; if(x < 0) { scroll_left = TRUE; x = 0; } else if(x >= s->width - 1) { scroll_right = TRUE; x = s->width - 1; } if (just_clicked) { ss = o; se = o+1; } else { switch (s->selecting) { case SELECTING_SELECTION_START: if (o < se) { ss = o; } else { if (o != ss+1) ss = se; se = o; s->selecting = SELECTING_SELECTION_END; } break; case SELECTING_SELECTION_END: if (o > ss) { se = o; } else { if (o != se-1) se = ss; ss = o; s->selecting = SELECTING_SELECTION_START; } break; default: g_assert_not_reached (); break; } } if(sel->sel_start != ss || sel->sel_end != se || just_clicked) { sel->sel_start = ss; sel->sel_end = se; g_signal_emit_by_name(GTK_OBJECT(s), "selection-changed"); } if (scroll_left && s->scroll_left_tag == 0) { if (s->scroll_right_tag != 0) { g_source_remove (s->scroll_right_tag); s->scroll_right_tag = 0; } s->scroll_left_tag = g_timeout_add (100, sample_display_scroll_left, (gpointer)s); } else if (scroll_right && s->scroll_right_tag == 0) { if (s->scroll_left_tag != 0) { g_source_remove (s->scroll_left_tag); s->scroll_left_tag = 0; } s->scroll_right_tag = g_timeout_add (100, sample_display_scroll_right, (gpointer)s); } else if (!scroll_right && !scroll_left) { if (s->scroll_right_tag != 0) { g_source_remove (s->scroll_right_tag); s->scroll_right_tag = 0; } if (s->scroll_left_tag != 0) { g_source_remove (s->scroll_left_tag); s->scroll_left_tag = 0; } } } /* Handle middle mousebutton display window panning */ static void sample_display_handle_move_motion (SampleDisplay *s, int x, int y) { sw_sample * sample = s->view->sample; sw_framecount_t vlen, offset_xpos, new_offset; int new_win_start; vlen = s->view->end - s->view->start; offset_xpos = OFFSET_TO_XPOS(sample->user_offset); new_win_start = s->selecting_wins0 + (s->selecting_x0 - x) * vlen / s->width; new_win_start = CLAMP(new_win_start, 0, sample->sounddata->nr_frames - vlen); new_offset = new_win_start + offset_xpos * vlen / s->width; sample_set_scrubbing (sample, TRUE); sample_set_playmarker (sample, new_offset, TRUE); if(new_win_start != s->view->start) { sample_display_set_window (s, new_win_start, new_win_start + vlen); } } static void sample_display_handle_pencil_motion (SampleDisplay * s, int x, int y) { sw_sample * sample; sw_framecount_t offset; int channel, channels; sw_audio_t value; sw_audio_t * sampledata; offset = XPOS_TO_OFFSET(x); if (offset < s->view->start || offset > s->view->end) return; sample = s->view->sample; sampledata = (sw_audio_t *)sample->sounddata->data; channels = sample->sounddata->format->channels; y = CLAMP (y, 0, s->height); channel = YPOS_TO_CHANNEL(y); value = YPOS_TO_VALUE(y); sampledata[offset*channels + channel] = value; #if 0 if (sample->sounddata->format->channels == 1) { value = YPOS_TO_VALUE_1(y); sampledata[offset] = value; } else { channel = YPOS_TO_CHANNEL(y); value = YPOS_TO_VALUE_2(y); sampledata[offset*2 + channel] = value; } #endif sample_refresh_views (sample); } static void sample_display_handle_hand_motion (SampleDisplay * s, int x, int y) { gdouble move, vstart, vend; gdouble step = (gdouble)(s->view->end - s->view->start) / ((gdouble)s->width); GtkAdjustment * adj = GTK_ADJUSTMENT(s->view->adj); gint delta; delta = s->view->hand_offset - x; s->hand_scroll_delta *= 0.9; if (abs (delta) > abs (s->hand_scroll_delta)) s->hand_scroll_delta = delta; if (s->view->hand_offset != x){ move = s->view->hand_offset - x; move *= step; vstart = s->view->start + move; vend = s->view->end + move; if (vstart < 0){ vstart = 0; vend = adj->page_size; } if (vend > s->view->sample->sounddata->nr_frames){ vstart = s->view->sample->sounddata->nr_frames - adj->page_size; vend = s->view->sample->sounddata->nr_frames; } vstart = ceil(vstart + (move < 0 ? 0.5 : -0.5)); vend = ceil(vend + (move < 0 ? 0.5 : -0.5)); if (s->view->start != vstart && s->view->end != vend) s->view->hand_offset = x; s->view->start = vstart; s->view->end = vend; view_refresh_display(s->view); gtk_adjustment_set_value( GTK_ADJUSTMENT(s->view->adj), vstart); } } static void sample_display_handle_noise_motion (SampleDisplay * s, int x, int y) { sw_sample * sample; sw_framecount_t offset; int channel; sw_audio_t value, oldvalue; sw_audio_t * sampledata; offset = XPOS_TO_OFFSET(x); if (offset < s->view->start || offset > s->view->end) return; sample = s->view->sample; sampledata = (sw_audio_t *)sample->sounddata->data; y = CLAMP (y, 0, s->height); value = 2.0 * (random() - RAND_MAX/2) / (sw_audio_t)RAND_MAX; if (sample->sounddata->format->channels == 1) { oldvalue = sampledata[offset]; } else { channel = YPOS_TO_CHANNEL(y); offset = offset*2 + channel; oldvalue = sampledata[offset]; } sampledata[offset] = CLAMP(oldvalue * 0.8 + value * 0.2, SW_AUDIO_T_MIN, SW_AUDIO_T_MAX); sample_refresh_views (sample); } static void sample_display_handle_sel_button_press (SampleDisplay * s, int x, int y, GdkModifierType state) { sw_sample * sample; GList * gl; sw_sel * sel, * tmp_sel = NULL; int xss, xse; int min_xs; gboolean just_clicked = TRUE; sample = s->view->sample; if (sample->edit_mode != SWEEP_EDIT_MODE_READY) { sample_display_clear_sel (s); return; } for (gl = sample->sounddata->sels; gl; gl = gl->next) { /* If the cursor is near the current start or end of * the selection, move that. */ sel = (sw_sel *)gl->data; xss = OFFSET_TO_XPOS(sel->sel_start); xse = OFFSET_TO_XPOS(sel->sel_end); if(abs(x-xss) < 5) { sample_set_tmp_sel (sample, s->view, sel); s->selecting = SELECTING_SELECTION_START; s->selection_mode = SELECTION_MODE_INTERSECT; sample_display_set_intersect_cursor (s); just_clicked = FALSE; goto motion; } else if(abs(x-xse) < 5) { sample_set_tmp_sel (sample, s->view, sel); s->selecting = SELECTING_SELECTION_END; s->selection_mode = SELECTION_MODE_INTERSECT; sample_display_set_intersect_cursor (s); just_clicked = FALSE; goto motion; } } /* If shift is held down, move the closest selection edge to the mouse */ if ((state & GDK_SHIFT_MASK) && (sample->sounddata->sels != NULL)) { min_xs = G_MAXINT; for (gl = sample->sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; xss = OFFSET_TO_XPOS(sel->sel_start); xse = OFFSET_TO_XPOS(sel->sel_end); if (abs(x-xss) > min_xs) break; tmp_sel = sel; min_xs = abs(x-xss); s->selecting = SELECTING_SELECTION_START; if (abs(x-xse) > min_xs) break; min_xs = abs(x-xse); s->selecting = SELECTING_SELECTION_END; } sample_set_tmp_sel (sample, s->view, tmp_sel); s->selection_mode = SELECTION_MODE_INTERSECT; sample_display_set_intersect_cursor (s); just_clicked = FALSE; goto motion; } /* Otherwise, start a new selection region. */ sample_set_tmp_sel_1(sample, s->view, XPOS_TO_OFFSET(x), XPOS_TO_OFFSET(x)+1); s->selecting = SELECTING_SELECTION_END; if(state & GDK_CONTROL_MASK) { s->selection_mode = SELECTION_MODE_INTERSECT; sample_display_set_intersect_cursor (s); } else if (state & GDK_MOD1_MASK) /* how to get ALT? */{ s->selection_mode = SELECTION_MODE_SUBTRACT; sample_display_set_subtract_cursor (s); } else { s->selection_mode = SELECTION_MODE_REPLACE; SET_CURSOR(GTK_WIDGET(s), HORIZ); } just_clicked = TRUE; motion: sample_set_tmp_message (sample, _(selection_mode_names[s->selection_mode])); sample_set_progress_ready (sample); sample_display_handle_sel_motion (s, x, y, just_clicked); } static gint sample_display_on_playmarker (SampleDisplay * s, gint x, gint y) { gint xp = OFFSET_TO_XPOS(s->view->sample->user_offset); if (abs(x-xp) < 5 || ((abs(x-xp) < 15) && (y < 17))) return TRUE; return FALSE; } static gint sample_display_on_sel (SampleDisplay * s, gint x, gint y) { GList * gl; sw_sel * sel; int xss, xse; for (gl = s->view->sample->sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; xss = OFFSET_TO_XPOS(sel->sel_start); xse = OFFSET_TO_XPOS(sel->sel_end); if(abs(x-xss) < 5 || abs(x-xse) < 5) return TRUE; } return FALSE; } static gint sample_display_scroll_event(GtkWidget *widget, GdkEventScroll *event) { SampleDisplay *s; s = SAMPLE_DISPLAY(widget); if (event->direction == GDK_SCROLL_UP) { /* mouse wheel scroll up */ view_zoom_in (s->view, 2.0); return TRUE; } else if (event->direction == GDK_SCROLL_DOWN) { /* mouse wheel scroll down */ view_zoom_out (s->view, 2.0); return TRUE; } return FALSE; /* redundant? */ } static gint sample_display_button_press (GtkWidget *widget, GdkEventButton *event) { SampleDisplay *s; GdkModifierType state; sw_sample * sample; int x, y; int o; g_return_val_if_fail (widget != NULL, FALSE); g_return_val_if_fail (IS_SAMPLE_DISPLAY (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); s = SAMPLE_DISPLAY(widget); if(!IS_INITIALIZED(s)) return TRUE; gtk_widget_grab_focus (widget); sample = s->view->sample; if (s->meta_down && s->view->current_tool == TOOL_SCRUB && s->selecting == SELECTING_PLAYMARKER) { gdk_window_get_pointer (event->window, &x, &y, &state); sample_display_handle_playmarker_motion (s, x, y); } else if(s->selecting && event->button != last_button) { /* Cancel the current operation if a different button is pressed. */ sample_display_clear_sel (s); } else if (last_tmp_view && last_tmp_view != s->view && event->button != last_button) { view_clear_last_tmp_view (); } else { last_button = event->button; gdk_window_get_pointer (event->window, &x, &y, &state); if(last_button == 1) { if (XPOS_TO_OFFSET(x) < 0 || XPOS_TO_OFFSET(x) > sample->sounddata->nr_frames) return TRUE; switch (s->view->current_tool) { case TOOL_SCRUB: s->selecting = SELECTING_PLAYMARKER; SET_CURSOR(widget, NEEDLE); sample_set_scrubbing (s->view->sample, TRUE); if (sample->play_head->going) { head_set_restricted (sample->play_head, FALSE); sample_refresh_playmode (sample); } else { play_view_all (s->view); } sample_display_handle_playmarker_motion (s, x, y); return TRUE; break; case TOOL_SELECT: /* If the cursor is near a sel, move that */ if (sample_display_on_sel (s, x, y)) { sample_display_handle_sel_button_press (s, x, y, state); #if 0 } else if (sample_display_on_playmarker (s, x, y)) { /* If the cursor is near the play marker, move that */ s->selecting = SELECTING_PLAYMARKER; SET_CURSOR(widget, NEEDLE); #ifndef SEL_SCRUBS sample_set_scrubbing (sample, TRUE); sample_display_handle_playmarker_motion (s, x, y); #endif #endif } else { sample_display_handle_sel_button_press (s, x, y, state); } #ifdef SEL_SCRUBS /* scrub along the changing selection edge, unless we're already * playing. NB. the play_head->scrubbing state is used by the * motion and release callbacks here to determine whether or not * to scrub the moving edge, and whether or not to stop playback * upon release. */ if (sample->play_head->going) { sample_set_scrubbing (sample, FALSE); sample_refresh_playmode (sample); } else { /*sample_set_monitor (sample, TRUE);*/ sample_set_scrubbing (sample, TRUE); play_view_all (s->view); sample_display_handle_playmarker_motion (s, x, y); } #endif break; case TOOL_HAND: s->selecting = SELECTING_HAND; s->view->hand_offset = x; s->hand_scroll_delta = 0; if (s->hand_scroll_tag){ g_source_remove (s->hand_scroll_tag); s->hand_scroll_tag = 0; } SET_CURSOR(widget, HAND_CLOSE); sample_display_handle_hand_motion (s, x, y); break; case TOOL_ZOOM: o = XPOS_TO_OFFSET(x); view_center_on (s->view, o); if (state & GDK_SHIFT_MASK) { view_zoom_out (s->view, 2.0); } else { view_zoom_in (s->view, 2.0); } break; case TOOL_PENCIL: s->selecting = SELECTING_PENCIL; sample_display_handle_pencil_motion (s, x, y); break; case TOOL_NOISE: s->selecting = SELECTING_NOISE; sample_display_handle_noise_motion (s, x, y); break; default: break; } } else if(last_button == 2) { s->selecting = SELECTING_PAN_WINDOW; gdk_window_get_pointer (event->window, &s->selecting_x0, NULL, NULL); s->selecting_wins0 = s->view->start; SET_CURSOR(widget, MOVE); sample_set_scrubbing (s->view->sample, TRUE); } else if(last_button == 3) { if(s->view && s->view->menu) { view_popup_context_menu (s->view, 3, event->time); } } } return TRUE; } void sample_display_sink_tmp_sel (SampleDisplay * s) { sw_sample * sample = s->view->sample; sw_sel * t; s->selecting = SELECTING_NOTHING; if (s->scroll_right_tag != 0) { g_source_remove (s->scroll_right_tag); s->scroll_right_tag = 0; } if (s->scroll_left_tag != 0) { g_source_remove (s->scroll_left_tag); s->scroll_left_tag = 0; } t = sample->tmp_sel; if (t->sel_end == (t->sel_start + 1)) { if (!sample->play_head->going) { sample_set_playmarker (sample, t->sel_start, TRUE); } sample_clear_tmp_sel (sample); } else { if (s->selecting == SELECTING_SELECTION_START) { sample_set_playmarker (sample, t->sel_start, TRUE); } else if (s->selecting == SELECTING_SELECTION_END) { sample_set_playmarker (sample, t->sel_end, TRUE); } if(s->selection_mode == SELECTION_MODE_REPLACE) { sample_selection_replace_with_tmp_sel (sample); } else if (s->selection_mode == SELECTION_MODE_SUBTRACT) { sample_selection_subtract_tmp_sel (sample); } else { sample_selection_insert_tmp_sel (sample); } s->selection_mode = SELECTION_MODE_NONE; g_signal_emit_by_name(GTK_OBJECT(s), "selection-changed"); } } static gint sample_display_button_release (GtkWidget *widget, GdkEventButton *event) { SampleDisplay *s; #ifdef SEL_SCRUBS GdkModifierType state; int x, y; #endif g_return_val_if_fail (widget != NULL, FALSE); g_return_val_if_fail (IS_SAMPLE_DISPLAY (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); s = SAMPLE_DISPLAY(widget); switch (s->view->current_tool) { case TOOL_SELECT: /* If the user has released the button they were selecting with, * sink this sample's temporary selection. */ if (s->selecting && event->button == last_button) { switch (s->selecting) { case SELECTING_SELECTION_START: case SELECTING_SELECTION_END: sample_display_sink_tmp_sel (s); break; default: break; } } /* If the user has released the button in a sweep window different * to that used for selection, then sink the appropriate temporary * selection. */ if (last_tmp_view != s->view) { view_sink_last_tmp_view(); } #ifdef SEL_SCRUBS if (s->view->sample->play_head->scrubbing) { gdk_window_get_pointer (event->window, &x, &y, &state); pause_playback (s->view->sample); sample_display_handle_playmarker_motion (s, x, y); } #endif break; case TOOL_SCRUB: if (s->meta_down) return TRUE; break; case TOOL_HAND: s->view->hand_offset = -1; s->hand_scroll_tag = g_timeout_add (HAND_SCROLL_INTERVAL, (GSourceFunc)sample_display_hand_scroll, s); break; case TOOL_MOVE: break; case TOOL_ZOOM: break; default: break; } if (s->meta_down && s->selecting == SELECTING_PLAYMARKER) return TRUE; s->selecting = SELECTING_NOTHING; sample_set_scrubbing (s->view->sample, FALSE); sample_display_set_default_cursor (s); return FALSE; } static gint sample_display_motion_notify (GtkWidget *widget, GdkEventMotion *event) { SampleDisplay *s; gint x, y; GdkModifierType state; sw_framecount_t o; s = SAMPLE_DISPLAY(widget); if(!IS_INITIALIZED(s)) return FALSE; if (event->is_hint) { gdk_window_get_pointer (event->window, &x, &y, &state); } else { x = event->x; y = event->y; state = event->state; } o = XPOS_TO_OFFSET(x); s->mouse_x = x; s->mouse_offset = o; g_signal_emit_by_name(GTK_OBJECT(s), "mouse-offset-changed"); if (s->selecting) { if (s->meta_down && s->selecting == SELECTING_PLAYMARKER) { sample_display_handle_playmarker_motion (s, x, y); } else if((state & GDK_BUTTON1_MASK) && last_button == 1) { switch (s->selecting) { case SELECTING_PLAYMARKER: sample_display_handle_playmarker_motion (s, x, y); break; case SELECTING_HAND: sample_display_handle_hand_motion (s, x, y); break; case SELECTING_PENCIL: sample_display_handle_pencil_motion (s, x, y); break; case SELECTING_NOISE: sample_display_handle_noise_motion (s, x, y); break; default: sample_display_handle_sel_motion(s, x, y, 0); #ifdef SEL_SCRUBS if (s->view->sample->play_head->scrubbing) { sample_display_handle_playmarker_motion (s, x, y); } #endif break; } } else if((state & GDK_BUTTON2_MASK) && last_button == 2) { sample_display_handle_move_motion (s, x, y); } else { /* sample_display_clear_sel (s);*/ if (s->selecting == SELECTING_SELECTION_START || s->selecting == SELECTING_SELECTION_END) { /* XXX: Need to sink_tmp_sel here instead for consistency ??? * It seems to be clearing fast tmp_sels now, but at least not * leaving them lying around.*/ sample_display_sink_tmp_sel (s); sample_display_set_default_cursor (s); } } } else { if (s->view->current_tool == TOOL_SELECT && sample_display_on_sel (s, x, y)) { SET_CURSOR(widget, HORIZ); } else if (s->view->current_tool == TOOL_SELECT && sample_display_on_playmarker (s, x, y)) { SET_CURSOR(widget, NEEDLE); } else { if (o > 0 && o < s->view->sample->sounddata->nr_frames) sample_display_set_default_cursor (SAMPLE_DISPLAY(widget)); else gdk_window_set_cursor (widget->window, NULL); } #if 0 /* Consistency check: without this, some button release events * are lost if they occur during motion. Here, we ensure that * if this sample_display s is not selecting yet has a selection */ if(s->selection_mode && s->view->sample->tmp_sel) { sample_display_sink_tmp_sel (s); } #endif } return FALSE; } static gint sample_display_enter_notify (GtkWidget *widget, GdkEventCrossing *event) { gtk_widget_grab_focus (widget); return TRUE; } static gint sample_display_leave_notify (GtkWidget *widget, GdkEventCrossing *event) { SampleDisplay *s; s = SAMPLE_DISPLAY(widget); s->mouse_offset = -1; g_signal_emit_by_name(GTK_OBJECT(s), "mouse-offset-changed"); return TRUE; } static gint sample_display_focus_in (GtkWidget * widget, GdkEventFocus * event) { SampleDisplay * s; g_return_val_if_fail (widget != NULL, FALSE); g_return_val_if_fail (IS_SAMPLE_DISPLAY(widget), FALSE); GTK_WIDGET_SET_FLAGS (widget, GTK_HAS_FOCUS); /* * FIXME: nonexistant in GTK+-2.0 * docs say draw in the expose function. draw what though? * * gtk_widget_draw_focus (widget); */ s = SAMPLE_DISPLAY(widget); if (s->marching) { sd_start_marching_ants_timeout (s); } sample_display_start_cursor_pulse (s); undo_dialog_set_sample (s->view->sample); return FALSE; } static gint sample_display_focus_out (GtkWidget * widget, GdkEventFocus * event) { SampleDisplay * s; g_return_val_if_fail (widget != NULL, FALSE); g_return_val_if_fail (IS_SAMPLE_DISPLAY(widget), FALSE); GTK_WIDGET_UNSET_FLAGS (widget, GTK_HAS_FOCUS); /* * FIXME: nonexistant in GTK+-2.0 * docs say draw in the expose function. draw what though? * * gtk_widget_draw_focus (widget); */ s = SAMPLE_DISPLAY(widget); sd_stop_marching_ants_timeout (s); sample_display_stop_cursor_pulse (s); return FALSE; } static gint sample_display_key_press (GtkWidget * widget, GdkEventKey * event) { SampleDisplay * s = SAMPLE_DISPLAY(widget); sw_view * view = s->view; sw_sample * sample; sw_framecount_t vlen, move_delta = 0, sel_t; GList * gl; sw_sel * sel; int x, y, xss, xse; sample = view->sample; vlen = view->end - view->start; /*g_print ("key 0x%X pressed\n", event->keyval);*/ switch (event->keyval) { case GDK_Meta_L: case GDK_Super_L: case GDK_Multi_key: if (sample->edit_mode == SWEEP_EDIT_MODE_ALLOC) break; s->meta_down = TRUE; if (s->selecting == SELECTING_NOTHING) { s->selecting = SELECTING_PLAYMARKER; SET_CURSOR(widget, NEEDLE); sample_set_scrubbing (sample, TRUE); } if (s->selecting == SELECTING_PLAYMARKER) { gdk_window_get_pointer (widget->window, &x, &y, NULL); sample_display_handle_playmarker_motion (s, x, y); if (!sample->play_head->going) { play_view_all (s->view); } } return TRUE; break; case GDK_Menu: if(view->menu) { gtk_menu_popup(GTK_MENU(view->menu), NULL, NULL, NULL, NULL, 3, event->time); } return TRUE; break; case GDK_BackSpace: if (sample->edit_mode == SWEEP_EDIT_MODE_READY) do_clear (sample); return TRUE; break; case GDK_Delete: if (sample->edit_mode == SWEEP_EDIT_MODE_READY) do_delete (sample); return TRUE; break; case GDK_less: if (sample->edit_mode == SWEEP_EDIT_MODE_READY) select_shift_left_cb (widget, s); return TRUE; case GDK_greater: if (sample->edit_mode == SWEEP_EDIT_MODE_READY) select_shift_right_cb (widget, s); return TRUE; case GDK_Up: case GDK_KP_Up: if (event->state & GDK_CONTROL_MASK) { zoom_1to1_cb (GTK_WIDGET(s), s); } else if (event->state & GDK_SHIFT_MASK) { view_vzoom_in (view, 1.2); } else { view_zoom_in (view, 2.0); } return TRUE; break; case GDK_Down: case GDK_KP_Down: if (event->state & GDK_CONTROL_MASK) { zoom_norm_cb (GTK_WIDGET(s), s); } else if (event->state & GDK_SHIFT_MASK) { view_vzoom_out (view, 1.2); } else { view_zoom_out (view, 2.0); } return TRUE; break; case GDK_Left: case GDK_KP_Left: move_delta = MIN(-1, -vlen/s->width); if (event->state & GDK_CONTROL_MASK) { if (!(event->state & GDK_SHIFT_MASK)) { sample_set_offset_next_bound_left (sample); return TRUE; } move_delta *= 10; } break; case GDK_Right: case GDK_KP_Right: move_delta = MAX(1, vlen/s->width); if (event->state & GDK_CONTROL_MASK) { if (!(event->state & GDK_SHIFT_MASK)) { sample_set_offset_next_bound_right (sample); return TRUE; } move_delta *= 10; } break; default: /* Random other key pressed */ return FALSE; break; } /* Handle movement only from here on */ if ((event->state & GDK_SHIFT_MASK) && (sample->edit_mode == SWEEP_EDIT_MODE_READY)) { sel = sample->tmp_sel; switch (s->selecting) { case SELECTING_SELECTION_START: sel->sel_start += move_delta; if (sel->sel_start > sel->sel_end) { sel_t = sel->sel_start; sel->sel_start = sel->sel_end; sel->sel_end = sel_t; s->selecting = SELECTING_SELECTION_END; } break; case SELECTING_SELECTION_END: sample->tmp_sel->sel_end += move_delta; if (sel->sel_start > sel->sel_end) { sel_t = sel->sel_start; sel->sel_start = sel->sel_end; sel->sel_end = sel_t; s->selecting = SELECTING_SELECTION_START; } break; default: last_button = 0; x = OFFSET_TO_XPOS(sample->user_offset); if ((sel = sample->tmp_sel) != NULL) { xss = OFFSET_TO_XPOS(sel->sel_start); xse = OFFSET_TO_XPOS(sel->sel_end); if(abs(x-xss) < 5) { s->selecting = SELECTING_SELECTION_START; sel->sel_start += move_delta; if (sel->sel_start > sel->sel_end) { sel_t = sel->sel_start; sel->sel_start = sel->sel_end; sel->sel_end = sel_t; s->selecting = SELECTING_SELECTION_END; } break; } else if(abs(x-xse) < 5) { s->selecting = SELECTING_SELECTION_END; sel->sel_end += move_delta; if (sel->sel_start > sel->sel_end) { sel_t = sel->sel_start; sel->sel_start = sel->sel_end; sel->sel_end = sel_t; s->selecting = SELECTING_SELECTION_START; } break; } } if (s->selecting != SELECTING_SELECTION_START && s->selecting != SELECTING_SELECTION_END) { for (gl = sample->sounddata->sels; gl; gl = gl->next) { /* If the cursor is near the current start or end of * the selection, move that. */ sel = (sw_sel *)gl->data; xss = OFFSET_TO_XPOS(sel->sel_start); xse = OFFSET_TO_XPOS(sel->sel_end); if(abs(x-xss) < 5) { sample_set_tmp_sel (sample, s->view, sel); s->selecting = SELECTING_SELECTION_START; s->selection_mode = SELECTION_MODE_INTERSECT; sample_display_set_intersect_cursor (s); break; } else if(abs(x-xse) < 5) { sample_set_tmp_sel (sample, s->view, sel); s->selecting = SELECTING_SELECTION_END; s->selection_mode = SELECTION_MODE_INTERSECT; sample_display_set_intersect_cursor (s); break; } } } if (s->selecting != SELECTING_SELECTION_START && s->selecting != SELECTING_SELECTION_END) { sample_set_tmp_sel_1 (sample, view, sample->user_offset, sample->user_offset + move_delta); s->selecting = SELECTING_SELECTION_START; s->selection_mode = SELECTION_MODE_REPLACE; SET_CURSOR (GTK_WIDGET(s), HORIZ); } break; } g_signal_emit_by_name(GTK_OBJECT(s), "selection-changed"); } else if (s->selecting == SELECTING_SELECTION_START || s->selecting == SELECTING_SELECTION_END) { sample_display_sink_tmp_sel (s); s->selecting = SELECTING_NOTHING; sample_display_set_default_cursor (s); } sample_set_playmarker (sample, sample->user_offset + move_delta, TRUE); return TRUE; } static gint sample_display_key_release (GtkWidget * widget, GdkEventKey * event) { SampleDisplay * s = SAMPLE_DISPLAY(widget); GdkModifierType state; switch (event->keyval) { case GDK_Meta_L: case GDK_Super_L: case GDK_Multi_key: s->meta_down = FALSE; gdk_window_get_pointer (widget->window, NULL, NULL, &state); /* Don't cancel scrubbing if the mouse is down for it */ if ((state & GDK_BUTTON1_MASK) && s->view->current_tool == TOOL_SCRUB) return TRUE; if (s->selecting == SELECTING_PLAYMARKER) { s->selecting = SELECTING_NOTHING; sample_set_scrubbing (s->view->sample, FALSE); sample_display_set_default_cursor (s); } return TRUE; break; default: break; } return FALSE; } static gint sample_display_destroy (GtkWidget * widget, GdkEventAny * event) { gtk_widget_queue_draw(widget); return 0; } static void sample_display_class_init (SampleDisplayClass *class) { GtkObjectClass *object_class; GtkWidgetClass *widget_class; int n; const int *p; GdkColor *c; object_class = (GtkObjectClass*) class; widget_class = (GtkWidgetClass*) class; widget_class->realize = sample_display_realize; widget_class->size_allocate = sample_display_size_allocate; widget_class->expose_event = sample_display_expose; widget_class->size_request = sample_display_size_request; widget_class->button_press_event = sample_display_button_press; widget_class->button_release_event = sample_display_button_release; widget_class->scroll_event = sample_display_scroll_event; widget_class->motion_notify_event = sample_display_motion_notify; widget_class->enter_notify_event = sample_display_enter_notify; widget_class->leave_notify_event = sample_display_leave_notify; widget_class->key_press_event = sample_display_key_press; widget_class->key_release_event = sample_display_key_release; widget_class->focus_in_event = sample_display_focus_in; widget_class->focus_out_event = sample_display_focus_out; widget_class->destroy_event = sample_display_destroy; sample_display_signals[SIG_SELECTION_CHANGED] = g_signal_new ("selection-changed", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (SampleDisplayClass, selection_changed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); sample_display_signals[SIG_WINDOW_CHANGED] = g_signal_new ("window-changed", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (SampleDisplayClass, window_changed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); sample_display_signals[SIG_MOUSE_OFFSET_CHANGED] = g_signal_new ("mouse-offset-changed", G_TYPE_FROM_CLASS (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (SampleDisplayClass, mouse_offset_changed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); class->selection_changed = NULL; class->window_changed = NULL; class->mouse_offset_changed = NULL; for(n = 0, p = default_colors, c = class->colors; n < SAMPLE_DISPLAYCOL_LAST; n++, c++) { c->red = *p++ * 65535 / 255; c->green = *p++ * 65535 / 255; c->blue = *p++ * 65535 / 255; c->pixel = (glong)((c->red & 0xff00)*256 + (c->green & 0xff00) + (c->blue & 0xff00)/256); gdk_colormap_alloc_color(gdk_colormap_get_system(), c, TRUE, TRUE); } for(n = 0, p = bg_colors, c = class->bg_colors; n < VIEW_COLOR_MAX; n++, c++) { c->red = *p++ * 65535 / 255; c->green = *p++ * 65535 / 255; c->blue = *p++ * 65535 / 255; c->pixel = (glong)((c->red & 0xff00)*256 + (c->green & 0xff00) + (c->blue & 0xff00)/256); gdk_colormap_alloc_color(gdk_colormap_get_system(), c, TRUE, TRUE); } for(n = 0, p = fg_colors, c = class->fg_colors; n < VIEW_COLOR_MAX; n++, c++) { c->red = *p++ * 65535 / 255; c->green = *p++ * 65535 / 255; c->blue = *p++ * 65535 / 255; c->pixel = (glong)((c->red & 0xff00)*256 + (c->green & 0xff00) + (c->blue & 0xff00)/256); gdk_colormap_alloc_color(gdk_colormap_get_system(), c, TRUE, TRUE); } } static void sample_display_init (SampleDisplay *s) { GTK_WIDGET_SET_FLAGS (GTK_WIDGET(s), GTK_CAN_FOCUS); s->backing_pixmap = NULL; s->view = NULL; s->selecting = SELECTING_NOTHING; s->selection_mode = SELECTION_MODE_NONE; s->marching_tag = 0; s->marching = FALSE; s->pulsing_tag = 0; s->pulse = FALSE; s->hand_scroll_tag = 0; s->mouse_x = 0; s->mouse_offset = 0; s->scroll_left_tag = 0; s->scroll_right_tag = 0; } GType sample_display_get_type (void) { static GType sample_display_type = 0; if (!sample_display_type) { static const GTypeInfo sample_display_info = { sizeof(SampleDisplayClass), NULL, /* base_init */ NULL, /* base_finalize */ (GClassInitFunc) sample_display_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (SampleDisplay), 0, /* n_preallocs */ (GInstanceInitFunc) sample_display_init, }; sample_display_type = g_type_register_static (GTK_TYPE_WIDGET, "SampleDisplay", &sample_display_info, 0); } return sample_display_type; } GtkWidget* sample_display_new (void) { return GTK_WIDGET (g_object_new (sample_display_get_type (), NULL)); } sweep-0.9.3/src/paste_dialogs.c0000644000175000017500000002747310777660311015162 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include #include "sweep_app.h" #include "db_slider.h" #include "edit.h" #include "interface.h" #include "print.h" #include "../pixmaps/pastemix.xpm" #include "../pixmaps/pastexfade.xpm" /*#define DEBUG*/ #if 0 static GtkWidget * create_pixmap_button (GtkWidget * widget, gchar ** xpm_data, const gchar * label_text, const gchar * tip_text, GCallback clicked) { GtkWidget * hbox; GtkWidget * label; GtkWidget * pixmap; GtkWidget * button; GtkTooltips * tooltips; button = gtk_button_new (); hbox = gtk_hbox_new (FALSE, 2); gtk_container_add (GTK_CONTAINER(button), hbox); gtk_container_set_border_width (GTK_CONTAINER(button), 8); gtk_widget_show (hbox); if (xpm_data != NULL) { pixmap = create_widget_from_xpm (widget, xpm_data); gtk_box_pack_start (GTK_BOX(hbox), pixmap, FALSE, FALSE, 8); gtk_widget_show (pixmap); } if (label_text != NULL) { label = gtk_label_new (label_text); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 8); gtk_widget_show (label); } if (tip_text != NULL) { tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, tip_text, NULL); } if (clicked != NULL) { g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK(clicked), NULL); } return button; } #endif static void paste_dialog_destroy (GtkWidget * widget, gpointer data) { sw_sample * sample = (sw_sample *)data; sample_set_edit_state (sample, SWEEP_EDIT_STATE_IDLE); } static void paste_xfade_dialog_ok_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkWidget * slider; GtkWidget * checkbutton; sw_sample * sample = (sw_sample *)data; gdouble src_gain_start, src_gain_end, dest_gain_start, dest_gain_end; dialog = gtk_widget_get_toplevel (widget); slider = g_object_get_data (G_OBJECT(dialog), "src_slider"); src_gain_start = (double) db_slider_get_value (DB_SLIDER(slider)); slider = g_object_get_data (G_OBJECT(dialog), "src_slider2"); src_gain_end = (double) db_slider_get_value (DB_SLIDER(slider)); checkbutton = g_object_get_data (G_OBJECT(dialog), "src_invert"); if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(checkbutton))) { src_gain_start *= -1.0; src_gain_end *= -1.0; } slider = g_object_get_data (G_OBJECT(dialog), "dest_slider"); dest_gain_start = (double) db_slider_get_value (DB_SLIDER(slider)); slider = g_object_get_data (G_OBJECT(dialog), "dest_slider2"); dest_gain_end = (double) db_slider_get_value (DB_SLIDER(slider)); checkbutton = g_object_get_data (G_OBJECT(dialog), "dest_invert"); if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(checkbutton))) { dest_gain_start *= -1.0; dest_gain_end *= -1.0; } gtk_widget_hide (dialog); do_paste_xfade (sample, src_gain_start, src_gain_end, dest_gain_start, dest_gain_end); sample_set_edit_state (sample, SWEEP_EDIT_STATE_IDLE); } static void paste_mix_dialog_ok_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkWidget * slider; GtkWidget * checkbutton; sw_sample * sample = (sw_sample *)data; gdouble src_gain, dest_gain; dialog = gtk_widget_get_toplevel (widget); slider = g_object_get_data (G_OBJECT(dialog), "src_slider"); src_gain = (double) db_slider_get_value (DB_SLIDER(slider)); checkbutton = g_object_get_data (G_OBJECT(dialog), "src_invert"); if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(checkbutton))) { src_gain *= -1.0; } slider = g_object_get_data (G_OBJECT(dialog), "dest_slider"); dest_gain = (double) db_slider_get_value (DB_SLIDER(slider)); checkbutton = g_object_get_data (G_OBJECT(dialog), "dest_invert"); if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(checkbutton))) { dest_gain *= -1.0; } gtk_widget_hide (dialog); do_paste_mix (sample, src_gain, dest_gain); sample_set_edit_state (sample, SWEEP_EDIT_STATE_IDLE); } static void paste_dialog_cancel_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; sw_sample * sample = (sw_sample *)data; dialog = gtk_widget_get_toplevel (widget); gtk_widget_hide (dialog); sample_set_edit_state (sample, SWEEP_EDIT_STATE_IDLE); } static void create_paste_dialog (sw_sample * sample, gboolean xfade) { GtkWidget * dialog; GtkWidget * main_vbox, * vbox; GtkWidget * hbox, * hbox2; GtkWidget * frame; GtkWidget * slider; GtkWidget * checkbutton; GtkWidget * ebox; GtkWidget * pixmap; GtkWidget * label; GtkWidget * ok_button, * button; GtkAccelGroup * accel_group; GtkTooltips * tooltips; gchar * title, * common_slider_title; sw_time_t duration; #undef BUF_LEN #define BUF_LEN 16 char buf[BUF_LEN]; if (xfade) { common_slider_title = _("Start gain"); } else { common_slider_title = _("Gain"); } dialog = gtk_dialog_new (); gtk_window_set_wmclass(GTK_WINDOW(dialog), "paste_dialog", "Sweep"); if (xfade) { gtk_window_set_title(GTK_WINDOW(dialog), _("Sweep: Paste crossfade")); } else { gtk_window_set_title(GTK_WINDOW(dialog), _("Sweep: Paste mix")); } gtk_window_set_resizable (GTK_WINDOW(dialog), FALSE); gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE); accel_group = gtk_accel_group_new (); gtk_window_add_accel_group (GTK_WINDOW(dialog), accel_group); g_signal_connect (G_OBJECT(dialog), "destroy", G_CALLBACK (paste_dialog_destroy), sample); #if 0 gtk_accel_group_add (accel_group, GDK_w, GDK_CONTROL_MASK, GDK_NONE, GTK_OBJECT(dialog), "destroy"); #endif main_vbox = GTK_DIALOG(dialog)->vbox; hbox = gtk_hbox_new (TRUE, 0); gtk_box_pack_start (GTK_BOX(main_vbox), hbox, TRUE, TRUE, 8); gtk_widget_show (hbox); /* Source */ title = g_strdup_printf ("%s: %s", _("Source"), _("Clipboard")); frame = gtk_frame_new (title); gtk_container_set_border_width (GTK_CONTAINER(frame), 8); gtk_box_pack_start (GTK_BOX(hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); g_free (title); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(frame), vbox); gtk_widget_show (vbox); hbox2 = gtk_hbox_new (TRUE, 8); gtk_box_pack_start (GTK_BOX(vbox), hbox2, TRUE, TRUE, 2); gtk_widget_show (hbox2); slider = db_slider_new (common_slider_title, (xfade ? 0.0 : 1.0), 0.0, 2.0); gtk_box_pack_start (GTK_BOX(hbox2), slider, TRUE, TRUE, 2); gtk_widget_show (slider); g_object_set_data (G_OBJECT(dialog), "src_slider", slider); if (xfade) { slider = db_slider_new (_("End gain"), 1.0, 0.0, 2.0); gtk_box_pack_start (GTK_BOX(hbox2), slider, TRUE, TRUE, 2); gtk_widget_show (slider); g_object_set_data (G_OBJECT(dialog), "src_slider2", slider); } checkbutton = gtk_check_button_new_with_label (_("Invert phase")); gtk_box_pack_start (GTK_BOX (vbox), checkbutton, TRUE, FALSE, 2); gtk_widget_show (checkbutton); g_object_set_data (G_OBJECT(dialog), "src_invert", checkbutton); /* Destination */ title = g_strdup_printf ("%s: %s", _("Destination"), g_basename (sample->pathname)); frame = gtk_frame_new (title); gtk_container_set_border_width (GTK_CONTAINER(frame), 8); gtk_box_pack_start (GTK_BOX(hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); g_free (title); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(frame), vbox); gtk_widget_show (vbox); hbox2 = gtk_hbox_new (TRUE, 8); gtk_box_pack_start (GTK_BOX(vbox), hbox2, TRUE, TRUE, 2); gtk_widget_show (hbox2); slider = db_slider_new (common_slider_title, 1.0, 0.0, 2.0); gtk_box_pack_start (GTK_BOX(hbox2), slider, TRUE, TRUE, 2); gtk_widget_show (slider); g_object_set_data (G_OBJECT(dialog), "dest_slider", slider); if (xfade) { slider = db_slider_new (_("End gain"), 0.0, 0.0, 2.0); gtk_box_pack_start (GTK_BOX(hbox2), slider, TRUE, TRUE, 2); gtk_widget_show (slider); g_object_set_data (G_OBJECT(dialog), "dest_slider2", slider); } checkbutton = gtk_check_button_new_with_label (_("Invert phase")); gtk_box_pack_start (GTK_BOX (vbox), checkbutton, TRUE, FALSE, 2); gtk_widget_show (checkbutton); g_object_set_data (G_OBJECT(dialog), "dest_invert", checkbutton); /* Info frame */ frame = gtk_frame_new (NULL); gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE, TRUE, 4); gtk_frame_set_shadow_type (GTK_FRAME(frame), GTK_SHADOW_IN); gtk_widget_show (frame); ebox = gtk_event_box_new (); gtk_container_add (GTK_CONTAINER(frame), ebox); gtk_widget_show (ebox); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, ebox, _("Indicates the total duration of the clipboard, " "which is the maximum length that will be pasted."), NULL); hbox = gtk_hbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(ebox), hbox); gtk_container_set_border_width (GTK_CONTAINER(hbox), 2); gtk_widget_show (hbox); if (xfade) { pixmap = create_widget_from_xpm (dialog, pastexfade_xpm); } else { pixmap = create_widget_from_xpm (dialog, pastemix_xpm); } gtk_box_pack_start (GTK_BOX(hbox), pixmap, FALSE, FALSE, 4); gtk_widget_show (pixmap); label = gtk_label_new (_("Clipboard duration:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); duration = frames_to_time (sample->sounddata->format, clipboard_width ()); snprint_time (buf, BUF_LEN, duration); label = gtk_label_new (buf); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); /* OK */ ok_button = gtk_button_new_with_label (xfade ? _("Crossfade") : _("Mix"));; GTK_WIDGET_SET_FLAGS (GTK_WIDGET (ok_button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), ok_button, TRUE, TRUE, 0); gtk_widget_show (ok_button); if (xfade) { g_signal_connect (G_OBJECT(ok_button), "clicked", G_CALLBACK (paste_xfade_dialog_ok_cb), sample); } else { g_signal_connect (G_OBJECT(ok_button), "clicked", G_CALLBACK (paste_mix_dialog_ok_cb), sample); } /* Cancel */ button = gtk_button_new_with_label (xfade ? _("Don't crossfade") : _("Don't mix")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE , 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (paste_dialog_cancel_cb), sample); gtk_widget_grab_default (ok_button); sample_set_edit_state (sample, SWEEP_EDIT_STATE_BUSY); sample_set_edit_mode (sample, SWEEP_EDIT_MODE_FILTER); sample_set_progress_percent (sample, 0); if (!GTK_WIDGET_VISIBLE(dialog)) { gtk_widget_show (dialog); } else { gdk_window_raise (dialog->window); } } void create_paste_mix_dialog (sw_sample * sample) { create_paste_dialog (sample, FALSE); } void create_paste_xfade_dialog (sw_sample * sample) { create_paste_dialog (sample, TRUE); } sweep-0.9.3/src/levelmeter.c0000644000175000017500000001704010777660160014477 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include "levelmeter.h" #define LEVELMETER_DEFAULT_WIDTH 4 #define LEVELMETER_DEFAULT_HEIGHT 20 /* Number of divisions */ #define LEVELMETER_DEFAULT_DIVISIONS 10 /* Start of 'high' [red] divisions */ #define LEVELMETER_DEFAULT_HIGH 7 /* Local data */ static GtkWidgetClass *parent_class = NULL; static GdkColor col_red, col_green; static GtkStyle *levelmeter_style = NULL; guint levelmeter_get_level(LevelMeter * levelmeter) { g_return_val_if_fail(levelmeter != NULL, 0); g_return_val_if_fail(IS_LEVELMETER(levelmeter), 0); return levelmeter->level; } void levelmeter_set_level(LevelMeter * levelmeter, guint level) { g_return_if_fail(levelmeter != NULL); g_return_if_fail(IS_LEVELMETER(levelmeter)); levelmeter->level = level; /* gtk_widget_queue_draw_area(GTK_WIDGET(levelmeter), gint x, gint y, gint width, gint height) */ } static void levelmeter_realize(GtkWidget * widget) { LevelMeter *levelmeter; GdkWindowAttr attributes; gint attributes_mask; g_return_if_fail(widget != NULL); g_return_if_fail(IS_LEVELMETER(widget)); GTK_WIDGET_SET_FLAGS(widget, GTK_REALIZED); levelmeter = LEVELMETER(widget); attributes.x = widget->allocation.x; attributes.y = widget->allocation.y; attributes.width = widget->allocation.width; attributes.height = widget->allocation.height; attributes.wclass = GDK_INPUT_OUTPUT; /* XXX */ attributes.window_type = GDK_WINDOW_CHILD; attributes.event_mask = gtk_widget_get_events(widget) | GDK_EXPOSURE_MASK #if 0 | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK #endif ; attributes.visual = gtk_widget_get_visual(widget); attributes.colormap = gtk_widget_get_colormap(widget); attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP; widget->window = gdk_window_new(widget->parent->window, &attributes, attributes_mask); widget->style = gtk_style_attach(widget->style, widget->window); gdk_window_set_user_data(widget->window, widget); gtk_style_set_background(widget->style, widget->window, GTK_STATE_ACTIVE); } static void levelmeter_size_request(GtkWidget * widget, GtkRequisition * requisition) { requisition->width = LEVELMETER_DEFAULT_WIDTH; requisition->height = LEVELMETER_DEFAULT_HEIGHT; } static void levelmeter_size_allocate(GtkWidget * widget, GtkAllocation * allocation) { LevelMeter *levelmeter; g_return_if_fail(widget != NULL); g_return_if_fail(IS_LEVELMETER(widget)); g_return_if_fail(allocation != NULL); widget->allocation = *allocation; if (GTK_WIDGET_REALIZED(widget)) { levelmeter = LEVELMETER(widget); gdk_window_move_resize(widget->window, allocation->x, allocation->y, allocation->width, allocation->height); } } static void levelmeter_draw (GtkWidget * widget, GdkRectangle * area) { gint i, levelmeter_height; levelmeter_height = widget->allocation.height / LEVELMETER_DEFAULT_DIVISIONS; gdk_window_clear_area(widget->window, 0, 0, widget->allocation.width, widget->allocation.height); if (!levelmeter_style) { levelmeter_style = gtk_style_new(); levelmeter_style->fg_gc[GTK_STATE_NORMAL] = gdk_gc_new(widget->window); } gdk_gc_set_foreground(levelmeter_style->fg_gc[GTK_STATE_NORMAL], &col_green); for (i = 0; i < LEVELMETER_DEFAULT_HIGH && i <= LEVELMETER(widget)->level; i++) { gdk_draw_rectangle(widget->window, levelmeter_style->fg_gc[widget->state], TRUE, 0, (LEVELMETER_DEFAULT_DIVISIONS - i) * levelmeter_height, widget->allocation.width, levelmeter_height - 1); } gdk_gc_set_foreground(levelmeter_style->fg_gc[GTK_STATE_NORMAL], &col_red); for (; i <= LEVELMETER_DEFAULT_DIVISIONS && i <= LEVELMETER(widget)->level; i++) { gdk_draw_rectangle(widget->window, levelmeter_style->fg_gc[widget->state], TRUE, 0, (LEVELMETER_DEFAULT_DIVISIONS - i) * levelmeter_height, widget->allocation.width, levelmeter_height - 1); } } static gint levelmeter_expose(GtkWidget * widget, GdkEventExpose * event) { levelmeter_draw(widget, NULL); return FALSE; } static void levelmeter_destroy(GtkObject * object) { LevelMeter *levelmeter; g_return_if_fail(object != NULL); g_return_if_fail(IS_LEVELMETER(object)); levelmeter = LEVELMETER(object); /* unref contained widgets */ if (GTK_OBJECT_CLASS(parent_class)->destroy) (*GTK_OBJECT_CLASS(parent_class)->destroy) (object); } static void levelmeter_class_init(LevelMeterClass * class) { GtkObjectClass *object_class; GtkWidgetClass *widget_class; object_class = (GtkObjectClass *) class; widget_class = (GtkWidgetClass *) class; parent_class = gtk_type_class(gtk_widget_get_type()); object_class->destroy = levelmeter_destroy; widget_class->realize = levelmeter_realize; widget_class->expose_event = levelmeter_expose; widget_class->size_request = levelmeter_size_request; widget_class->size_allocate = levelmeter_size_allocate; /* widget_class->button_press_event = levelmeter_button_press; widget_class->button_release_event = levelmeter_button_release; widget_class->motion_notify_event = levelmeter_motion_notify; */ col_green.red = 0xFFFF; col_green.green = 0xFFFF; col_green.blue = 0; gdk_colormap_alloc_color (gdk_colormap_get_system(), &col_green, TRUE, TRUE); col_red.red = 0xFFFF; col_red.green = 0; col_red.blue = 0; gdk_colormap_alloc_color (gdk_colormap_get_system(), &col_red, TRUE, TRUE); } static void levelmeter_init(LevelMeter * levelmeter) { levelmeter->level = 0; } GType levelmeter_get_type() { static GType levelmeter_type = 0; if (!levelmeter_type) { static const GTypeInfo levelmeter_info = { sizeof(LevelMeterClass), NULL, /* base_init */ NULL, /* base_finalize */ (GClassInitFunc) levelmeter_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (LevelMeter), 0, /* n_preallocs */ (GInstanceInitFunc) levelmeter_init, }; levelmeter_type = g_type_register_static (GTK_TYPE_WIDGET, "LevelMeter", &levelmeter_info, 0); } return levelmeter_type; } GtkWidget * levelmeter_new(guint level) { LevelMeter *levelmeter; levelmeter = LEVELMETER (g_object_new (levelmeter_get_type (), NULL)); levelmeter_set_level(levelmeter, level); return GTK_WIDGET(levelmeter); } sweep-0.9.3/src/plugin.h0000644000175000017500000000157410777660160013643 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __PLUGIN_H__ #define __PLUGIN_H__ void init_plugins (void); #endif /* __PLUGIN_H__ */ sweep-0.9.3/src/file_dialogs.h0000644000175000017500000000271110777660160014760 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __FILE_DIALOGS_H__ #define __FILE_DIALOGS_H__ #include void mp3_unsupported_dialog (void); sw_file_format_t guess_file_format (gchar * pathname); gboolean sample_mtime_changed (sw_sample * sample); sw_sample * sample_load(const gchar * pathname); void sample_load_cb(GtkWidget * wiget, gpointer data); void sample_revert_ok_cb (GtkWidget * widget, gpointer data); void sample_revert_cb (GtkWidget * widget, gpointer data); void sample_save_as_cb(GtkWidget * wiget, gpointer data); void sample_save_cb(GtkWidget * wiget, gpointer data); void sample_store_and_free_pathname (sw_sample * sample, gchar * pathname); #endif /* __FILE_DIALOGS_H__ */ sweep-0.9.3/src/head.c0000644000175000017500000005344510777660160013245 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include "sweep_app.h" #include "head.h" #include "callbacks.h" #include "interface.h" #include "print.h" #include "play.h" #include "record.h" #include "sample.h" #include "../pixmaps/playrev.xpm" #include "../pixmaps/loop.xpm" #include "../pixmaps/recpausesel.xpm" #include "../pixmaps/stop.xpm" #include "../pixmaps/prevtrk.xpm" #include "../pixmaps/nexttrk.xpm" #include "../pixmaps/ff.xpm" #include "../pixmaps/rew.xpm" #include "../pixmaps/upleft.xpm" #include "../pixmaps/lowleft.xpm" #include "../pixmaps/upright.xpm" #include "../pixmaps/lowright.xpm" #define FRAMERATE 10 extern GtkStyle * style_wb; extern GtkStyle * style_LCD; extern GtkStyle * style_light_grey; extern GtkStyle * style_red_grey; extern GtkStyle * style_green_grey; extern GtkStyle * style_red; static void head_init_repeater (sw_head * head, GtkFunction function, gpointer data) { function (data); g_mutex_lock (head->head_mutex); if (head->repeater_tag > 0) { g_source_remove (head->repeater_tag); } head->repeater_tag = g_timeout_add ((guint32)1000/FRAMERATE, function, data); g_mutex_unlock (head->head_mutex); } void hctl_repeater_released_cb (GtkWidget * widget, gpointer data) { sw_head_controller * hctl = (sw_head_controller *)data; sw_head * head = hctl->head; g_mutex_lock (head->head_mutex); if (head->repeater_tag > 0) { g_source_remove (head->repeater_tag); head->repeater_tag = 0; } g_mutex_unlock (head->head_mutex); } void hctl_loop_toggled_cb (GtkWidget * widget, gpointer data) { sw_head_controller * hctl = (sw_head_controller *)data; sw_head * head = hctl->head; gboolean active; active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget)); head_set_looping (head, active); } void hctl_reverse_toggled_cb (GtkWidget * widget, gpointer data) { sw_head_controller * hctl = (sw_head_controller *)data; sw_head * head = hctl->head; gboolean active; active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget)); head_set_reverse (head, active); } void hctl_reverse_toggle_cb (GtkWidget * widget, gpointer data) { sw_head_controller * hctl = (sw_head_controller *)data; sw_head * head = hctl->head; head_set_reverse (head, !head->reverse); } void hctl_mute_toggled_cb (GtkWidget * widget, gpointer data) { sw_head_controller * hctl = (sw_head_controller *)data; sw_head * head = hctl->head; gboolean active; active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget)); head_set_mute (head, active); } void hctl_mute_toggle_cb (GtkWidget * widget, gpointer data) { sw_head_controller * hctl = (sw_head_controller *)data; sw_head * head = hctl->head; head_set_mute (head, !head->mute); } void hctl_record_cb (GtkWidget * widget, gpointer data) { sw_head_controller * hctl = (sw_head_controller *)data; sw_head * head = hctl->head; record_cb (widget, head); } void hctl_record_stop_cb (GtkWidget * widget, gpointer data) { sw_head_controller * hctl = (sw_head_controller *)data; sw_head * head = hctl->head; stop_recording (head->sample); } void hctl_refresh_looping (sw_head_controller * hctl) { sw_head * head = hctl->head; if (hctl->loop_toggle) { g_signal_handlers_block_matched (GTK_OBJECT(hctl->loop_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(hctl->loop_toggle), head->looping); g_signal_handlers_unblock_matched (GTK_OBJECT(hctl->loop_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); } } void hctl_refresh_reverse (sw_head_controller * hctl) { sw_head * head = hctl->head; if (hctl->reverse_toggle) { g_signal_handlers_block_matched (GTK_OBJECT(hctl->reverse_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(hctl->reverse_toggle), head->reverse); g_signal_handlers_unblock_matched (GTK_OBJECT(hctl->reverse_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); } } void hctl_refresh_mute (sw_head_controller * hctl) { sw_head * head = hctl->head; if (hctl->mute_toggle) { g_signal_handlers_block_matched (GTK_OBJECT(hctl->mute_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(hctl->mute_toggle), head->mute); g_signal_handlers_unblock_matched (GTK_OBJECT(hctl->mute_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); } } void hctl_refresh_going (sw_head_controller * hctl) { sw_head * head = hctl->head; if (hctl->go_toggle) { g_signal_handlers_block_matched (GTK_OBJECT(hctl->go_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(hctl->go_toggle), head->going); g_signal_handlers_unblock_matched (GTK_OBJECT(hctl->go_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); } } void hctl_refresh_offset (sw_head_controller * hctl) { sw_head * head = hctl->head; sw_sample * sample = head->sample; sw_framecount_t offset = head->offset; #define BUF_LEN 16 char buf[BUF_LEN]; snprint_time (buf, BUF_LEN, frames_to_time (sample->sounddata->format, offset)); gtk_label_set_text (GTK_LABEL(hctl->pos_label), buf); } void hctl_refresh_gain (sw_head_controller * hctl) { } static gboolean h_rewind_step (gpointer data) { sw_head * head = (sw_head *)data; sw_sample * sample = head->sample; gint step; step = sample->sounddata->format->rate; /* 1 second */ head_set_offset (head, head->offset - step); return TRUE; } static gboolean h_ffwd_step (gpointer data) { sw_head * head = (sw_head *)data; sw_sample * sample = head->sample; gint step; step = sample->sounddata->format->rate; /* 1 second */ head_set_offset (head, head->offset + step); return TRUE; } void hctl_rewind_pressed_cb (GtkWidget * widget, gpointer data) { sw_head_controller * hctl = (sw_head_controller *)data; sw_head * head = hctl->head; head_init_repeater (head, (GtkFunction)h_rewind_step, head); } void hctl_ffwd_pressed_cb (GtkWidget * widget, gpointer data) { sw_head_controller * hctl = (sw_head_controller *)data; sw_head * head = hctl->head; head_init_repeater (head, (GtkFunction)h_ffwd_step, head); } void hctl_goto_start_cb (GtkWidget * widget, gpointer data) { sw_head_controller * hctl = (sw_head_controller *)data; sw_head * head = hctl->head; /*head_set_scrubbing (head, FALSE);*/ head_set_offset (head, 0); } void hctl_goto_end_cb (GtkWidget * widget, gpointer data) { sw_head_controller * hctl = (sw_head_controller *)data; sw_head * head = hctl->head; sw_sample * sample = head->sample; /*head_set_scrubbing (head, FALSE);*/ head_set_offset (head, sample->sounddata->nr_frames); } void hctl_destroy_cb (GtkWidget * widget, gpointer data) { sw_head_controller * hctl = (sw_head_controller *)data; hctl->head->controllers = g_list_remove (hctl->head->controllers, hctl); g_free (hctl); } void head_controller_set_head (sw_head_controller * hctl, sw_head * head) { sw_head * old_head = hctl->head; if (old_head != NULL) { old_head->controllers = g_list_remove (old_head->controllers, hctl); } hctl->head = head; if (g_list_find (head->controllers, hctl) == 0) { head->controllers = g_list_append (head->controllers, hctl); } hctl_refresh_looping (hctl); hctl_refresh_reverse (hctl); hctl_refresh_mute (hctl); hctl_refresh_going (hctl); hctl_refresh_offset (hctl); hctl_refresh_gain (hctl); } GtkWidget * head_controller_create (sw_head * head, GtkWidget * window, sw_head_controller ** hctl_ret) { sw_head_controller * hctl; GtkWidget * handlebox; GtkWidget * hbox; GtkWidget * tool_hbox; GtkWidget * frame; GtkWidget * lcdbox; GtkWidget * imagebox; GtkWidget * pixmap; GtkWidget * button; GtkWidget * label; GtkStyle * style; GtkTooltips * tooltips; g_assert (head != NULL); hctl = g_malloc0 (sizeof (sw_head_controller)); hctl->head = head; if (head->type == SWEEP_HEAD_RECORD) { style = style_red_grey; } else { style = style_green_grey; } handlebox = gtk_handle_box_new (); /* gtk_box_pack_start (GTK_BOX (main_vbox), handlebox, FALSE, TRUE, 0); gtk_widget_show (handlebox); */ gtk_widget_set_style (handlebox, style); g_signal_connect (G_OBJECT (handlebox), "destroy", G_CALLBACK (hctl_destroy_cb), hctl); hbox = gtk_hbox_new (FALSE, 8); gtk_container_add (GTK_CONTAINER (handlebox), hbox); gtk_widget_show (hbox); gtk_widget_set_size_request(hbox, -1, 24); frame = gtk_frame_new (NULL); gtk_widget_set_style (frame, style_light_grey); gtk_box_pack_start (GTK_BOX(hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); lcdbox = gtk_event_box_new (); gtk_widget_set_style (lcdbox, style_LCD); gtk_container_add (GTK_CONTAINER(frame), lcdbox); gtk_widget_show (lcdbox); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, lcdbox, _("Cursor position (indicator)"), NULL); tool_hbox = gtk_hbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(lcdbox), tool_hbox); gtk_widget_show (tool_hbox); imagebox = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(tool_hbox), imagebox, FALSE, FALSE, 0); gtk_widget_show (imagebox); pixmap = create_widget_from_xpm (window, upleft_xpm); gtk_widget_show (pixmap); gtk_box_pack_start (GTK_BOX(imagebox), pixmap, FALSE, FALSE, 0); pixmap = create_widget_from_xpm (window, lowleft_xpm); gtk_widget_show (pixmap); gtk_box_pack_end (GTK_BOX(imagebox), pixmap, FALSE, FALSE, 0); label = gtk_label_new ("00:00:00.000"); gtk_box_pack_start (GTK_BOX(tool_hbox), label, TRUE, TRUE, 0); gtk_widget_show (label); hctl->pos_label = label; imagebox = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(tool_hbox), imagebox, FALSE, FALSE, 0); gtk_widget_show (imagebox); pixmap = create_widget_from_xpm (window, upright_xpm); gtk_widget_show (pixmap); gtk_box_pack_start (GTK_BOX(imagebox), pixmap, FALSE, FALSE, 0); pixmap = create_widget_from_xpm (window, lowright_xpm); gtk_widget_show (pixmap); gtk_box_pack_end (GTK_BOX(imagebox), pixmap, FALSE, FALSE, 0); tool_hbox = gtk_hbox_new (TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), tool_hbox, FALSE, TRUE, 0); gtk_widget_show (tool_hbox); button = create_pixmap_button (window, playrev_xpm, _("Reverse mode (toggle)"), style, SW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (hctl_reverse_toggled_cb), NULL, NULL, hctl); g_signal_handlers_block_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(button), head->reverse); g_signal_handlers_unblock_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); hctl->reverse_toggle = button; button = create_pixmap_button (window, loop_xpm, _("Loop mode recording (toggle)"), style, SW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (hctl_loop_toggled_cb), NULL, NULL, hctl); g_signal_handlers_block_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(button), head->looping); g_signal_handlers_unblock_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); hctl->loop_toggle = button; tool_hbox = gtk_hbox_new (TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), tool_hbox, TRUE, TRUE, 0); gtk_widget_show (tool_hbox); button = create_pixmap_button (window, recpausesel_xpm, _("Record into selection"), style, SW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (hctl_record_cb), NULL, NULL, hctl); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); #if 0 gtk_widget_add_accelerator (button, "clicked", accel_group, GDK_r, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); #endif g_signal_handlers_block_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(button), head->going); g_signal_handlers_unblock_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, hctl); hctl->go_toggle = button; button = create_pixmap_button (window, stop_xpm, _("Stop"), style, SW_TOOLBAR_BUTTON, G_CALLBACK (hctl_record_stop_cb), NULL, NULL, hctl); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); tool_hbox = gtk_hbox_new (TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), tool_hbox, FALSE, TRUE, 0); gtk_widget_show (tool_hbox); button = create_pixmap_button (window, prevtrk_xpm, _("Go to beginning"), style, SW_TOOLBAR_BUTTON, G_CALLBACK (hctl_goto_start_cb), NULL, NULL, hctl); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); /*NOALLOC(button);*/ /* Rewind */ button = create_pixmap_button (window, rew_xpm, _("Rewind"), style, SW_TOOLBAR_BUTTON, NULL, G_CALLBACK (hctl_rewind_pressed_cb), G_CALLBACK (hctl_repeater_released_cb), hctl); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); /* NOALLOC(button);*/ /* Fast forward */ button = create_pixmap_button (window, ff_xpm, _("Fast forward"), style, SW_TOOLBAR_BUTTON, NULL, G_CALLBACK (hctl_ffwd_pressed_cb), G_CALLBACK (hctl_repeater_released_cb), hctl); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); /*NOALLOC(button);*/ /* End */ button = create_pixmap_button (window, nexttrk_xpm, _("Go to the end"), style, SW_TOOLBAR_BUTTON, G_CALLBACK (hctl_goto_end_cb), NULL, NULL, hctl); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); /*NOALLOC(button);*/ head->controllers = g_list_append (head->controllers, hctl); *hctl_ret = hctl; return handlebox; } /* head functions */ #define PBOOL(p) ((p) ? "TRUE" : "FALSE" ) int head_dump (sw_head * head) { printf ("head %p\toffset: %f", head, head->offset); printf ("\tstop:\t%d\n", head->stop_offset); printf ("\tgoing:\t%s\n", PBOOL(head->going)); printf ("\trestricted:\t%s\n", PBOOL(head->restricted)); printf ("\tlooping:\t%s\n", PBOOL(head->looping)); printf ("\tpreviewing:\t%s\n", PBOOL(head->previewing)); printf ("\treverse:\t%s\n", PBOOL(head->reverse)); printf ("\tmute:\t%s\n", PBOOL(head->mute)); printf ("\tgain:\t%f\n", head->gain); printf ("\trate:\t%f\n", head->rate); printf ("\tmix:\t%f\n", head->mix); return 0; } sw_head * head_new (sw_sample * sample, sw_head_t head_type) { sw_head * head; head = g_malloc0 (sizeof (sw_head)); head->sample = sample; head->head_mutex = g_mutex_new (); head->type = head_type; head->stop_offset = 0; head->offset = 0; head->going = FALSE; head->restricted = FALSE; head->looping = FALSE; head->previewing = FALSE; head->reverse = FALSE; head->mute = FALSE; head->gain = (head->type == SWEEP_HEAD_PLAY ? 0.7 : 1.0); head->rate = 1.0; head->mix = 0.0; head->repeater_tag = -1; head->controllers = NULL; return head; } void head_set_scrubbing (sw_head * h, gboolean scrubbing) { g_mutex_lock (h->head_mutex); h->scrubbing = scrubbing; g_mutex_unlock (h->head_mutex); } void head_set_previewing (sw_head * h, gboolean previewing) { g_mutex_lock (h->head_mutex); h->previewing = previewing; g_mutex_unlock (h->head_mutex); } void head_set_looping (sw_head * h, gboolean looping) { GList * gl; sw_head_controller * hctl; g_mutex_lock (h->head_mutex); h->looping = looping; for (gl = h->controllers; gl; gl = gl->next) { hctl = (sw_head_controller *)gl->data; hctl_refresh_looping (hctl); } g_mutex_unlock (h->head_mutex); } void head_set_reverse (sw_head * h, gboolean reverse) { GList * gl; sw_head_controller * hctl; g_mutex_lock (h->head_mutex); h->reverse = reverse; for (gl = h->controllers; gl; gl = gl->next) { hctl = (sw_head_controller *)gl->data; hctl_refresh_reverse (hctl); } g_mutex_unlock (h->head_mutex); } void head_set_mute (sw_head * h, gboolean mute) { GList * gl; sw_head_controller * hctl; g_mutex_lock (h->head_mutex); h->mute = mute; for (gl = h->controllers; gl; gl = gl->next) { hctl = (sw_head_controller *)gl->data; hctl_refresh_mute (hctl); } g_mutex_unlock (h->head_mutex); } void head_set_going (sw_head * h, gboolean going) { GList * gl; sw_head_controller * hctl; g_mutex_lock (h->head_mutex); h->going = going; for (gl = h->controllers; gl; gl = gl->next) { hctl = (sw_head_controller *)gl->data; hctl_refresh_going (hctl); } g_mutex_unlock (h->head_mutex); } void head_set_restricted (sw_head * h, gboolean restricted) { GList * gl; sw_head_controller * hctl; g_mutex_lock (h->head_mutex); h->restricted = restricted; for (gl = h->controllers; gl; gl = gl->next) { hctl = (sw_head_controller *)gl->data; hctl_refresh_going (hctl); } g_mutex_unlock (h->head_mutex); } void head_set_stop_offset (sw_head * h, sw_framecount_t offset) { g_mutex_lock (h->head_mutex); h->stop_offset = offset; g_mutex_unlock (h->head_mutex); } void head_set_offset (sw_head * h, sw_framecount_t offset) { GList * gl; sw_head_controller * hctl; g_mutex_lock (h->head_mutex); offset = CLAMP (offset, 0, h->sample->sounddata->nr_frames); h->offset = offset; for (gl = h->controllers; gl; gl = gl->next) { hctl = (sw_head_controller *)gl->data; hctl_refresh_offset (hctl); } if (h == h->sample->rec_head) sample_refresh_rec_marker (h->sample); g_mutex_unlock (h->head_mutex); } void head_set_gain (sw_head * h, gfloat gain) { GList * gl; sw_head_controller * hctl; g_mutex_lock (h->head_mutex); h->gain = gain; for (gl = h->controllers; gl; gl = gl->next) { hctl = (sw_head_controller *)gl->data; hctl_refresh_gain (hctl); } g_mutex_unlock (h->head_mutex); } void head_set_rate (sw_head * h, gfloat rate) { g_mutex_lock (h->head_mutex); h->rate = rate; g_mutex_unlock (h->head_mutex); } void head_set_monitor (sw_head * h, gboolean monitor) { g_mutex_lock (h->head_mutex); h->monitor = monitor; g_mutex_unlock (h->head_mutex); sample_update_device (h->sample); } static sw_framecount_t head_write_unrestricted (sw_head * head, sw_audio_t * buf, sw_framecount_t count) { sw_sample * sample = head->sample; sw_sounddata * sounddata = sample->sounddata; sw_format * f = sounddata->format; gpointer d; sw_audio_t * rd; sw_framecount_t i, j, t, b; d = sounddata->data + (int)frames_to_bytes (f, head->offset); rd = (sw_audio_t *)d; if (head->reverse) { b = 0; for (i = 0; i < count; i++) { for (j = 0; j < f->channels; j++) { t = (count-1 - i) * f->channels + j; rd[t] *= head->mix; rd[t] += (buf[b] * head->gain); b++; } } head->offset -= count; } else { for (i = 0; i < count * f->channels; i++) { rd[i] *= head->mix; rd[i] += (buf[i] * head->gain); } head->offset += count; } return count; } sw_framecount_t head_write (sw_head * head, sw_audio_t * buf, sw_framecount_t count) { sw_sample * sample = head->sample; sw_sounddata * sounddata = sample->sounddata; sw_format * f = sounddata->format; sw_framecount_t remaining = count, written = 0, n = 0; GList * gl; sw_sel * sel; while (head->restricted && remaining > 0) { g_mutex_lock (sounddata->sels_mutex); /* Find selection region that offset is or should be in */ if (head->reverse) { for (gl = g_list_last (sounddata->sels); gl; gl = gl->prev) { sel = (sw_sel *)gl->data; if (head->offset > sel->sel_end) head->offset = sel->sel_end; if (head->offset > sel->sel_start) { n = MIN (remaining, head->offset - sel->sel_start); break; } } } else { for (gl = sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; if (head->offset < sel->sel_start) head->offset = sel->sel_start; if (head->offset < sel->sel_end) { n = MIN (remaining, sel->sel_end - head->offset); break; } } } g_mutex_unlock (sounddata->sels_mutex); if (gl == NULL) { if (head->looping) { head->offset = head->reverse ? sounddata->nr_frames : 0; } else { head->going = FALSE; return written; } } else { written += head_write_unrestricted (head, buf, n); buf += (int)frames_to_samples (f, n); remaining -= n; } } if (remaining > 0) { written += head_write_unrestricted (head, buf, remaining); } return written; } sweep-0.9.3/src/sweep_typeconvert.c0000644000175000017500000000330010777660160016112 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include /* * Determine the number of samples occupied by a number of frames * in a given format. */ glong frames_to_samples (sw_format * format, sw_framecount_t nr_frames) { return (nr_frames * (glong)format->channels); } /* * Determine the size in bytes of a number of frames of a given format. */ glong frames_to_bytes (sw_format * format, sw_framecount_t nr_frames) { return (nr_frames * (glong)format->channels * sizeof(sw_audio_t)); } /* * Convert a number of frames to seconds */ sw_time_t frames_to_time (sw_format * format, sw_framecount_t nr_frames) { return ((gfloat)nr_frames / (gfloat)format->rate); } /* * Convert seconds to frames */ sw_framecount_t time_to_frames (sw_format * format, sw_time_t time) { return ((sw_framecount_t)((sw_time_t)format->rate * time)); } sweep-0.9.3/src/print.h0000644000175000017500000000254610777660160013501 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __PRINT_H__ #define __PRINT_H__ #include /* * Print a number of bytes to 3 significant figures * using standard abbreviations (GB, MB, kB, byte[s]) */ int snprint_bytes (gchar * s, gint n, glong nr_bytes); /* * Print a time in the format HH:MM:SS.sss */ int snprint_time (gchar * s, gint n, sw_time_t time); /* * Print a time in SMPTE format */ int snprint_time_smpte (gchar * s, gint n, sw_time_t time, gint F); /* * Parse a time format string (eg. 1:30:43.34) to a double */ double strtime_to_seconds (char * str); #endif /* __PRINT_H__ */ sweep-0.9.3/src/sample-display.h0000644000175000017500000001066310777660264015275 0ustar useruser/* * Sweep, a sound wave editor * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _SAMPLE_DISPLAY_H #define _SAMPLE_DISPLAY_H #include #include #include #include #include "view.h" #define SAMPLE_DISPLAY(obj) GTK_CHECK_CAST (obj, sample_display_get_type (), SampleDisplay) #define SAMPLE_DISPLAY_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, sample_display_get_type (), SampleDisplayClass) #define IS_SAMPLE_DISPLAY(obj) GTK_CHECK_TYPE (obj, sample_display_get_type ()) typedef struct _SampleDisplay SampleDisplay; typedef struct _SampleDisplayClass SampleDisplayClass; enum { SAMPLE_DISPLAYCOL_BG, SAMPLE_DISPLAYCOL_FG, SAMPLE_DISPLAYCOL_PLAY, SAMPLE_DISPLAYCOL_PAUSE, SAMPLE_DISPLAYCOL_ZERO, SAMPLE_DISPLAYCOL_SEL, SAMPLE_DISPLAYCOL_TMP_SEL, SAMPLE_DISPLAYCOL_CROSSING, SAMPLE_DISPLAYCOL_MINMAX, SAMPLE_DISPLAYCOL_HIGHLIGHT, SAMPLE_DISPLAYCOL_LOWLIGHT, SAMPLE_DISPLAYCOL_REC, SAMPLE_DISPLAYCOL_LAST }; struct _SampleDisplay { GtkWidget widget; GdkGC *bg_gc, *fg_gc, *play_gc, *user_gc, *rec_gc, *sel_gc, *tmp_sel_gc, *crossing_gc; GdkGC *minmax_gc, *zeroline_gc, *highlight_gc, *lowlight_gc; GdkGC * bg_gcs[VIEW_COLOR_MAX]; GdkGC * fg_gcs[VIEW_COLOR_MAX]; GdkPixmap * backing_pixmap; int width, height; /* Width and height of the widget */ sw_view * view; /* The view (and hence, sample) we're displaying */ /* current user offset of the sample */ int user_offset_x, old_user_offset_x; /* previous play_offset drawn */ int play_offset_x, old_play_offset_x; /* current recording offset */ int rec_offset_x, old_rec_offset_x; gint mouse_x; glong mouse_offset; /* what the pointer is currently pointing to */ int selecting; /* Current state of this sample-display */ int selection_mode; /* Mode of selection: replace or intersect */ gint marching_tag; /* gtk_timeout tag for marching ants */ gboolean marching; /* whether or not ants are marching */ gint pulsing_tag; /* gtk_timeout tag for cursor pulse */ gboolean pulse; gint hand_scroll_tag; /* gtk_timeout tag for natural hand scrolling */ gint hand_scroll_delta; /* natural hand scrolling */ /* Window panning */ int selecting_x0; /* the coordinate where the mouse was clicked */ int selecting_wins0; /* stored value of view->v_start when the mouse * was clicked */ /* Scrolling timeout tags */ gint scroll_left_tag, scroll_right_tag; /* Meta key down? */ gboolean meta_down; }; struct _SampleDisplayClass { GtkWidgetClass parent_class; GdkColor colors[SAMPLE_DISPLAYCOL_LAST]; GdkColor bg_colors[VIEW_COLOR_MAX]; GdkColor fg_colors[VIEW_COLOR_MAX]; void (*selection_changed)(SampleDisplay *s, int start, int end); void (*window_changed)(SampleDisplay *s, int start, int end); void (*mouse_offset_changed)(SampleDisplay *s, int mouse_offset); }; GType sample_display_get_type (void); GtkWidget* sample_display_new (void); void sample_display_refresh (SampleDisplay *s); sw_framecount_t sample_display_get_mouse_offset (SampleDisplay * s); void sample_display_set_view (SampleDisplay *s, sw_view *view); void sample_display_refresh_user_marker (SampleDisplay *s); void sample_display_refresh_play_marker (SampleDisplay *s); void sample_display_refresh_rec_marker (SampleDisplay *s); void sample_display_set_cursor (SampleDisplay * s, GdkCursor * cursor); void sample_display_set_window (SampleDisplay *s, sw_framecount_t start, sw_framecount_t end); void sample_display_clear_sel (SampleDisplay * s); void sample_display_sink_tmp_sel (SampleDisplay * s); void sample_display_start_marching_ants (SampleDisplay * s); void sample_display_stop_marching_ants (SampleDisplay * s); #endif /* _SAMPLE_DISPLAY_H */ sweep-0.9.3/src/cursors.h0000644000175000017500000000242610777660160014042 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __CURSORS_H__ #define __CURSORS_H__ enum { SWEEP_CURSOR_CROSSHAIR, SWEEP_CURSOR_MOVE, SWEEP_CURSOR_HORIZ, SWEEP_CURSOR_HORIZ_PLUS, SWEEP_CURSOR_HORIZ_MINUS, SWEEP_CURSOR_ZOOM_IN, SWEEP_CURSOR_ZOOM_OUT, SWEEP_CURSOR_NEEDLE, SWEEP_CURSOR_PENCIL, SWEEP_CURSOR_NOISE, SWEEP_CURSOR_HAND_OPEN, SWEEP_CURSOR_HAND_CLOSE, SWEEP_CURSOR_MAX }; void create_bitmap_and_mask_from_xpm (GdkBitmap ** bitmap, GdkBitmap ** mask, gchar ** xpm); void init_cursors (void); #endif sweep-0.9.3/src/sweep_compat.h0000644000175000017500000000170310777660160015025 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "config.h" #ifndef WIN32 # define sw_stat_regular(mode) (S_ISREG((mode)) || S_ISLNK((mode))) #else # define sw_stat_regular(mode) ((mode) & S_IFREG) #endif sweep-0.9.3/src/edit.h0000644000175000017500000000424610777660160013271 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __EDIT_H__ #define __EDIT_H__ #include void * sweep_large_alloc_zero (size_t len, int prot); void * sweep_large_alloc_data (size_t len, void * data, int prot); sw_framecount_t clipboard_width (void); sw_edit_buffer * edit_buffer_ref (sw_edit_buffer * eb); sw_edit_buffer * edit_buffer_from_sample (sw_sample * sample); void edit_buffer_destroy (sw_edit_buffer * eb); sw_sample * splice_out_sel (sw_sample * sample); sw_sample * splice_in_eb (sw_sample * sample, sw_edit_buffer * eb); sw_sample * crop_out (sw_sample * sample); sw_sample * crop_in (sw_sample * sample, sw_edit_buffer * eb); sw_sample * paste_over (sw_sample * sample, sw_edit_buffer * eb); void do_copy (sw_sample * sample); void do_cut (sw_sample * sample); void do_clear (sw_sample * sample); void do_delete (sw_sample * sample); void do_crop (sw_sample * sample); sw_op_instance * do_paste_in (sw_sample * in, sw_sample ** out); void do_paste_insert (sw_sample * sample); void do_paste_mix (sw_sample * sample, gdouble src_gain, gdouble dest_gain); void do_paste_xfade (sw_sample * sample, gdouble src_gain_start, gdouble src_gain_end, gdouble dest_gain_start, gdouble dest_gain_end); sw_op_instance * do_paste_over (sw_sample * in, sw_sample ** out); #if 0 void do_paste_as_new (sw_sample * in, sw_sample ** out); #else sw_sample * do_paste_as_new (void); #endif #endif /* __EDIT_H__ */ sweep-0.9.3/src/about_dialog.h0000644000175000017500000000162310777660160014771 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __ABOUT_DIALOG_H__ #define __ABOUT_DIALOG_H__ void about_dialog_create(void); #endif /* __ABOUT_DIALOG_H__ */ sweep-0.9.3/src/print.c0000644000175000017500000000656310777660160013477 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include /* * Print a number of bytes to 3 significant figures * using standard abbreviations (GB, MB, kB, byte[s]) */ int snprint_bytes (gchar * s, gint n, glong nr_bytes) { if (nr_bytes > (1L<<30)) { return snprintf (s, n, "%0.3f GB", (gfloat)nr_bytes / (1024.0 * 1024.0 * 1024.0)); } else if (nr_bytes > (1L<<20)) { return snprintf (s, n, "%0.3f MB", (gfloat)nr_bytes / (1024.0 * 1024.0)); } else if (nr_bytes > (1L<<10)) { return snprintf (s, n, "%0.3f kB", (gfloat)nr_bytes / (1024.0)); } else if (nr_bytes == 1) { return snprintf (s, n, "1 byte"); } else { return snprintf (s, n, "%ld bytes", nr_bytes); } } /* * Print a time in the format HH:MM:SS.sss */ int snprint_time (gchar * s, gint n, sw_time_t time) { int hrs, min; sw_time_t sec; char * sign; sign = (time < 0.0) ? "-" : ""; if (time < 0.0) time = -time; hrs = (int) (time/3600.0); min = (int) ((time - ((sw_time_t)hrs * 3600.0)) / 60.0); sec = time - ((sw_time_t)hrs * 3600.0)- ((sw_time_t)min * 60.0); /* XXX: %02.3f workaround */ if (sec < 10.0) { return snprintf (s, n, "%s%02d:%02d:0%2.3f", sign, hrs, min, sec); } else { return snprintf (s, n, "%s%02d:%02d:%02.3f", sign, hrs, min, sec); } } /* * Print a time in SMPTE format */ int snprint_time_smpte (gchar * s, gint n, sw_time_t time, gint F) { double hrs, min, sec, N; double dtime = (double)time; /* round dtime to resolution */ dtime = rint(dtime * (double)F) / (double)F; hrs = floor(dtime/3600.0); min = floor((dtime - (hrs * 3600.0)) / 60.0); sec = floor(dtime - (hrs * 3600.0) - (min * 60.0)); N = rint((dtime - (hrs * 3600.0) - (min * 60.0) - sec) * (double)F); if (hrs > 0.0) return snprintf (s, n, "PT%.0fH%.0fM%.0fS%.0fN%dF", hrs, min, sec, N, F); else if (min > 0.0) return snprintf (s, n, "PT%.0fM%.0fS%.0fN%dF", min, sec, N, F); else if (sec > 0.0) return snprintf (s, n, "PT%.0fS%.0fN%dF", sec, N, F); else if (N > 0.0) return snprintf (s, n, "PT%.0fN%dF", N, F); else return snprintf (s, n, "P0S"); } double strtime_to_seconds (char * str) { int h=0,m=0, n; float s; double result; n = sscanf (str, "%d:%d:%f", &h, &m, &s); if (n == 3) { goto done; } n = sscanf (str, "%d:%f", &m, &s); if (n == 2) { h = 0; goto done; } n = sscanf (str, "%f", &s); if (n == 1) { h = 0; m = 0; goto done; } return -1.0; done: result = ((h * 3600.0) + (m * 60.0) + s); return result; } sweep-0.9.3/src/timeouts.c0000644000175000017500000000705310777660160014207 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include static GMutex * timeouts_mutex = NULL; static GList * timeouts = NULL; static guint sweep_tag = 0; typedef struct { guint sweep_tag; guint gtk_tag; guint32 interval; GtkFunction function; gpointer data; } sweep_timeout_data; static gint sweep_timeout_wrapper (gpointer data) { sweep_timeout_data * td = (sweep_timeout_data *)data; if (td->function (td->data)) { return TRUE; } else { g_mutex_lock (timeouts_mutex); timeouts = g_list_remove (timeouts, td); g_mutex_unlock (timeouts_mutex); g_free (td); return FALSE; } } static gint sweep_timeouts_handle_pending (gpointer data) { GList * gl, * gl_next; sweep_timeout_data * td; g_mutex_lock (timeouts_mutex); for (gl = timeouts; gl; gl = gl_next) { td = (sweep_timeout_data *)gl->data; gl_next = gl->next; if (td->sweep_tag == -1) { g_assert (td->gtk_tag != -1); gtk_timeout_remove (td->gtk_tag); timeouts = g_list_remove_link (timeouts, gl); g_free (td); } else if (td->gtk_tag == -1) { td->gtk_tag = gtk_timeout_add (td->interval, sweep_timeout_wrapper, td); } } g_mutex_unlock (timeouts_mutex); return TRUE; } void sweep_timeouts_init (void) { if (timeouts_mutex == NULL) timeouts_mutex = g_mutex_new (); g_mutex_lock (timeouts_mutex); /* get some practice in ;) */ if (timeouts != NULL) g_list_free (timeouts); timeouts = NULL; g_mutex_unlock (timeouts_mutex); gtk_timeout_add ((guint32)500, sweep_timeouts_handle_pending, NULL); } guint sweep_timeout_add (guint32 interval, GtkFunction function, gpointer data) { sweep_timeout_data * td; td = g_malloc (sizeof (sweep_timeout_data)); td->sweep_tag = ++sweep_tag; td->gtk_tag = -1; td->interval = interval; td->function = function; td->data = data; g_mutex_lock (timeouts_mutex); timeouts = g_list_append (timeouts, td); g_mutex_unlock (timeouts_mutex); return td->sweep_tag; } void sweep_timeout_remove (guint sweep_timeout_handler_id) { GList * gl, * gl_next; sweep_timeout_data * td; g_mutex_lock (timeouts_mutex); for (gl = timeouts; gl; gl = gl_next) { td = (sweep_timeout_data *)gl->data; gl_next = gl->next; if (td->sweep_tag == sweep_timeout_handler_id) { if (td->gtk_tag == -1) { /* gtk_timeout not yet started */ timeouts = g_list_remove_link (timeouts, gl); g_free (td); } else { /* need to remove gtk_timeout -- mark this for pending thread */ td->sweep_tag = -1; } break; } } g_mutex_unlock (timeouts_mutex); } sweep-0.9.3/src/file_dialogs.c0000644000175000017500000005416010777660255014765 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include "sweep_app.h" #include "file_sndfile.h" #include "sample.h" #include "interface.h" #include "sample-display.h" #include "question_dialogs.h" #include "preferences.h" #define LAST_LOAD_KEY "Last_Load" #define LAST_SAVE_KEY "Last_Save" #ifdef HAVE_OGGVORBIS extern sw_sample * vorbis_sample_reload (sw_sample * sample); extern sw_sample * vorbis_sample_load (char * pathname); extern int vorbis_save_options_dialog (sw_sample * sample, char * pathname); #endif #ifdef HAVE_SPEEX extern sw_sample * speex_sample_reload (sw_sample * sample); extern sw_sample * speex_sample_load (char * pathname); extern int speex_save_options_dialog (sw_sample * sample, char * pathname); #endif #ifdef HAVE_MAD extern sw_sample * mad_sample_reload (sw_sample * sample); extern sw_sample * mad_sample_load (char * pathname); #endif void mp3_unsupported_dialog (void) { info_dialog_new (_("MP3 export unsupported"), NULL, _("Export to MP3 format cannot legally be supported " "in free software\n" "due to patent licensing restrictions.\n\n" "Please use Ogg Vorbis format instead, which\n" "provides better quality and is free.")); } /* This source code can compile against both version 0 and version 1 ** of libsndfile. */ typedef struct { sw_file_format_t file_format; gchar * name; gchar * exts; /* comma separated extensions */ } sw_file_format_desc; void file_guess_method (sw_sample * sample, char * pathname); #if ! (defined (SNDFILE_1)) static sw_file_format_desc file_formats [] = { { SWEEP_FILE_FORMAT_RAW, N_("Raw PCM (headerless)"), "raw", }, { SWEEP_FILE_FORMAT_AIFF, "Apple/SGI AIFF,AIFF-C", "aiff,aifc" }, { SWEEP_FILE_FORMAT_AU, "Sun/NeXT AU", "au", }, { SWEEP_FILE_FORMAT_SVX, "Amiga IFF,SVX8,SVX16", "svx", }, { SWEEP_FILE_FORMAT_PAF, "Ensoniq PARIS", "paf", }, { SWEEP_FILE_FORMAT_IRCAM, "IRCAM/Berkeley/CARL SF", "sf", }, { SWEEP_FILE_FORMAT_VOC, "Creative Labs VOC", "voc", }, { SWEEP_FILE_FORMAT_WAV, "Microsoft WAV", "wav,riff", }, }; #endif static gboolean sweep_dir_exists (char * pathname) { struct stat statbuf; #undef BUF_LEN #define BUF_LEN 512 char buf[BUF_LEN]; gchar * dirname; dirname = g_dirname (pathname); if (dirname && strcmp (dirname, "") && stat (dirname, &statbuf) == -1) { switch (errno) { case ENOENT: snprintf (buf, BUF_LEN, _("%s does not exist."), dirname); info_dialog_new (_("Directory does not exist"), NULL, buf); g_free (dirname); return FALSE; break; default: break; } } /* dirname is either NULL, "" or an existing directory */ return TRUE; } #ifdef HAVE_MAD static gboolean file_guess_mp3 (char * pathname) { gchar * ext; ext = strrchr (pathname, '.'); if (ext != NULL) { ext++; if (!g_strncasecmp (ext, "mp3", 4)) return TRUE; if (!g_strncasecmp (ext, "mp2", 4)) return TRUE; } return FALSE; } #endif sw_sample * sample_reload (sw_sample * sample) { sw_sample * new_sample = NULL; #ifdef HAVE_OGGVORBIS new_sample = vorbis_sample_reload (sample); #endif if (new_sample == NULL) new_sample = sndfile_sample_reload (sample, FALSE); #ifdef HAVE_SPEEX if (new_sample == NULL) new_sample = speex_sample_reload (sample); #endif #ifdef HAVE_MAD if (new_sample == NULL && file_guess_mp3 (sample->pathname)) new_sample = mad_sample_reload (sample); #endif if (new_sample == NULL) new_sample = sndfile_sample_reload (sample, TRUE); return new_sample; } static sw_sample * try_sample_load (char * pathname) { sw_sample * sample = NULL; #ifdef HAVE_OGGVORBIS sample = vorbis_sample_load (pathname); #endif if (sample == NULL) sample = sndfile_sample_load (pathname, FALSE); #ifdef HAVE_SPEEX if (sample == NULL) sample = speex_sample_load (pathname); #endif #ifdef HAVE_MAD if (sample == NULL && file_guess_mp3 (pathname)) sample = mad_sample_load (pathname); #endif if (sample == NULL) sample = sndfile_sample_load (pathname, TRUE); if (sample != NULL) recent_manager_add_item (pathname); return sample; } sw_sample * sample_load (char * pathname) { if (sweep_dir_exists (pathname)) { if (strcmp (pathname, "-") == 0) { try_sample_load (pathname); } else if (access(pathname, R_OK) == -1) { switch (errno) { case ENOENT: create_sample_new_dialog_defaults (pathname); /*sweep_perror (errno, pathname);*/ break; default: sweep_perror (errno, _("Unable to read\n%s"), pathname); break; } } else { prefs_set_string (LAST_LOAD_KEY, pathname); return try_sample_load (pathname); } } return NULL; } void sample_load_cb(GtkWidget * widget, gpointer data) { GtkWidget *dialog; gchar *load_current_file; gint win_width, win_height; GSList *filenames, *list; filenames = list = NULL; win_width = gdk_screen_width () / 2; win_height = gdk_screen_height () / 2; dialog = gtk_file_chooser_dialog_new (_("Sweep: Open Files"), data, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER); gtk_widget_set_size_request (dialog, win_width, win_height); gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(dialog), TRUE); sweep_set_window_icon (GTK_WINDOW(dialog)); attach_window_close_accel(GTK_WINDOW(dialog)); load_current_file = prefs_get_string (LAST_LOAD_KEY); if (load_current_file) { gtk_file_chooser_set_filename (GTK_FILE_CHOOSER(dialog), load_current_file); g_free(load_current_file); } if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) { filenames = gtk_file_chooser_get_filenames (GTK_FILE_CHOOSER(dialog)); for (list = filenames; list; list = list->next) { if (list->data) { sample_load ((gchar *)list->data); g_free (list->data); } } if (filenames) g_slist_free(filenames); } else { /* do nothing so exit */ sample_bank_remove(NULL); } gtk_widget_destroy (dialog); } gboolean sample_mtime_changed (sw_sample * sample) { struct stat statbuf; /* a last_mtime of 0 indicates that the file is not from disk */ if (sample->last_mtime == 0) return FALSE; if (stat (sample->pathname, &statbuf) == -1) { sweep_perror (errno, sample->pathname); return FALSE; } return (sample->last_mtime != statbuf.st_mtime); } void sample_revert_ok_cb (GtkWidget * widget, gpointer data) { sw_sample * sample = (sw_sample *)data; sample_reload (sample); } void sample_revert_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample; #undef BUF_LEN #define BUF_LEN 512 char buf[BUF_LEN]; sample = view->sample; snprintf (buf, BUF_LEN, _("Are you sure you want to revert %s to\n%s?\n\n" "All changes and undo information will be lost."), g_basename (sample->pathname), sample->pathname); question_dialog_new (sample, _("Revert file"), buf, _("Revert"), _("Don't revert"), G_CALLBACK (sample_revert_ok_cb), sample, NULL, NULL, SWEEP_EDIT_MODE_ALLOC); } void sample_store_and_free_pathname (sw_sample * sample, gchar * pathname) { prefs_set_string (LAST_SAVE_KEY, pathname); sample_set_pathname (sample, pathname); #ifdef DEVEL_CODE g_free (pathname); #endif } void file_guess_method (sw_sample * sample, char * pathname) { int i; gchar * ext; #if defined (SNDFILE_1) SF_FORMAT_INFO info ; int count ; #else gchar ** exts, **e; sw_file_format_desc * desc; #endif g_assert (sample->file_method == SWEEP_FILE_METHOD_BY_EXTENSION); if (pathname == NULL) goto guess_raw; ext = strrchr (pathname, '.'); if (ext != NULL) { ext++; #ifdef HAVE_OGGVORBIS if (!g_strncasecmp (ext, "ogg", SW_DIR_LEN)) { sample->file_method = SWEEP_FILE_METHOD_OGGVORBIS; sample->file_format = 0; return; } #endif #ifdef HAVE_SPEEX if (!g_strncasecmp (ext, "spx", SW_DIR_LEN)) { sample->file_method = SWEEP_FILE_METHOD_SPEEX; sample->file_format = 0; return; } #endif /* MP3 has dummy annoying dialog support */ if (!g_strncasecmp (ext, "mp3", SW_DIR_LEN)) { sample->file_method = SWEEP_FILE_METHOD_MP3; sample->file_format = 0; return; } #if defined (SNDFILE_1) sf_command (NULL, SFC_GET_FORMAT_MAJOR_COUNT, &count, sizeof (int)) ; for (i = 0; i < count ; i++) { info.format = i ; sf_command (NULL, SFC_GET_FORMAT_MAJOR, &info, sizeof (info)) ; if (!g_strncasecmp (ext, info.extension, SW_DIR_LEN)) { sample->file_method = SWEEP_FILE_METHOD_LIBSNDFILE; sample->file_format = info.format; break; /* NB. this break is essential to ensure that eg. a file * ending in ".wav" is guessed as RIFF/WAV not Sphere/NIST, * which also may use the ending ".wav"; assuming RIFF/WAV is * more common we prefer to use this format when guessing. */ } } /* Catch some common conventions not offered by libsndfile */ if (sample->file_method == SWEEP_FILE_METHOD_BY_EXTENSION) { if (!g_strncasecmp(ext, "aifc", SW_DIR_LEN) || !g_strncasecmp(ext, "aif", SW_DIR_LEN)) { sample->file_method = SWEEP_FILE_METHOD_LIBSNDFILE; sample->file_format = SF_FORMAT_AIFF; } } #else for (i = 0; i < sizeof(file_formats)/sizeof(sw_file_format_desc); i++) { desc = &file_formats[i]; exts = g_strsplit (desc->exts, ",", 16); for (e = exts; *e; e++) { if (!g_strncasecmp (*e, ext, SW_DIR_LEN)) { sample->file_method = SWEEP_FILE_METHOD_LIBSNDFILE; sample->file_format = desc->file_format; } } g_strfreev (exts); } #endif } guess_raw: if (sample->file_method == SWEEP_FILE_METHOD_BY_EXTENSION) { sample->file_method = SWEEP_FILE_METHOD_LIBSNDFILE; #if defined (SNDFILE_1) sample->file_format = SF_FORMAT_RAW; #else sample->file_format = SWEEP_FILE_FORMAT_RAW; #endif } return; } typedef struct { sw_sample * sample; char * pathname; } save_as_data; static void overwrite_ok_cb (GtkWidget * widget, gpointer data) { save_as_data * sd = (save_as_data *)data; sw_sample * sample = sd->sample; char * pathname = sd->pathname; if (sample->file_method == SWEEP_FILE_METHOD_BY_EXTENSION) { file_guess_method (sample, pathname); } switch (sample->file_method) { case SWEEP_FILE_METHOD_LIBSNDFILE: sndfile_save_options_dialog (sample, pathname); break; #ifdef HAVE_OGGVORBIS case SWEEP_FILE_METHOD_OGGVORBIS: vorbis_save_options_dialog (sample, pathname); break; #endif #ifdef HAVE_SPEEX case SWEEP_FILE_METHOD_SPEEX: speex_save_options_dialog (sample, pathname); break; #endif case SWEEP_FILE_METHOD_MP3: mp3_unsupported_dialog (); break; default: g_assert_not_reached (); break; } g_free (sd); } static void overwrite_cancel_cb (GtkWidget * widget, gpointer data) { save_as_data * sd = (save_as_data *)data; gchar * msg; msg = g_strdup_printf (_("Save as %s cancelled"), g_basename (sd->pathname)); sample_set_tmp_message (sd->sample, msg); g_free (msg); g_free (sd); } static void file_set_format_cb (GtkWidget * widget, gpointer data) { sw_sample * sample = (sw_sample *)data; sample->file_method = (sw_file_method_t) GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "method")); sample->file_format = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "format")); } static GtkWidget * create_save_menu (sw_sample * sample) { GtkWidget * menu; GtkWidget * menuitem; int i; #if defined (SNDFILE_1) SF_FORMAT_INFO info ; int count ; #else sw_file_format_desc * desc; #endif menu = gtk_menu_new (); sample->file_method = SWEEP_FILE_METHOD_BY_EXTENSION; menuitem = gtk_menu_item_new_with_label (_("By extension")); gtk_menu_append (GTK_MENU(menu), menuitem); gtk_object_set_data (GTK_OBJECT(menuitem), "method", SWEEP_FILE_METHOD_BY_EXTENSION); gtk_object_set_data (GTK_OBJECT(menuitem), "format", 0); gtk_signal_connect (GTK_OBJECT(menuitem), "activate", GTK_SIGNAL_FUNC(file_set_format_cb), sample); gtk_widget_show (menuitem); menuitem = gtk_menu_item_new (); /* Separator */ gtk_menu_append (GTK_MENU(menu), menuitem); gtk_widget_show (menuitem); /* libsndfile formats */ #if defined (SNDFILE_1) sf_command (NULL, SFC_GET_FORMAT_MAJOR_COUNT, &count, sizeof (int)) ; for (i = 0; i < count ; i++) { info.format = i ; sf_command (NULL, SFC_GET_FORMAT_MAJOR, &info, sizeof (info)) ; menuitem = gtk_menu_item_new_with_label (info.name); gtk_menu_append (GTK_MENU(menu), menuitem); gtk_object_set_data (GTK_OBJECT(menuitem), "method", GINT_TO_POINTER(SWEEP_FILE_METHOD_LIBSNDFILE)); gtk_object_set_data (GTK_OBJECT(menuitem), "format", GINT_TO_POINTER(info.format)); gtk_signal_connect (GTK_OBJECT(menuitem), "activate", GTK_SIGNAL_FUNC(file_set_format_cb), sample); gtk_widget_show (menuitem); } #else for (i = 0; i < sizeof(file_formats)/sizeof(sw_file_format_desc); i++) { desc = &file_formats[i]; menuitem = gtk_menu_item_new_with_label (_(desc->name)); gtk_menu_append (GTK_MENU(menu), menuitem); gtk_object_set_data (GTK_OBJECT(menuitem), "method", GINT_TO_POINTER(SWEEP_FILE_METHOD_LIBSNDFILE)); gtk_object_set_data (GTK_OBJECT(menuitem), "format", GINT_TO_POINTER(desc->file_format)); gtk_signal_connect (GTK_OBJECT(menuitem), "activate", GTK_SIGNAL_FUNC(file_set_format_cb), sample); gtk_widget_show (menuitem); } #endif menuitem = gtk_menu_item_new (); /* Separator */ gtk_menu_append (GTK_MENU(menu), menuitem); gtk_widget_show (menuitem); #if 1 /* MP3 (encoding not supported due to patent restrictions) */ menuitem = gtk_menu_item_new_with_label (_("MP3 (Use Ogg Vorbis instead)")); gtk_widget_set_sensitive (menuitem, FALSE); gtk_menu_append (GTK_MENU(menu), menuitem); gtk_widget_show (menuitem); #endif #ifdef HAVE_OGGVORBIS /* Ogg Vorbis */ menuitem = gtk_menu_item_new_with_label ("Ogg Vorbis (Xiph.org)"); gtk_menu_append (GTK_MENU(menu), menuitem); gtk_object_set_data (GTK_OBJECT(menuitem), "method", GINT_TO_POINTER(SWEEP_FILE_METHOD_OGGVORBIS)); gtk_object_set_data (GTK_OBJECT(menuitem), "format", GINT_TO_POINTER(0)); gtk_signal_connect (GTK_OBJECT(menuitem), "activate", GTK_SIGNAL_FUNC(file_set_format_cb), sample); gtk_widget_show (menuitem); #endif #ifdef HAVE_SPEEX /* Speex */ menuitem = gtk_menu_item_new_with_label ("Speex (Xiph.org)"); gtk_menu_append (GTK_MENU(menu), menuitem); gtk_object_set_data (GTK_OBJECT(menuitem), "method", GINT_TO_POINTER(SWEEP_FILE_METHOD_SPEEX)); gtk_object_set_data (GTK_OBJECT(menuitem), "format", GINT_TO_POINTER(0)); gtk_signal_connect (GTK_OBJECT(menuitem), "activate", GTK_SIGNAL_FUNC(file_set_format_cb), sample); gtk_widget_show (menuitem); #endif return menu; } void sample_save_as_cb(GtkWidget * widget, gpointer data) { GtkWidget *dialog; gint win_width, win_height; sw_view * view = (sw_view *)data; sw_sample * sample; GtkWidget * save_options; GtkWidget * frame; GtkWidget * hbox; GtkWidget * label; GtkWidget * option_menu; GtkWidget * save_menu; struct stat statbuf; gchar *filename; gint retval; save_as_data * sd; #undef BUF_LEN #define BUF_LEN 512 char buf[BUF_LEN]; char * last_save; win_width = gdk_screen_width () / 2; win_height = gdk_screen_height () / 2; sample = view->sample; dialog = gtk_file_chooser_dialog_new (_("Sweep: Save file"), GTK_WINDOW(view->window), GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL); //gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog), TRUE); attach_window_close_accel(GTK_WINDOW(dialog)); sweep_set_window_icon (GTK_WINDOW(dialog)); save_options = gtk_hbox_new (TRUE, 1); frame = gtk_frame_new (_("Save Options")); gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_box_pack_start (GTK_BOX (save_options), frame, TRUE, TRUE, 4); hbox = gtk_hbox_new (FALSE, 4); gtk_container_set_border_width (GTK_CONTAINER (hbox), 4); gtk_container_add (GTK_CONTAINER (frame), hbox); gtk_widget_show (hbox); label = gtk_label_new (_("Determine File Type:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); option_menu = gtk_option_menu_new (); gtk_box_pack_start (GTK_BOX (hbox), option_menu, TRUE, TRUE, 0); gtk_widget_show (option_menu); save_menu = create_save_menu (sample); gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), save_menu); gtk_widget_show (frame); /* pack the containing save_options hbox into the save-dialog */ gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), save_options, FALSE, FALSE, 0); gtk_widget_show (save_options); gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER); gtk_widget_set_size_request (dialog, win_width, win_height); if (strcmp (g_path_get_dirname(sample->pathname), ".") == 0) { last_save = prefs_get_string (LAST_SAVE_KEY); if (last_save != NULL) { gchar * last_save_dir = g_dirname (last_save); gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER(dialog), last_save_dir); gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER(dialog), sample->pathname); g_free (last_save_dir); g_free (last_save); } } else { retval = gtk_file_chooser_set_filename (GTK_FILE_CHOOSER(dialog), sample->pathname); /* FIXME: bug (local only?) causes gtk_file_chooser_set_filename to fail silently in some cases*/ filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog)); //printf("filename pre: %s\n", filename); //printf("sample->pathname: %s\n", sample->pathname); } retval = gtk_dialog_run (GTK_DIALOG (dialog)); filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog)); //printf("filename post: %s\n", filename); sample = view->sample; sd = g_malloc (sizeof (save_as_data)); sd->sample = sample; sd->pathname = filename; if (retval == GTK_RESPONSE_ACCEPT) { if (!sweep_dir_exists (filename)) { g_free (sd); g_free (filename); return; } if (stat (filename, &statbuf) == -1) { switch (errno) { case ENOENT: /* If it doesn't exist, it's ok to save as */ overwrite_ok_cb (NULL, sd); break; default: sweep_perror (errno, filename); break; } } else { /* file exists */ if (access(filename, W_OK) == -1) { sweep_perror (errno, _("You are not allowed to write to\n%s"), filename); } else { snprintf (buf, BUF_LEN, _("%s exists. Overwrite?"), filename); question_dialog_new (sample, _("File exists"), buf, _("Overwrite"), _("Don't overwrite"), G_CALLBACK (overwrite_ok_cb), sd, G_CALLBACK (overwrite_cancel_cb), sd, SWEEP_EDIT_MODE_META); } } /* FIXME: wrapped this due to the above gtk_file_chooser_set_filename problem */ } else if (sd->pathname != NULL) { gchar * msg; msg = g_strdup_printf (_("Save as %s cancelled"), g_basename (sd->pathname)); sample_set_tmp_message (sd->sample, msg); g_free (msg); } else { g_free (sd); g_free (filename); } gtk_widget_destroy (dialog); } static void sample_save_ok_cb(GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; switch (sample->file_method) { case SWEEP_FILE_METHOD_LIBSNDFILE: sndfile_sample_save (sample, sample->pathname); break; #ifdef HAVE_OGGVORBIS case SWEEP_FILE_METHOD_OGGVORBIS: vorbis_save_options_dialog (sample, sample->pathname); break; #endif #ifdef HAVE_SPEEX case SWEEP_FILE_METHOD_SPEEX: speex_save_options_dialog (sample, sample->pathname); break; #endif case SWEEP_FILE_METHOD_MP3: mp3_unsupported_dialog (); break; default: #if 0 g_assert_not_reached (); #else sample_save_as_cb (widget, data); #endif break; } } void sample_save_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample; #undef BUF_LEN #define BUF_LEN 512 char buf[BUF_LEN]; sample = view->sample; if (sample->last_mtime == 0 || sample->file_method == SWEEP_FILE_METHOD_MP3) { sample_save_as_cb (widget, data); } else if (sample_mtime_changed (sample)) { snprintf (buf, BUF_LEN, _("%s\n has changed on disk.\n\n" "Are you sure you want to save?"), sample->pathname); question_dialog_new (sample, _("File modified"), buf, _("Save"), _("Don't save"), G_CALLBACK (sample_save_ok_cb), view, NULL, NULL, SWEEP_EDIT_MODE_ALLOC); } else { sample_save_ok_cb (widget, view); } } sweep-0.9.3/src/db_ruler.c0000644000175000017500000003514510777660160014137 0ustar useruser/* * Sweep, a sound wave editor. * * db_ruler, modified from hruler in GTK+ 1.2.x * by Conrad Parker 2002 for Sweep. * * 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. */ /* * GTK - The GIMP Toolkit * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald */ /* * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS * file for a list of people on the GTK+ Team. See the ChangeLog * files for a list of changes. These files are distributed with * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "db_ruler.h" #include #include "print.h" #define RULER_WIDTH 32 #define RULER_HEIGHT 14 #define MINIMUM_INCR 2 #define MAXIMUM_SUBDIVIDE 3 #define MAXIMUM_SCALES 21 #define ROUND(x) ((int) ((x) + 0.5)) static void db_ruler_class_init (DbRulerClass *klass); static void db_ruler_init (DbRuler *db_ruler); static void db_ruler_realize (GtkWidget * widget); static gint db_ruler_button_press (GtkWidget * widget, GdkEventButton * event); static gint db_ruler_button_release (GtkWidget * widget, GdkEventButton * event); static gint db_ruler_motion_notify (GtkWidget *widget, GdkEventMotion *event); static gint db_ruler_leave_notify (GtkWidget * widget, GdkEventCrossing * event); static gboolean db_ruler_scroll_event (GtkWidget * widget, GdkEventScroll *event); static void db_ruler_draw_ticks (GtkRuler *ruler); static void db_ruler_draw_pos (GtkRuler *ruler); static GtkWidgetClass * parent_class = NULL; enum { CHANGED_SIGNAL, LAST_SIGNAL }; static gint db_ruler_signals[LAST_SIGNAL] = { 0 }; GType db_ruler_get_type (void) { static GType db_ruler_type = 0; if (!db_ruler_type) { static const GTypeInfo db_ruler_info = { sizeof (DbRulerClass), NULL, /* base_init */ NULL, /* base_finalize */ (GClassInitFunc) db_ruler_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (DbRuler), 0, /* n_preallocs */ (GInstanceInitFunc) db_ruler_init, }; db_ruler_type = g_type_register_static (GTK_TYPE_RULER, "DbRuler", &db_ruler_info, 0); } return db_ruler_type; } static void db_ruler_class_init (DbRulerClass *klass) { GtkObjectClass *object_class; GtkWidgetClass *widget_class; GtkRulerClass *ruler_class; object_class = (GtkObjectClass *) klass; widget_class = (GtkWidgetClass*) klass; ruler_class = (GtkRulerClass*) klass; widget_class->realize = db_ruler_realize; widget_class->button_press_event = db_ruler_button_press; widget_class->motion_notify_event = db_ruler_motion_notify; widget_class->button_release_event = db_ruler_button_release; widget_class->leave_notify_event = db_ruler_leave_notify; widget_class->scroll_event = db_ruler_scroll_event; ruler_class->draw_ticks = db_ruler_draw_ticks; ruler_class->draw_pos = db_ruler_draw_pos; parent_class = gtk_type_class (gtk_widget_get_type ()); db_ruler_signals[CHANGED_SIGNAL] = g_signal_new ("changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (DbRulerClass, changed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); klass->changed = NULL; } static gfloat ruler_scale[MAXIMUM_SCALES] = { 0.001, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 3, 6, 12, 15, 30, 60, 300, 600, 1800, 3600, 18000, 36000 }; static gint subdivide[MAXIMUM_SUBDIVIDE] = { 1, 5, 20 }; static void db_ruler_init (DbRuler *db_ruler) { GtkWidget *widget; widget = GTK_WIDGET (db_ruler); widget->requisition.width = widget->style->xthickness * 2 + RULER_WIDTH; widget->requisition.height = widget->style->ythickness * 2 + 1; DB_RULER(db_ruler)->dragging = FALSE; } static void db_ruler_realize (GtkWidget * widget) { GtkRuler * ruler; GdkWindowAttr attributes; gint attributes_mask; GdkVisual * visual; g_return_if_fail (widget != NULL); g_return_if_fail (GTK_IS_DB_RULER (widget)); GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED); ruler = GTK_RULER(widget); attributes.x = widget->allocation.x; attributes.y = widget->allocation.y; attributes.width = widget->allocation.width; attributes.height = widget->allocation.height; attributes.wclass = GDK_INPUT_OUTPUT; attributes.window_type = GDK_WINDOW_CHILD; attributes.event_mask = gtk_widget_get_events (widget) | GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_SCROLL_MASK; attributes.visual = gtk_widget_get_visual (widget); attributes.colormap = gtk_widget_get_colormap (widget); attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP; widget->window = gdk_window_new (widget->parent->window, &attributes, attributes_mask); widget->style = gtk_style_attach (widget->style, widget->window); gtk_style_set_background(widget->style, widget->window, GTK_STATE_NORMAL); gdk_window_set_user_data(widget->window, widget); visual = gdk_window_get_visual (widget->window); if (ruler->backing_store != NULL) { gdk_pixmap_unref (ruler->backing_store); } ruler->backing_store = gdk_pixmap_new (widget->window, widget->allocation.width, widget->allocation.height, visual->depth); ruler->non_gr_exp_gc = gdk_gc_new (widget->window); gdk_gc_copy (ruler->non_gr_exp_gc, widget->style->fg_gc[GTK_STATE_NORMAL]); } GtkWidget* db_ruler_new (void) { return GTK_WIDGET (g_object_new (db_ruler_get_type (), NULL)); } static gint db_ruler_motion_notify (GtkWidget *widget, GdkEventMotion *event) { GtkRuler *ruler; gfloat delta; GdkModifierType state; gint y, ydelta; g_return_val_if_fail (widget != NULL, FALSE); g_return_val_if_fail (GTK_IS_DB_RULER (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); ruler = GTK_RULER (widget); if (event->is_hint) gdk_window_get_pointer (widget->window, NULL, &y, &state); else y = event->y; if (DB_RULER(widget)->dragging && (state & GDK_BUTTON1_MASK)) { ydelta = DB_RULER(widget)->y - y; delta = (((ruler->lower - ruler->upper) * ydelta) / widget->allocation.height); gtk_ruler_set_range (ruler, ruler->lower + delta, ruler->upper + delta, (ruler->upper - ruler->lower)/2.0, 2.0); g_signal_emit_by_name (ruler, "changed"); gtk_ruler_draw_ticks (ruler); } DB_RULER(widget)->y = y; ruler->position = ((ruler->lower - ruler->upper) * y) / widget->allocation.height - ruler->lower; /* Make sure the ruler has been allocated already */ if (ruler->backing_store != NULL) gtk_ruler_draw_pos (ruler); #if 0 printf ("%f\t%f dB\n", ruler->position, 20 * log10 (fabs(ruler->position))); #endif return FALSE; } static gint db_ruler_button_press (GtkWidget * widget, GdkEventButton * event) { int y; gdk_window_get_pointer (event->window, NULL, &y, NULL); switch (event->button) { case 1: DB_RULER(widget)->y = y; DB_RULER(widget)->dragging = TRUE; break; default: break; } return TRUE; } static gint db_ruler_button_release (GtkWidget * widget, GdkEventButton * event) { DB_RULER(widget)->dragging = FALSE; return TRUE; } static gboolean db_ruler_scroll_event (GtkWidget *widget, GdkEventScroll *event) { GtkRuler * ruler = GTK_RULER(widget); float delta; if (event->direction == GDK_SCROLL_UP) { /* mouse wheel scroll up */ delta = ruler->upper - ruler->lower; gtk_ruler_set_range (ruler, ruler->lower + delta/8, ruler->upper - delta/8, (ruler->upper - ruler->lower)/2.0, 2.0); g_signal_emit_by_name (ruler, "changed"); return TRUE; } else if (event->direction == GDK_SCROLL_DOWN) { /* mouse wheel scroll down */ delta = ruler->upper - ruler->lower; gtk_ruler_set_range (ruler, ruler->lower - delta/8, ruler->upper + delta/8, (ruler->upper - ruler->lower)/2.0, 2.0); g_signal_emit_by_name (ruler, "changed"); return TRUE; } return FALSE; /* redundant? */ } static gint db_ruler_leave_notify (GtkWidget * widget, GdkEventCrossing * event) { DB_RULER(widget)->dragging = FALSE; return TRUE; } static void db_ruler_draw_ticks (GtkRuler *ruler) { GtkWidget *widget; GdkGC *gc, *bg_gc; gint i; gint width, height; gint xthickness; gint ythickness; gint length, ideal_length; gfloat lower, upper; /* Upper and lower limits, in ruler units */ gfloat increment, abs_increment; /* Number of pixels per unit */ gint scale; /* Number of units per major unit */ gfloat subd_incr; gfloat start, end, cur; #define UNIT_STR_LEN 32 gchar unit_str[UNIT_STR_LEN]; gint digit_height; gint digit_offset; gint text_height; gint pos; PangoLayout *layout; PangoRectangle logical_rect, ink_rect; g_return_if_fail (ruler != NULL); g_return_if_fail (GTK_IS_DB_RULER (ruler)); if (!GTK_WIDGET_DRAWABLE (ruler)) return; widget = GTK_WIDGET (ruler); gc = widget->style->fg_gc[GTK_STATE_NORMAL]; bg_gc = widget->style->bg_gc[GTK_STATE_NORMAL]; xthickness = widget->style->xthickness; ythickness = widget->style->ythickness; width = widget->allocation.width - ( xthickness * 2) ; /* height = widget->allocation.height - ythickness * 2;*/ height = widget->allocation.height; layout = gtk_widget_create_pango_layout (widget, "012456789dBinf-"); pango_layout_get_extents (layout, &ink_rect, &logical_rect); digit_height = PANGO_PIXELS (ink_rect.height) + 2; digit_offset = ink_rect.y; gtk_paint_box (widget->style, ruler->backing_store, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, widget, "db_ruler", 0, 0, widget->allocation.width, widget->allocation.height); gdk_draw_line (ruler->backing_store, gc, width + xthickness, ythickness, width + xthickness, height - ythickness); upper = ruler->upper / ruler->metric->pixels_per_unit; lower = ruler->lower / ruler->metric->pixels_per_unit; // upper = ruler->upper; // lower = ruler->lower; if ((upper - lower) == 0) return; increment = (gfloat) height / (upper - lower); abs_increment = (gfloat) fabs((double)increment); // * strlen (unit_str) text_height = digit_height + 1; for (scale = 0; scale < MAXIMUM_SCALES; scale++) /* if (ruler->metric->ruler_scale[scale] * fabs(increment) > 2 * text_height) break;*/ if (ruler_scale[scale] * abs_increment > 2 * digit_height) break; if (scale == MAXIMUM_SCALES) scale = MAXIMUM_SCALES - 1; /* drawing starts here */ pango_layout_set_text (layout, "dB", 2); pango_layout_get_extents (layout, NULL, &logical_rect); gtk_paint_layout (widget->style, ruler->backing_store, GTK_WIDGET_STATE (widget), FALSE, NULL, widget, "vruler", 2, (digit_height/2), layout); length = 0; for (i = MAXIMUM_SUBDIVIDE - 1; i >= 0; i--) { subd_incr = (gfloat) ruler_scale[scale] / (gfloat) subdivide[i]; if (subd_incr * fabs(increment) <= MINIMUM_INCR) continue; /* Calculate the length of the tickmarks. Make sure that * this length increases for each set of ticks */ ideal_length = 8 / (i + 1) - 1; if (ideal_length > ++length) length = ideal_length; if (lower < upper) { start = floor (lower / subd_incr) * subd_incr; end = ceil (upper / subd_incr) * subd_incr; } else { start = floor (upper / subd_incr) * subd_incr; end = ceil (lower / subd_incr) * subd_incr; } for (cur = start; cur <= end; cur += subd_incr) { pos = height - ROUND ((cur - lower) * increment); gdk_draw_line (ruler->backing_store, gc, width + xthickness, pos, width - length + xthickness, pos); /* draw label */ if (i == 0 && cur < upper && cur > lower) { float a_cur = fabs(cur), db_cur; /* ensure inf. stays as 'inf.', not nearby large values */ if (a_cur < subd_incr/2) a_cur = 0.0; db_cur = 20 * log10 (a_cur); if (db_cur > -10.0) { snprintf (unit_str, UNIT_STR_LEN, "%1.1f", db_cur); } else { snprintf (unit_str, UNIT_STR_LEN, "%2.0f", db_cur); } pango_layout_set_text (layout, unit_str, -1); gtk_paint_layout (widget->style, ruler->backing_store, GTK_WIDGET_STATE (widget), FALSE, NULL, widget, "vruler", 2, pos - (digit_height), layout); } } } } static void db_ruler_draw_pos (GtkRuler *ruler) { GtkWidget *widget; GdkGC *gc; int i; gint x, y; gint width, height; gint bs_width, bs_height; gint xthickness; gint ythickness; gfloat increment; g_return_if_fail (ruler != NULL); g_return_if_fail (GTK_IS_DB_RULER (ruler)); if (GTK_WIDGET_DRAWABLE (ruler)) { widget = GTK_WIDGET (ruler); gc = widget->style->fg_gc[GTK_STATE_NORMAL]; xthickness = widget->style->xthickness; ythickness = widget->style->ythickness; width = widget->allocation.width - xthickness * 2; height = widget->allocation.height; bs_height = 7; bs_width = 4; if ((bs_width > 0) && (bs_height > 0)) { /* If a backing store exists, restore the ruler */ if (ruler->backing_store && ruler->non_gr_exp_gc) gdk_draw_drawable (ruler->widget.window, ruler->non_gr_exp_gc, ruler->backing_store, ruler->xsrc, ruler->ysrc, ruler->xsrc, ruler->ysrc, bs_width, bs_height); increment = (gfloat) height / (ruler->upper - ruler->lower); x = (width - bs_width) + xthickness - 2; y = DB_RULER(ruler)->y; for (i = 0; i < bs_width; i++) gdk_draw_line (widget->window, gc, x + i, y + i, x + i, y + bs_height - 1 - i); ruler->xsrc = x; ruler->ysrc = y; } } } sweep-0.9.3/src/cursors.c0000644000175000017500000001343710777660160014041 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include "cursors.h" /* static cursor definitions */ #include "../pixmaps/horiz.xpm" #include "../pixmaps/horiz_plus.xpm" #include "../pixmaps/horiz_minus.xpm" #include "../pixmaps/hand.xbm" #include "../pixmaps/hand_mask.xbm" #include "../pixmaps/needle.xbm" #include "../pixmaps/needle_mask.xbm" #include "../pixmaps/zoom_in.xbm" #include "../pixmaps/zoom_in_mask.xbm" #include "../pixmaps/zoom_out.xbm" #include "../pixmaps/zoom_out_mask.xbm" #include "../pixmaps/cursor-openhand.xbm" #include "../pixmaps/cursor-openhand_mask.xbm" #include "../pixmaps/cursor-closedhand.xbm" #include "../pixmaps/cursor-closedhand_mask.xbm" GdkCursor * sweep_cursors[SWEEP_CURSOR_MAX]; void create_bitmap_and_mask_from_xpm (GdkBitmap ** bitmap, GdkBitmap ** mask, gchar ** xpm) { int height, width, colors; char pixmap_buffer [(32 * 32)/8]; char mask_buffer [(32 * 32)/8]; int x, y, pix; int transparent_color, black_color; sscanf (xpm [0], "%d %d %d %d", &height, &width, &colors, &pix); g_assert (height == 32); g_assert (width == 32); g_assert (colors == 3); transparent_color = ' '; black_color = '.'; for (y = 0; y < 32; y++) { for (x = 0; x < 32;) { char value = 0, maskv = 0; for (pix = 0; pix < 8; pix++, x++) { if (xpm [4+y][x] != transparent_color) { maskv |= 1 << pix; if (xpm [4+y][x] != black_color) { value |= 1 << pix; } } } pixmap_buffer [(y * 4 + x/8) - 1] = value; mask_buffer [(y * 4 + x/8) - 1] = maskv; } } *bitmap = gdk_bitmap_create_from_data (NULL, pixmap_buffer, 32, 32); *mask = gdk_bitmap_create_from_data (NULL, mask_buffer, 32, 32); } void init_cursors (void) { GdkBitmap * bitmap; GdkBitmap * mask; GdkColor white = {0, 0xffff, 0xffff, 0xffff}; GdkColor black = {0, 0x0000, 0x0000, 0x0000}; sweep_cursors[SWEEP_CURSOR_CROSSHAIR] = gdk_cursor_new (GDK_XTERM); /* sweep_cursors[SWEEP_CURSOR_MOVE] = gdk_cursor_new (GDK_FLEUR);*/ sweep_cursors[SWEEP_CURSOR_PENCIL] = gdk_cursor_new (GDK_PENCIL); sweep_cursors[SWEEP_CURSOR_NOISE] = gdk_cursor_new (GDK_SPRAYCAN); create_bitmap_and_mask_from_xpm (&bitmap, &mask, horiz_xpm); sweep_cursors[SWEEP_CURSOR_HORIZ] = gdk_cursor_new_from_pixmap (bitmap, mask, &white, &black, 8, 8); create_bitmap_and_mask_from_xpm (&bitmap, &mask, horiz_plus_xpm); sweep_cursors[SWEEP_CURSOR_HORIZ_PLUS] = gdk_cursor_new_from_pixmap (bitmap, mask, &white, &black, 8, 8); create_bitmap_and_mask_from_xpm (&bitmap, &mask, horiz_minus_xpm); sweep_cursors[SWEEP_CURSOR_HORIZ_MINUS] = gdk_cursor_new_from_pixmap (bitmap, mask, &white, &black, 8, 8); bitmap = gdk_bitmap_create_from_data (NULL, zoom_in_bits, zoom_in_width, zoom_in_height); mask = gdk_bitmap_create_from_data (NULL, zoom_in_mask_bits, zoom_in_mask_width, zoom_in_mask_height); sweep_cursors[SWEEP_CURSOR_ZOOM_IN] = gdk_cursor_new_from_pixmap (bitmap, mask, &white, &black, zoom_in_x_hot, zoom_in_y_hot); bitmap = gdk_bitmap_create_from_data (NULL, zoom_out_bits, zoom_out_width, zoom_out_height); mask = gdk_bitmap_create_from_data (NULL, zoom_out_mask_bits, zoom_out_mask_width, zoom_out_mask_height); sweep_cursors[SWEEP_CURSOR_ZOOM_OUT] = gdk_cursor_new_from_pixmap (bitmap, mask, &white, &black, zoom_out_x_hot, zoom_out_y_hot); bitmap = gdk_bitmap_create_from_data (NULL, (const gchar *) needle_bits, needle_width, needle_height); mask = gdk_bitmap_create_from_data (NULL, (const gchar *) needle_mask_bits, needle_mask_width, needle_mask_height); sweep_cursors[SWEEP_CURSOR_NEEDLE] = gdk_cursor_new_from_pixmap (bitmap, mask, &white, &black, needle_x_hot, needle_y_hot); bitmap = gdk_bitmap_create_from_data (NULL, (const gchar *) hand_bits, hand_width, hand_height); mask = gdk_bitmap_create_from_data (NULL, (const gchar *) hand_mask_bits, hand_mask_width, hand_mask_height); sweep_cursors[SWEEP_CURSOR_MOVE] = gdk_cursor_new_from_pixmap (bitmap, mask, &black, &white, hand_x_hot, hand_y_hot); bitmap = gdk_bitmap_create_from_data (NULL, (const gchar *) cursor_openhand_bits, cursor_openhand_width, cursor_openhand_height); mask = gdk_bitmap_create_from_data (NULL, (const gchar *) cursor_openhand_mask_bits, cursor_openhand_mask_width, cursor_openhand_mask_height); sweep_cursors[SWEEP_CURSOR_HAND_OPEN] = gdk_cursor_new_from_pixmap (bitmap, mask, &black, &white, cursor_openhand_x_hot, cursor_openhand_y_hot); bitmap = gdk_bitmap_create_from_data (NULL, (const gchar *) cursor_closedhand_bits, cursor_closedhand_width, cursor_closedhand_height); mask = gdk_bitmap_create_from_data (NULL, (const gchar *) cursor_closedhand_mask_bits, cursor_closedhand_mask_width, cursor_closedhand_mask_height); sweep_cursors[SWEEP_CURSOR_HAND_CLOSE] = gdk_cursor_new_from_pixmap (bitmap, mask, &black, &white, cursor_closedhand_x_hot, cursor_closedhand_y_hot); } sweep-0.9.3/src/time_ruler.c0000644000175000017500000002403710777660160014506 0ustar useruser/* * Sweep, a sound wave editor. * * time_ruler, modified from hruler in GTK+ 1.2.x * by Conrad Parker 2000 for Sweep. * * 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. */ /* * GTK - The GIMP Toolkit * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald */ /* * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS * file for a list of people on the GTK+ Team. See the ChangeLog * files for a list of changes. These files are distributed with * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "time_ruler.h" #include #include "print.h" #define RULER_HEIGHT 14 #define MINIMUM_INCR 5 #define MAXIMUM_SUBDIVIDE 5 #define MAXIMUM_SCALES 21 #define ROUND(x) ((int) ((x) + 0.5)) static void time_ruler_class_init (TimeRulerClass *klass); static void time_ruler_init (TimeRuler *time_ruler); static gint time_ruler_button_press (GtkWidget * widget, GdkEventButton * event); static gint time_ruler_motion_notify (GtkWidget *widget, GdkEventMotion *event); static void time_ruler_draw_ticks (GtkRuler *ruler); static void time_ruler_draw_pos (GtkRuler *ruler); GType time_ruler_get_type (void) { static GType time_ruler_type = 0; if (!time_ruler_type) { static const GTypeInfo time_ruler_info = { sizeof (TimeRulerClass), NULL, /* base_init */ NULL, /* base_finalize */ (GClassInitFunc) time_ruler_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (TimeRuler), 0, /* n_preallocs */ (GInstanceInitFunc) time_ruler_init, }; time_ruler_type = g_type_register_static (GTK_TYPE_RULER, "TimeRuler", &time_ruler_info, 0); } return time_ruler_type; } static void time_ruler_class_init (TimeRulerClass *klass) { GtkWidgetClass *widget_class; GtkRulerClass *ruler_class; widget_class = (GtkWidgetClass*) klass; ruler_class = (GtkRulerClass*) klass; /* widget_class->realize = time_ruler_realize;*/ widget_class->button_press_event = time_ruler_button_press; widget_class->motion_notify_event = time_ruler_motion_notify; ruler_class->draw_ticks = time_ruler_draw_ticks; ruler_class->draw_pos = time_ruler_draw_pos; } static gfloat ruler_scale[MAXIMUM_SCALES] = { 0.001, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, 15, 30, 60, 300, 600, 1800, 3600, 18000, 36000 }; static gint subdivide[MAXIMUM_SUBDIVIDE] = { 1, 2, 5, 10, 100 }; static void time_ruler_init (TimeRuler *time_ruler) { GtkWidget *widget; time_ruler->samplerate = 44100; widget = GTK_WIDGET (time_ruler); widget->requisition.width = widget->style->xthickness * 2 + 1; widget->requisition.height = widget->style->ythickness * 2 + RULER_HEIGHT; } GtkWidget* time_ruler_new (void) { return GTK_WIDGET (g_object_new (time_ruler_get_type (), NULL)); } static gint time_ruler_motion_notify (GtkWidget *widget, GdkEventMotion *event) { GtkRuler *ruler; gint x; g_return_val_if_fail (widget != NULL, FALSE); g_return_val_if_fail (GTK_IS_TIME_RULER (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); ruler = GTK_RULER (widget); if (event->is_hint) gdk_window_get_pointer (widget->window, &x, NULL, NULL); else x = event->x; ruler->position = ruler->lower + ((ruler->upper - ruler->lower) * x) / widget->allocation.width; /* Make sure the ruler has been allocated already */ if (ruler->backing_store != NULL) gtk_ruler_draw_pos (ruler); return FALSE; } static gint time_ruler_button_press (GtkWidget * widget, GdkEventButton * event) { GdkModifierType state; int x, y; gdk_window_get_pointer (event->window, &x, &y, &state); return TRUE; } static void time_ruler_draw_ticks (GtkRuler *ruler) { GtkWidget *widget; GdkGC *gc, *bg_gc; gint i; gint width, height; gint xthickness; gint ythickness; gint length, ideal_length; gdouble lower, upper; /* Upper and lower limits, in ruler units */ gdouble increment, abs_increment; /* Number of pixels per unit */ gint scale; /* Number of units per major unit */ gdouble subd_incr; gdouble start, end, cur; #define UNIT_STR_LEN 32 gchar unit_str[UNIT_STR_LEN]; gint digit_height; gint digit_offset; gint text_width; gint pos; PangoLayout *layout; PangoRectangle logical_rect, ink_rect; g_return_if_fail (ruler != NULL); g_return_if_fail (GTK_IS_TIME_RULER (ruler)); if (!GTK_WIDGET_DRAWABLE (ruler)) return; widget = GTK_WIDGET (ruler); gc = widget->style->fg_gc[GTK_STATE_NORMAL]; bg_gc = widget->style->bg_gc[GTK_STATE_NORMAL]; xthickness = widget->style->xthickness; ythickness = widget->style->ythickness; width = widget->allocation.width; height = widget->allocation.height - ythickness * 2; layout = gtk_widget_create_pango_layout (widget, "012456789"); pango_layout_get_extents (layout, &ink_rect, &logical_rect); digit_height = PANGO_PIXELS (ink_rect.height) + 2; digit_offset = ink_rect.y; gtk_paint_box (widget->style, ruler->backing_store, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, widget, "time_ruler", 0, 0, widget->allocation.width, widget->allocation.height); gdk_draw_line (ruler->backing_store, gc, xthickness, height + ythickness, widget->allocation.width - xthickness, height + ythickness); upper = ruler->upper / TIME_RULER(ruler)->samplerate; lower = ruler->lower / TIME_RULER(ruler)->samplerate; if ((upper - lower) == 0) return; increment = (gdouble) width / (upper - lower); abs_increment = (gdouble) fabs((double)increment); /* determine the scale * We calculate the text size as for the vruler instead of using * text_width = gdk_string_width(font, unit_str), so that the result * for the scale looks consistent with an accompanying vruler */ scale = ceil (ruler->max_size / TIME_RULER(ruler)->samplerate); snprint_time (unit_str, UNIT_STR_LEN, (sw_time_t)scale); /* snprint_time_smpte (unit_str, UNIT_STR_LEN, (sw_time_t)scale, 10.0);*/ text_width = strlen (unit_str) * digit_height + 1; for (scale = 0; scale < MAXIMUM_SCALES; scale++) if (ruler_scale[scale] * abs_increment > 2 * text_width) break; if (scale == MAXIMUM_SCALES) scale = MAXIMUM_SCALES - 1; /* drawing starts here */ length = 0; for (i = MAXIMUM_SUBDIVIDE - 1; i >= 0; i--) { subd_incr = (gdouble) ruler_scale[scale] / (gdouble) subdivide[i]; if (subd_incr * fabs(increment) <= MINIMUM_INCR) continue; /* Calculate the length of the tickmarks. Make sure that * this length increases for each set of ticks */ ideal_length = height / (i + 1) - 1; if (ideal_length > ++length) length = ideal_length; if (lower < upper) { start = floor (lower / subd_incr) * subd_incr; end = ceil (upper / subd_incr) * subd_incr; } else { start = floor (upper / subd_incr) * subd_incr; end = ceil (lower / subd_incr) * subd_incr; } for (cur = start; cur <= end; cur += subd_incr) { pos = ROUND ((cur - lower) * increment); gdk_draw_line (ruler->backing_store, gc, pos, height + ythickness, pos, height - length + ythickness); /* draw label */ if (i == 0) { #if 1 snprint_time (unit_str, UNIT_STR_LEN, (sw_time_t)cur); #else snprint_time_smpte (unit_str, UNIT_STR_LEN, (sw_time_t)cur, 10.0); #endif pango_layout_set_text (layout, unit_str, -1); pango_layout_get_extents (layout, NULL, &logical_rect); gtk_paint_layout (widget->style, ruler->backing_store, GTK_WIDGET_STATE (widget), FALSE, NULL, widget, "vruler", pos +2, 2, layout); } } } } static void time_ruler_draw_pos (GtkRuler *ruler) { GtkWidget *widget; GdkGC *gc; int i; gint x, y; gint width, height; gint bs_width, bs_height; gint xthickness; gint ythickness; gfloat increment; g_return_if_fail (ruler != NULL); g_return_if_fail (GTK_IS_TIME_RULER (ruler)); if (GTK_WIDGET_DRAWABLE (ruler)) { widget = GTK_WIDGET (ruler); gc = widget->style->fg_gc[GTK_STATE_NORMAL]; xthickness = widget->style->xthickness; ythickness = widget->style->ythickness; width = widget->allocation.width; height = widget->allocation.height - ythickness * 2; bs_width = height / 2; bs_width |= 1; /* make sure it's odd */ bs_height = bs_width / 2 + 1; if ((bs_width > 0) && (bs_height > 0)) { /* If a backing store exists, restore the ruler */ if (ruler->backing_store && ruler->non_gr_exp_gc) gdk_draw_drawable (ruler->widget.window, ruler->non_gr_exp_gc, ruler->backing_store, ruler->xsrc, ruler->ysrc, ruler->xsrc, ruler->ysrc, bs_width, bs_height); increment = (gfloat) width / (ruler->upper - ruler->lower); x = ROUND ((ruler->position - ruler->lower) * increment) + (xthickness - bs_width) / 2 - 1; y = (height + bs_height) / 2 + ythickness; for (i = 0; i < bs_height; i++) gdk_draw_line (widget->window, gc, x + i, y + i, x + bs_width - 1 - i, y + i); ruler->xsrc = x; ruler->ysrc = y; } } } void time_ruler_set_format (TimeRuler * time_ruler, sw_format * f) { time_ruler->samplerate = f->rate; } sweep-0.9.3/src/question_dialogs.h0000644000175000017500000000247210777660276015724 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __QUESTION_DIALOGS_H__ #define __QUESTION_DIALOGS_H__ #include void question_dialog_new (sw_sample * sample, char * title, char * question, char * yes_answer, char * no_answer, GCallback yes_callback, gpointer yes_callback_data, GCallback no_callback, gpointer no_callback_data, sw_edit_mode edit_mode); void info_dialog_new (char * title, gpointer xpm_data, const char * fmt, ...); void sweep_perror (int thread_errno, const char * fmt, ...); #endif /* __QUESTION_DIALOGS_H__ */ sweep-0.9.3/src/sweep_sounddata.c0000644000175000017500000002052510777660160015522 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #if 0 #include #include #endif #include #include #include #include #include "edit.h" #include "format.h" #include "view.h" #include "sample-display.h" #include "driver.h" sw_sounddata * sounddata_new_empty(gint nr_channels, gint sample_rate, gint sample_length) { sw_sounddata *s; sw_framecount_t len; s = g_malloc (sizeof(sw_sounddata)); if (!s) return NULL; s->refcount = 1; s->format = format_new (nr_channels, sample_rate); s->nr_frames = (sw_framecount_t) sample_length; if (sample_length > 0) { len = frames_to_bytes (s->format, sample_length); #if 1 s->data = g_malloc0 ((size_t)len); #else s->data = sweep_large_alloc_zero (len, PROT_READ|PROT_WRITE); #endif if (!(s->data)) { #if 0 #if (SIZEOF_OFF_T == 8) fprintf(stderr, "Unable to allocate %lld bytes for sample data.\n", len); #else fprintf(stderr, "Unable to allocate %d bytes for sample data.\n", len); #endif #else fprintf(stderr, "Unable to allocate %d bytes for sample data.\n", len); #endif g_free(s); return NULL; #ifdef DEBUG } else { g_print ("g_malloc0'd %d bytes for new sounddata\n", len); #endif } } else { s->data = NULL; } s->sels = NULL; s->sels_mutex = g_mutex_new(); s->data_mutex = g_mutex_new(); return s; } void sounddata_clear_selection (sw_sounddata * sounddata) { GList * gl; sw_sel * sel; for (gl = sounddata->sels; gl; gl = gl->next){ sel = (sw_sel*)gl->data; sel_free(sel); } g_list_free(sounddata->sels); sounddata->sels = NULL; }; void sounddata_destroy (sw_sounddata * sounddata) { /*size_t len;*/ sounddata->refcount--; if (sounddata->refcount <= 0) { #if 1 g_free (sounddata->data); #else len = frames_to_bytes (sounddata->format, sounddata->nr_frames); munmap (sounddata->data, len); #endif sounddata_clear_selection (sounddata); g_free (sounddata); g_mutex_free(sounddata->data_mutex); } } void sounddata_lock_selection (sw_sounddata * sounddata) { g_mutex_lock (sounddata->sels_mutex); } void sounddata_unlock_selection (sw_sounddata * sounddata) { g_mutex_unlock (sounddata->sels_mutex); } guint sounddata_selection_nr_regions (sw_sounddata * sounddata) { return g_list_length (sounddata->sels); } static gint sounddata_sel_needs_normalising (sw_sounddata *sounddata) { GList * gl; sw_sel * osel = NULL, * sel; sw_framecount_t nr_frames; if(!sounddata->sels) return FALSE; nr_frames = sounddata->nr_frames; /* Seed osel with 'fake' iteration of following loop */ gl = sounddata->sels; osel = (sw_sel *)gl->data; if (osel->sel_start < 0 || osel->sel_end > nr_frames) return TRUE; gl = gl->next; for(; gl; gl = gl->next) { sel = (sw_sel *)gl->data; if (sel->sel_start < 0 || sel->sel_end > nr_frames) return TRUE; if(osel->sel_end >= sel->sel_start) { return TRUE; } if(osel->sel_end < sel->sel_end) { osel = sel; } } return FALSE; } /* * sounddata_normalise_selection(sounddata) * * normalise the selection of sounddata, ie. make sure there's * no overlaps and merge adjoining sections. */ void sounddata_normalise_selection (sw_sounddata * sounddata) { GList * gl; GList * nsels = NULL; sw_sel * osel = NULL, * sel; sw_framecount_t nr_frames; if (!sounddata_sel_needs_normalising(sounddata)) return; nr_frames = sounddata->nr_frames; /* Seed osel with 'fake' iteration of following loop */ gl = sounddata->sels; sel = (sw_sel *)gl->data; sel->sel_start = CLAMP(sel->sel_start, 0, nr_frames); sel->sel_end = CLAMP(sel->sel_end, 0, nr_frames); osel = sel_copy(sel); gl = gl->next; for (; gl; gl = gl->next) { sel = (sw_sel *)gl->data; sel->sel_start = CLAMP(sel->sel_start, 0, nr_frames); sel->sel_end = CLAMP(sel->sel_end, 0, nr_frames); /* Check for an overlap */ if(osel->sel_end >= sel->sel_start) { /* If sel is completely contained in osel, ignore it. */ if(osel->sel_end > sel->sel_end) { continue; } /* Set: osel = osel INTERSECT sel * we already know osel->sel_start <= sel->sel_start */ osel->sel_end = sel->sel_end; } else { /* No more overlaps with osel; insert it in nsels, and * reset osel. */ if (osel->sel_start == osel->sel_end) { g_free (osel); } else { nsels = g_list_insert_sorted(nsels, osel, (GCompareFunc)sel_cmp); } osel = sel_copy(sel); } } /* Insert the last created osel */ if (osel->sel_start == osel->sel_end) { g_free (osel); } else { nsels = g_list_insert_sorted(nsels, osel, (GCompareFunc)sel_cmp); } /* Clear the old selection */ sounddata_clear_selection (sounddata); /* Set the newly created (normalised) selection */ sounddata->sels = nsels; } void sounddata_add_selection (sw_sounddata * sounddata, sw_sel * sel) { sounddata->sels = g_list_insert_sorted(sounddata->sels, sel, (GCompareFunc)sel_cmp); } sw_sel * sounddata_add_selection_1 (sw_sounddata * sounddata, sw_framecount_t start, sw_framecount_t end) { sw_sel * sel; sel = sel_new (start, end); sounddata_add_selection(sounddata, sel); return sel; } sw_sel * sounddata_set_selection_1 (sw_sounddata * sounddata, sw_framecount_t start, sw_framecount_t end) { sounddata_clear_selection (sounddata); return sounddata_add_selection_1 (sounddata, start, end); } gint sounddata_selection_nr_frames (sw_sounddata * sounddata) { gint nr_frames = 0; GList * gl; sw_sel * sel; for (gl = sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; nr_frames += sel->sel_end - sel->sel_start; } return nr_frames; } sw_framecount_t sounddata_selection_width (sw_sounddata * sounddata) { GList * gl; sw_sel * sel; sw_framecount_t start, end; if ((gl = sounddata->sels) == NULL) return 0; sel = (sw_sel *)gl->data; start = sel->sel_start; gl = g_list_last (sounddata->sels); sel = (sw_sel *)gl->data; end = sel->sel_end; return (end - start); } void sounddata_selection_translate (sw_sounddata * sounddata, gint delta) { GList * gl; sw_sel * sel; for (gl = sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; sel->sel_start += delta; sel->sel_end += delta; } /* XXX: Crop any regions outside of [0, nr_frames] */ sounddata_normalise_selection (sounddata); } void sounddata_selection_scale (sw_sounddata * sounddata, gfloat scale) { GList * gl; sw_sel * sel; sw_framecount_t sels_start; if ((gl = sounddata->sels) == NULL) return; sel = (sw_sel *)gl->data; sels_start = sel->sel_start; for (gl = sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; sel->sel_start = sels_start + ((sel->sel_start - sels_start) * scale); sel->sel_end = sels_start + ((sel->sel_end - sels_start) * scale); } /* XXX: Crop any regions outside of [0, nr_frames] */ sounddata_normalise_selection (sounddata); } /* * sounddata_copyin_selection (sounddata1, sounddata2) * * copies the selection of sounddata1 into sounddata2. If sounddata2 previously * had a selection, the two are merged. */ void sounddata_copyin_selection (sw_sounddata * sounddata1, sw_sounddata * sounddata2) { GList * gl; sw_sel * sel, *sel2; for (gl = sounddata1->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; sel2 = sel_copy (sel); sounddata_add_selection (sounddata2, sel2); } sounddata_normalise_selection (sounddata2); } sweep-0.9.3/src/sweep_selection.c0000644000175000017500000001307410777660160015526 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include "format.h" #include "view.h" #include "sample-display.h" #include "driver.h" sw_sel * sel_new (sw_framecount_t start, sw_framecount_t end) { sw_framecount_t s, e; sw_sel * sel; if (end>start) { s = start; e = end; } else { s = end; e = start; } sel = g_malloc (sizeof(sw_sel)); sel->sel_start = s; sel->sel_end = e; return sel; } void sel_free (sw_sel * sel) { if (!sel) return; g_free(sel); } sw_sel * sel_copy (sw_sel * sel) { sw_sel * nsel; nsel = sel_new (sel->sel_start, sel->sel_end); return nsel; } /* * sel_cmp (s1, s2) * * Compares two sw_sel's for g_list_insert_sorted() -- * return > 0 if s1 comes after s2 in the sort order. */ gint sel_cmp (sw_sel * s1, sw_sel * s2) { if (s1->sel_start > s2->sel_start) return 1; else return 0; } static void dump_sels (GList * sels, char * desc) { #ifdef DEBUG GList * gl; sw_sel * sel; printf ("\n", desc, sels); for (gl = sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; printf ("\t[%ld - %ld]\n", sel->sel_start, sel->sel_end); } printf ("\n"); #endif } /* * sels_copy (sels) * * returns a copy of sels */ GList * sels_copy (GList * sels) { GList * gl, * nsels = NULL; sw_sel * sel, * nsel; for (gl = sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; nsel = sel_copy (sel); nsels = g_list_insert_sorted(nsels, nsel, (GCompareFunc)sel_cmp); } return nsels; } GList * sels_add_selection (GList * sels, sw_sel * sel) { return g_list_insert_sorted (sels, sel, (GCompareFunc)sel_cmp); } GList * sels_add_selection_1 (GList * sels, sw_framecount_t start, sw_framecount_t end) { sw_sel * sel; sel = sel_new (start, end); return sels_add_selection (sels, sel); } /* * sels_invert (sels, nr_frames) * * inverts sels in place */ GList * sels_invert (GList * sels, sw_framecount_t nr_frames) { GList * gl; GList * osels; sw_sel * osel, * sel; if (!sels) { g_list_free (sels); sel = sel_new (0, nr_frames); sels = NULL; sels = g_list_append (sels, sel); return sels; } gl = osels = sels; sels = NULL; sel = osel = (sw_sel *)gl->data; if (osel->sel_start > 0) { sels = sels_add_selection_1 (sels, 0, osel->sel_start - 1); } gl = gl->next; for (; gl; gl = gl->next) { sel = (sw_sel *)gl->data; sels = sels_add_selection_1 (sels, osel->sel_end, sel->sel_start - 1); osel = sel; } if (sel->sel_end != nr_frames) { sels = sels_add_selection_1 (sels, sel->sel_end, nr_frames); } g_list_free (osels); return sels; } /* * sel_replace: undo/redo functions for changing selection */ typedef struct _sel_replace_data sel_replace_data; struct _sel_replace_data { GList * sels; }; static sel_replace_data * sel_replace_data_new (GList * sels) { sel_replace_data * s; s = g_malloc (sizeof(sel_replace_data)); s->sels = sels; return s; } static void sel_replace_data_destroy (sel_replace_data * s) { g_list_free (s->sels); g_free (s); } static void do_by_sel_replace (sw_sample * s, sel_replace_data * sr) { dump_sels (sr->sels, "at replace action"); sample_set_selection (s, sr->sels); /* sample_refresh_views (s);*/ } static void do_selection_op_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; sw_perform_data * pd = (sw_perform_data *)inst->do_data; SweepFilter func = (SweepFilter)pd->func; sw_param_set pset = pd->pset; void * custom_data = pd->custom_data; GList * sels; sels = sels_copy (sample->sounddata->sels); dump_sels (sels, "copied for undo data"); inst->undo_data = sel_replace_data_new (sels); set_active_op (sample, inst); func (sample, pset, custom_data); if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { sels = sels_copy (sample->sounddata->sels); dump_sels (sels, "copied for redo data"); inst->redo_data = sel_replace_data_new (sels); register_operation (sample, inst); } #if 0 sample_set_edit_state (sample, SWEEP_EDIT_STATE_DONE); #endif } static sw_operation selection_op = { SWEEP_EDIT_MODE_META, (SweepCallback)do_selection_op_thread, (SweepFunction)NULL, (SweepCallback)do_by_sel_replace, (SweepFunction)sel_replace_data_destroy, (SweepCallback)do_by_sel_replace, (SweepFunction)sel_replace_data_destroy }; sw_op_instance * perform_selection_op (sw_sample * sample, char * desc, SweepFilter func, sw_param_set pset, gpointer custom_data) { sw_perform_data * pd = (sw_perform_data *)g_malloc (sizeof(*pd)); pd->func = (SweepFunction)func; pd->pset = pset; pd->custom_data = custom_data; schedule_operation (sample, desc, &selection_op, pd); return NULL; } sweep-0.9.3/src/interface.c0000644000175000017500000003356410777660252014306 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include "sweep_app.h" #include "driver.h" #include "callbacks.h" #include "file_dialogs.h" #include "interface.h" #include "about_dialog.h" #include "pixmaps.h" #include "../pixmaps/sweep_app_icon.xpm" /* wm / taskbar icon */ GtkStyle * style_wb; GtkStyle * style_bw; GtkStyle * style_LCD; GtkStyle * style_light_grey; GtkStyle * style_green_grey; GtkStyle * style_red_grey; GtkStyle * style_dark_grey; GtkStyle * style_red; #if GTK_CHECK_VERSION (2, 10, 0) GtkRecentManager *recent_manager = NULL; #endif static void init_recent_manager(void) { #if GTK_CHECK_VERSION (2, 10, 0) recent_manager = gtk_recent_manager_get_default(); /* good idea / bad idea? */ if (!recent_manager) recent_manager = gtk_recent_manager_new(); #endif } void recent_manager_add_item (gchar *path) { #if GTK_CHECK_VERSION (2, 10, 0) gchar *uri; //uri = g_strconcat("file:/", path, NULL); uri = g_filename_to_uri(path, NULL, NULL); if (recent_manager != NULL) gtk_recent_manager_add_item (recent_manager, uri); g_free(uri); #endif } static void init_accels (void) { gchar * accels_path; accels_path = (char *)g_get_home_dir (); accels_path = g_strconcat (accels_path, "/.sweep/keybindings", NULL); gtk_accel_map_load (accels_path); } void save_accels (void) { gchar * accels_path; accels_path = (char *)g_get_home_dir (); accels_path = g_strconcat (accels_path, "/.sweep/keybindings", NULL); gtk_accel_map_save (accels_path); } void sweep_set_window_icon (GtkWindow *window) { GdkPixbuf * window_icon; if (!GTK_IS_WINDOW(window)) return; window_icon = gdk_pixbuf_new_from_xpm_data((const char **)sweep_app_icon_xpm); if (window_icon) { gtk_window_set_icon (GTK_WINDOW (window), window_icon); gdk_pixbuf_unref (window_icon); } } GtkWidget * create_widget_from_xpm (GtkWidget * widget, gchar **xpm_data) { GdkBitmap * mask; GdkPixmap * pixmap_data; GdkWindow * window; GdkColormap * colormap; window = widget ? widget->window : NULL; colormap = widget ? gtk_widget_get_colormap (widget) : gtk_widget_get_default_colormap(); pixmap_data = gdk_pixmap_colormap_create_from_xpm_d (window, colormap, &mask, NULL, xpm_data); return gtk_pixmap_new (pixmap_data, mask); } /* * create_color (r, g, b) * * Ripped from grip, Copyright (c) 1998-2002 Mike Oliphant */ GdkColor * create_color (int red, int green, int blue) { GdkColor *c; c=(GdkColor *)g_malloc(sizeof(GdkColor)); c->red=red; c->green=green; c->blue=blue; gdk_color_alloc(gdk_colormap_get_system(),c); return c; } static gfloat style_color_mods[5]={0.0,-0.1,0.2,-0.2}; /* * create_style() * * Ripped from grip, Copyright (c) 1998-2002 Mike Oliphant */ GtkStyle * create_style (GdkColor * fg, GdkColor * bg, gboolean do_grade) { GtkStyle *def; GtkStyle *sty; int state; def=gtk_widget_get_default_style(); sty=gtk_style_copy(def); for(state=0;state<5;state++) { if(fg) sty->fg[state]=*fg; if(bg) sty->bg[state]=*bg; if(bg && do_grade) { sty->bg[state].red+=sty->bg[state].red*style_color_mods[state]; sty->bg[state].green+=sty->bg[state].green*style_color_mods[state]; sty->bg[state].blue+=sty->bg[state].blue*style_color_mods[state]; } } return sty; } void init_styles (void) { GdkColor gdkblack; GdkColor gdkwhite; GdkColor * color_LCD; GdkColor * color_light_grey; GdkColor * color_green_grey; GdkColor * color_red_grey; GdkColor * color_dark_grey; GdkColor * color_red; gdk_color_white(gdk_colormap_get_system(),&gdkwhite); gdk_color_black(gdk_colormap_get_system(),&gdkblack); color_LCD = create_color (33686,38273,29557); color_light_grey = create_color (0xaaaa, 0xaaaa, 0xaaaa); color_green_grey = create_color (0xaaaa, 0xbbbb, 0xaaaa); color_red_grey = create_color (0xd3d3, 0x9898, 0x9898); /* color_dark_grey = create_color (0x4444,0x4444,0x4444);*/ color_dark_grey = create_color (0x5555, 0x5555, 0x5555); color_red = create_color (0xffff, 0x0000, 0x0000); style_wb = create_style(&gdkwhite,&gdkblack,FALSE); style_bw = create_style(&gdkblack,&gdkwhite,FALSE); style_LCD = create_style(color_LCD, color_LCD, FALSE); style_light_grey = create_style (color_light_grey, color_light_grey, TRUE); #if 0 style_green_grey = create_style (color_green_grey, color_green_grey, TRUE); #else style_green_grey = style_light_grey; #endif style_red_grey = create_style (color_red_grey, color_red_grey, TRUE); #if 0 style_dark_grey = create_style(&gdkwhite, color_dark_grey, TRUE); #else style_dark_grey = style_light_grey; #endif style_red = create_style (&gdkblack, color_red, FALSE); } GtkWidget * create_pixmap_button (GtkWidget * widget, gchar ** xpm_data, const gchar * tip_text, GtkStyle * style, sw_toolbar_button_type button_type, GCallback clicked, GCallback pressed, GCallback released, gpointer data) { GtkWidget * pixmap; GtkWidget * button; GtkTooltips * tooltips; switch (button_type) { case SW_TOOLBAR_TOGGLE_BUTTON: button = gtk_toggle_button_new (); break; case SW_TOOLBAR_RADIO_BUTTON: button = gtk_radio_button_new (NULL); break; case SW_TOOLBAR_BUTTON: default: button = gtk_button_new (); break; } if (xpm_data != NULL) { pixmap = create_widget_from_xpm (widget, xpm_data); gtk_widget_show (pixmap); gtk_container_add (GTK_CONTAINER (button), pixmap); } if (tip_text != NULL) { tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, tip_text, NULL); } if (style != NULL) { gtk_widget_set_style (button, style); } if (clicked != NULL) { g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK(clicked), data); } if (pressed != NULL) { g_signal_connect (G_OBJECT(button), "pressed", G_CALLBACK(pressed), data); } if (released != NULL) { g_signal_connect (G_OBJECT(button), "released", G_CALLBACK(released), data); } return button; } #if 0 static void main_destroy_cb (GtkWidget * widget, gpointer data) { gtk_main_quit(); } GtkWidget* create_toolbox (void) { GtkWidget *window1; GtkWidget *vbox1; GtkWidget *handlebox2; GtkWidget *menubar1; GtkWidget *handlebox1; GtkWidget *toolbar1; GtkWidget *button1, * button; GtkWidget *pixmap1, *pixmap3; GtkWidget *menu; GtkWidget *menuitem; GtkAccelGroup *accel_group; window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window1), _("Sweep")); gtk_widget_realize (window1); g_signal_connect (G_OBJECT(window1), "destroy", G_CALLBACK(main_destroy_cb), NULL); vbox1 = gtk_vbox_new (FALSE, 0); gtk_widget_show (vbox1); gtk_container_add (GTK_CONTAINER (window1), vbox1); handlebox2 = gtk_handle_box_new (); gtk_widget_show (handlebox2); gtk_box_pack_start (GTK_BOX (vbox1), handlebox2, FALSE, FALSE, 0); menubar1 = gtk_menu_bar_new (); gtk_widget_show (menubar1); gtk_container_add (GTK_CONTAINER (handlebox2), menubar1); /* Create a GtkAccelGroup and add it to the window. */ accel_group = gtk_accel_group_new(); gtk_window_add_accel_group (GTK_WINDOW(window1), accel_group); menu = gtk_menu_new(); menuitem = gtk_menu_item_new_with_label (_("File")); gtk_menu_item_set_submenu (GTK_MENU_ITEM(menuitem), menu); gtk_menu_bar_append (GTK_MENU_BAR(menubar1), menuitem); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label (_("New")); gtk_menu_append (GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(sample_new_empty_cb), NULL); gtk_widget_show(menuitem); gtk_widget_add_accelerator (menuitem, "activate", accel_group, GDK_n, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); menuitem = gtk_menu_item_new_with_label (_("Open")); gtk_menu_append (GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(sample_load_cb), window1); gtk_widget_show(menuitem); gtk_widget_add_accelerator (menuitem, "activate", accel_group, GDK_o, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); menuitem = gtk_menu_item_new_with_label (_("Quit")); gtk_menu_append (GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(exit_cb), window1); gtk_widget_show(menuitem); gtk_widget_add_accelerator (menuitem, "activate", accel_group, GDK_q, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); menu = gtk_menu_new(); menuitem = gtk_menu_item_new_with_label (_("Help")); gtk_menu_item_set_submenu (GTK_MENU_ITEM(menuitem), menu); gtk_menu_bar_append (GTK_MENU_BAR(menubar1), menuitem); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label (_("About...")); gtk_menu_append (GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(about_dialog_create), NULL); gtk_widget_show(menuitem); #if 0 handlebox1 = gtk_handle_box_new (); gtk_widget_show (handlebox1); gtk_box_pack_start (GTK_BOX (vbox1), handlebox1, FALSE, FALSE, 0); toolbar1 = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_BOTH); gtk_widget_show (toolbar1); gtk_container_add (GTK_CONTAINER (handlebox1), toolbar1); /* SELECT */ pixmap1 = create_widget_from_xpm (toolbar1, rect_xpm); gtk_widget_show (pixmap1); button1 = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_CHILD_RADIOBUTTON, NULL, /* Radio group */ _("Select"), _("Select regions of a sample"), _("This tool allows you to select" " regions of a sample. You can then" " apply edits and effects to the:" " selected regions. Hold down shift" " whilst selecting to add" " discontinuous regions to the" " selection."), pixmap1, /* icon */ set_tool_cb, (gpointer)TOOL_SELECT); gtk_widget_show (button1); #if 0 /* MOVE */ button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_CHILD_RADIOBUTTON, button1, /* Radio group */ _("Move"), _("Move regions in a sample"), _("With this tool you can move" " selected regions of a sample."), NULL, /* icon */ set_tool_cb, (gpointer)TOOL_MOVE); gtk_widget_show (button); #endif /* SCRUB */ button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_CHILD_RADIOBUTTON, button1, /* Radio group */ _("Scrub"), _("Locate sounds directly"), _("Place the play marker on a sample." " Click anywhere in a view to" " instantly move the playback" " position to that part of the" " sample."), NULL, /* icon */ set_tool_cb, (gpointer)TOOL_SCRUB); gtk_widget_show (button); /* ZOOM */ pixmap3 = create_widget_from_xpm (window1, magnify_xpm); gtk_widget_show (pixmap3); button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_CHILD_RADIOBUTTON, button1, /* Radio group */ _("Zoom"), _("Zoom in & out"), _("Zoom in and out of a view. Click" " anywhere in a view to zoom in on" " that part of the sample. Hold" " down shift and click on the view" " to zoom out."), pixmap3, /* icon */ set_tool_cb, (gpointer)TOOL_ZOOM); gtk_widget_show (button); #if 1 /* These need undos! */ /* PENCIL */ button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_CHILD_RADIOBUTTON, button1, /* Radio group */ _("Pencil"), _("Edit PCM sample values"), _("When zoomed down to individual " " samples, click to edit"), NULL, /* icon */ set_tool_cb, (gpointer)TOOL_PENCIL); gtk_widget_show (button); /* NOISE */ button = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_CHILD_RADIOBUTTON, button1, /* Radio group */ _("Noise"), _("Add noise"), _("Randomise PCM values"), NULL, /* icon */ set_tool_cb, (gpointer)TOOL_NOISE); gtk_widget_show (button); #endif #endif /* TOOLBAR */ return window1; } #endif /* * close the window when Ctrl and w are pressed. * accel key combo is static. perhaps there is a better * way to do this? */ void attach_window_close_accel(GtkWindow *window) { GClosure *gclosure; GtkAccelGroup *accel_group; accel_group = gtk_accel_group_new (); gclosure = g_cclosure_new ((GCallback)close_window_cb, NULL, NULL); gtk_accel_group_connect (accel_group, GDK_w, GDK_CONTROL_MASK, 0, /* non of the GtkAccelFlags seem suitable? */ gclosure); gtk_window_add_accel_group (GTK_WINDOW(window), accel_group); } void init_ui (void) { init_accels(); init_styles(); init_recent_manager(); } sweep-0.9.3/src/file_sndfile.h0000644000175000017500000000223410777660160014762 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __FILE_OPS_H__ #define __FILE_OPS_H__ #include sw_sample * sndfile_sample_reload (sw_sample * sample, gboolean try_raw); sw_sample * sndfile_sample_load (gchar * pathname, gboolean try_raw); int sndfile_sample_save(sw_sample * s, gchar * pathname); int sndfile_save_options_dialog (sw_sample * sample, gchar * pathname); #endif /* __FILE_OPS_H__ */ sweep-0.9.3/src/driver.c0000644000175000017500000004731110777664131013634 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "driver.h" extern sw_driver * driver_alsa; extern sw_driver * driver_oss; extern sw_driver * driver_solaris; extern GMutex * play_mutex; /* preferred driver */ static sw_driver _driver_null = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }; static sw_driver * pref = &_driver_null; #include "preferences.h" #include "pcmio.h" char * pcmio_get_default_main_dev (void) { GList * names = NULL, * gl; if (pref->get_names) names = pref->get_names (); if ((gl = names) != NULL) { return (char *)gl->data; } return NULL; } char * pcmio_get_default_monitor_dev (void) { GList * names = NULL, * gl; if (pref->get_names) names = pref->get_names (); if ((gl = names) != NULL) { if ((gl = gl->next) != NULL) { return (char *)gl->data; } } return NULL; } char * pcmio_get_main_dev (void) { char * main_dev; main_dev = prefs_get_string (pref->primary_device_key); if (main_dev == NULL) return pcmio_get_default_main_dev(); return main_dev; } char * pcmio_get_monitor_dev (void) { char * monitor_dev; monitor_dev = prefs_get_string (pref->monitor_device_key); if (monitor_dev == NULL) return pcmio_get_default_monitor_dev (); return monitor_dev; } gboolean pcmio_get_use_monitor (void) { int * use_monitor; use_monitor = prefs_get_int (USE_MONITOR_KEY); if (use_monitor == NULL) return DEFAULT_USE_MONITOR; else return (*use_monitor != 0); } int pcmio_get_log_frags (void) { int * log_frags; log_frags = prefs_get_int (pref->log_frags_key); if (log_frags == NULL) return DEFAULT_LOG_FRAGS; else return (*log_frags); } extern GtkStyle * style_bw; static GtkWidget * dialog = NULL; static GtkWidget * main_combo; static GtkWidget * monitor_combo; static GtkObject * adj; static gboolean monitor_checked (GtkWidget * dialog) { GtkWidget * monitor_chb; monitor_chb = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "monitor_chb")); return gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (monitor_chb)); } static void config_dev_dsp_dialog_ok_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog = GTK_WIDGET (data); GtkAdjustment * adj; G_CONST_RETURN gchar * main_dev, * monitor_dev; adj = g_object_get_data (G_OBJECT(dialog), "buff_adj"); prefs_set_int (pref->log_frags_key, adj->value); main_dev = gtk_entry_get_text (GTK_ENTRY(GTK_COMBO(main_combo)->entry)); prefs_set_string (pref->primary_device_key, (gchar *)main_dev); if (monitor_checked (dialog)) { monitor_dev = gtk_entry_get_text (GTK_ENTRY(GTK_COMBO(monitor_combo)->entry)); prefs_set_string (pref->monitor_device_key, (gchar *)monitor_dev); prefs_set_int (USE_MONITOR_KEY, 1); } else { prefs_set_int (USE_MONITOR_KEY, 0); } gtk_widget_hide (dialog); } static void config_dev_dsp_dialog_cancel_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; dialog = gtk_widget_get_toplevel (widget); gtk_widget_hide (dialog); } static void update_ok_button (GtkWidget * widget, gpointer data) { GtkWidget * dialog = GTK_WIDGET(data); GtkWidget * ok_button; gchar * main_devname, * monitor_devname; gboolean ok = FALSE; ok_button = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "ok_button")); if (monitor_checked (dialog)) { main_devname = (gchar *) gtk_entry_get_text (GTK_ENTRY(GTK_COMBO(main_combo)->entry)); monitor_devname = (gchar *) gtk_entry_get_text (GTK_ENTRY(GTK_COMBO(monitor_combo)->entry)); ok = (strcmp (main_devname, monitor_devname) != 0); } else { ok = TRUE; } gtk_widget_set_sensitive (ok_button, ok); } static void set_monitor_widgets (GtkWidget * dialog, gboolean use_monitor) { GtkWidget * monitor_chb, * monitor_widget, * swap; monitor_chb = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "monitor_chb")); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(monitor_chb), use_monitor); monitor_widget = g_object_get_data (G_OBJECT(dialog), "monitor_widget"); gtk_widget_set_sensitive (monitor_widget, use_monitor); swap = g_object_get_data (G_OBJECT(dialog), "swap"); gtk_widget_set_sensitive (swap, use_monitor); } static void set_buff_adj (GtkWidget * dialog, gint logfrags) { GtkAdjustment * adj; adj = g_object_get_data (G_OBJECT(dialog), "buff_adj"); gtk_adjustment_set_value (adj, logfrags); } static void pcmio_devname_swap_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog = GTK_WIDGET (data); gchar * main_dev, * monitor_dev; main_dev = g_strdup (gtk_entry_get_text (GTK_ENTRY(GTK_COMBO(main_combo)->entry))); monitor_dev = (gchar *)gtk_entry_get_text (GTK_ENTRY(GTK_COMBO(monitor_combo)->entry)); gtk_entry_set_text (GTK_ENTRY(GTK_COMBO(main_combo)->entry), monitor_dev); gtk_entry_set_text (GTK_ENTRY(GTK_COMBO(monitor_combo)->entry), main_dev); g_free (main_dev); set_monitor_widgets (dialog, pcmio_get_use_monitor()); update_ok_button (widget, data); } static void pcmio_devname_reset_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog = GTK_WIDGET (data); char * main_dev, * monitor_dev; main_dev = pcmio_get_main_dev (); monitor_dev = pcmio_get_monitor_dev (); gtk_entry_set_text (GTK_ENTRY(GTK_COMBO(main_combo)->entry), main_dev); gtk_entry_set_text (GTK_ENTRY(GTK_COMBO(monitor_combo)->entry), monitor_dev); set_monitor_widgets (dialog, pcmio_get_use_monitor()); update_ok_button (widget, data); } static void pcmio_devname_default_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog = GTK_WIDGET (data); char * name; if ((name = pcmio_get_default_main_dev ()) != NULL) { gtk_entry_set_text (GTK_ENTRY(GTK_COMBO(main_combo)->entry), name); } if ((name = pcmio_get_default_monitor_dev ()) != NULL) { gtk_entry_set_text (GTK_ENTRY(GTK_COMBO(monitor_combo)->entry), name); } set_monitor_widgets (dialog, DEFAULT_USE_MONITOR); update_ok_button (widget, data); } static void monitor_enable_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog = GTK_WIDGET (data); gboolean active; active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget)); set_monitor_widgets (dialog, active); } static void pcmio_buffering_reset_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog = GTK_WIDGET (data); set_buff_adj (dialog, pcmio_get_log_frags()); } static void pcmio_buffering_default_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog = GTK_WIDGET (data); set_buff_adj (dialog, DEFAULT_LOG_FRAGS); } static GtkWidget * create_devices_combo (void) { GtkWidget * combo; GList * cbitems = NULL; if (pref->get_names) cbitems = pref->get_names(); combo = gtk_combo_new (); gtk_combo_set_popdown_strings (GTK_COMBO(combo), cbitems); return combo; } void device_config (void) { GtkWidget * ebox; GtkWidget * notebook; GtkWidget * separator; GtkWidget * hbox, * hbox2; GtkWidget * vbox; GtkWidget * label; GtkWidget * checkbutton; GtkWidget * hscale; GtkWidget * ok_button; GtkWidget * button; GtkTooltips * tooltips; if (dialog == NULL) { dialog = gtk_dialog_new (); g_signal_connect ((gpointer) dialog, "destroy", G_CALLBACK(gtk_widget_destroyed), &dialog); gtk_window_set_title (GTK_WINDOW(dialog), _("Sweep: audio device configuration")); gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE); /* OK */ ok_button = gtk_button_new_with_label (_("OK")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (ok_button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), ok_button, TRUE, TRUE, 0); gtk_widget_show (ok_button); g_signal_connect (G_OBJECT(ok_button), "clicked", G_CALLBACK (config_dev_dsp_dialog_ok_cb), dialog); g_object_set_data (G_OBJECT (dialog), "ok_button", ok_button); /* Cancel */ button = gtk_button_new_with_label (_("Cancel")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (config_dev_dsp_dialog_cancel_cb), NULL); gtk_widget_grab_default (ok_button); ebox = gtk_event_box_new (); gtk_box_pack_start (GTK_BOX(GTK_DIALOG(dialog)->vbox), ebox, TRUE, TRUE, 0); gtk_widget_set_style (ebox, style_bw); gtk_widget_show (ebox); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(ebox), vbox); gtk_widget_show (vbox); /* Changes ... info */ label = gtk_label_new (_("Changes to device settings will take effect on" " next playback.")); gtk_box_pack_start (GTK_BOX(vbox), label, TRUE, TRUE, 8); gtk_widget_show (label); /* Notebook */ notebook = gtk_notebook_new (); gtk_box_pack_start (GTK_BOX(GTK_DIALOG(dialog)->vbox), notebook, TRUE, TRUE, 4); gtk_widget_show (notebook); /* Device name */ label = gtk_label_new (_("Device name")); vbox = gtk_vbox_new (FALSE, 0); gtk_notebook_append_page (GTK_NOTEBOOK (notebook), vbox, label); gtk_container_set_border_width (GTK_CONTAINER(vbox), 4); gtk_widget_show (vbox); label = gtk_label_new (_("Set the main device for playback and recording")); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 4); gtk_widget_show (label); /* Main output */ hbox = gtk_hbox_new (FALSE, 8); gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, TRUE, 8); gtk_container_set_border_width (GTK_CONTAINER(hbox), 12); gtk_widget_show (hbox); label = gtk_label_new (_("Main device:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); main_combo = create_devices_combo (); gtk_box_pack_start (GTK_BOX(hbox), main_combo, TRUE, TRUE, 0); gtk_widget_show (main_combo); g_signal_connect (G_OBJECT(GTK_COMBO(main_combo)->entry), "changed", G_CALLBACK(update_ok_button), dialog); g_object_set_data (G_OBJECT (dialog), "main_combo", main_combo); #if 0 button = gtk_button_new_with_label (_("Default")); gtk_box_pack_start (GTK_BOX(hbox), button, FALSE, FALSE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(default_devicename_cb), NULL); #endif separator = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX (vbox), separator, FALSE, FALSE, 8); gtk_widget_show (separator); /* Monitor */ checkbutton = gtk_check_button_new_with_label (_("Use a different device for monitoring")); gtk_box_pack_start (GTK_BOX(vbox), checkbutton, FALSE, FALSE, 4); gtk_widget_show (checkbutton); g_signal_connect (G_OBJECT(checkbutton), "toggled", G_CALLBACK(update_ok_button), dialog); hbox = gtk_hbox_new (FALSE, 8); gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, TRUE, 8); gtk_container_set_border_width (GTK_CONTAINER(hbox), 12); gtk_widget_show (hbox); label = gtk_label_new (_("Monitor output:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); monitor_combo = create_devices_combo (); gtk_box_pack_start (GTK_BOX(hbox), monitor_combo, TRUE, TRUE, 0); gtk_widget_show (monitor_combo); g_signal_connect (G_OBJECT(GTK_COMBO(monitor_combo)->entry), "changed", G_CALLBACK(update_ok_button), dialog); g_signal_connect (G_OBJECT(checkbutton), "toggled", G_CALLBACK(monitor_enable_cb), dialog); g_object_set_data (G_OBJECT (dialog), "monitor_chb", checkbutton); g_object_set_data (G_OBJECT (dialog), "monitor_widget", hbox); /* Swap / Remember / Reset device names*/ hbox = gtk_hbox_new (FALSE, 4); gtk_box_pack_end (GTK_BOX(vbox), hbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER(hbox), 12); gtk_widget_show (hbox); button = gtk_button_new_with_label (_("Swap")); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(pcmio_devname_swap_cb), dialog); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Swap main and monitor devices."), NULL); g_object_set_data (G_OBJECT (dialog), "swap", button); hbox2 = gtk_hbox_new (TRUE, 4); gtk_box_pack_end (GTK_BOX (hbox), hbox2, FALSE, TRUE, 0); gtk_widget_show (hbox2); button = gtk_button_new_with_label (_("Reset")); gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(pcmio_devname_reset_cb), dialog); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Reset to the last remembered device names."), NULL); /* Call the reset callback now to set remembered options */ pcmio_devname_reset_cb (button, dialog); button = gtk_button_new_with_label (_("Defaults")); gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(pcmio_devname_default_cb), dialog); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Set to default device names."), NULL); separator = gtk_hseparator_new (); gtk_box_pack_end (GTK_BOX (vbox), separator, FALSE, FALSE, 8); gtk_widget_show (separator); /* Buffering */ label = gtk_label_new (_("Device buffering")); vbox = gtk_vbox_new (FALSE, 0); gtk_notebook_append_page (GTK_NOTEBOOK (notebook), vbox, label); gtk_container_set_border_width (GTK_CONTAINER(vbox), 4); gtk_widget_show (vbox); hbox = gtk_hbox_new (FALSE, 8); gtk_box_pack_start (GTK_BOX(vbox), hbox, TRUE, TRUE, 8); gtk_widget_show (hbox); label = gtk_label_new (_("Low latency /\nMore dropouts")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 8); gtk_widget_show (label); adj = gtk_adjustment_new (pcmio_get_log_frags (), /* value */ LOG_FRAGS_MIN, /* lower */ LOG_FRAGS_MAX+1, /* upper */ 1, /* step incr */ 1, /* page incr */ 1 /* page size */ ); g_object_set_data (G_OBJECT(dialog), "buff_adj", adj); hscale = gtk_hscale_new (GTK_ADJUSTMENT(adj)); gtk_box_pack_start (GTK_BOX(hbox), hscale, TRUE, TRUE, 4); gtk_scale_set_draw_value (GTK_SCALE(hscale), TRUE); gtk_scale_set_digits (GTK_SCALE(hscale), 0); gtk_range_set_update_policy (GTK_RANGE(hscale), GTK_UPDATE_CONTINUOUS); gtk_widget_set_size_request(hscale, 160, -1); gtk_widget_show (hscale); label = gtk_label_new (_("High latency /\nFewer dropouts")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 8); gtk_widget_show (label); label = gtk_label_new (_("Varying this slider controls the lag between " "cursor movements and playback. This is " "particularly noticeable when \"scrubbing\" " "during playback.\n\nLower values improve " "responsiveness but may degrade audio quality " "on heavily-loaded systems.")); gtk_label_set_line_wrap (GTK_LABEL(label), TRUE); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 8); gtk_widget_show (label); /* Remember / Reset device buffering */ hbox = gtk_hbox_new (FALSE, 4); gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER(hbox), 12); gtk_widget_show (hbox); #if 0 checkbutton = gtk_check_button_new_with_label (_("Remember these options")); gtk_box_pack_start (GTK_BOX (hbox), checkbutton, TRUE, TRUE, 0); gtk_widget_show (checkbutton); g_object_set_data (G_OBJECT (dialog), "rem_options_chb", checkbutton); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(checkbutton), TRUE); #endif hbox2 = gtk_hbox_new (TRUE, 4); gtk_box_pack_end (GTK_BOX (hbox), hbox2, FALSE, TRUE, 0); gtk_widget_show (hbox2); button = gtk_button_new_with_label (_("Reset")); gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(pcmio_buffering_reset_cb), dialog); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Reset to the last remembered device buffering."), NULL); /* Call the reset callback now to set remembered options */ pcmio_buffering_reset_cb (button, dialog); button = gtk_button_new_with_label (_("Default")); gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(pcmio_buffering_default_cb), dialog); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Set to default device buffering."), NULL); } gtk_entry_set_text (GTK_ENTRY(GTK_COMBO(main_combo)->entry), pcmio_get_main_dev ()); gtk_entry_set_text (GTK_ENTRY(GTK_COMBO(monitor_combo)->entry), pcmio_get_monitor_dev ()); gtk_adjustment_set_value (GTK_ADJUSTMENT(adj), pcmio_get_log_frags ()); if (!GTK_WIDGET_VISIBLE(dialog)) { gtk_widget_show(dialog); } else { gdk_window_raise(dialog->window); } } sw_handle * device_open (int cueing, int flags) { if (pref->open) return pref->open (cueing, flags); else return NULL; } void device_setup (sw_handle * handle, sw_format * format) { if (pref->setup) pref->setup (handle, format); } int device_wait (sw_handle * handle) { if (pref->wait) return pref->wait (handle); else return 0; } ssize_t device_read (sw_handle * handle, sw_audio_t * buf, size_t count) { if (pref->read) return pref->read (handle, buf, count); else return -1; } ssize_t device_write (sw_handle * handle, sw_audio_t * buf, size_t count, sw_framecount_t offset) { #ifdef DEBUG printf ("device_write: %d from %d\n", count, offset); #endif if (pref->write) return pref->write (handle, buf, count, offset); else return -1; } sw_framecount_t device_offset (sw_handle * handle) { if (pref->offset) return pref->offset (handle); else return -1; } void device_reset (sw_handle * handle) { if (pref->reset) pref->reset (handle); } void device_flush (sw_handle * handle) { if (pref->flush) pref->flush (handle); } void device_drain (sw_handle * handle) { if (pref->drain) pref->drain (handle); } void device_close (sw_handle * handle) { if (pref->close) pref->close (handle); handle->driver_fd = -1; } void init_devices (void) { #if defined(DRIVER_ALSA) pref = driver_alsa; #elif defined(DRIVER_OSS) pref = driver_oss; #elif defined(DRIVER_SOLARIS_AUDIO) pref = driver_solaris; #endif play_mutex = g_mutex_new (); } sweep-0.9.3/src/preferences.h0000644000175000017500000000240710777660160014642 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __PREFERENCES_H__ #define __PREFERENCES_H__ void prefs_init (); int prefs_close (void); int prefs_delete (char * key); int * prefs_get_int (char * key); int prefs_set_int (char * key, int val); long * prefs_get_long (char * key); int prefs_set_long (char * key, long val); float * prefs_get_float (char * key); int prefs_set_float (char * key, float val); char * prefs_get_string (char * key); int prefs_set_string (char * key, char * val); #endif /* __PREFERENCES_H__ */ sweep-0.9.3/src/Makefile.am0000644000175000017500000000342210777660313014222 0ustar useruser## Process this file with automake to produce Makefile.in SUBDIRS = tdb INCLUDES = \ -I$(top_srcdir)/intl \ -I$(top_srcdir)/include \ -I$(top_srcdir)/src/tdb \ @SNDFILE_CFLAGS@ \ @OGG_CFLAGS@ @VORBIS_CFLAGS@ \ @SAMPLERATE_CFLAGS@ \ @GTK_CFLAGS@ \ @GLIB_CFLAGS@ \ @GTHREADS_CFLAGS@ \ @ALSA_CFLAGS@ TDB_LIBS = $(top_builddir)/src/tdb/libtdb.a bin_PROGRAMS = sweep sweep_SOURCES = \ sweep_app.h sweep_compat.h\ main.c \ about_dialog.c about_dialog.h \ callbacks.c callbacks.h \ channelops.c channelops.h \ cursors.c cursors.h \ db_ruler.c db_ruler.h \ db_slider.c db_slider.h \ driver.c driver.h \ driver_alsa.c \ driver_oss.c \ driver_solaris.c \ edit.c edit.h \ file_dialogs.c file_dialogs.h \ file_sndfile.h \ file_sndfile1.c \ file_mad.c \ file_speex.c \ file_vorbis.c \ format.c format.h \ head.c head.h \ interface.c interface.h \ levelmeter.c levelmeter.h \ notes.c notes.h \ param.c param.h \ paste_dialogs.c paste_dialogs.h \ pcmio.h \ pixmaps.h \ play.c play.h \ plugin.c plugin.h \ preferences.c preferences.h \ print.c print.h \ question_dialogs.c question_dialogs.h \ record.c record.h \ sample-display.c sample-display.h \ samplerate.c \ sw_chooser.c sw_chooser.h \ sweep_filter.c \ sweep_sample.c sample.h \ sweep_sounddata.c \ sweep_selection.c \ sweep_typeconvert.c \ sweep_undo.c \ time_ruler.c time_ruler.h \ timeouts.c \ undo_dialog.c undo_dialog.h \ view.c view.h \ view_pixmaps.h sweep_LDADD = $(TDB_LIBS) \ @GTK_LIBS@ $(INTLLIBS) $(PTHREAD_LIBS) \ $(SNDFILE_LIBS) \ $(OGG_LIBS) $(VORBIS_LIBS) $(VORBISFILE_LIBS) $(VORBISENC_LIBS) \ $(MAD_LIBS) $(SPEEX_LIBS) \ $(SAMPLERATE_LIBS) \ @GLIB_LIBS@ @GTHREADS_LIBS@ \ @ALSA_LIBS@ sweep_LDFLAGS = @EXPORT_DYNAMIC_FLAGS@ sweep_CFLAGS = -DPACKAGE_DATA_DIR='@PACKAGE_DATA_DIR@' sweep-0.9.3/src/callbacks.c0000644000175000017500000005375210777660300014260 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include "callbacks.h" #include #include #include #include #include #include "sample.h" #include "interface.h" #include "edit.h" #include "head.h" #include "sample-display.h" #include "play.h" #include "driver.h" #include "undo_dialog.h" #include "paste_dialogs.h" #include "print.h" #include "record.h" #include "file_dialogs.h" /* * Default zooming parameters. * * DEFAULT_ZOOM sets the ratio for zooming. Each time zoom_in is * called, the view is adjusted to be 1/DEFAULT_ZOOM its current * length. Each time zoom_out is called, the view is adjusted to * DEFAULT_ZOOM times its current length. * * If you alter this, make sure * (DEFAULT_ZOOM - 1) * DEFAULT_MIN_ZOOM > 1 * * where DEFAULT_MIN_ZOOM is defined in view.c */ #define DEFAULT_ZOOM 2.0 #define ZOOM_FRAMERATE 10 /* Sample creation */ void sample_new_empty_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; if (view == NULL) { create_sample_new_dialog_defaults (NULL); } else { create_sample_new_dialog_like (view->sample); } } void sample_new_copy_cb (GtkWidget * widget, gpointer data) { sw_sample * ns; SampleDisplay * sd = SAMPLE_DISPLAY(data); sw_sample * s; sw_view * v; s = sd->view->sample; if(!s) return; ns = sample_new_copy(s); while (ns->color == s->color) { ns->color = (random()) % VIEW_COLOR_MAX; } v = view_new_all (ns, 1.0); sample_add_view (ns, v); sample_bank_add(ns); } /* Generic repeater */ static void view_init_repeater (sw_view * view, GtkFunction function, gpointer data) { function (data); if (view->repeater_tag <= 0) { view->repeater_tag = g_timeout_add ((guint32)1000/ZOOM_FRAMERATE, (GSourceFunc) function, data); } } void repeater_released_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; if (view->repeater_tag > 0) { g_source_remove(view->repeater_tag); view->repeater_tag = 0; } } /* View */ void view_new_all_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sw_sample * s; sw_view * v; s = sd->view->sample; v = view_new_all(s, 1.0); sample_add_view (s, v); } void view_new_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sw_sample * s; sw_view * view, * v; v = sd->view; s = v->sample; view = view_new (s, v->start, v->end, s->play_head->gain); sample_add_view (s, view); } void view_close_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sw_view * v; v = sd->view; view_close(v); } void exit_cb (GtkWidget * widget, gpointer data) { sweep_quit (); } /* Tools */ void set_tool_cb (GtkWidget * widget, gpointer data) { #if 0 gint tool = (gint)data; /* current_tool = tool;*/ #endif g_print ("NOOOOOOOOOOOOOO global current_tool\n"); } void view_set_tool_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_tool_t tool; tool = (sw_tool_t) GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "default")); view->current_tool = tool; view_refresh_tool_buttons (view); } /* Zooming */ static gboolean zoom_in_step (gpointer data) { sw_view * view = (sw_view *)data; view_zoom_in (view, DEFAULT_ZOOM); return TRUE; } void zoom_in_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; view_zoom_in (view, DEFAULT_ZOOM); } static gboolean zoom_out_step (gpointer data) { sw_view * view = (sw_view *)data; view_zoom_out (view, DEFAULT_ZOOM); return TRUE; } void zoom_out_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; view_zoom_out (view, DEFAULT_ZOOM); } void zoom_in_pressed_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; view_zoom_in (view, DEFAULT_ZOOM); view_init_repeater (view, (GtkFunction)zoom_in_step, data); } void zoom_out_pressed_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; view_zoom_out (view, DEFAULT_ZOOM); view_init_repeater (view, (GtkFunction)zoom_out_step, data); } void zoom_to_sel_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sw_view * v = sd->view; view_zoom_to_sel (v); } void zoom_left_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sw_view * v = sd->view; view_zoom_left (v); } void zoom_right_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sw_view * v = sd->view; view_zoom_right (v); } void zoom_all_cb (GtkWidget * widget, gpointer data) { sw_view * v = (sw_view *)data; view_zoom_all (v); } /* XXX: dump this ?? */ void zoom_2_1_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sw_sample * s; s = sd->view->sample; view_set_ends(sd->view, s->sounddata->nr_frames / 4, 3 * s->sounddata->nr_frames / 4); } void zoom_norm_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sw_view * view = sd->view; view_zoom_normal (view); } void zoom_1to1_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); view_zoom_length (sd->view, sd->width); view_center_on (sd->view, sd->view->sample->user_offset); } void zoom_center_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); view_center_on (sd->view, sd->view->sample->user_offset); } void zoom_combo_changed_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; gchar * text; sw_time_t zoom_time; sw_framecount_t zoom_length; text = (gchar *) gtk_entry_get_text (GTK_ENTRY(widget)); if (!strcmp (text, "All")) { view_zoom_all (view); } else { zoom_time = (sw_time_t)strtime_to_seconds (text); if (zoom_time != -1.0) { zoom_length = time_to_frames (view->sample->sounddata->format, zoom_time); view_zoom_length (view, zoom_length); /* Work around a bug, probably in gtkcombo, whereby all the other * widgets sometimes lost input after choosing a zoom */ gtk_widget_grab_focus (view->display); } } } /* Device config */ void device_config_cb (GtkWidget * widget, gpointer data) { device_config (); } /* Sample */ void sample_set_color_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *) data; gint color; color = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "default")); sample_set_color (view->sample, color); } /* Playback */ void follow_toggled_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *) data; gboolean active; active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget)); view_set_following (view, active); } void follow_toggle_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; view_set_following (view, !view->following); } void loop_toggled_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *) data; gboolean active; active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget)); sample_set_looping (view->sample, active); } void loop_toggle_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sample_set_looping (view->sample, !view->sample->play_head->looping); } void playrev_toggled_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *) data; gboolean active; active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget)); sample_set_playrev (view->sample, active); } void playrev_toggle_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sample_set_playrev (view->sample, !view->sample->play_head->reverse); } void mute_toggled_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *) data; gboolean active; active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget)); sample_set_mute (view->sample, active); } void mute_toggle_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sample_set_mute (view->sample, !view->sample->play_head->mute); } void monitor_toggled_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *) data; gboolean active; active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget)); sample_set_monitor (view->sample, active); } void monitor_toggle_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sample_set_monitor (view->sample, !view->sample->play_head->monitor); } void play_view_button_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *) data; sw_head * head = view->sample->play_head; gboolean was_restricted = head->restricted; head_set_rate (head, 1.0); /* head_set_restricted (head, FALSE);*/ if (head->going && (head->scrubbing || !was_restricted)) { pause_playback_cb (widget, data); } else { play_view_all (view); } } void play_view_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *) data; sw_head * head = view->sample->play_head; head_set_rate (head, 1.0); /* head_set_restricted (head, FALSE);*/ if (head->going) { pause_playback_cb (widget, data); } else { play_view_all (view); } } void play_view_sel_button_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *) data; sw_head * head = view->sample->play_head; gboolean was_restricted = head->restricted; if (view->sample->sounddata->sels == NULL) { play_view_cb (widget, data); return; } head_set_rate (head, 1.0); /* head_set_restricted (head, TRUE);*/ if (head->going && (head->scrubbing || was_restricted)) { pause_playback_cb (widget, data); } else { play_view_sel (view); } } void play_view_sel_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *) data; sw_head * head = view->sample->play_head; if (view->sample->sounddata->sels == NULL) { play_view_cb (widget, data); return; } head_set_rate (head, 1.0); /* head_set_restricted (head, TRUE);*/ if (head->going) { pause_playback_cb (widget, data); } else { play_view_sel (view); } } void pause_playback_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; pause_playback (view->sample); } void stop_playback_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; stop_playback (view->sample); } void preview_cut_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *) data; sample_refresh_playmode (view->sample); if (view->sample->sounddata->sels != NULL) { play_preview_cut (view); } else { play_preroll (view); } } void preroll_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *) data; sample_refresh_playmode (view->sample); play_preroll (view); } /* Record */ void show_rec_dialog_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; rec_dialog_create (view->sample); } /* Transport */ static gboolean rewind_step (gpointer data) { sw_sample * sample = (sw_sample *)data; gint step; step = sample->sounddata->format->rate; /* 1 second */ sample_set_playmarker (sample, sample->user_offset - step, TRUE); return TRUE; } static gboolean ffwd_step (gpointer data) { sw_sample * sample = (sw_sample *)data; gint step; step = sample->sounddata->format->rate; /* 1 second */ sample_set_playmarker (sample, sample->user_offset + step, TRUE); return TRUE; } void page_back_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; gint step; step = MIN(sample->sounddata->format->rate, (view->end - view->start)); sample_set_playmarker (sample, sample->user_offset - step, TRUE); } void page_fwd_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; gint step; step = MIN(sample->sounddata->format->rate, (view->end - view->start)); sample_set_playmarker (sample, sample->user_offset + step, TRUE); } void rewind_pressed_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; view_init_repeater (view, (GtkFunction)rewind_step, sample); } void ffwd_pressed_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; view_init_repeater (view, (GtkFunction)ffwd_step, sample); } void goto_start_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; sample_set_scrubbing (sample, FALSE); sample_set_playmarker (sample, 0, TRUE); } void goto_start_of_view_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; sample_set_scrubbing (sample, FALSE); sample_set_playmarker (sample, view->start, TRUE); } void goto_end_of_view_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; sample_set_scrubbing (sample, FALSE); sample_set_playmarker (sample, view->end, TRUE); } void goto_end_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; sample_set_scrubbing (sample, FALSE); sample_set_playmarker (sample, sample->sounddata->nr_frames, TRUE); } /* Interface elements: sample display, scrollbars etc. */ void sd_sel_changed_cb (GtkWidget * widget) { SampleDisplay * sd = SAMPLE_DISPLAY(widget); sample_refresh_views (sd->view->sample); } void sd_win_changed_cb (GtkWidget * widget) { SampleDisplay * sd = SAMPLE_DISPLAY(widget); sw_view * v = sd->view; g_signal_handlers_block_matched (GTK_OBJECT(v->adj), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, v); view_fix_adjustment (sd->view); g_signal_handlers_unblock_matched (GTK_OBJECT(v->adj), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, v); view_refresh_hruler (v); } void adj_changed_cb (GtkWidget * widget, gpointer data) { sw_view * v = (sw_view *)data; SampleDisplay * sd = SAMPLE_DISPLAY(v->display); GtkAdjustment * adj = GTK_ADJUSTMENT(v->adj); g_signal_handlers_block_matched (GTK_OBJECT(GTK_OBJECT(sd)), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, v); sample_display_set_window(sd, (gint)adj->value, (gint)(adj->value + adj->page_size)); g_signal_handlers_unblock_matched (GTK_OBJECT(GTK_OBJECT(sd)), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, v); view_refresh_hruler (v); } void adj_value_changed_cb (GtkWidget * widget, gpointer data) { sw_view * v = (sw_view *)data; SampleDisplay * sd = SAMPLE_DISPLAY(v->display); GtkAdjustment * adj = GTK_ADJUSTMENT(v->adj); if (!v->sample->play_head->going || !v->following) { g_signal_handlers_block_matched (GTK_OBJECT(GTK_OBJECT(sd)), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, v); sample_display_set_window(sd, (gint)adj->value, (gint)(adj->value + adj->page_size)); g_signal_handlers_unblock_matched (GTK_OBJECT(GTK_OBJECT(sd)), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, v); } if (v->following) { if (v->sample->user_offset < adj->value || v->sample->user_offset > adj->value + adj->page_size) sample_set_playmarker (v->sample, adj->value + adj->page_size/2, TRUE); } view_refresh_hruler (v); } /* Selection */ void select_invert_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sample_selection_invert (sd->view->sample); } void select_all_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sample_selection_select_all (sd->view->sample); } void select_none_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sample_selection_select_none (sd->view->sample); } void selection_halve_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sample_selection_halve (sd->view->sample); } void selection_double_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sample_selection_double (sd->view->sample); } void select_shift_left_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sample_selection_shift_left (sd->view->sample); } void select_shift_right_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sample_selection_shift_right (sd->view->sample); } /* Undo / Redo */ void show_undo_dialog_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; undo_dialog_create (view->sample); } void undo_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; undo_current (view->sample); } void redo_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; redo_current (view->sample); } void cancel_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; cancel_active_op (view->sample); } /* Edit */ void copy_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * s = view->sample; do_copy (s); } void cut_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * s = view->sample; do_cut (s); } void clear_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * s = view->sample; do_clear (s); } void delete_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * s = view->sample; do_delete (s); } void crop_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * s = view->sample; do_crop (s); } void paste_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * s = view->sample; do_paste_insert (s); } void paste_mix_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * s = view->sample; if (clipboard_width() > 0) { create_paste_mix_dialog (s); } else { sample_set_tmp_message (s, _("Clipboard empty")); } } void paste_xfade_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * s = view->sample; if (clipboard_width() > 0) { create_paste_xfade_dialog (s); } else { sample_set_tmp_message (s, _("Clipboard empty")); } } void paste_as_new_cb (GtkWidget * widget, gpointer data) { sw_sample * s; sw_view * v; s = do_paste_as_new (); if (s) { v = view_new_all (s, 1.0); sample_add_view (s, v); sample_bank_add (s); } } void show_info_dialog_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sample_show_info_dialog (view->sample); } void hide_window_cb (GtkAccelGroup *accel_group, GObject *acceleratable, guint keyval, GdkModifierType modifier) { if (GTK_IS_WINDOW(acceleratable)) g_signal_emit_by_name(G_OBJECT(acceleratable), "hide"); } void close_window_cb (GtkAccelGroup *accel_group, GObject *acceleratable, guint keyval, GdkModifierType modifier) { if (GTK_IS_WINDOW(acceleratable)) g_signal_emit_by_name(G_OBJECT(acceleratable), "destroy"); } /* * Prime the label with the largest string then fetch the width. * now we can lock the width via gtk_widget_set_usize() to prevent * the wobble wobble caused by using a variable width font. * Just a hackish replacement for the belated gtk_label_set_width_chars() * don't try this at home kids, karma will get you. (oh well.. it works.) */ void hack_max_label_width_cb (GtkWidget *widget, GtkStyle *previous_style, gpointer user_data) { PangoRectangle logical_rect, ink_rect; const gchar *saved; if (!GTK_IS_LABEL(widget)) return; saved = strdup(gtk_label_get_text(GTK_LABEL(widget))); gtk_label_set_text(GTK_LABEL(widget), "00:00:00.0000"); pango_layout_get_extents (gtk_label_get_layout (GTK_LABEL(widget)), &ink_rect, &logical_rect); gtk_label_set_text(GTK_LABEL(widget), saved); if(saved != NULL) g_free((gpointer)saved); gtk_widget_set_usize(GTK_WIDGET(widget), PANGO_PIXELS (ink_rect.width), -1); } void hack_max_combo_width_cb (GtkWidget *widget, GtkStyle *previous_style, gpointer user_data) { PangoRectangle logical_rect, ink_rect; GtkWidget *tmp_entry; if (!GTK_IS_ENTRY(widget)) return; tmp_entry = gtk_entry_new(); gtk_widget_set_style(tmp_entry, gtk_style_copy(widget->style)); gtk_entry_set_text(GTK_ENTRY(tmp_entry), "00:00:00.0000."); pango_layout_get_extents (gtk_entry_get_layout (GTK_ENTRY(tmp_entry)), &ink_rect, &logical_rect); gtk_widget_destroy(tmp_entry); gtk_widget_set_usize(GTK_WIDGET(GTK_ENTRY(widget)), PANGO_PIXELS (ink_rect.width), -1); } #if GTK_CHECK_VERSION (2, 10, 0) void recent_chooser_menu_activated_cb(GtkRecentChooser *chooser, gpointer user_data) { gchar *uri = NULL; gchar *path = NULL; uri = gtk_recent_chooser_get_current_uri(chooser); path = g_filename_from_uri(uri, NULL, NULL); sample_load(path); g_free (path); } #endif sweep-0.9.3/src/play.c0000644000175000017500000006416510777660160013312 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif /* Define this to record all output to files in /tmp */ /* #define RECORD_DEMO_FILES */ #include #include #include #include #include #include #include #include #include #include #include #ifdef RECORD_DEMO_FILES #include #if !defined (SNDFILE_1) #error Recording demo files requires libsndfile version 1 #endif #endif #include #include #include #include "play.h" #include "head.h" #include "driver.h" #include "preferences.h" #include "sample-display.h" /*#define DEBUG*/ #define SCRUB_SLACKNESS 2.0 #define USE_MONITOR_KEY "UseMonitor" GMutex * play_mutex = NULL; static sw_handle * main_handle = NULL; static sw_handle * monitor_handle = NULL; static GList * active_main_heads = NULL; static GList * active_monitor_heads = NULL; /*static int realoffset = 0;*/ static sw_sample * prev_sample = NULL; static pthread_t player_thread = (pthread_t)-1; static gboolean stop_all = FALSE; static sw_audio_t * pbuf = NULL, * devbuf = NULL; static int pbuf_chans = 0, devbuf_chans = 0; /* * update_playmarker () * * Update the position of the playback marker line for the sample * being played. * * Called within the main sweep interface thread. * gtk_idle will keep calling this function as long as this sample is * playing, unless otherwise stopped. */ static gint update_playmarker (gpointer data) { sw_sample * s = (sw_sample *)data; sw_head * head = s->play_head; if (!sample_bank_contains (s)) { return FALSE; } else if (!head->going) { #ifdef DEBUG g_print ("update_playmarker: !head->going\n"); #endif s->playmarker_tag = 0; /* Set user offset to correct offset */ if (head->previewing) { sample_set_playmarker (s, head->stop_offset, TRUE); head_set_previewing (head, FALSE); } else { sample_set_playmarker (s, (sw_framecount_t)head->offset, TRUE); } /* As this may have been stopped by the player thread, refresh the * interface */ head_set_going (head, FALSE); sample_refresh_playmode (s); return FALSE; } else { sample_set_playmarker (s, head->realoffset, FALSE); return TRUE; } } static void start_playmarker (sw_sample * s) { if (s->playmarker_tag > 0) { g_source_remove (s->playmarker_tag); } s->playmarker_tag = g_timeout_add ((guint32)30, (GSourceFunc) update_playmarker, (gpointer)s); } #if 0 static struct timeval tv_instant = {0, 0}; #endif static sw_framecount_t head_read_unrestricted (sw_head * head, sw_audio_t * buf, sw_framecount_t count, int driver_rate) { sw_sample * sample = head->sample; sw_sounddata * sounddata = sample->sounddata; sw_format * f = sounddata->format; sw_audio_t * d; gdouble po = 0.0, p; gfloat relpitch; sw_framecount_t i, j, b; gint si=0, si_next = 0; gboolean interpolate = FALSE; gboolean do_smoothing = FALSE; sw_framecount_t last_user_offset = -1; int pbuf_size = count * f->channels; gdouble scrub_rate = f->rate / 30.0; d = (sw_audio_t *)sounddata->data; b = 0; po = head->offset; /* compensate for sampling rate of driver */ relpitch = (gfloat)((gdouble)f->rate / (gdouble)driver_rate); for (i = 0; i < count; i++) { if (head->mute || sample->user_offset == last_user_offset) { for (j = 0; j < f->channels; j++) { buf[b] = 0.0; b++; } } else { si = (int)floor(po); interpolate = (si < sounddata->nr_frames); p = po - (gdouble)si; si *= f->channels; g_mutex_lock(head->sample->sounddata->data_mutex); if (interpolate) { si_next = si+f->channels; for (j = 0; j < f->channels; j++) { buf[b] = head->gain * (((sw_audio_t *)head->sample->sounddata->data)[si] * p + ((sw_audio_t *)head->sample->sounddata->data)[si_next] * (1 - p)); if (do_smoothing) { sw_framecount_t b1, b2; b1 = (b - f->channels + pbuf_size) % pbuf_size; b2 = (b1 - f->channels + pbuf_size) % pbuf_size; buf[b] += buf[b] * 2.0; buf[b] += buf[b1] * 3.0 + buf[b2] * 4.0; buf[b] /= 10.0; } b++; si++; si_next++; } } else { for (j = 0; j < f->channels; j++) { buf[b] = head->gain * ((sw_audio_t *)head->sample->sounddata->data)[si]; if (do_smoothing) { sw_framecount_t b1, b2; b1 = (b - f->channels + pbuf_size) % pbuf_size; b2 = (b1 - f->channels + pbuf_size) % pbuf_size; buf[b] += buf[b] * 2.0; buf[b] += buf[b1] * 3.0 + buf[b2] * 4.0; buf[b] /= 10.0; } b++; si++; } } g_mutex_unlock(head->sample->sounddata->data_mutex); } if (head->scrubbing) { gfloat new_delta; if (sample->by_user) { new_delta = (sample->user_offset - po) / scrub_rate; head->delta = head->delta * 0.9 + new_delta * 0.1; sample->by_user = FALSE; last_user_offset = sample->user_offset; } else { gfloat new_po, u_po = (gdouble)sample->user_offset; new_delta = (sample->user_offset - po) / scrub_rate; head->delta = head->delta * 0.99 + new_delta * 0.01; new_po = po + (head->delta * relpitch); if ((head->delta < 0 && new_po < u_po) || (head->delta > 0 && new_po > u_po)) { po = u_po; head->delta = 0.0; } } do_smoothing = TRUE; } else { gfloat tdelta = head->rate * sample->rate; gfloat hdelta = head->delta * (head->reverse ? -1.0 : 1.0); if (sample->by_user) { head->offset = (gdouble)sample->user_offset; po = head->offset; head->delta = tdelta; sample->by_user = FALSE; do_smoothing = TRUE; last_user_offset = sample->user_offset; } if (hdelta < -0.3 * tdelta || hdelta > 1.001 * tdelta) { head->delta *= 0.9999; } else if (hdelta < 0.7 * tdelta) { head->delta = 0.8 * tdelta * (head->reverse ? -1.0 : 1.0); } else if (hdelta < .999 * tdelta) { head->delta *= 1.0001; } else { head->delta = tdelta * (head->reverse ? -1.0 : 1.0); } do_smoothing = FALSE; } po += head->delta * relpitch; { gdouble nr_frames = (gdouble)sample->sounddata->nr_frames; if (head->looping) { while (po < 0.0) po += nr_frames; while (po > nr_frames) po -= nr_frames; } else { if (po < 0.0) po = 0.0; else if (po > nr_frames) po = nr_frames; } } head->offset = po; } return count; } sw_framecount_t head_read (sw_head * head, sw_audio_t * buf, sw_framecount_t count, int driver_rate) { sw_sample * sample = head->sample; sw_sounddata * sounddata = sample->sounddata; sw_format * f = sounddata->format; sw_framecount_t head_offset; sw_framecount_t remaining = count, written = 0, n = 0; sw_framecount_t delta, bound; GList * gl; sw_sel * sel, * osel; while (head->going && remaining > 0) { n = 0; if (head->restricted /* && !head->scrubbing */) { g_mutex_lock (sounddata->sels_mutex); if (g_list_length (sounddata->sels) == 0) { g_mutex_unlock (sounddata->sels_mutex); if (head->previewing && !head->scrubbing) { if (head->reverse) { n = MIN (remaining, head->offset - head->stop_offset); } else { n = MIN (remaining, head->stop_offset - head->offset); } goto got_n; } else { goto zero_pad; } } if (head->previewing && !head->scrubbing) { /* Find selection region that offset is or should be playing to */ if (head->reverse) { osel = NULL; for (gl = g_list_last (sounddata->sels); gl; gl = gl->prev) { sel = (sw_sel *)gl->data; if (osel && ((sw_framecount_t)head->offset > osel->sel_start)) head->offset = osel->sel_start; osel = sel; head_offset = (sw_framecount_t)head->offset; if (head_offset > sel->sel_end) { n = MIN (remaining, head_offset - sel->sel_end); break; } } /* If now at start of first selection region ... */ if (gl == NULL && osel != NULL) { if ((sw_framecount_t)head->offset > osel->sel_start) head->offset = osel->sel_start; head_offset = (sw_framecount_t)head->offset; /* continue 1 second */ delta = time_to_frames (sounddata->format, 1.0); bound = MAX((osel->sel_start - delta), 0); if (head_offset > bound) { n = MIN (remaining, head_offset - bound); } } } else { osel = NULL; for (gl = sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; if (osel && ((sw_framecount_t)head->offset < osel->sel_end)) head->offset = osel->sel_end; osel = sel; head_offset = (sw_framecount_t)head->offset; if (head_offset < sel->sel_start) { n = MIN (remaining, sel->sel_start - head_offset); break; } } /* If now at end of last selection region ... */ if (gl == NULL && osel != NULL) { if ((sw_framecount_t)head->offset < osel->sel_end) head->offset = osel->sel_end; head_offset = head->offset; /* continue 1 second */ delta = time_to_frames (sounddata->format, 1.0); bound = MIN ((osel->sel_end + delta), sounddata->nr_frames); if (head_offset < bound) { n = MIN (remaining, bound - head_offset); } } } } else { /* Find selection region that offset is or should be in */ if (head->reverse) { for (gl = g_list_last (sounddata->sels); gl; gl = gl->prev) { sel = (sw_sel *)gl->data; if ((sw_framecount_t)head->offset > sel->sel_end) head->offset = sel->sel_end; if ((sw_framecount_t)head->offset > sel->sel_start) { n = MIN (remaining, (sw_framecount_t)head->offset - sel->sel_start); break; } } } else { for (gl = sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; if ((sw_framecount_t)head->offset < sel->sel_start) head->offset = sel->sel_start; if ((sw_framecount_t)head->offset < sel->sel_end) { n = MIN (remaining, sel->sel_end - (sw_framecount_t)head->offset); break; } } } } g_mutex_unlock (sounddata->sels_mutex); } else { /* unrestricted */ if (head->previewing && !head->scrubbing) { if (head->reverse) { n = MIN (remaining, (sw_framecount_t)head->offset - head->stop_offset); } else { n = MIN (remaining, head->stop_offset - (sw_framecount_t)head->offset); } } else { if (head->reverse) { n = MIN (remaining, (sw_framecount_t)head->offset); } else { n = MIN (remaining, sounddata->nr_frames - (sw_framecount_t)head->offset); } } } got_n: if (n == 0) { if (head->previewing) { head->offset = head->stop_offset; } else if (!head->restricted || sounddata->sels == NULL) { head->offset = head->reverse ? sounddata->nr_frames : 0; } else { g_mutex_lock (sounddata->sels_mutex); if (head->reverse) { gl = g_list_last (sounddata->sels); sel = (sw_sel *)gl->data; head->offset = sel->sel_end; } else { gl = sounddata->sels; sel = (sw_sel *)gl->data; head->offset = sel->sel_start; } g_mutex_unlock (sounddata->sels_mutex); } if (!head->looping || head->previewing) { head->going = FALSE; } } else { if (n < 0) { #ifdef DEBUG printf ("n = %d\n", n); #endif head->going = FALSE; #ifdef DEUBG } else if (n > count) { printf ("n = %d \t>\tcount = %d\n", n, count); #endif } else { written += head_read_unrestricted (head, buf, n, driver_rate); buf += (int)frames_to_samples (f, n); remaining -= n; } } } zero_pad: if (remaining > 0) { n = frames_to_bytes (f, remaining); memset (buf, 0, n); written += remaining; } return written; } /* initialise a head for playback */ static void head_init_playback (sw_sample * s) { sw_head * head = s->play_head; GList * gl; sw_sel * sel; sw_framecount_t sels_start, sels_end; sw_framecount_t delta; /* g_mutex_lock (s->play_mutex);*/ s->by_user = FALSE; if (!head->going) { head_set_offset (head, s->user_offset); head->delta = head->rate * s->rate; } if (head->restricted) { g_mutex_lock (s->sounddata->sels_mutex); if ((gl = s->sounddata->sels) != NULL) { sel = (sw_sel *)gl->data; sels_start = sel->sel_start; gl = g_list_last (s->sounddata->sels); sel = (sw_sel *)gl->data; sels_end = sel->sel_end; g_mutex_unlock (s->sounddata->sels_mutex); if (head->previewing) { /* preroll 1 second */ delta = time_to_frames (s->sounddata->format, 1.0); if (head->reverse) { head_set_offset (head, sels_end + delta); } else { head_set_offset (head, sels_start - delta); } head_set_offset (head, CLAMP((sw_framecount_t)head->offset, 0, s->sounddata->nr_frames)); } else { if (head->reverse && head->offset <= sels_start) { head_set_offset (head, sels_end); } else if (!head->reverse && head->offset >= sels_end) { head_set_offset (head, sels_start); } } } else if (head->previewing) { /* preroll 1 second */ delta = time_to_frames (s->sounddata->format, 1.0); if (head->reverse) { head_set_offset (head, head->offset + delta); } else { head_set_offset (head, head->offset - delta); } head_set_offset (head, CLAMP(head->offset, 0, s->sounddata->nr_frames)); } } else { if (head->previewing) { /* preroll 1 second */ delta = time_to_frames (s->sounddata->format, 1.0); if (head->reverse) head_set_offset (head, head->offset + delta); else head_set_offset (head, head->offset - delta); } if (head->reverse && head->offset <= 0) { head_set_offset (head, s->sounddata->nr_frames); } else if (!head->reverse && head->offset >= s->sounddata->nr_frames) { head_set_offset (head, 0); } } /* g_mutex_unlock (s->play_mutex);*/ } static void channel_convert_adding (sw_audio_t * src, int src_channels, sw_audio_t * dest, int dest_channels, sw_framecount_t n) { int j; sw_framecount_t i, b = 0; sw_audio_intermediate_t a; if (src_channels == 1) { /* mix mono data up */ for (i = 0; i < n; i++) { for (j = 0; j < dest_channels; j++) { dest[b] += src[i]; b++; } } } else if (dest_channels == 1) { /* mix down to mono */ for (i = 0; i < n; i++) { a = 0.0; for (j = 0; j < src_channels; j++) { a += src[b]; b++; } a /= (sw_audio_intermediate_t)src_channels; dest[i] += (sw_audio_t)a; } } else if (src_channels < dest_channels) { /* copy to first channels */ for (i = 0; i < n; i++) { for (j = 0; j < src_channels; j++) { dest[i * dest_channels + j] += src[b]; b++; } } } else if (dest_channels < src_channels) { /* copy first channels only */ for (i = 0; i < n; i++) { for (j = 0; j < dest_channels; j++) { dest[b] += src[i * src_channels + j]; b++; } } } else if (src_channels == dest_channels) { /* just add */ for (i = 0; i < n * src_channels; i ++) { dest[i] += src[i]; } } } static void play_head_update_device (sw_head * head) { g_mutex_lock (play_mutex); g_mutex_lock (head->head_mutex); if (head->monitor) { if (g_list_find (active_monitor_heads, head) == 0) { active_monitor_heads = g_list_append (active_monitor_heads, head); } active_main_heads = g_list_remove (active_main_heads, head); } else { if (g_list_find (active_main_heads, head) == 0) { active_main_heads = g_list_append (active_main_heads, head); } active_monitor_heads = g_list_remove (active_monitor_heads, head); } g_mutex_unlock (head->head_mutex); g_mutex_unlock (play_mutex); } #ifdef RECORD_DEMO_FILES static gchar * generate_demo_filename (void) { return g_strdup_printf ("/tmp/sweep-demo-%d.au", getpid ()); } #endif #define PSIZ 64 static void prepare_to_play_heads (GList * heads, sw_handle * handle) { sw_head * head; sw_format * f; GList * gl; if ((gl = heads) != NULL) { head = (sw_head *)gl->data; f = head->sample->sounddata->format; if (f->channels > pbuf_chans) { pbuf = g_realloc (pbuf, PSIZ * f->channels * sizeof (sw_audio_t)); pbuf_chans = f->channels; } } #if 0 { fd_set fds; FD_ZERO (&fds); FD_SET (handle->driver_fd, &fds); if (select (handle->driver_fd+1, &fds, NULL, NULL, &tv_instant) == 0); } #else device_wait (handle); #endif return; } static void play_heads (GList ** heads, sw_handle * handle) { sw_sample * s; sw_head * head; sw_format * f; sw_framecount_t n; GList * gl, * gl_next; if (*heads == NULL) return; n = PSIZ; for (gl = *heads; gl; gl = gl_next) { g_mutex_lock (play_mutex); head = (sw_head *)gl->data; gl_next = gl->next; g_mutex_unlock (play_mutex); if (!head) { /* XXX: wtf??? */ return; } else if (!head->going || !sample_bank_contains (head->sample)) { g_mutex_lock (play_mutex); *heads = g_list_remove (*heads, head); g_mutex_unlock (play_mutex); } else { s = head->sample; f = s->sounddata->format; if (f->channels > pbuf_chans) { pbuf = g_realloc (pbuf, n * f->channels * sizeof (sw_audio_t)); pbuf_chans = f->channels; } head_read (head, pbuf, n, handle->driver_rate); #if 0 if (f->channels != handle->driver_channels) { channel_convert (pbuf, f->channels, devbuf, handle->driver_channels, n); } #else channel_convert_adding (pbuf, f->channels, devbuf, handle->driver_channels, n); #endif /* XXX: store the head->offset NOW for device_offset referencing */ g_mutex_lock (s->play_mutex); #if 0 head->realoffset = head->offset; #else head->realoffset = device_offset (handle); if (head->realoffset == -1) { head->realoffset = head->offset; } #endif head->offset = head->realoffset; if (s->by_user /* && s->play_scrubbing */) { /*head->offset = s->user_offset;*/ } else { if (!head->scrubbing) s->user_offset = head->realoffset; } /* if (!head->going) active = FALSE;*/ g_mutex_unlock (s->play_mutex); } } return; } /* how many inactive writes to do before closing */ #define INACTIVE_TIMEOUT 256 static gboolean monitor_active (void) { int * use_monitor; use_monitor = prefs_get_int (USE_MONITOR_KEY); if (use_monitor == NULL) return 0; else return (*use_monitor != 0); } static void play_active_heads (void) { sw_framecount_t count; int inactive_writes = 0; GList * gl; sw_head * head; sw_format * f; int max_driver_chans = 0; gboolean use_monitor; #ifdef RECORD_DEMO_FILES gchar * filename; SNDFILE * sndfile = NULL; SF_INFO sfinfo; #endif if (!active_main_heads && !active_monitor_heads) return; use_monitor = (monitor_handle != NULL); if (use_monitor) { if ((gl = active_monitor_heads)) { head = (sw_head *)gl->data; f = head->sample->sounddata->format; device_setup (monitor_handle, f); } else if ((gl = active_main_heads)) { head = (sw_head *)gl->data; f = head->sample->sounddata->format; device_setup (monitor_handle, f); } } if ((gl = active_main_heads)) { head = (sw_head *)gl->data; f = head->sample->sounddata->format; device_setup (main_handle, f); #ifdef RECORD_DEMO_FILES filename = generate_demo_filename (); sfinfo.samplerate = f->rate; sfinfo.channels = handle->driver_channels; sfinfo.format = SF_FORMAT_AU | SF_FORMAT_FLOAT | SF_ENDIAN_CPU; sndfile = sf_open (filename, SFM_WRITE, &sfinfo); if (sndfile == NULL) sf_perror (NULL); else printf ("Writing to %s\n", filename); #endif } else if ((gl = active_monitor_heads)) { head = (sw_head *)gl->data; f = head->sample->sounddata->format; device_setup (main_handle, f); } else { return; } if (use_monitor) { max_driver_chans = MAX (main_handle->driver_channels, monitor_handle->driver_channels); } else { max_driver_chans = main_handle->driver_channels; } if (max_driver_chans > devbuf_chans) { devbuf = g_realloc (devbuf, PSIZ * max_driver_chans * sizeof (sw_audio_t)); devbuf_chans = max_driver_chans; } while (!stop_all && inactive_writes < INACTIVE_TIMEOUT) { if (active_main_heads == NULL && active_monitor_heads == NULL) { inactive_writes++; } else { inactive_writes = 0; } g_mutex_lock (play_mutex); if (use_monitor) { prepare_to_play_heads (active_monitor_heads, monitor_handle); prepare_to_play_heads (active_main_heads, main_handle); } else { prepare_to_play_heads (active_monitor_heads, main_handle); prepare_to_play_heads (active_main_heads, main_handle); } g_mutex_unlock (play_mutex); if (use_monitor) { count = PSIZ * monitor_handle->driver_channels; memset (devbuf, 0, count * sizeof (sw_audio_t)); play_heads (&active_monitor_heads, monitor_handle); device_write (monitor_handle, devbuf, count, -1 /* offset reference */); count = PSIZ * main_handle->driver_channels; memset (devbuf, 0, count * sizeof (sw_audio_t)); play_heads (&active_main_heads, main_handle); device_write (main_handle, devbuf, count, -1 /* offset reference */); } else { count = PSIZ * main_handle->driver_channels; memset (devbuf, 0, count * sizeof (sw_audio_t)); play_heads (&active_monitor_heads, main_handle); play_heads (&active_main_heads, main_handle); device_write (main_handle, devbuf, count, -1 /* offset reference */); } #ifdef RECORD_DEMO_FILES if (sndfile) sf_writef_float (sndfile, devbuf, count / main_handle->driver_channels); #endif } #if 0 if (!head->looping) { device_drain (handle); HEAD_SET_GOING (head, FALSE); } #endif if (use_monitor) { device_reset (monitor_handle); device_close (monitor_handle); } device_reset (main_handle); device_close (main_handle); #ifdef RECORD_DEMO_FILES if (sndfile) { printf ("Closing %s\n", filename); sf_close (sndfile); } #endif player_thread = (pthread_t) -1; } static gboolean ensure_playing (void) { sw_handle * h; if (player_thread == (pthread_t) -1) { if ((h = device_open (0, O_WRONLY)) != NULL) { main_handle = h; if (monitor_active()) { monitor_handle = device_open (1, O_WRONLY); } else { monitor_handle = NULL; } pthread_create (&player_thread, NULL, (void *) (*play_active_heads), NULL); return TRUE; } else { return FALSE; } } return TRUE; } void sample_play (sw_sample * sample) { sw_head * head = sample->play_head; play_head_update_device (head); head_init_playback (sample); head_set_going (head, TRUE); sample_refresh_playmode (sample); if (ensure_playing()) { start_playmarker (sample); } else { head_set_going (head, FALSE); sample_refresh_playmode (sample); } } void sample_update_device (sw_sample * sample) { sw_head * head = sample->play_head; if (!head->going) return; play_head_update_device (head); } void play_view_all (sw_view * view) { sw_sample * s = view->sample; sw_head * head = s->play_head; sample_set_stop_offset (s); sample_set_previewing (s, FALSE); prev_sample = s; head_set_restricted (head, FALSE); sample_play (s); } void play_view_sel (sw_view * view) { sw_sample * s = view->sample; sw_head * head = s->play_head; if (s->sounddata->sels == NULL) { head_set_going (head, FALSE); sample_refresh_playmode (s); return; } sample_set_stop_offset (s); sample_set_previewing (s, FALSE); prev_sample = s; head_set_restricted (head, TRUE); sample_play (s); } void play_preroll (sw_view * view) { sw_sample * s = view->sample; sw_head * head = s->play_head; sample_set_stop_offset (s); sample_set_previewing (s, TRUE); sample_set_scrubbing (s, FALSE); prev_sample = s; head_set_restricted (head, FALSE); sample_play (s); } void play_preview_cut (sw_view * view) { sw_sample * s = view->sample; sw_head * head = s->play_head; if (s->sounddata->sels == NULL) { head_set_going (head, FALSE); sample_refresh_playmode (s); return; } sample_set_stop_offset (s); sample_set_previewing (s, TRUE); sample_set_scrubbing (s, FALSE); prev_sample = s; head_set_restricted (head, TRUE); sample_play (s); } void play_view_all_pitch (sw_view * view, gfloat pitch) { sw_sample * s = view->sample; sw_head * head = s->play_head; sw_framecount_t mouse_offset; mouse_offset = sample_display_get_mouse_offset (SAMPLE_DISPLAY(view->display)); sample_set_playmarker (s, mouse_offset, TRUE); sample_set_stop_offset (s); sample_set_previewing (s, FALSE); prev_sample = s; head_set_restricted (head, FALSE); head_set_rate (head, pitch); sample_play (s); } void stop_all_playback (void) { stop_all = TRUE; g_list_free (active_main_heads); active_main_heads = NULL; } void pause_playback (sw_sample * s) { sw_head * head; if (s == NULL) return; head = s->play_head; if (head->going) { head_set_going (head, FALSE); } sample_set_stop_offset (s); } void stop_playback (sw_sample * s) { sw_head * head; if (s == NULL) return; head = s->play_head; if (head->going) { head_set_going (head, FALSE); sample_set_playmarker (s, head->stop_offset, TRUE); g_mutex_lock (play_mutex); active_main_heads = g_list_remove (active_main_heads, head); g_mutex_unlock (play_mutex); } } gboolean any_playing (void) { return ((player_thread != (pthread_t) -1) && (active_main_heads != NULL)); } void init_playback (void) { play_mutex = g_mutex_new (); } sweep-0.9.3/src/driver.h0000644000175000017500000000740410777660160013636 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __DRIVER_H__ #define __DRIVER_H__ #include #include "sweep_app.h" #define PBUF_SIZE 256 typedef struct _sw_handle sw_handle; typedef struct _sw_driver sw_driver; struct _sw_handle { int driver_flags; int driver_fd; int driver_channels; int driver_rate; void * custom_data; }; struct _sw_driver { GList * (*get_names) (void); sw_handle * (*open) (int cueing, int flags); void (*setup) (sw_handle * handle, sw_format * format); int (*wait) (sw_handle * handle); ssize_t (*read) (sw_handle * handle, sw_audio_t * buf, size_t count); ssize_t (*write) (sw_handle * handle, sw_audio_t * buf, size_t count, sw_framecount_t offset); sw_framecount_t (*offset) (sw_handle * handle); void (*reset) (sw_handle * handle); void (*flush) (sw_handle * handle); void (*drain) (sw_handle * handle); void (*close) (sw_handle * handle); char * primary_device_key; char * monitor_device_key; char * log_frags_key; }; void device_config (void); sw_handle * device_open (int cueing, int flags); void device_setup (sw_handle * handle, sw_format * format); int device_wait (sw_handle * handle); /* * For recording, ie. reading pcm data from the device. */ ssize_t device_read (sw_handle * handle, sw_audio_t * buf, size_t count); ssize_t device_write (sw_handle * handle, sw_audio_t * buf, size_t count, sw_framecount_t offset); /* As far as I'm aware the method * used to monitor latency in OSS and Solaris etc. is different to that which * ALSA uses, and different again from JACK and PortAudio. * * Basically, when the device is written to, the driver is also told what the * offset into the file is for that bit of sound. * * Then, when the GUI thread goes to draw the cursor, it asks the driver * what the offset of the sound that's currently coming out of the speaker is * and draws it there (which may be a little behind or ahead of where the * user is scrubbing) -- hence the sound and the vision are kept in sync. * * However, this is all currently disabled, and going to change, as its not * properly monitoring the latency of multiple files being played * simultaneously; plus it may have to change with respect to ALSA and JACK and * PortAudio. So for now, just return -1. */ sw_framecount_t device_offset (sw_handle * handle); /* * Reset should stop the device immediately (ie. not bother emptying the * buffers, simply stop making any sound). The other half of what the RESET * ioctl does in OSS is put the device back into an initialised state where * it can accept new parameters, but sweep's not actually making use of that. */ void device_reset (sw_handle * handle); void device_flush (sw_handle * handle); /* * Drain empties the buffers out, ie. plays out any data that's been written * (otherwise you often lose the last bit of sound when closing the device). */ void device_drain (sw_handle * handle); void device_close (sw_handle * handle); void init_devices (void); void stop_playback (sw_sample * s) ; #endif /* __DRIVER_H__ */ sweep-0.9.3/src/sweep_filter.c0000644000175000017500000001237110777660160015025 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include "sweep_app.h" #include "edit.h" static void do_filter_regions (sw_sample * sample, SweepFilterRegion func, sw_param_set pset, gpointer custom_data) { sw_sounddata * sounddata = sample->sounddata; sw_format * f = sounddata->format; GList * gl; sw_sel * sel; sw_framecount_t sel_total, run_total; sw_framecount_t offset, remaining, n; gpointer d; gint percent; gboolean active = TRUE; sel_total = sounddata_selection_nr_frames (sounddata) / 100; if (sel_total == 0) sel_total = 1; run_total = 0; for (gl = sounddata->sels; active && gl; gl = gl->next) { sel = (sw_sel *)gl->data; offset = 0; remaining = sel->sel_end - sel->sel_start; while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { d = sounddata->data + (int)frames_to_bytes (f, sel->sel_start + offset); n = MIN(remaining, 1024); func (d, sounddata->format, n, pset, custom_data); remaining -= n; offset += n; run_total += n; percent = run_total / sel_total; sample_set_progress_percent (sample, percent); #ifdef DEBUG g_print ("completed %d / %d frames, %d%%\n", run_total, sel_total, percent); #endif } g_mutex_unlock (sample->ops_mutex); } } } static void do_filter_regions_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; sw_perform_data * pd = (sw_perform_data *)inst->do_data; sw_edit_buffer * old_eb; paste_over_data * p; if (sample == NULL || sample->sounddata == NULL || sample->sounddata->sels == NULL) goto noop; old_eb = edit_buffer_from_sample (sample); p = paste_over_data_new (old_eb, old_eb); inst->redo_data = inst->undo_data = p; set_active_op (sample, inst); do_filter_regions (sample, (SweepFilterRegion)pd->func, pd->pset, pd->custom_data); if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { p->new_eb = edit_buffer_from_sample (sample); register_operation (sample, inst); } return; noop: sample_set_tmp_message (sample, _("No selection to process")); } static sw_operation filter_regions_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)do_filter_regions_thread, (SweepFunction)g_free, (SweepCallback)undo_by_paste_over, (SweepFunction)paste_over_data_destroy, (SweepCallback)redo_by_paste_over, (SweepFunction)paste_over_data_destroy }; sw_op_instance * perform_filter_region_op (sw_sample * sample, char * desc, SweepFilterRegion func, sw_param_set pset, gpointer custom_data) { sw_perform_data * pd = (sw_perform_data *)g_malloc (sizeof(*pd)); pd->func = (SweepFunction)func; pd->pset = pset; pd->custom_data = custom_data; schedule_operation (sample, desc, &filter_regions_op, pd); return NULL; } static void do_filter_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; sw_perform_data * pd = (sw_perform_data *)inst->do_data; SweepFilter func = (SweepFilter)pd->func; sw_param_set pset = pd->pset; void * custom_data = pd->custom_data; sw_edit_buffer * old_eb; paste_over_data * p; sw_sample * out; old_eb = edit_buffer_from_sample (sample); p = paste_over_data_new (old_eb, old_eb); inst->redo_data = inst->undo_data = p; set_active_op (sample, inst); out = func (sample, pset, custom_data); /* XXX: this is all kinda assuming out == sample if out != NULL */ if (out != NULL && sample->edit_state == SWEEP_EDIT_STATE_BUSY) { p->new_eb = edit_buffer_from_sample (sample); register_operation (sample, inst); } } static sw_operation filter_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)do_filter_thread, (SweepFunction)g_free, (SweepCallback)undo_by_paste_over, (SweepFunction)paste_over_data_destroy, (SweepCallback)redo_by_paste_over, (SweepFunction)paste_over_data_destroy }; sw_op_instance * perform_filter_op (sw_sample * sample, char * desc, SweepFilter func, sw_param_set pset, gpointer custom_data) { sw_perform_data * pd = (sw_perform_data *)g_malloc (sizeof(*pd)); pd->func = (SweepFunction)func; pd->pset = pset; pd->custom_data = custom_data; schedule_operation (sample, desc, &filter_op, pd); return NULL; } sweep-0.9.3/src/notes.h0000644000175000017500000000167010777660160013472 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __NOTES_H__ #define __NOTES_H__ void noteplay_setup (GtkWidget *subsubmenu, sw_view * view, GtkAccelGroup *accel_group) ; #endif /* __NOTES_H__ */ sweep-0.9.3/src/driver_solaris.c0000644000175000017500000000617510777660160015371 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "driver.h" #include "question_dialogs.h" #ifdef DRIVER_SOLARIS_AUDIO #include #include #include #define DEV_AUDIO "/dev/audio" static sw_handle * open_dev_audio (int cueing, int flags) { int dev_audio; sw_handle * handle; if (cueing) return NULL; if((dev_audio = open(DEV_AUDIO, O_WRONLY, 0)) == -1) { sweep_perror (errno, "Unable to open device " DEV_AUDIO); return NULL; } handle = g_malloc0 (sizeof (sw_handle)); handle->driver_flags = flags; handle->driver_fd = dev_audio; return handle; } static void setup_dev_audio (sw_handle * handle, sw_format * format) { audio_info_t info; AUDIO_INITINFO(&info); info.play.precision = 16; /* cs4231 doesn't handle 16-bit linear PCM */ info.play.encoding = AUDIO_ENCODING_LINEAR; info.play.channels = format->channels; info.play.sample_rate = format->rate; if(ioctl(handle->driver_fd, AUDIO_SETINFO, &info) < 0) sweep_perror(errno, "Unable to configure audio device"); handle->driver_channels = info.play.channels; } static ssize_t write_dev_audio (sw_handle * handle, void * buf, size_t count) { return write (handle->driver_fd, buf, count); } static void reset_dev_audio (sw_handle * handle) { } static void flush_dev_audio (sw_handle * handle) { if (ioctl(handle->driver_fd, I_FLUSH, FLUSHW) == -1) perror("I_FLUSH"); } static void drain_dev_audio (sw_handle * handle) { if(ioctl(handle->driver_fd, AUDIO_DRAIN, 0) == -1) perror("AUDIO_DRAIN"); } static void close_dev_audio (sw_handle * handle) { close (handle->driver_fd); } static sw_driver _driver_solaris = { NULL, /* config */ open_dev_audio, setup_dev_audio, NULL, write_dev_audio, reset_dev_audio, flush_dev_audio, drain_dev_audio, close_dev_audio, "solaris_primary_device", "solaris_monitor_device", "solaris_log_frags" }; #else static sw_driver _driver_solaris = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }; #endif sw_driver * driver_solaris = &_driver_solaris; sweep-0.9.3/src/notes.c0000644000175000017500000001050210777660160013457 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include "callbacks.h" #include #include #include #include #include "head.h" #include "interface.h" #include "edit.h" #include "sample-display.h" #include "play.h" #include "notes.h" typedef struct _sw_noteplay sw_noteplay; struct _sw_noteplay { char name [5]; float pitch; guint accel_key; char accel_basename [4]; }; static void play_view_note_cb (GtkWidget * widget, gpointer data); static sw_noteplay notes [] = { { N_("C3") , 0.500000, GDK_z, "C3" }, { N_("C#3"), 0.529732, GDK_s, "C#3"}, { N_("D3") , 0.561231, GDK_x, "D3" }, { N_("Eb3"), 0.594604, GDK_d, "Eb3"}, { N_("E3") , 0.629961, GDK_c, "E3" }, { N_("F3") , 0.667420, GDK_v, "F3" }, { N_("F#3"), 0.707107, GDK_g, "F#3"}, { N_("G3") , 0.749154, GDK_b, "G3" }, { N_("G#3"), 0.793701, GDK_h, "G#3"}, { N_("A3") , 0.840896, GDK_n, "A3" }, { N_("Bb3"), 0.890899, GDK_j, "Bb3"}, { N_("B3") , 0.943874, GDK_m, "B3" }, { N_("C4") , 1.000000, GDK_q, "C4" }, { N_("C#4"), 1.059463, GDK_2, "C#4"}, { N_("D4") , 1.122462, GDK_w, "D4" }, { N_("Eb4"), 1.189207, GDK_3, "Eb4"}, { N_("E4") , 1.259921, GDK_e, "E4" }, { N_("F4") , 1.334840, GDK_r, "F4" }, { N_("F#4"), 1.414214, GDK_5, "F#4"}, { N_("G4") , 1.498307, GDK_t, "G4" }, { N_("G#4"), 1.587401, GDK_6, "G#4"}, { N_("A4") , 1.681793, GDK_y, "A4" }, { N_("Bb4"), 1.781797, GDK_7, "Bb4"}, { N_("B4") , 1.887749, GDK_u, "B4" }, { N_("C5") , 2.000000, GDK_i, "C5" }, { N_("C#5"), 2.118926, GDK_9, "C#5"}, { N_("D5") , 2.244924, GDK_o, "D5" }, { N_("D#5"), 2.378414, GDK_0, "D#5"}, { N_("E5") , 2.519842, GDK_p, "E5" }, #if 0 { N_("F5") , 2.669680, GDK_bracketleft, "F5" }, { N_("F#5"), 2.828427, GDK_None, "F#5" }, { N_("G5") , 2.996614, GDK_None, "G5" }, { N_("G#5"), 3.174802, GDK_None, "G#5" }, { N_("A5") , 3.363586, GDK_None, "A5" }, { N_("Bb5"), 3.563595, GDK_None, "Bb5" }, { N_("B5") , 3.775497, GDK_None, "B5" }, #endif } ; void noteplay_setup (GtkWidget *subsubmenu, sw_view * view, GtkAccelGroup *accel_group) { GtkWidget *menuitem; int k; gchar * tmpchar; for (k = 0 ; k < sizeof (notes) / sizeof (notes [0]) ; k++) { menuitem = gtk_menu_item_new_with_label (_(notes [k].name)); gtk_menu_append (GTK_MENU(subsubmenu), menuitem); gtk_menu_set_accel_group(GTK_MENU(subsubmenu), accel_group); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(play_view_note_cb), view); tmpchar = g_strdup_printf("/Playback/Play Note/%s", notes[k].accel_basename); gtk_menu_item_set_accel_path (GTK_MENU_ITEM(menuitem), tmpchar); gtk_accel_map_add_entry ( tmpchar, notes[k].accel_key, 0); g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER(k)); gtk_widget_show (menuitem); } return; } static void play_view_note_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view*) data; sw_head * head = view->sample->play_head; sw_framecount_t mouse_offset; int k; float pitch; /* Retrieve the pitch. */ k = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "default")); pitch = notes[k].pitch; if (head->going) { head_set_rate (head, pitch); mouse_offset = sample_display_get_mouse_offset (SAMPLE_DISPLAY(view->display)); head_set_offset (head, mouse_offset); } else { play_view_all_pitch (view, pitch); } } sweep-0.9.3/src/interface.h0000644000175000017500000000310310777660253014276 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __INTERFACE_H__ #define __INTERFACE_H__ #include "sweep_app.h" GtkWidget * create_widget_from_xpm (GtkWidget * widget, gchar **xpm_data); GdkColor * create_color (int red, int green, int blue); GtkStyle * create_style (GdkColor * fg, GdkColor * bg, gboolean do_grade); void init_ui(void); void sweep_set_window_icon (GtkWindow * window); void recent_manager_add_item (gchar *uri); GtkWidget * create_pixmap_button (GtkWidget * widget, gchar ** xpm_data, const gchar * tip_text, GtkStyle * style, sw_toolbar_button_type button_type, GCallback clicked, GCallback pressed, GCallback released, gpointer data); GtkWidget* create_toolbox (void); void attach_window_close_accel(GtkWindow *window); void save_accels (void); #endif /* __INTERFACE_H__ */ sweep-0.9.3/src/format.h0000644000175000017500000000203610777660160013627 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __FORMAT_H__ #define __FORMAT_H__ #include gint format_equal (sw_format * f1, sw_format * f2); sw_format * format_new (gint nr_channels, gint sample_rate); sw_format * format_copy (sw_format * f); #endif /* __FORMAT_H__ */ sweep-0.9.3/src/file_sndfile1.c0000644000175000017500000006112410777660160015041 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #define BUFFER_LEN 1024 #include #include #include #include #include #include #include #include #include "sample.h" #include "file_dialogs.h" #include "file_sndfile.h" #include "interface.h" #include "question_dialogs.h" #include "sw_chooser.h" #include "view.h" #define BUF_LEN 128 extern GtkStyle * style_wb; #if defined (SNDFILE_1) #include "../pixmaps/libsndfile.xpm" typedef struct { int subformat; gboolean cap_mono; gboolean cap_stereo; } sndfile_subformat_caps; typedef struct { gboolean saving; /* loading or saving ? */ sw_sample * sample; gchar * pathname; SF_INFO * sfinfo; GtkWidget * ok_button; } sndfile_save_options; static void sweep_sndfile_perror (SNDFILE * sndfile, gchar * pathname) { #undef BUF_LEN #define BUF_LEN 128 char buf[BUF_LEN]; sf_error_str (sndfile, buf, BUF_LEN); sweep_perror (errno, "libsndfile: %s\n\n%s", buf, (pathname == NULL) ? "" : pathname); } static void sndfile_save_options_dialog_ok_cb (GtkWidget * widget, gpointer data) { sndfile_save_options * so = (sndfile_save_options *)data; sw_sample * sample = so->sample; GtkWidget * dialog; dialog = gtk_widget_get_toplevel (widget); gtk_widget_destroy (dialog); if (sample->file_info) { g_free (sample->file_info); } sample->file_info = so->sfinfo; sndfile_sample_save (sample, so->pathname); g_free (so); } static void sndfile_save_options_dialog_cancel_cb (GtkWidget * widget, gpointer data) { sndfile_save_options * so = (sndfile_save_options *)data; GtkWidget * dialog; dialog = gtk_widget_get_toplevel (widget); gtk_widget_destroy (dialog); g_free (so); /* if the sample bank is empty, quit the program */ sample_bank_remove (NULL); } static void update_ok_button (sndfile_save_options * so) { g_return_if_fail (so != NULL); gtk_widget_set_sensitive (so->ok_button, so->sfinfo->samplerate > 0 && sf_format_check (so->sfinfo)); } static void update_save_options_caps (sndfile_save_options * so) { /*- SF_INFO * sfinfo; sndfile_subformat_caps * fcaps, * caps; sfinfo = so->sfinfo; fcaps = get_format_caps (sfinfo->format); caps = get_subformat_caps (fcaps, sfinfo->format); if (caps) { gtk_widget_set_sensitive (so->radio_mono, caps->cap_mono); gtk_widget_set_sensitive (so->radio_stereo, caps->cap_stereo); } else { gtk_widget_set_sensitive (so->radio_mono, FALSE); gtk_widget_set_sensitive (so->radio_stereo, FALSE); } -*/ #if 0 SF_INFO tmp_sfinfo; memcpy (&tmp_sfinfo, so->sfinfo, sizeof (SF_INFO)); tmp_sfinfo.channels = 1; gtk_widget_set_sensitive (so->radio_mono, sf_format_check (&tmp_sfinfo)); tmp_sfinfo.channels = 2; gtk_widget_set_sensitive (so->radio_stereo, sf_format_check (&tmp_sfinfo)); #endif update_ok_button (so); } static void update_save_options_values (sndfile_save_options * so) { sw_sample * sample; sw_format * format; SF_INFO * sfinfo; sample = so->sample; format = sample->sounddata->format; sfinfo = so->sfinfo; #if 0 #define BLOCK_AND_SET(r,d) \ gtk_signal_handler_block_by_data(GTK_OBJECT((r)), (d)); \ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON((r)), TRUE); \ gtk_signal_handler_unblock_by_data(GTK_OBJECT((r)), (d)); switch (sfinfo->channels) { case 1: BLOCK_AND_SET(so->radio_mono, so); break; case 2: BLOCK_AND_SET(so->radio_stereo, so); break; default: break; } #endif update_ok_button (so); } static void set_subformat_cb (GtkWidget * widget, gpointer data) { sndfile_save_options * so = (sndfile_save_options *)data; SF_INFO * sfinfo = so->sfinfo; int subformat; sfinfo->format &= SF_FORMAT_TYPEMASK; /* clear submask */ subformat = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "default")); subformat &= SF_FORMAT_SUBMASK; /* get new subformat */ sfinfo->format |= subformat; update_save_options_caps (so); } static void set_rate_cb (GtkWidget * widget, gint samplerate, gpointer data) { sndfile_save_options * so = (sndfile_save_options *)data; SF_INFO * sfinfo = so->sfinfo; sfinfo->samplerate = samplerate; update_ok_button (so); } static void set_channels_cb (GtkWidget * widget, gint channels, gpointer data) { sndfile_save_options * so = (sndfile_save_options *)data; SF_INFO * sfinfo = so->sfinfo; sfinfo->channels = channels; update_ok_button (so); } static GtkWidget * create_sndfile_encoding_options_dialog (sndfile_save_options * so) { GtkWidget * dialog; GtkWidget * ebox; GtkWidget * pixmap; GtkWidget * main_vbox; GtkWidget * notebook; GtkWidget * vbox; GtkWidget * table; GtkWidget * hbox; GtkWidget * label; GtkWidget * option_menu; GtkWidget * menu; GtkWidget * menuitem; GtkWidget * entry; GtkWidget * ok_button, * button; /*GtkStyle * style;*/ GtkTooltips * tooltips; sw_sample * sample = so->sample; SF_INFO * sfinfo = so->sfinfo; int subformat; SF_FORMAT_INFO info ; int k, count ; SF_INFO tmp_sfinfo; dialog = gtk_dialog_new (); gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE); attach_window_close_accel(GTK_WINDOW(dialog)); /* Set up the action area first so the sensitivity of the ok button * can be updated by formats below. */ /* OK */ ok_button = gtk_button_new_with_label (_("OK")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (ok_button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), ok_button, TRUE, TRUE, 0); gtk_widget_show (ok_button); so->ok_button = ok_button; /* Cancel */ button = gtk_button_new_with_label (_("Cancel")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (sndfile_save_options_dialog_cancel_cb), so); main_vbox = GTK_DIALOG(dialog)->vbox; ebox = gtk_event_box_new (); gtk_box_pack_start (GTK_BOX(main_vbox), ebox, FALSE, FALSE, 0); gtk_widget_set_style (ebox, style_wb); gtk_widget_show (ebox); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(ebox), vbox); gtk_widget_show (vbox); hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); pixmap = create_widget_from_xpm (dialog, libsndfile_xpm); gtk_box_pack_start (GTK_BOX (hbox), pixmap, FALSE, FALSE, 0); gtk_widget_show (pixmap); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, ebox, _("Powered by libsndfile"), NULL); /* Filename */ /* pangoise? style = gtk_style_copy (style_wb); gdk_font_unref (style->font); style->font = gdk_font_load("-*-helvetica-medium-r-normal-*-*-180-*-*-*-*-*-*"); gtk_widget_push_style (style); */ label = gtk_label_new (g_basename (so->pathname)); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 8); gtk_widget_show (label); /*gtk_widget_pop_style ();*/ notebook = gtk_notebook_new (); gtk_box_pack_start (GTK_BOX(main_vbox), notebook, TRUE, TRUE, 4); gtk_widget_show (notebook); /* Options */ /* XXX: prepend major format name */ label = gtk_label_new (_("Encoding")); vbox = gtk_vbox_new (FALSE, 0); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), vbox, label); gtk_container_set_border_width (GTK_CONTAINER(vbox), 4); gtk_widget_show (vbox); /* Encoding */ table = gtk_table_new (4, 2, FALSE); gtk_table_set_row_spacings (GTK_TABLE(table), 8); gtk_table_set_col_spacings (GTK_TABLE(table), 8); gtk_box_pack_start (GTK_BOX(vbox), table, FALSE, FALSE, 0); gtk_container_set_border_width (GTK_CONTAINER(table), 8); gtk_widget_show (table); hbox = gtk_hbox_new (FALSE, 0); gtk_table_attach (GTK_TABLE(table), hbox, 0, 1, 0, 1, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (hbox); label = gtk_label_new (_("Encoding:")); gtk_box_pack_end (GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); option_menu = gtk_option_menu_new (); gtk_table_attach (GTK_TABLE(table), option_menu, 1, 2, 0, 1, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (option_menu); menu = gtk_menu_new (); /*------------------------------------------------------*/ subformat = sfinfo->format & SF_FORMAT_SUBMASK; sf_command (NULL, SFC_GET_FORMAT_SUBTYPE_COUNT, &count, sizeof (int)) ; for (k = 0 ; k < count ; k++) { info.format = k ; sf_command (NULL, SFC_GET_FORMAT_SUBTYPE, &info, sizeof (info)) ; memset (&tmp_sfinfo, 0, sizeof (SF_INFO)); tmp_sfinfo.channels = 1; tmp_sfinfo.format = (sfinfo->format & SF_FORMAT_TYPEMASK) | info.format; if (sf_format_check (&tmp_sfinfo)) { if (subformat == 0) { sfinfo->format |= info.format; subformat = info.format; } menuitem = gtk_menu_item_new_with_label (info.name); g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER(info.format)); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(set_subformat_cb), so); gtk_menu_append (GTK_MENU(menu), menuitem); gtk_widget_show (menuitem); if (info.format == subformat) { gtk_menu_item_select (GTK_MENU_ITEM(menuitem)); } } } /*------------------------------------------------------*/ gtk_option_menu_set_menu (GTK_OPTION_MENU(option_menu), menu); gtk_widget_show (menu); /* Rate */ if (!so->saving) { entry = samplerate_chooser_new (NULL); gtk_table_attach (GTK_TABLE(table), entry, 0, 2, 1, 2, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (entry); g_signal_connect (G_OBJECT(entry), "number-changed", G_CALLBACK(set_rate_cb), so); if (sample == NULL) so->sfinfo->samplerate = samplerate_chooser_get_rate (entry); else samplerate_chooser_set_rate (entry, sample->sounddata->format->rate); } else { hbox = gtk_hbox_new (FALSE, 0); gtk_table_attach (GTK_TABLE(table), hbox, 0, 1, 1, 2, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (hbox); label = gtk_label_new (_("Sampling rate:")); gtk_box_pack_end (GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); hbox = gtk_hbox_new (FALSE, 0); gtk_table_attach (GTK_TABLE(table), hbox, 1, 2, 1, 2, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (hbox); label = gtk_label_new (g_strdup_printf ("%d Hz", sample->sounddata->format->rate)); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); } /* Channels */ entry = channelcount_chooser_new (NULL); gtk_table_attach (GTK_TABLE(table), entry, 0, 2, 2, 3, GTK_FILL|GTK_EXPAND, GTK_SHRINK, 0, 0); gtk_widget_show (entry); g_signal_connect (G_OBJECT(entry), "number-changed", G_CALLBACK(set_channels_cb), so); if (sample == NULL) so->sfinfo->channels = channelcount_chooser_get_count (entry); else channelcount_chooser_set_count (entry, sample->sounddata->format->channels); /* About */ label = gtk_label_new (_("About")); ebox = gtk_event_box_new (); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), ebox, label); gtk_widget_set_style (ebox, style_wb); gtk_widget_show (ebox); gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK(notebook), ebox, TRUE, TRUE, GTK_PACK_END); vbox = gtk_vbox_new (FALSE, 16); gtk_container_add (GTK_CONTAINER(ebox), vbox); gtk_container_set_border_width (GTK_CONTAINER(vbox), 8); gtk_widget_show (vbox); label = gtk_label_new (_("Libsndfile is a C library by Erik de Castro Lopo\n" "for reading and writing files containing sampled sound.")); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_set_style (label, style_wb); gtk_widget_show (label); button = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX(vbox), button, FALSE, FALSE, 8); gtk_widget_show (button); label = gtk_label_new (_("This user interface by Erik de Castro Lopo\n" " and Conrad Parker,\n" "Copyright (C) 2002 Erik de Castro Lopo\n" "Copyright (C) 2002 CSIRO Australia.\n\n")); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_set_style (label, style_wb); gtk_widget_show (label); gtk_widget_grab_default (ok_button); update_save_options_caps (so); update_save_options_values (so); return (dialog); } int sndfile_save_options_dialog (sw_sample * sample, gchar * pathname) { GtkWidget * dialog; sndfile_save_options * so; SF_INFO * sfinfo; sw_format * format; so = g_malloc0 (sizeof(*so)); so->saving = TRUE; so->sample = sample; sfinfo = g_malloc0 (sizeof(SF_INFO)); format = sample->sounddata->format; sfinfo->frames = (sf_count_t)sample->sounddata->nr_frames; sfinfo->samplerate = (int)format->rate; sfinfo->channels = (int)format->channels; sfinfo->format = sample->file_format; so->pathname = g_strdup (pathname); so->sfinfo = sfinfo; dialog = create_sndfile_encoding_options_dialog (so); gtk_window_set_title (GTK_WINDOW(dialog), _("Sweep: Save PCM options")); g_signal_connect (G_OBJECT(so->ok_button), "clicked", G_CALLBACK (sndfile_save_options_dialog_ok_cb), so); gtk_widget_show (dialog); return 0; } typedef struct _sf_data sf_data; struct _sf_data { SNDFILE * sndfile; SF_INFO * sfinfo; }; static sw_sample * _sndfile_sample_load (sw_sample * sample, gchar * pathname, SF_INFO * sfinfo, gboolean try_raw); static void sndfile_load_options_dialog_ok_cb (GtkWidget * widget, gpointer data) { sndfile_save_options * so = (sndfile_save_options *)data; sw_sample * sample = so->sample; gchar * pathname = so->pathname; SF_INFO * sfinfo = so->sfinfo; GtkWidget * dialog; dialog = gtk_widget_get_toplevel (widget); gtk_widget_destroy (dialog); _sndfile_sample_load (sample, pathname, sfinfo, TRUE); g_free (so->pathname); g_free (so); } static sw_sample * sample_load_sf_data (sw_op_instance * inst) { sw_sample * sample = inst->sample; sf_data * sf = (sf_data *)inst->do_data; SNDFILE * sndfile = sf->sndfile; SF_INFO * sfinfo = sf->sfinfo; sw_audio_t * d; sw_framecount_t remaining, n, run_total; sw_framecount_t cframes; gint percent; struct stat statbuf; gboolean active = TRUE; sf_command (sndfile, SFC_SET_NORM_FLOAT, NULL, SF_TRUE) ; remaining = sfinfo->frames; run_total = 0; d = sample->sounddata->data; cframes = sfinfo->frames / 100; if (cframes == 0) cframes = 1; while (active && remaining > 0) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { n = MIN (remaining, 1024); n = sf_readf_float (sndfile, d, n); if (n == 0) { sweep_sndfile_perror (sndfile, sample->pathname); active = FALSE; } remaining -= n; d += (n * sfinfo->channels); run_total += n; percent = run_total / cframes; sample_set_progress_percent (sample, percent); } g_mutex_unlock (sample->ops_mutex); } sf_close (sndfile) ; if (remaining <= 0) { stat (sample->pathname, &statbuf); sample->last_mtime = statbuf.st_mtime; sample->edit_ignore_mtime = FALSE; sample->modified = FALSE; } sample_set_edit_state (sample, SWEEP_EDIT_STATE_DONE); return sample; } static sw_operation sndfile_load_op = { SWEEP_EDIT_MODE_FILTER, (SweepCallback)sample_load_sf_data, (SweepFunction)NULL, (SweepCallback)NULL, /* undo */ (SweepFunction)NULL, (SweepCallback)NULL, /* redo */ (SweepFunction)NULL }; static sw_sample * _sndfile_sample_load (sw_sample * sample, gchar * pathname, SF_INFO * sfinfo, gboolean try_raw) { SNDFILE * sndfile; #undef BUF_LEN #define BUF_LEN 128 char buf[BUF_LEN]; gchar * message; gboolean isnew = (sample == NULL); sndfile_save_options * so; GtkWidget * dialog; sw_view * v; sf_data * sf; #define RAW_ERR_STR_1 \ "Bad format specified for file open." #define RAW_ERR_STR_2 \ "File opened for read. Format not recognised." if (sfinfo == NULL) sfinfo = g_malloc0 (sizeof (SF_INFO)); if (!(sndfile = sf_open (pathname, SFM_READ, sfinfo) )) { /* If we're not trying raw files anyway, just return NULL */ if (!try_raw) { g_free (sfinfo); return NULL; } sf_error_str (NULL, buf, BUF_LEN); if (!strncmp (buf, RAW_ERR_STR_1, BUF_LEN) || !strncmp (buf, RAW_ERR_STR_2, BUF_LEN)) { so = g_malloc0 (sizeof(*so)); so->saving = FALSE; so->sample = sample; so->pathname = g_strdup (pathname); so->sfinfo = sfinfo; sfinfo->format = (SF_FORMAT_RAW | SF_FORMAT_PCM_S8); sfinfo->samplerate = 44100; /*-sfinfo->pcmbitwidth = 8;-*/ sfinfo->channels = 2; dialog = create_sndfile_encoding_options_dialog (so); gtk_window_set_title (GTK_WINDOW(dialog), _("Sweep: Load Raw PCM options")); g_signal_connect (G_OBJECT(so->ok_button), "clicked", G_CALLBACK (sndfile_load_options_dialog_ok_cb), so); gtk_widget_show (dialog); } else { if (errno == 0) { message = g_strdup_printf ("%s:\n%s", pathname, buf); info_dialog_new (buf, NULL, message); g_free (message); } else { /* We've already got the error string so no need to call * sweep_sndfile_perror() here */ sweep_perror (errno, "libsndfile: %s\n\n%s", buf, pathname); } g_free (sfinfo); } return NULL; } if (sample == NULL) { sample = sample_new_empty(pathname, sfinfo->channels, sfinfo->samplerate, (sw_framecount_t)sfinfo->frames); } else { sounddata_destroy (sample->sounddata); sample->sounddata = sounddata_new_empty (sfinfo->channels, sfinfo->samplerate, (sw_framecount_t)sfinfo->frames); } if(!sample) { g_free (sfinfo); return NULL; } sample->file_method = SWEEP_FILE_METHOD_LIBSNDFILE; sample->file_info = sfinfo; sample_bank_add(sample); if (isnew) { v = view_new_all (sample, 1.0); sample_add_view (sample, v); } else { trim_registered_ops (sample, 0); } g_snprintf (buf, BUF_LEN, _("Loading %s"), g_basename (sample->pathname)); sf = g_malloc0 (sizeof(sf_data)); sf->sndfile = sndfile; sf->sfinfo = sfinfo; schedule_operation (sample, buf, &sndfile_load_op, sf); return sample; } sw_sample * sndfile_sample_reload (sw_sample * sample, gboolean try_raw) { if (sample == NULL) return NULL; return _sndfile_sample_load (sample, sample->pathname, NULL, try_raw); } sw_sample * sndfile_sample_load (gchar * pathname, gboolean try_raw) { if (pathname == NULL) return NULL; return _sndfile_sample_load (NULL, pathname, NULL, try_raw); } static int sndfile_sample_save_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; gchar * pathname = (gchar *)inst->do_data; SNDFILE *sndfile; SF_INFO * sfinfo; sw_format * format; sw_audio_t * fbuf, * d; sw_framecount_t nwritten = 0, len, n; sw_framecount_t cframes; int i, j; gint percent; gboolean active = TRUE; struct stat statbuf; if (sample == NULL) return -1; if (pathname == NULL) return -1; format = sample->sounddata->format; sfinfo = (SF_INFO *)sample->file_info; if (sfinfo == NULL) { sfinfo = g_malloc0 (sizeof(*sfinfo)); sample->file_info = sfinfo; } sfinfo->samplerate = (int)format->rate; sfinfo->frames = (sf_count_t)sample->sounddata->nr_frames; if (!(sndfile = sf_open (pathname, SFM_WRITE, sfinfo))) { sweep_sndfile_perror (NULL, pathname); return -1; } /* Reset sample count which gets destroyed in open for write call. */ sfinfo->frames = (sf_count_t)sample->sounddata->nr_frames; sf_command (sndfile, SFC_SET_NORM_FLOAT, NULL, SF_TRUE) ; sf_command (sndfile, SFC_SET_ADD_DITHER_ON_WRITE, NULL, SF_TRUE); cframes = sfinfo->frames / 100; if (cframes == 0) cframes = 1; if ((int)format->channels == sfinfo->channels) { fbuf = sample->sounddata->data; while (active && nwritten < sfinfo->frames) { g_mutex_lock (sample->ops_mutex); if (sample->edit_mode == SWEEP_EDIT_MODE_META) { len = MIN (sfinfo->frames - nwritten, 1024); n = sf_writef_float (sndfile, fbuf, len); if (n == 0) { sweep_sndfile_perror (sndfile, pathname); active = FALSE; } fbuf += n * sfinfo->channels; nwritten += n; percent = nwritten / cframes; sample_set_progress_percent (sample, percent); } else { active = FALSE; } g_mutex_unlock (sample->ops_mutex); } } else if (format->channels == 1 && sfinfo->channels == 2) { /* Duplicate mono to stereo */ fbuf = (sw_audio_t *)alloca(1024 * sizeof(sw_audio_t)); d = sample->sounddata->data; while (active && nwritten < sfinfo->frames) { g_mutex_lock (sample->ops_mutex); if (sample->edit_mode == SWEEP_EDIT_MODE_META) { len = MIN (sfinfo->frames - nwritten, 512); for (i = 0; i < len; i++) { fbuf[i*2] = fbuf[i*2+1] = *d++; } n = sf_writef_float (sndfile, fbuf, len); if (n == 0) { sweep_sndfile_perror (sndfile, pathname); active = FALSE; } nwritten += n; percent = nwritten / cframes; sample_set_progress_percent (sample, percent); } else { active = FALSE; } g_mutex_unlock (sample->ops_mutex); } } else if (format->channels == 2 && sfinfo->channels == 1) { /* Mix down stereo to mono */ fbuf = (sw_audio_t *)alloca(1024 * sizeof(sw_audio_t)); d = sample->sounddata->data; while (active && nwritten < sfinfo->frames) { g_mutex_lock (sample->ops_mutex); if (sample->edit_mode == SWEEP_EDIT_MODE_META) { len = MIN (sfinfo->frames - nwritten, 1024); for (i = 0; i < len; i++) { fbuf[i] = *d++; fbuf[i] += *d++; fbuf[i] /= 2.0; } n = sf_writef_float (sndfile, fbuf, len); if (n == 0) { sweep_sndfile_perror (sndfile, pathname); active = FALSE; } nwritten += n; percent = nwritten / cframes; sample_set_progress_percent (sample, percent); } else { active = FALSE; } g_mutex_unlock (sample->ops_mutex); } } else { gint min_channels = MIN (format->channels, sfinfo->channels); size_t buf_size = 1024 * sizeof (sw_audio_t) * sfinfo->channels; /* Copy corresponding channels as much as possible */ fbuf = (sw_audio_t *)alloca(buf_size); memset (fbuf, 0, buf_size); d = sample->sounddata->data; while (active && nwritten < sfinfo->frames) { g_mutex_lock (sample->ops_mutex); if (sample->edit_mode == SWEEP_EDIT_MODE_META) { len = MIN (sfinfo->frames - nwritten, 1024); for (i = 0; i < len; i++) { for (j = 0; j < min_channels; j++) { fbuf[i*sfinfo->channels + j] = d[j]; } d += format->channels; } n = sf_writef_float (sndfile, fbuf, len); if (n == 0) { sweep_sndfile_perror (sndfile, pathname); active = FALSE; } nwritten += n; percent = nwritten / cframes; sample_set_progress_percent (sample, percent); } else { active = FALSE; } g_mutex_unlock (sample->ops_mutex); } } sf_close (sndfile) ; if (nwritten >= sfinfo->frames) { stat (pathname, &statbuf); sample->last_mtime = statbuf.st_mtime; sample->edit_ignore_mtime = FALSE; sample->modified = FALSE; sample_store_and_free_pathname (sample, pathname); } sample_set_edit_state (sample, SWEEP_EDIT_STATE_DONE); return 0; } static sw_operation sndfile_save_op = { SWEEP_EDIT_MODE_META, (SweepCallback)sndfile_sample_save_thread, (SweepFunction)NULL, (SweepCallback)NULL, /* undo */ (SweepFunction)NULL, (SweepCallback)NULL, /* redo */ (SweepFunction)NULL }; int sndfile_sample_save (sw_sample * sample, gchar * pathname) { char buf[BUF_LEN]; g_snprintf (buf, BUF_LEN, _("Saving %s"), g_basename (pathname)); schedule_operation (sample, buf, &sndfile_save_op, g_strdup (pathname)); return 0; } #endif sweep-0.9.3/src/driver_alsa.c0000644000175000017500000003020510777660160014624 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ /* * ALSA 0.6 support by Paul Davis * ALSA 0.9 updates by Zenaan Harkness * ALSA 1.0 updates by Daniel Dreschers */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include #include #include #include "driver.h" #include "pcmio.h" #include "question_dialogs.h" #ifdef DRIVER_ALSA #include // shamelessly ripped from alsaplayer alsa-final driver: #ifndef timersub #define timersub(a, b, result) \ do { \ (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \ if ((result)->tv_usec < 0) { \ --(result)->tv_sec; \ (result)->tv_usec += 1000000; \ } \ } while (0) #endif void print_pcm_state (snd_pcm_t * pcm) { switch (snd_pcm_state(pcm)) { case SND_PCM_STATE_OPEN: fprintf (stderr, "sweep: print_pcm_state: state is OPEN\n"); break; case SND_PCM_STATE_SETUP: fprintf (stderr, "sweep: print_pcm_state: state is SETUP\n"); break; case SND_PCM_STATE_PREPARED: fprintf (stderr, "sweep: print_pcm_state: state is PREPARED\n"); break; case SND_PCM_STATE_RUNNING: fprintf (stderr, "sweep: print_pcm_state: state is RUNNING\n"); break; case SND_PCM_STATE_XRUN: fprintf (stderr, "sweep: print_pcm_state: state is XRUN\n"); break; case SND_PCM_STATE_DRAINING: fprintf (stderr, "sweep: print_pcm_state: state is DRAINING\n"); break; case SND_PCM_STATE_PAUSED: fprintf (stderr, "sweep: print_pcm_state: state is PAUSED\n"); break; case SND_PCM_STATE_SUSPENDED: fprintf (stderr, "sweep: print_pcm_state: state is SUSPENDED\n"); break; default: fprintf (stderr, "sweep: print_pcm_state: state is unknown! THIS SHOULD NEVER HAPPEN!\n"); } } static GList * alsa_get_names (void) { GList * names = NULL; char * name; if ((name = getenv ("SWEEP_ALSA_PCM")) != 0) { names = g_list_append (names, name); } /* The standard command line options for this are -D or --device. * The default fallback should be plughw. */ names = g_list_append (names, "plughw:0,0"); names = g_list_append (names, "plughw:0,1"); names = g_list_append (names, "plughw:1,0"); names = g_list_append (names, "plughw:1,1"); return names; } static sw_handle * alsa_device_open (int monitoring, int flags) { int err; char * alsa_pcm_name; snd_pcm_t * pcm_handle; sw_handle * handle; snd_pcm_stream_t stream; if (monitoring) { if (pcmio_get_use_monitor()) alsa_pcm_name = pcmio_get_monitor_dev (); else return NULL; } else { alsa_pcm_name = pcmio_get_main_dev (); } if (flags == O_RDONLY) { stream = SND_PCM_STREAM_CAPTURE; } else if (flags == O_WRONLY) { stream = SND_PCM_STREAM_PLAYBACK; } else { return NULL; } if ((err = snd_pcm_open(&pcm_handle, alsa_pcm_name, stream, 0)) < 0) { sweep_perror (errno, "Error opening ALSA device %s", alsa_pcm_name /*, snd_strerror (err)*/); return NULL; } handle = g_malloc0 (sizeof (sw_handle)); handle->driver_flags = flags; handle->custom_data = pcm_handle; return handle; } // /src/alsa/alsaplayer-0.99.72/output/alsa-final/alsa.c // /src/alsa/alsa-lib-0.9.0rc3/test/pcm.c static void alsa_device_setup (sw_handle * handle, sw_format * format) { int err; snd_pcm_t * pcm_handle = (snd_pcm_t *)handle->custom_data; snd_pcm_hw_params_t * hwparams; int dir; unsigned int rate = format->rate; unsigned int channels = format->channels; unsigned int periods; snd_pcm_uframes_t period_size = PBUF_SIZE/format->channels; #if 1 if (handle->driver_flags == O_RDONLY) { dir = (int)SND_PCM_STREAM_CAPTURE; } else if (handle->driver_flags == O_WRONLY) { dir = (int)SND_PCM_STREAM_PLAYBACK; } else { return; } #else dir = 0; #endif snd_pcm_hw_params_alloca (&hwparams); if ((err = snd_pcm_hw_params_any (pcm_handle, hwparams)) < 0) { fprintf(stderr, "sweep: alsa_setup: can't get PCM hw params (%s)\n", snd_strerror(err)); return; } if ((err = snd_pcm_hw_params_set_access (pcm_handle, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED)) < 0) { fprintf(stderr, "sweep: alsa_setup: can't set interleaved access (%s)\n", snd_strerror(err)); return; } if ((err = snd_pcm_hw_params_set_format (pcm_handle, hwparams, SND_PCM_FORMAT_FLOAT)) < 0) { fprintf (stderr, "sweep: alsa_setup: audio interface does not support " "host endian 32 bit float samples (%s)\n", snd_strerror(err)); return; } if ((err = snd_pcm_hw_params_set_rate_near (pcm_handle, hwparams, &rate, 0 /* dir */)) < 0) { fprintf (stderr, "sweep: alsa_setup: audio interface does not support " "sample rate of %d (%s)\n", format->rate, snd_strerror (err)); /*return;*/ } if ((err = snd_pcm_hw_params_set_channels_near (pcm_handle, hwparams, &channels)) < 0) { fprintf (stderr, "sweep: alsa_setup: audio interface does not support " "%d channels (%s)\n", format->channels, snd_strerror (err)); /*return;*/ } if ((err = snd_pcm_hw_params_set_period_size_near (pcm_handle, hwparams, &period_size, 0)) < 0) { fprintf (stderr, "sweep: alsa_setup: audio interface does not support " "period size of %ld (%s)\n", period_size, snd_strerror (err)); return; } periods = LOGFRAGS_TO_FRAGS(pcmio_get_log_frags()); if ((err = snd_pcm_hw_params_set_periods_near (pcm_handle, hwparams, &periods, 0)) < 0) { fprintf (stderr, "sweep: alsa_setup: audio interface does not support " "period size of %d (%s) - suprising that we get this err!\n", periods, snd_strerror (err)); return; } // see alsa-lib html docs (may have to build them) for methods doco // The following is old alsa 0.6 code, which may need including somehow: //params.ready_mode = SND_PCM_READY_FRAGMENT; //params.start_mode = SND_PCM_START_DATA; //params.xrun_mode = SND_PCM_XRUN_FRAGMENT; //params.frag_size = PBUF_SIZE / params.format.channels; //params.avail_min = params.frag_size; // params.buffer_size = 3 * params.frag_size; if ((err = snd_pcm_hw_params (pcm_handle, hwparams)) < 0) { fprintf (stderr, "sweep: alsa_setup: audio interface could not be configured " "with specified parameters\n"); return; } //printf ("sweep: alsa_setup 9\n"); { unsigned int c, r; int dir = 0; if ((err = snd_pcm_hw_params_get_rate (hwparams, &r, &dir)) < 0) { fprintf (stderr, "sweep: alsa_setup: error getting PCM rate (%s)\n", snd_strerror (err)); } if ((err = snd_pcm_hw_params_get_channels (hwparams, &c)) < 0) { fprintf (stderr, "sweep: alsa_setup: error getting PCM channels (%s)\n", snd_strerror (err)); } #ifdef DEBUG fprintf (stderr, "alsa got rate %i, channels %i, dir %d\n", r, c, dir); #endif handle->driver_rate = r; handle->driver_channels = c; if (c < 1) { fprintf (stderr, "sweep: alsa_setup: alsa says channels == %i\n", c); return; } } if (snd_pcm_prepare (pcm_handle) < 0) { fprintf (stderr, "audio interface could not be prepared for playback\n"); return; } } static int alsa_device_wait (sw_handle * handle) { snd_pcm_t * pcm_handle = (snd_pcm_t *)handle->custom_data; if (snd_pcm_wait (pcm_handle, 1000) < 0) { fprintf (stderr, "poll failed (%s)\n", strerror (errno)); } return 0; } #define PLAYBACK_SCALE (32768 / SW_AUDIO_T_MAX) static ssize_t alsa_device_read (sw_handle * handle, sw_audio_t * buf, size_t count) { snd_pcm_t * pcm_handle = (snd_pcm_t *)handle->custom_data; snd_pcm_uframes_t uframes; int err; uframes = handle->driver_channels > 0 ? count / handle->driver_channels : 0; err = snd_pcm_readi (pcm_handle, buf, uframes); return err; } static ssize_t alsa_device_write (sw_handle * handle, sw_audio_t * buf, size_t count, sw_framecount_t offset) { snd_pcm_t * pcm_handle = (snd_pcm_t *)handle->custom_data; snd_pcm_uframes_t uframes; snd_pcm_status_t * status; int err; #if 0 gint16 * bbuf; size_t byte_count; ssize_t bytes_written; int need_bswap; int i; if (handle == NULL) { #ifdef DEBUG g_print ("handle NULL in write()\n"); #endif return -1; } byte_count = count * sizeof (gint16); bbuf = alloca (byte_count); for (i = 0; i < count; i++) { bbuf[i] = (gint16)(PLAYBACK_SCALE * buf[i]); } err = snd_pcm_writei(pcm_handle, bbuf, uframes); #else /*printf ("sweep: alsa_write \n");*/ uframes = handle->driver_channels > 0 ? count / handle->driver_channels : 0; //printf ("sweep: alsa_write 1\n"); // this basicaly ripped straight out of alsaplayer alsa-final driver: err = snd_pcm_writei(pcm_handle, buf, uframes); #endif if (err == -EPIPE) { snd_pcm_status_alloca(&status); if ((err = snd_pcm_status(pcm_handle, status))<0) { fprintf(stderr, "sweep: alsa_write: xrun. can't determine length\n"); } else { if (snd_pcm_status_get_state(status) == SND_PCM_STATE_XRUN) { struct timeval now, diff, tstamp; gettimeofday(&now, 0); snd_pcm_status_get_trigger_tstamp(status, &tstamp); timersub(&now, &tstamp, &diff); fprintf(stderr, "sweep: alsa_write: xrun of at least %.3f msecs. " "resetting stream\n", diff.tv_sec * 1000 + diff.tv_usec / 1000.0); } else { fprintf(stderr, "sweep: alsa_write: xrun. can't determine length\n"); } } snd_pcm_prepare(pcm_handle); err = snd_pcm_writei(pcm_handle, buf, uframes); if (err != uframes) { fprintf(stderr, "sweep: alsa_write: %s\n", snd_strerror(err)); return 0; } else if (err < 0) { fprintf(stderr, "sweep: alsa_write: %s\n", snd_strerror(err)); return 0; } } return 1; } sw_framecount_t alsa_device_offset (sw_handle * handle) { /*printf ("sweep: alsa_offset\n");*/ return -1; } static void alsa_device_reset (sw_handle * handle) { /*printf ("sweep: alsa_reset\n");*/ } static void alsa_device_flush (sw_handle * handle) { /*printf ("sweep: alsa_flush\n");*/ } /* * alsa lib provides: * int snd_pcm_drop (snd_pcm_t *pcm) // Stop a PCM dropping pending frames. * int snd_pcm_drain (snd_pcm_t *pcm) // Stop a PCM preserving pending frames. */ static void alsa_device_drain (sw_handle * handle) { snd_pcm_t * pcm_handle = (snd_pcm_t *)handle->custom_data; if (snd_pcm_drop (pcm_handle) < 0) { fprintf (stderr, "audio interface could not be stopped\n"); return; } if (snd_pcm_prepare (pcm_handle) < 0) { fprintf (stderr, "audio interface could not be re-prepared\n"); return; } } static void alsa_device_close (sw_handle * handle) { snd_pcm_t * pcm_handle = (snd_pcm_t *)handle->custom_data; snd_pcm_close (pcm_handle); } static sw_driver _driver_alsa = { alsa_get_names, alsa_device_open, alsa_device_setup, alsa_device_wait, alsa_device_read, alsa_device_write, alsa_device_offset, alsa_device_reset, alsa_device_flush, alsa_device_drain, alsa_device_close, "alsa_primary_device", "alsa_monitor_device", "alsa_log_frags" }; #else static sw_driver _driver_alsa = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }; #endif sw_driver * driver_alsa = &_driver_alsa; sweep-0.9.3/src/undo_dialog.c0000644000175000017500000003130210777660274014622 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include "sweep_app.h" #include "edit.h" #include "interface.h" #include "callbacks.h" #include "../pixmaps/undo.xpm" #include "../pixmaps/redo.xpm" #include "../pixmaps/done.xpm" /*#define DEBUG*/ static GtkWidget * undo_dialog = NULL; static GtkWidget * undo_clist = NULL; static GtkWidget * combo; static GtkWidget * undo_button, * redo_button, * revert_button; static sw_sample * ud_sample = NULL; static void undo_dialog_destroy (void) { undo_dialog = NULL; } #if 0 static void undo_dialog_ok_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; dialog = gtk_widget_get_toplevel (widget); gtk_widget_hide (dialog); } #endif static void undo_dialog_cancel_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; dialog = gtk_widget_get_toplevel (widget); gtk_widget_hide (dialog); } /* * Must be called with sample->edit_mutex held */ void undo_dialog_refresh_edit_mode (sw_sample * sample) { if (sample != ud_sample) return; if (undo_dialog == NULL) return; switch (sample->edit_mode) { case SWEEP_EDIT_MODE_READY: gtk_widget_set_sensitive (undo_button, TRUE); gtk_widget_set_sensitive (redo_button, TRUE); gtk_widget_set_sensitive (undo_clist, TRUE); gtk_widget_set_sensitive (revert_button, TRUE); break; case SWEEP_EDIT_MODE_META: case SWEEP_EDIT_MODE_FILTER: gtk_widget_set_sensitive (undo_button, FALSE); gtk_widget_set_sensitive (redo_button, FALSE); gtk_widget_set_sensitive (undo_clist, FALSE); gtk_widget_set_sensitive (revert_button, FALSE); break; case SWEEP_EDIT_MODE_ALLOC: gtk_widget_set_sensitive (undo_button, FALSE); gtk_widget_set_sensitive (redo_button, FALSE); gtk_widget_set_sensitive (undo_clist, FALSE); gtk_widget_set_sensitive (revert_button, FALSE); break; default: g_assert_not_reached (); } } static void _undo_dialog_set_sample (sw_sample * sample, gboolean select_current) { GtkCList * clist; GList * gl; sw_op_instance * inst; gint i = 0; gchar * list_item[] = { "" }; GdkColormap * colormap; GdkPixmap * pixmap_data; GdkBitmap * mask; gboolean done = FALSE; g_mutex_lock (sample->ops_mutex); clist = GTK_CLIST(undo_clist); colormap = gtk_widget_get_default_colormap (); pixmap_data = gdk_pixmap_colormap_create_from_xpm_d (NULL, colormap, &mask, NULL, done_xpm); gtk_clist_freeze (clist); gtk_clist_clear (clist); for (gl = g_list_last (sample->registered_ops); gl; gl = gl->prev) { inst = (sw_op_instance *)gl->data; gtk_clist_append (clist, list_item); gtk_clist_set_text (clist, i, 1, _(inst->description)); if (gl == sample->current_undo) { done = TRUE; gtk_clist_moveto (clist, i, 0, 0.5, -1); if (select_current) gtk_clist_select_row (clist, i, 1); } if (done) gtk_clist_set_pixmap (clist, i, 0, pixmap_data, mask); i++; } gtk_clist_append (clist, list_item); gtk_clist_set_text (clist, i, 1, _("Original data")); gtk_clist_set_pixmap (clist, i, 0, pixmap_data, mask); if (sample->current_undo == NULL) { gtk_clist_moveto (clist, i, 0, 0.5, -1); if (select_current) gtk_clist_select_row (clist, i, 1); } gtk_clist_thaw (clist); g_mutex_unlock (sample->ops_mutex); ud_sample = sample; gtk_entry_set_text (GTK_ENTRY(GTK_COMBO(combo)->entry), g_basename(sample->pathname)); g_mutex_lock (ud_sample->edit_mutex); undo_dialog_refresh_edit_mode (ud_sample); g_mutex_unlock (ud_sample->edit_mutex); } void undo_dialog_set_sample (sw_sample * sample) { if (sample == NULL) return; if (undo_dialog == NULL || !GTK_WIDGET_VISIBLE(undo_dialog)) return; _undo_dialog_set_sample (sample, (sample != ud_sample)); } void undo_dialog_refresh_history (sw_sample * sample) { if (sample != ud_sample) return; if (undo_dialog == NULL || !GTK_WIDGET_VISIBLE(undo_dialog)) return; _undo_dialog_set_sample (sample, FALSE); } void undo_dialog_refresh_sample_list (void) { GList * cbitems = NULL; if (undo_dialog == NULL) return; if ((cbitems = sample_bank_list_names ()) != NULL) gtk_combo_set_popdown_strings (GTK_COMBO(combo), cbitems); g_list_free (cbitems); } static void undo_dialog_entry_changed_cb (GtkWidget * widget, gpointer data) { GtkEntry * entry; gchar * new_text; sw_sample * sample; entry = GTK_ENTRY(GTK_COMBO(combo)->entry); new_text = (gchar *)gtk_entry_get_text (entry); sample = sample_bank_find_byname (new_text); if (sample == NULL) return; gtk_signal_handler_block_by_data (GTK_OBJECT(entry), NULL); _undo_dialog_set_sample (sample, TRUE); gtk_signal_handler_unblock_by_data (GTK_OBJECT(entry), NULL); } static void undo_dialog_revert_cb (GtkWidget * widget, gpointer data) { GList * gl, * sel_gl = NULL; /* sw_op_instance * inst;*/ gint i = 0, s; /* gboolean need_undo = FALSE;*/ s = GPOINTER_TO_INT((GTK_CLIST(undo_clist)->selection)->data); g_mutex_lock (ud_sample->ops_mutex); for (gl = g_list_last (ud_sample->registered_ops); gl; gl = gl->prev) { #if 0 inst = (sw_op_instance *)gl->data; if (gl == ud_sample->current_undo) { need_undo = TRUE; } #endif if (i == s) { sel_gl = gl; break; } i++; } g_mutex_unlock (ud_sample->ops_mutex); #if 0 if (need_undo) { while (ud_sample->current_undo != sel_gl) undo_current (ud_sample); } else { while (ud_sample->current_undo != sel_gl) redo_current (ud_sample); } #endif revert_op (ud_sample, sel_gl); } static void ud_undo_cb (GtkWidget * widget, gpointer data) { undo_current (ud_sample); } static void ud_redo_cb (GtkWidget * widget, gpointer data) { redo_current (ud_sample); } static GtkWidget * ud_create_pixmap_button (GtkWidget * widget, gchar ** xpm_data, const gchar * label_text, const gchar * tip_text, GCallback clicked) { GtkWidget * hbox; GtkWidget * label; GtkWidget * pixmap; GtkWidget * button; GtkTooltips * tooltips; button = gtk_button_new (); hbox = gtk_hbox_new (FALSE, 2); gtk_container_add (GTK_CONTAINER(button), hbox); gtk_container_set_border_width (GTK_CONTAINER(button), 8); gtk_widget_show (hbox); if (xpm_data != NULL) { pixmap = create_widget_from_xpm (widget, xpm_data); gtk_box_pack_start (GTK_BOX(hbox), pixmap, FALSE, FALSE, 8); gtk_widget_show (pixmap); } if (label_text != NULL) { label = gtk_label_new (label_text); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 8); gtk_widget_show (label); } if (tip_text != NULL) { tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, tip_text, NULL); } if (clicked != NULL) { g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK(clicked), NULL); } return button; } void undo_dialog_create (sw_sample * sample) { GtkWidget * vbox; GtkWidget * hbox /* , *button_hbox */; GtkWidget * label; /* GtkWidget * ok_button;*/ GtkWidget * button; GtkWidget * scrolled; gchar * titles[] = { "", N_("Action") }; GClosure *gclosure; GtkAccelGroup * accel_group; if (undo_dialog == NULL) { undo_dialog = gtk_dialog_new (); gtk_window_set_wmclass(GTK_WINDOW(undo_dialog), "undo_dialog", "Sweep"); gtk_window_set_title(GTK_WINDOW(undo_dialog), _("Sweep: History")); gtk_window_set_resizable (GTK_WINDOW(undo_dialog), FALSE); gtk_window_set_position (GTK_WINDOW(undo_dialog), GTK_WIN_POS_MOUSE); gtk_container_set_border_width (GTK_CONTAINER(undo_dialog), 8); accel_group = gtk_accel_group_new (); gtk_window_add_accel_group (GTK_WINDOW(undo_dialog), accel_group); g_signal_connect (G_OBJECT(undo_dialog), "destroy", G_CALLBACK(undo_dialog_destroy), NULL); gclosure = g_cclosure_new ((GCallback)hide_window_cb, NULL, NULL); gtk_accel_group_connect (accel_group, GDK_w, GDK_CONTROL_MASK, 0, /* non of the GtkAccelFlags seem suitable? */ gclosure); vbox = GTK_DIALOG(undo_dialog)->vbox; hbox = gtk_hbox_new (FALSE, 8); gtk_box_pack_start (GTK_BOX(vbox), hbox, TRUE, TRUE, 8); gtk_widget_show (hbox); label = gtk_label_new (_("File:")); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); combo = gtk_combo_new (); gtk_box_pack_start (GTK_BOX(hbox), combo, TRUE, TRUE, 0); gtk_widget_show (combo); gtk_entry_set_editable (GTK_ENTRY(GTK_COMBO(combo)->entry), FALSE); g_signal_connect (G_OBJECT(GTK_COMBO(combo)->entry), "changed", G_CALLBACK(undo_dialog_entry_changed_cb), NULL); hbox = gtk_hbox_new (TRUE, 8); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 0); gtk_widget_show (hbox); button = ud_create_pixmap_button (undo_dialog, undo_xpm, _("Undo"), _("Undo"), G_CALLBACK (ud_undo_cb)); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0); gtk_widget_show (button); gtk_widget_add_accelerator (button, "clicked", accel_group, GDK_z, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); undo_button = button; button = ud_create_pixmap_button (undo_dialog, redo_xpm, _("Redo"), _("Redo"), G_CALLBACK (ud_redo_cb)); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0); gtk_widget_show (button); gtk_widget_add_accelerator (button, "clicked", accel_group, GDK_r, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); redo_button = button; scrolled = gtk_scrolled_window_new (NULL, NULL); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW(scrolled), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); gtk_box_pack_start (GTK_BOX(GTK_DIALOG(undo_dialog)->vbox), scrolled, FALSE, FALSE, 0); gtk_widget_set_usize (scrolled, 360, 240); gtk_widget_show (scrolled); undo_clist = gtk_clist_new_with_titles (2, titles); gtk_clist_set_column_width (GTK_CLIST(undo_clist), 0, 20); gtk_clist_set_selection_mode (GTK_CLIST(undo_clist), GTK_SELECTION_BROWSE); gtk_clist_column_titles_passive (GTK_CLIST(undo_clist)); /* set title actively for i18n */ gtk_clist_set_column_title(GTK_CLIST(undo_clist), 1, _(titles[1])); gtk_container_add (GTK_CONTAINER(scrolled), undo_clist); gtk_widget_show (undo_clist); button = gtk_button_new_with_label (_("Revert to selected state")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(undo_dialog)->action_area), button, TRUE, TRUE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (undo_dialog_revert_cb), NULL); revert_button = button; #if 0 /* OK */ ok_button = gtk_button_new_with_label (_("OK")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (ok_button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(undo_dialog)->action_area), ok_button, TRUE, TRUE, 0); gtk_widget_show (ok_button); g_signal_connect (G_OBJECT(ok_button), "clicked", G_CALLBACK (undo_dialog_ok_cb), NULL); #endif /* Cancel */ button = gtk_button_new_with_label (_("Close")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(undo_dialog)->action_area), button, FALSE, FALSE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (undo_dialog_cancel_cb), NULL); gtk_widget_grab_default (button); #if 0 gtk_widget_grab_default (ok_button); #endif } undo_dialog_refresh_sample_list (); _undo_dialog_set_sample (sample, TRUE); if (!GTK_WIDGET_VISIBLE(undo_dialog)) { gtk_widget_show (undo_dialog); } else { gdk_window_raise (undo_dialog->window); } } sweep-0.9.3/src/callbacks.h0000644000175000017500000001477210777660301014265 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __CALLBACKS_H__ #define __CALLBACKS_H__ #include void sample_new_empty_cb (GtkWidget * widget, gpointer data); void sample_new_copy_cb (GtkWidget * widget, gpointer data); void view_new_all_cb (GtkWidget * widget, gpointer data); void view_new_cb (GtkWidget * widget, gpointer data); void view_close_cb (GtkWidget * widget, gpointer data); void exit_cb (GtkWidget * widget, gpointer data); void set_tool_cb (GtkWidget * widget, gpointer data); void view_set_tool_cb (GtkWidget * widget, gpointer data); void repeater_released_cb (GtkWidget * widget, gpointer data); void zoom_in_cb (GtkWidget * widget, gpointer data); void zoom_out_cb (GtkWidget * widget, gpointer data); void zoom_in_pressed_cb (GtkWidget * widget, gpointer data); void zoom_out_pressed_cb (GtkWidget * widget, gpointer data); void zoom_to_sel_cb (GtkWidget * widget, gpointer data); void zoom_left_cb (GtkWidget * widget, gpointer data); void zoom_right_cb (GtkWidget * widget, gpointer data); void zoom_all_cb (GtkWidget * widget, gpointer data); void zoom_2_1_cb (GtkWidget * widget, gpointer data); void zoom_norm_cb (GtkWidget * widget, gpointer data); void zoom_1to1_cb (GtkWidget * widget, gpointer data); void zoom_center_cb (GtkWidget * widget, gpointer data); void zoom_combo_changed_cb (GtkWidget * widget, gpointer data); void sample_set_color_cb (GtkWidget * widget, gpointer data); void device_config_cb (GtkWidget * widget, gpointer data); void follow_toggled_cb (GtkWidget * widget, gpointer data); void follow_toggle_cb (GtkWidget * widget, gpointer data); void loop_toggled_cb (GtkWidget * widget, gpointer data); void loop_toggle_cb (GtkWidget * widget, gpointer data); void playrev_toggled_cb (GtkWidget * widget, gpointer data); void playrev_toggle_cb (GtkWidget * widget, gpointer data); void mute_toggled_cb (GtkWidget * widget, gpointer data); void mute_toggle_cb (GtkWidget * widget, gpointer data); void monitor_toggled_cb (GtkWidget * widget, gpointer data); void monitor_toggle_cb (GtkWidget * widget, gpointer data); void play_view_button_cb (GtkWidget * widget, gpointer data); void play_view_sel_button_cb (GtkWidget * widget, gpointer data); void play_view_cb (GtkWidget * widget, gpointer data); void play_view_all_once_cb (GtkWidget * widget, gpointer data); void play_view_all_loop_cb (GtkWidget * widget, gpointer data); void play_view_sel_cb (GtkWidget * widget, gpointer data); void play_view_sel_once_cb (GtkWidget * widget, gpointer data); void play_view_sel_loop_cb (GtkWidget * widget, gpointer data); void pause_playback_cb (GtkWidget * widget, gpointer data); void stop_playback_cb (GtkWidget * widget, gpointer data); void preview_cut_cb (GtkWidget * widget, gpointer data); void preroll_cb (GtkWidget * widget, gpointer data); void show_rec_dialog_cb (GtkWidget * widget, gpointer data); void page_back_cb (GtkWidget * widget, gpointer data); void page_fwd_cb (GtkWidget * widget, gpointer data); void rewind_pressed_cb (GtkWidget * widget, gpointer data); void ffwd_pressed_cb (GtkWidget * widget, gpointer data); void goto_start_cb (GtkWidget * widget, gpointer data); void goto_start_of_view_cb (GtkWidget * widget, gpointer data); void goto_end_of_view_cb (GtkWidget * widget, gpointer data); void goto_end_cb (GtkWidget * widget, gpointer data); void sd_sel_changed_cb (GtkWidget * widget); void sd_win_changed_cb (GtkWidget * widget); void adj_changed_cb (GtkWidget * widget, gpointer data); void adj_value_changed_cb (GtkWidget * widget, gpointer data); void select_invert_cb (GtkWidget * widget, gpointer data); void select_all_cb (GtkWidget * widget, gpointer data); void select_none_cb (GtkWidget * widget, gpointer data); void selection_halve_cb (GtkWidget * widget, gpointer data); void selection_double_cb (GtkWidget * widget, gpointer data); void select_shift_left_cb (GtkWidget * widget, gpointer data); void select_shift_right_cb (GtkWidget * widget, gpointer data); void show_undo_dialog_cb (GtkWidget * widget, gpointer data); void undo_cb (GtkWidget * widget, gpointer data); void redo_cb (GtkWidget * widget, gpointer data); void cancel_cb (GtkWidget * widget, gpointer data); void copy_cb (GtkWidget * widget, gpointer data); void cut_cb (GtkWidget * widget, gpointer data); void clear_cb (GtkWidget * widget, gpointer data); void delete_cb (GtkWidget * widget, gpointer data); void crop_cb (GtkWidget * widget, gpointer data); void paste_cb (GtkWidget * widget, gpointer data); void paste_mix_cb (GtkWidget * widget, gpointer data); void paste_xfade_cb (GtkWidget * widget, gpointer data); void paste_as_new_cb (GtkWidget * widget, gpointer data); void reverse_cb (GtkWidget * widget, gpointer data); void normalise_cb (GtkWidget * widget, gpointer data); void show_info_dialog_cb (GtkWidget * widget, gpointer data); void close_window_cb(GtkAccelGroup *accel_group, GObject *acceleratable, guint keyval, GdkModifierType modifier); void hide_window_cb(GtkAccelGroup *accel_group, GObject *acceleratable, guint keyval, GdkModifierType modifier); void hack_max_label_width_cb (GtkWidget *widget, GtkStyle *previous_style, gpointer user_data); void hack_max_combo_width_cb (GtkWidget *widget, GtkStyle *previous_style, gpointer user_data); #if GTK_CHECK_VERSION(2, 10, 0) void recent_chooser_menu_activated_cb(GtkRecentChooser *chooser, gpointer user_data); #endif #endif /* __CALLBACKS_H__ */ sweep-0.9.3/src/samplerate.c0000644000175000017500000004300610777660160014471 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * Copyright (C) 2002 CSIRO Australia * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef HAVE_LIBSAMPLERATE #include #include #include #include #include #include #include #include #include #include #include #include "sweep_app.h" #include "edit.h" #include "interface.h" #include "preferences.h" #include "question_dialogs.h" #include "sw_chooser.h" #include "../pixmaps/SRC.xpm" /*#define DEBUG*/ #define BUFFER_LEN 4096 #define QUALITY_KEY "SRC_Quality" /* assume libsamplerate's best quality is indexed 0 */ #define DEFAULT_QUALITY 0 extern GtkStyle * style_wb; typedef struct { int new_rate; int quality; } src_options; static void do_samplerate_thread (sw_op_instance * inst) { sw_sample * sample = inst->sample; src_options * so = (src_options *)inst->do_data; int new_rate, quality; double src_ratio; GList * gl; sw_sel * sel; sw_format * old_format = sample->sounddata->format; sw_sounddata * old_sounddata, * new_sounddata; sw_framecount_t old_nr_frames, new_nr_frames; int channel = 0; /* float input[BUFFER_LEN], output[BUFFER_LEN];*/ SRC_STATE * src_state; SRC_DATA src_data; int error; sw_framecount_t remaining, offset_in, offset_out, run_total, ctotal; int percent; #ifdef DEBUG int iter = 0; #endif gboolean active = TRUE; if (so == NULL) return; quality = so->quality; new_rate = so->new_rate; g_free (so); if ((src_state = src_new (quality, old_format->channels, &error)) == NULL) { info_dialog_new (_("Resample error"), NULL, "%s: %s", _("libsamplerate error"), src_strerror (error)); return; } src_ratio = (double)new_rate / (double)old_format->rate; src_data.end_of_input = 0; src_data.src_ratio = src_ratio; old_sounddata = sample->sounddata; old_nr_frames = old_sounddata->nr_frames; new_nr_frames = floor (old_nr_frames * src_ratio) ; new_sounddata = sounddata_new_empty (old_format->channels, new_rate, new_nr_frames); remaining = new_nr_frames /* * old_format->channels*/ ; ctotal = remaining / 100; if (ctotal == 0) ctotal = 1; run_total = 0; channel = 0; offset_in = 0, offset_out = 0; /* Create selections */ g_mutex_lock (sample->ops_mutex); for (gl = old_sounddata->sels; gl; gl = gl->next) { sel = (sw_sel *)gl->data; sounddata_add_selection_1 (new_sounddata, sel->sel_start * src_ratio, sel->sel_end * src_ratio); } g_mutex_unlock (sample->ops_mutex); /* XXX: move play/rec offsets */ /* Resample data */ while (active) { g_mutex_lock (sample->ops_mutex); if (sample->edit_state == SWEEP_EDIT_STATE_CANCEL) { active = FALSE; } else { src_data.input_frames = MIN (old_nr_frames - offset_in, BUFFER_LEN); src_data.data_in = &((sw_audio_t *)old_sounddata->data) [offset_in * old_format->channels]; src_data.output_frames = MAX (new_nr_frames - offset_out, 0); src_data.data_out = &((sw_audio_t *)new_sounddata->data) [offset_out * old_format->channels]; if (src_data.input_frames < BUFFER_LEN) { src_data.end_of_input = TRUE; } #ifdef DEBUG printf ("%d:\t%ld/%d in\t%ld/%d out\t", iter++, offset_in + src_data.input_frames, old_nr_frames, src_data.output_frames, new_nr_frames); #endif if ((error = src_process (src_state, &src_data))) { info_dialog_new (_("Resample error"), NULL, "%s: %s", _("libsamplerate error"), src_strerror (error)); active = FALSE; } else { remaining -= (sw_framecount_t)src_data.output_frames_gen; run_total += (sw_framecount_t)src_data.output_frames_gen; offset_in += (sw_framecount_t)src_data.input_frames_used; offset_out += (sw_framecount_t)src_data.output_frames_gen; /* This is the normal loop exit point. */ if (src_data.output_frames_gen == 0) { active = FALSE; } #ifdef DEBUG printf ("%ld ->\t%ld\t(%d)\n", src_data.input_frames_used, src_data.output_frames_gen, remaining); #endif percent = run_total / ctotal; sample_set_progress_percent (sample, percent); } } g_mutex_unlock (sample->ops_mutex); } /* Only an error if remaining > 1 */ if (remaining > 1) { /* cancelled or failed */ sounddata_destroy (new_sounddata); } else if (sample->edit_state == SWEEP_EDIT_STATE_BUSY) { /* Set real number of frames. */ new_sounddata->nr_frames = run_total ; sample->sounddata = new_sounddata; inst->redo_data = inst->undo_data = sounddata_replace_data_new (sample, old_sounddata, new_sounddata); register_operation (sample, inst); } /*sample_set_edit_state (sample, SWEEP_EDIT_STATE_DONE);*/ } static sw_operation samplerate_op = { SWEEP_EDIT_MODE_ALLOC, (SweepCallback)do_samplerate_thread, (SweepFunction)NULL, (SweepCallback)undo_by_sounddata_replace, (SweepFunction)sounddata_replace_data_destroy, (SweepCallback)redo_by_sounddata_replace, (SweepFunction)sounddata_replace_data_destroy }; void resample (sw_sample * sample, int new_rate, int quality) { src_options * so; #undef BUF_LEN #define BUF_LEN 128 char buf[BUF_LEN]; g_snprintf (buf, BUF_LEN, _("Resample from %d Hz to %d Hz"), sample->sounddata->format->rate, new_rate); so = g_malloc (sizeof(src_options)); so->new_rate = new_rate; so->quality = quality; schedule_operation (sample, buf, &samplerate_op, so); } static void samplerate_dialog_ok_cb (GtkWidget * widget, gpointer data) { sw_sample * sample = (sw_sample *)data; GtkWidget * dialog; GtkWidget * chooser; GtkWidget * quality_menu; GtkWidget * menu; GtkWidget * menuitem; GtkWidget * checkbutton; int new_rate; int quality; gboolean rem_quality; dialog = gtk_widget_get_toplevel (widget); chooser = g_object_get_data (G_OBJECT(dialog), "default"); new_rate = samplerate_chooser_get_rate (chooser); quality_menu = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "quality_menu")); menu = gtk_option_menu_get_menu (GTK_OPTION_MENU(quality_menu)); menuitem = gtk_menu_get_active (GTK_MENU(menu)); quality = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(menuitem), "default")); checkbutton = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "rem_quality_chb")); rem_quality = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(checkbutton)); gtk_widget_destroy (dialog); if (rem_quality) { prefs_set_int (QUALITY_KEY, quality); } resample (sample, new_rate, quality); sample_set_edit_state (sample, SWEEP_EDIT_STATE_IDLE); } static void samplerate_dialog_cancel_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; sw_sample * sample = (sw_sample *)data; dialog = gtk_widget_get_toplevel (widget); gtk_widget_destroy (dialog); sample_set_edit_state (sample, SWEEP_EDIT_STATE_IDLE); } static gboolean samplerate_dialog_delete_event_cb( GtkWidget *widget, GdkEvent *event, gpointer data ) { samplerate_dialog_cancel_cb(widget, data); return FALSE; } static void src_update_ok_button (GtkWidget * widget) { GtkWidget * dialog; GtkWidget * chooser; GtkWidget * ok_button; int old_rate, new_rate; double ratio; int is_valid = 0; dialog = gtk_widget_get_toplevel (widget); old_rate = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(dialog), "old_rate")); chooser = g_object_get_data (G_OBJECT(dialog), "default"); new_rate = samplerate_chooser_get_rate (chooser); if (old_rate > 0 && new_rate > 0 && old_rate != new_rate) { ratio = (double)new_rate / (double)old_rate; is_valid = src_is_valid_ratio (ratio); } ok_button = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "ok_button")); gtk_widget_set_sensitive (ok_button, is_valid); } static void src_quality_label_update (GtkWidget * dialog, int quality) { GtkWidget * label; gchar * new_text, * c; label = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "quality_label")); new_text = g_strdup (src_get_description (quality)); /* replace commas in description with newline characters */ for (c = new_text; *c != '\0'; c++) { if (*c == ',') { *c = '\n'; } } gtk_label_set_text (GTK_LABEL(label), new_text); g_free (new_text); } static void src_quality_label_update_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; int quality; dialog = GTK_WIDGET(data); quality = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "default")); src_quality_label_update (dialog, quality); } static void src_quality_options_reset_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkWidget * quality_menu; int * i, quality; dialog = gtk_widget_get_toplevel (widget); /* Quality */ quality_menu = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "quality_menu")); i = prefs_get_int (QUALITY_KEY); if (i == NULL) { quality = DEFAULT_QUALITY; } else { quality = *i; } gtk_option_menu_set_history (GTK_OPTION_MENU(quality_menu), quality); src_quality_label_update (dialog, quality); } static void src_quality_options_default_cb (GtkWidget * widget, gpointer data) { GtkWidget * dialog; GtkWidget * quality_menu; dialog = gtk_widget_get_toplevel (widget); /* Quality */ quality_menu = GTK_WIDGET(g_object_get_data (G_OBJECT(dialog), "quality_menu")); gtk_option_menu_set_history (GTK_OPTION_MENU(quality_menu), DEFAULT_QUALITY); src_quality_label_update (dialog, DEFAULT_QUALITY); } void samplerate_dialog_new_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; GtkWidget * dialog; GtkWidget * main_vbox; GtkWidget * ebox; GtkWidget * pixmap; GtkWidget * notebook; GtkWidget * vbox; GtkWidget * label; GtkWidget * chooser; GtkWidget * frame; GtkWidget * vbox2; GtkWidget * option_menu; GtkWidget * menu; GtkWidget * menuitem; GtkWidget * hbox, * hbox2; GtkWidget * checkbutton; GtkWidget * button, * ok_button; GtkTooltips * tooltips; char * desc; int i; gchar * current; dialog = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW(dialog), _("Sweep: Resample")); gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE); g_signal_connect (G_OBJECT (dialog), "delete_event", G_CALLBACK (samplerate_dialog_delete_event_cb), sample); main_vbox = GTK_DIALOG(dialog)->vbox; ebox = gtk_event_box_new (); gtk_box_pack_start (GTK_BOX(main_vbox), ebox, FALSE, FALSE, 0); gtk_widget_set_style (ebox, style_wb); gtk_widget_show (ebox); pixmap = create_widget_from_xpm (dialog, SRC_xpm); gtk_container_add (GTK_CONTAINER(ebox), pixmap); gtk_widget_show (pixmap); notebook = gtk_notebook_new (); gtk_box_pack_start (GTK_BOX(main_vbox), notebook, TRUE, TRUE, 4); gtk_widget_show (notebook); /* Conversion */ label = gtk_label_new (_("Conversion")); vbox = gtk_vbox_new (FALSE, 0); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), vbox, label); gtk_container_set_border_width (GTK_CONTAINER(vbox), 4); gtk_widget_show (vbox); current = g_strdup_printf (_("Current sample rate: %d Hz"), sample->sounddata->format->rate); label = gtk_label_new (current); gtk_box_pack_start (GTK_BOX(vbox), label, TRUE, TRUE, 8); gtk_widget_show (label); g_object_set_data (G_OBJECT(dialog), "old_rate", GINT_TO_POINTER(sample->sounddata->format->rate)); chooser = samplerate_chooser_new (_("New sample rate")); gtk_box_pack_start (GTK_BOX(vbox), chooser, TRUE, TRUE, 0); gtk_widget_show (chooser); g_signal_connect (G_OBJECT(chooser), "number-changed", G_CALLBACK(src_update_ok_button), NULL); g_object_set_data (G_OBJECT(dialog), "default", chooser); /* Quality */ label = gtk_label_new (_("Quality")); vbox = gtk_vbox_new (FALSE, 0); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), vbox, label); gtk_container_set_border_width (GTK_CONTAINER(vbox), 4); gtk_widget_show (vbox); frame = gtk_frame_new (_("Converter")); gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); vbox2 = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(frame), vbox2); gtk_widget_show (vbox2); option_menu = gtk_option_menu_new (); gtk_box_pack_start (GTK_BOX (vbox2), option_menu, FALSE, TRUE, 0); gtk_widget_show (option_menu); menu = gtk_menu_new (); for (i = 0; (desc = (char *) src_get_name (i)) != NULL; i++) { menuitem = gtk_menu_item_new_with_label (desc); gtk_menu_append (GTK_MENU(menu), menuitem); g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER(i)); gtk_widget_show (menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(src_quality_label_update_cb), dialog); } gtk_option_menu_set_menu (GTK_OPTION_MENU(option_menu), menu); g_object_set_data (G_OBJECT(dialog), "quality_menu", option_menu); /* long description ... */ label = gtk_label_new (""); gtk_box_pack_start (GTK_BOX (vbox2), label, TRUE, FALSE, 4); gtk_widget_show (label); g_object_set_data (G_OBJECT(dialog), "quality_label", label); /* Remember / Reset */ hbox = gtk_hbox_new (FALSE, 4); gtk_box_pack_end (GTK_BOX(vbox), hbox, FALSE, FALSE, 4); gtk_container_set_border_width (GTK_CONTAINER(hbox), 12); gtk_widget_show (hbox); checkbutton = gtk_check_button_new_with_label (_("Remember this quality")); gtk_box_pack_start (GTK_BOX (hbox), checkbutton, TRUE, TRUE, 0); gtk_widget_show (checkbutton); g_object_set_data (G_OBJECT (dialog), "rem_quality_chb", checkbutton); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(checkbutton), TRUE); hbox2 = gtk_hbox_new (TRUE, 4); gtk_box_pack_start (GTK_BOX (hbox), hbox2, FALSE, TRUE, 0); gtk_widget_show (hbox2); button = gtk_button_new_with_label (_("Reset")); gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(src_quality_options_reset_cb), NULL); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Reset to the last remembered quality."), NULL); /* Call the reset callback now to set remembered options */ src_quality_options_reset_cb (button, NULL); button = gtk_button_new_with_label (_("Default")); gtk_box_pack_start (GTK_BOX (hbox2), button, FALSE, TRUE, 4); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(src_quality_options_default_cb), NULL); gtk_widget_show (button); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, _("Set to default quality."), NULL); /* About */ label = gtk_label_new (_("About")); ebox = gtk_event_box_new (); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), ebox, label); gtk_widget_set_style (ebox, style_wb); gtk_widget_show (ebox); gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK(notebook), ebox, TRUE, TRUE, GTK_PACK_END); vbox = gtk_vbox_new (FALSE, 16); gtk_container_add (GTK_CONTAINER(ebox), vbox); gtk_container_set_border_width (GTK_CONTAINER(vbox), 8); gtk_widget_show (vbox); label = gtk_label_new (_("Secret Rabbit Code (aka libsamplerate) is a\n" "Sample Rate Converter for audio by Erik de Castro Lopo\n")); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_set_style (label, style_wb); gtk_widget_show (label); button = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX(vbox), button, FALSE, FALSE, 8); gtk_widget_show (button); label = gtk_label_new (_("This user interface by Conrad Parker,\n" "Copyright (C) 2002 CSIRO Australia.\n\n")); gtk_box_pack_start (GTK_BOX(vbox), label, FALSE, FALSE, 0); gtk_widget_set_style (label, style_wb); gtk_widget_show (label); /* OK */ ok_button = gtk_button_new_with_label (_("Resample")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (ok_button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), ok_button, TRUE, TRUE, 0); gtk_widget_show (ok_button); g_signal_connect (G_OBJECT(ok_button), "clicked", G_CALLBACK (samplerate_dialog_ok_cb), sample); g_object_set_data (G_OBJECT (dialog), "ok_button", ok_button); /* Cancel */ button = gtk_button_new_with_label (_("Don't resample")); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (button), GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK (samplerate_dialog_cancel_cb), sample); gtk_widget_grab_default (ok_button); src_update_ok_button (dialog); sample_set_edit_state (sample, SWEEP_EDIT_STATE_BUSY); sample_set_edit_mode (sample, SWEEP_EDIT_MODE_FILTER); sample_set_progress_percent (sample, 0); gtk_widget_show (dialog); } #endif /* HAVE_LIBSAMPLERATE */ sweep-0.9.3/src/view.c0000644000175000017500000034305210777660310013307 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ /* * Thu Oct 22 2000 - Added 1:1 and Normal zooms from * Steve Harris */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include "view.h" #include "about_dialog.h" #include "sample.h" #include "callbacks.h" #include "channelops.h" #include "interface.h" #include "print.h" #include "param.h" #include "record.h" #include "sample-display.h" #include "file_dialogs.h" #include "question_dialogs.h" #include "driver.h" #include "notes.h" #include "db_ruler.h" #include "time_ruler.h" #include "cursors.h" #include "head.h" #include "view_pixmaps.h" /*#define DEBUG*/ #define USER_GTKRC /* #define SCROLL_SMOOTHLY */ /* Default initial dimensions. * * Golden ratio. Oath. * (sqrt(5)-1)/2 = 0.61803398874989484820 * 2/(sqrt(5)-1) = 1.61803398874989484820 * * Keep width:height ratio equal to one of these * for pleasing dimensions. */ #define VIEW_MIN_WIDTH 197 #if 0 #define VIEW_MAX_WIDTH 517 #define VIEW_DEFAULT_HEIGHT 320 #else #define VIEW_MAX_WIDTH 1034 #define VIEW_DEFAULT_HEIGHT_PER_CHANNEL 320 #endif #define DEFAULT_MIN_ZOOM 8 #define NO_TIME "" #define NOREADY(w) \ (view->noready_widgets = g_list_append (view->noready_widgets, (w))) #define NOMODIFY(w) \ (view->nomodify_widgets = g_list_append (view->nomodify_widgets, (w))) #define NOALLOC(w) \ (view->noalloc_widgets = g_list_append (view->noalloc_widgets, (w))) #ifdef HAVE_LIBSAMPLERATE void samplerate_dialog_new_cb (GtkWidget * widget, gpointer data); #endif static GtkWidget * create_view_menu_item(GtkWidget * menu, gchar * label, gchar * accel_path, sw_view *view,gpointer callback, gboolean nomodify, guint accel_key, GdkModifierType accel_mods, gpointer user_data); void view_set_vzoom (sw_view * view, sw_audio_t low, sw_audio_t high); extern GList * plugins; extern GdkCursor * sweep_cursors[]; extern GtkRecentManager *recent_manager; extern GtkStyle * style_wb; extern GtkStyle * style_LCD; extern GtkStyle * style_light_grey; extern GtkStyle * style_green_grey; extern GtkStyle * style_red_grey; extern GtkStyle * style_dark_grey; /* Global */ sw_view * last_tmp_view = NULL; /* last used tmp_view */ /* proc_instance: * a type for applying a procedure to a sample */ typedef struct _sw_proc_instance sw_proc_instance; struct _sw_proc_instance { sw_procedure * proc; sw_view * view; }; static sw_proc_instance * sw_proc_instance_new (sw_procedure * proc, sw_view * view) { sw_proc_instance * pi; /* XXX: where to clean this up? */ pi = g_malloc (sizeof (sw_proc_instance)); pi->proc = proc; pi->view = view; return pi; } static void apply_procedure_cb (GtkWidget * widget, gpointer data) { sw_proc_instance * pi = (sw_proc_instance *)data; sw_procedure * proc = pi->proc; sw_sample * sample = pi->view->sample; sw_param_set pset; if (proc->nr_params == 0) { pset = NULL; proc->apply (sample, pset, proc->custom_data); } else { pset = sw_param_set_new (proc); if (proc->suggest) proc->suggest (sample, pset, proc->custom_data); create_param_set_adjuster (proc, pi->view, pset); } } static void create_proc_menuitem (sw_procedure * proc, sw_view * view, GtkWidget * submenu, GtkAccelGroup * accel_group) { sw_proc_instance * pi; GtkWidget * menuitem; pi = sw_proc_instance_new (proc, view); menuitem = gtk_menu_item_new_with_label(_(proc->name)); gtk_menu_append(GTK_MENU(submenu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(apply_procedure_cb), pi); gtk_widget_show(menuitem); /* these accels are not editable */ /* gtk_widget_add_accelerator (menuitem, "activate", accel_group, proc->accel_key, proc->accel_mods, GTK_ACCEL_VISIBLE); */ } static GtkWidget * create_proc_menu (sw_view * view, GtkAccelGroup * accel_group) { GtkWidget * menu, * submenu, * menuitem = NULL, * label, * hbox; GList * gl; sw_procedure * proc; gboolean use_submenus = FALSE; gint i = 0, li = 0; gchar first_name[32], last_name[32]; gchar * title; menu = gtk_menu_new (); if (g_list_length (plugins) > 10) { use_submenus = TRUE; } submenu = menu; #if 0 first_name[4] = '\0'; last_name[4] = '\0'; #endif if (plugins) /*strncpy (first_name, ((sw_procedure *)plugins->data)->name, 4);*/ sscanf (_(((sw_procedure *)plugins->data)->name), "%s", first_name); /* Filter plugins */ for (gl = plugins; gl; gl = gl->next) { proc = (sw_procedure *)gl->data; if (use_submenus && ((i % 10) == 0)) { if (menuitem) { hbox = gtk_hbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(menuitem), hbox); gtk_widget_show (hbox); title = g_strdup_printf ("%s ... %s", first_name, last_name); label = gtk_label_new (title); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0); /*menuitem = gtk_menu_item_new_with_label (title);*/ gtk_widget_show (label); /*strncpy (first_name, proc->name, 4);*/ sscanf (_(proc->name), "%s", first_name); li = i; } menuitem = gtk_menu_item_new (); gtk_menu_append (GTK_MENU(menu), menuitem); gtk_widget_show (menuitem); submenu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM(menuitem), submenu); } create_proc_menuitem (proc, view, submenu, accel_group); /*strncpy (last_name, proc->name, 4);*/ sscanf (_(proc->name), "%s", last_name); i++; } if (menuitem) { hbox = gtk_hbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(menuitem), hbox); gtk_widget_show (hbox); label = gtk_label_new (g_strdup_printf ("%s ... %s", first_name, last_name)); gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); } return menu; } static void view_store_cb (GtkWidget * widget, gpointer data); static void view_retrieve_cb (GtkWidget * widget, gpointer data); static GtkWidget * view_refresh_channelops_menu (sw_view * view) { GtkWidget * submenu, * menuitem = NULL; GList * gl; int old_channels, channels; GtkAccelGroup *accel_group; channels = view->sample->sounddata->format->channels; if (view->channelops_submenu != NULL) { old_channels = GPOINTER_TO_INT (g_object_get_data (G_OBJECT(view->channelops_submenu), "default")); /* If there's no need to change the submenu, don't */ if ((old_channels == channels) || (old_channels > 2 && channels > 2)) { return view->channelops_submenu; } } /* Remove references to old channelops widgets from sensitivity updates */ for (gl = view->channelops_widgets; gl; gl = gl->next) { view->nomodify_widgets = g_list_remove (view->nomodify_widgets, gl->data); #if 0 view->noready_widgets = g_list_remove (view->noready_widgets, gl->data); view->noalloc_widgets = g_list_remove (view->noalloc_widgets, gl->data); #endif } g_list_free (view->channelops_widgets); view->channelops_widgets = NULL; /* Create the new channelops submenu */ submenu = gtk_menu_new (); accel_group = GTK_ACCEL_GROUP(g_object_get_data(G_OBJECT(view->window), "accel_group")); gtk_menu_set_accel_group (GTK_MENU (submenu), accel_group); g_object_set_data (G_OBJECT(submenu), "default", GINT_TO_POINTER(channels)); if (channels == 1) { menuitem = create_view_menu_item (submenu, _("Duplicate to stereo"), "/Sample/Channels/Duplicate to stereo", view, dup_stereo_cb, TRUE, 0, 0, view); view->channelops_widgets = g_list_append (view->channelops_widgets, menuitem); menuitem = create_view_menu_item (submenu, _("Duplicate to multichannel"), "/Channels/Duplicate to multichannel", view, dup_channels_dialog_new_cb, TRUE, 0, 0, view); view->channelops_widgets = g_list_append (view->channelops_widgets, menuitem); } if (channels == 2) { menuitem = create_view_menu_item (submenu, _("Swap left and right"), "/Sample/Channels/Swap left and right", view, stereo_swap_cb, TRUE, 0, 0, view); view->channelops_widgets = g_list_append (view->channelops_widgets, menuitem); menuitem = create_view_menu_item (submenu, _("Remove left channel"), "/Sample/Channels/Remove left channel", view, remove_left_cb, TRUE, 0, 0, view); view->channelops_widgets = g_list_append (view->channelops_widgets, menuitem); menuitem = create_view_menu_item (submenu, _("Remove right channel"), "/Sample/Channels/Remove right channel", view, remove_right_cb, TRUE, 0, 0, view); view->channelops_widgets = g_list_append (view->channelops_widgets, menuitem); } if (channels > 1) { menuitem = create_view_menu_item (submenu, _("Mix down to mono"), "/Sample/Channels/Mix down to mono", view, mono_mixdown_cb, TRUE, 0, 0, view); view->channelops_widgets = g_list_append (view->channelops_widgets, menuitem); } menuitem = create_view_menu_item (submenu, _("Add/Remove channels"), "/Sample/Channels/Add/Remove channels", view, channels_dialog_new_cb, TRUE, 0, 0, view); view->channelops_widgets = g_list_append (view->channelops_widgets, menuitem); gtk_menu_item_set_submenu (GTK_MENU_ITEM(view->channelops_menuitem), submenu); view->channelops_submenu = submenu; return submenu; } /* * Convenience function to Create and setup individual menuitems */ static GtkWidget * create_view_menu_item(GtkWidget * menu, gchar * label, gchar * accel_path, sw_view *view,gpointer callback, gboolean nomodify, guint accel_key, GdkModifierType accel_mods, gpointer user_data) { GtkWidget * menuitem; menuitem = gtk_menu_item_new_with_label(label); /* register accel path enabling runtime changes by the user */ gtk_menu_item_set_accel_path (GTK_MENU_ITEM(menuitem), accel_path); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(callback), user_data); /* register default key binding (if one is supplied */ if (accel_key) gtk_accel_map_add_entry (accel_path, accel_key, accel_mods); if (nomodify) NOMODIFY(menuitem); gtk_widget_show(menuitem); return menuitem; } /* * Populate a GtkMenu or GtkMenubar m */ static GtkAccelGroup * create_view_menu (sw_view * view, GtkWidget * m) { GtkWidget * menuitem; GtkWidget * submenu, *subsubmenu; GtkAccelGroup *accel_group; SampleDisplay * s = SAMPLE_DISPLAY(view->display); #define MENU_APPEND(w,c) \ if (GTK_IS_MENU_BAR(w)) { \ gtk_menu_bar_append(GTK_MENU_BAR(w), c); \ } else if (GTK_IS_MENU(w)) { \ gtk_menu_append(GTK_MENU(w), c); \ } /* Create a GtkAccelGroup and add it to the window. */ accel_group = gtk_accel_group_new(); g_object_set_data(G_OBJECT(view->window), "accel_group", accel_group); #if 0 if (GTK_IS_MENU(m)) gtk_window_add_accel_group (GTK_WINDOW(view->window), accel_group); #endif /* File */ menuitem = gtk_menu_item_new_with_label(_("File")); MENU_APPEND(m, menuitem); gtk_widget_show(menuitem); submenu = gtk_menu_new(); gtk_menu_set_accel_group (GTK_MENU (submenu), accel_group); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), submenu); create_view_menu_item (submenu, _("New ..."), "/File/New ...", view, sample_new_empty_cb, FALSE, GDK_n, GDK_CONTROL_MASK, view); create_view_menu_item (submenu, _("Open ..."), "/File/Open ...", view, sample_load_cb, FALSE, GDK_o, GDK_CONTROL_MASK, view->window); #if GTK_CHECK_VERSION (2, 10, 0) GtkWidget *recent_menu; GtkRecentFilter * filter; if (recent_manager != NULL) { recent_menu = gtk_recent_chooser_menu_new_for_manager(recent_manager); gtk_widget_show(recent_menu); g_signal_connect(G_OBJECT(recent_menu), "item-activated", G_CALLBACK(recent_chooser_menu_activated_cb), NULL); gtk_recent_chooser_set_limit (GTK_RECENT_CHOOSER(recent_menu), 20); gtk_recent_chooser_set_show_tips (GTK_RECENT_CHOOSER(recent_menu), TRUE); gtk_recent_chooser_set_sort_type (GTK_RECENT_CHOOSER(recent_menu), GTK_RECENT_SORT_MRU); filter = gtk_recent_filter_new(); gtk_recent_filter_add_application(filter, g_get_application_name()); gtk_recent_chooser_add_filter(GTK_RECENT_CHOOSER(recent_menu), filter); menuitem = gtk_menu_item_new_with_label(_("Open Recent")); gtk_menu_item_set_accel_path (GTK_MENU_ITEM(menuitem), "/File/Open Recent"); gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), recent_menu); gtk_widget_show(GTK_WIDGET(menuitem)); } #endif create_view_menu_item (submenu, _("Save"), "/File/Save", view, sample_save_cb, TRUE, GDK_s, GDK_CONTROL_MASK, view); create_view_menu_item (submenu, _("Save As ..."), "/File/Save As ...", view, sample_save_as_cb, TRUE, 0, 0, view); create_view_menu_item (submenu, _("Revert"), "/File/Revert", view, sample_revert_cb, TRUE, 0, 0, view); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); create_view_menu_item (submenu, _("Properties ..."), "/File/Properties ...", view, show_info_dialog_cb, FALSE, 0, 0, view); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); create_view_menu_item (submenu, _("Close"), "/File/Close", view, exit_cb, FALSE, GDK_q, GDK_CONTROL_MASK, s); create_view_menu_item (submenu, _("Quit"), "/File/Quit", view, view_close_cb, FALSE, GDK_w, GDK_CONTROL_MASK, s); /* Edit */ menuitem = gtk_menu_item_new_with_label(_("Edit")); MENU_APPEND(m, menuitem); gtk_widget_show(menuitem); submenu = gtk_menu_new(); gtk_menu_set_accel_group (GTK_MENU (submenu), accel_group); gtk_menu_item_set_accel_path (GTK_MENU_ITEM(menuitem), "/Edit"); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), submenu); menuitem = create_view_menu_item (submenu, _("Cancel"), "/Edit/Cancel", view, cancel_cb, FALSE, GDK_Escape, GDK_BUTTON1_MASK, view); NOREADY(menuitem); create_view_menu_item (submenu, _("Undo"), "/Edit/Undo", view, undo_cb, TRUE, GDK_z, GDK_CONTROL_MASK, view); create_view_menu_item (submenu, _("Redo"), "/Edit/Redo", view, redo_cb, TRUE, GDK_r, GDK_CONTROL_MASK, view); create_view_menu_item (submenu, _("Show history ..."), "/Edit/Show history ...", view, show_undo_dialog_cb, FALSE, 0, 0, view); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); create_view_menu_item (submenu, _("Delete"), "/Edit/Delete", view, delete_cb, TRUE, 0, 0, view); create_view_menu_item (submenu, _("Cut"), "/Edit/Cut", view, cut_cb, TRUE, GDK_x, GDK_CONTROL_MASK, view); create_view_menu_item (submenu, _("Copy"), "/Edit/Copy", view, copy_cb, TRUE, GDK_c, GDK_CONTROL_MASK, view); create_view_menu_item (submenu, _("Clear"), "/Edit/Clear", view, clear_cb, TRUE, 0, 0, view); create_view_menu_item (submenu, _("Crop"), "/Edit/Crop", view, crop_cb, TRUE, 0, 0, view); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); create_view_menu_item (submenu, _("Paste: Insert"), "/Edit/Paste: Insert", view, paste_cb, TRUE, GDK_v, GDK_CONTROL_MASK, view); create_view_menu_item (submenu, _("Paste: Mix"), "/Edit/Paste: Mix", view, paste_mix_cb, TRUE, GDK_m, GDK_CONTROL_MASK, view); create_view_menu_item (submenu, _("Paste: Crossfade"), "/Edit/Paste: Crossfade", view, paste_xfade_cb, TRUE, GDK_f, GDK_CONTROL_MASK, view); create_view_menu_item (submenu, _("Paste as New"), "/Edit/Paste as New", view, paste_as_new_cb, TRUE, GDK_e, GDK_CONTROL_MASK, view); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); create_view_menu_item (submenu, _("Preview Cut/Cursor"), "/Edit/Preview Cut-Cursor", view, preview_cut_cb, FALSE, GDK_k, GDK_CONTROL_MASK, view); create_view_menu_item (submenu, _("Pre-roll to Cursor"), "/Edit/Pre-roll to Cursor", view, preroll_cb, FALSE, GDK_k, GDK_SHIFT_MASK|GDK_CONTROL_MASK, view); /* Select */ menuitem = gtk_menu_item_new_with_label(_("Select")); MENU_APPEND(m, menuitem); gtk_widget_show(menuitem); submenu = gtk_menu_new(); gtk_menu_set_accel_group (GTK_MENU (submenu), accel_group); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), submenu); create_view_menu_item (submenu, _("Invert"), "/Select/Invert", view, select_invert_cb, TRUE, GDK_i, GDK_CONTROL_MASK, s); create_view_menu_item (submenu, _("All"), "/Select/All", view, select_all_cb, TRUE, GDK_a, GDK_CONTROL_MASK, s); create_view_menu_item (submenu, _("None"), "/Select/None", view, select_none_cb, TRUE, GDK_a, GDK_SHIFT_MASK|GDK_CONTROL_MASK, s); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); create_view_menu_item (submenu, _("Halve"), "/Select/Halve", view, selection_halve_cb, TRUE, GDK_semicolon, GDK_BUTTON1_MASK, s); create_view_menu_item (submenu, _("Double"), "/Select/Double", view, selection_double_cb, TRUE, GDK_quoteright, GDK_BUTTON1_MASK, s); create_view_menu_item (submenu, _("Shift left"), "/Select/Shift left", view, select_shift_left_cb, TRUE, GDK_less, GDK_BUTTON1_MASK, s); create_view_menu_item (submenu, _("Shift right"), "/Select/Shift right", view, select_shift_right_cb, TRUE, GDK_greater, GDK_BUTTON1_MASK, s); /* View */ menuitem = gtk_menu_item_new_with_label(_("View")); MENU_APPEND(m, menuitem); gtk_widget_show(menuitem); submenu = gtk_menu_new(); gtk_menu_set_accel_group (GTK_MENU (submenu), accel_group); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), submenu); menuitem = gtk_check_menu_item_new_with_label(_("Autoscroll: follow playback cursor")); gtk_menu_item_set_accel_path(GTK_MENU_ITEM(menuitem), "/View/Autoscroll: follow playback cursor"); gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(menuitem), view->following); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(follow_toggle_cb), view); gtk_widget_show(menuitem); view->follow_checkmenu = menuitem; gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(menuitem), view->following); view->follow_checkmenu = menuitem; menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); create_view_menu_item (submenu, _("Center"), "/View/Center", view, zoom_center_cb, FALSE, GDK_slash, GDK_BUTTON1_MASK, s); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); create_view_menu_item (submenu, _("Zoom in"), "/View/Zoom in", view, zoom_in_cb, FALSE, GDK_equal, GDK_BUTTON1_MASK, view); create_view_menu_item (submenu, _("Zoom out"), "/View/Zoom out", view, zoom_out_cb, FALSE, GDK_minus, GDK_BUTTON1_MASK, view); create_view_menu_item (submenu, _("Zoom to selection"), "/View/Zoom to selection", view, zoom_to_sel_cb, FALSE, 0, 0, s); #if 0 create_view_menu_item (submenu, _("Left"), "/View/Left", view, zoom_left_cb, FALSE, GDK_Left, GDK_BUTTON1_MASK, s); create_view_menu_item (submenu, _("Right"), "/View/Right", view, zoom_right_cb, FALSE, GDK_Right, GDK_BUTTON1_MASK, s); #endif create_view_menu_item (submenu, _("Zoom normal"), "/View/Zoom normal", view, zoom_norm_cb, FALSE, 0, 0, s); create_view_menu_item (submenu, _("Zoom all"), "/View/Zoom all", view, zoom_all_cb, FALSE, GDK_1, GDK_CONTROL_MASK, view); create_view_menu_item (submenu, _("1:1"), "/View/1:1", view, zoom_1to1_cb, FALSE, 0, 0, s); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); /* Store view */ menuitem = gtk_menu_item_new_with_label(_("Remember as")); gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); subsubmenu = gtk_menu_new(); gtk_menu_set_accel_group (GTK_MENU (subsubmenu), accel_group); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), subsubmenu); #define REMEMBER_AS(title,index,accel_path) \ menuitem = gtk_menu_item_new_with_label ((title)); \ g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER((index))); \ gtk_menu_append (GTK_MENU(subsubmenu), menuitem); \ gtk_widget_show (menuitem); \ g_signal_connect (G_OBJECT(menuitem), "activate", \ G_CALLBACK(view_store_cb), view); \ gtk_menu_item_set_accel_path (GTK_MENU_ITEM(menuitem), accel_path); \ gtk_accel_map_add_entry (accel_path, \ GDK_KP_##index, GDK_CONTROL_MASK); REMEMBER_AS(_("Area 1"), 1, "/View/Remember As/Area 1"); REMEMBER_AS(_("Area 2"), 2, "/View/Remember As/Area 2"); REMEMBER_AS(_("Area 3"), 3, "/View/Remember As/Area 3"); REMEMBER_AS(_("Area 4"), 4, "/View/Remember As/Area 4"); REMEMBER_AS(_("Area 5"), 5, "/View/Remember As/Area 5"); REMEMBER_AS(_("Area 6"), 6, "/View/Remember As/Area 6"); REMEMBER_AS(_("Area 7"), 7, "/View/Remember As/Area 7"); REMEMBER_AS(_("Area 8"), 8, "/View/Remember As/Area 8"); REMEMBER_AS(_("Area 9"), 9, "/View/Remember As/Area 9"); REMEMBER_AS(_("Area 10"), 0, "/View/Remember As/Area 10"); /* Retrieve view */ menuitem = gtk_menu_item_new_with_label(_("Zoom to")); gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); subsubmenu = gtk_menu_new(); gtk_menu_set_accel_group (GTK_MENU (subsubmenu), accel_group); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), subsubmenu); #define ZOOM_TO(title,index,accel_path) \ menuitem = gtk_menu_item_new_with_label ((title)); \ g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER((index))); \ gtk_menu_append (GTK_MENU(subsubmenu), menuitem); \ gtk_widget_show (menuitem); \ g_signal_connect (G_OBJECT(menuitem), "activate", \ G_CALLBACK(view_retrieve_cb), view); \ gtk_menu_item_set_accel_path (GTK_MENU_ITEM(menuitem), accel_path); \ gtk_accel_map_add_entry (accel_path, \ GDK_KP_##index, GDK_BUTTON1_MASK); ZOOM_TO(_("Area 1"), 1, "/View/Zoom To/Area 1"); ZOOM_TO(_("Area 2"), 2, "/View/Zoom To/Area 2"); ZOOM_TO(_("Area 3"), 3, "/View/Zoom To/Area 3"); ZOOM_TO(_("Area 4"), 4, "/View/Zoom To/Area 4"); ZOOM_TO(_("Area 5"), 5, "/View/Zoom To/Area 5"); ZOOM_TO(_("Area 6"), 6, "/View/Zoom To/Area 6"); ZOOM_TO(_("Area 7"), 7, "/View/Zoom To/Area 7"); ZOOM_TO(_("Area 8"), 8, "/View/Zoom To/Area 8"); ZOOM_TO(_("Area 9"), 9, "/View/Zoom To/Area 9"); ZOOM_TO(_("Area 10"), 0, "/View/Zoom To/Area 10"); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label(_("Color scheme")); gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); subsubmenu = gtk_menu_new(); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), subsubmenu); menuitem = gtk_menu_item_new_with_label (_("Decoder Red")); g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER(VIEW_COLOR_RED)); gtk_menu_append (GTK_MENU(subsubmenu), menuitem); gtk_widget_show (menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(sample_set_color_cb), view); menuitem = gtk_menu_item_new_with_label (_("Orangeboom")); g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER(VIEW_COLOR_ORANGE)); gtk_menu_append (GTK_MENU(subsubmenu), menuitem); gtk_widget_show (menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(sample_set_color_cb), view); menuitem = gtk_menu_item_new_with_label (_("Lame Yellow")); g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER(VIEW_COLOR_YELLOW)); gtk_menu_append (GTK_MENU(subsubmenu), menuitem); gtk_widget_show (menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(sample_set_color_cb), view); menuitem = gtk_menu_item_new_with_label (_("Coogee Bay Blue")); g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER(VIEW_COLOR_BLUE)); gtk_menu_append (GTK_MENU(subsubmenu), menuitem); gtk_widget_show (menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(sample_set_color_cb), view); menuitem = gtk_menu_item_new_with_label (_("Blackwattle")); g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER(VIEW_COLOR_BLACK)); gtk_menu_append (GTK_MENU(subsubmenu), menuitem); gtk_widget_show (menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(sample_set_color_cb), view); menuitem = gtk_menu_item_new_with_label (_("Frigid")); g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER(VIEW_COLOR_WHITE)); gtk_menu_append (GTK_MENU(subsubmenu), menuitem); gtk_widget_show (menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(sample_set_color_cb), view); menuitem = gtk_menu_item_new_with_label (_("Radar")); g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER(VIEW_COLOR_RADAR)); gtk_menu_append (GTK_MENU(subsubmenu), menuitem); gtk_widget_show (menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(sample_set_color_cb), view); menuitem = gtk_menu_item_new_with_label (_("Bluescreen")); g_object_set_data (G_OBJECT(menuitem), "default", GINT_TO_POINTER(VIEW_COLOR_BLUESCREEN)); gtk_menu_append (GTK_MENU(subsubmenu), menuitem); gtk_widget_show (menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(sample_set_color_cb), view); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); create_view_menu_item (submenu, _("New View"), "/View/New View", view, view_new_cb, FALSE, 0, 0, s); /* Sample */ menuitem = gtk_menu_item_new_with_label(_("Sample")); MENU_APPEND(m, menuitem); gtk_widget_show(menuitem); submenu = gtk_menu_new(); gtk_menu_set_accel_group (GTK_MENU (submenu), accel_group); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), submenu); menuitem = gtk_menu_item_new_with_label (_("Channels")); gtk_menu_append (GTK_MENU(submenu), menuitem); gtk_widget_show (menuitem); view->channelops_menuitem = menuitem; view->channelops_submenu = NULL; view_refresh_channelops_menu (view); #ifdef HAVE_LIBSAMPLERATE create_view_menu_item (submenu, _("Resample ..."), "/Sample/Resample ...", view, samplerate_dialog_new_cb, TRUE, 0, 0, view); #endif menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); create_view_menu_item (submenu, _("Duplicate"), "/Sample/Duplicate", view, sample_new_copy_cb, TRUE, GDK_d, GDK_CONTROL_MASK, s); /* Filters */ menuitem = gtk_menu_item_new_with_label(_("Process")); MENU_APPEND(m, menuitem); gtk_widget_show(menuitem); submenu = create_proc_menu (view, accel_group); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), submenu); NOMODIFY(menuitem); /* Playback */ menuitem = gtk_menu_item_new_with_label(_("Playback")); MENU_APPEND(m, menuitem); gtk_widget_show(menuitem); submenu = gtk_menu_new(); gtk_menu_set_accel_group (GTK_MENU (submenu), accel_group); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), submenu); create_view_menu_item (submenu, _("Configure audio device ..."), "/Playback/Configure audio device ...", view, device_config_cb, FALSE, 0, 0, view); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label(_("Transport")); gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); subsubmenu = gtk_menu_new(); gtk_menu_set_accel_group (GTK_MENU (subsubmenu), accel_group); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), subsubmenu); NOALLOC(menuitem); create_view_menu_item (subsubmenu, _("Go to start of file"), "/Playback/Transport/Go to start of file", view, goto_start_cb, FALSE, GDK_Home, GDK_CONTROL_MASK, view); create_view_menu_item (subsubmenu, _("Go to start of window"), "/Playback/Transport/Go to start of window", view, goto_start_of_view_cb, FALSE, GDK_Home, GDK_BUTTON1_MASK, view); create_view_menu_item (subsubmenu, _("Skip back"), "/Playback/Transport/Skip back", view, page_back_cb, FALSE, GDK_Page_Up, GDK_BUTTON1_MASK, view); create_view_menu_item (subsubmenu, _("Skip forward"), "/Playback/Transport/Skip forward", view, page_fwd_cb, FALSE, GDK_Page_Down, GDK_BUTTON1_MASK, view); create_view_menu_item (subsubmenu, _("Go to end of window"), "/Playback/Transport/Go to end of window", view, goto_end_of_view_cb, FALSE, GDK_End, GDK_BUTTON1_MASK, view); create_view_menu_item (subsubmenu, _("Go to end of file"), "/Playback/Transport/Go to end of file", view, goto_end_cb, FALSE, GDK_End, GDK_CONTROL_MASK, view); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); menuitem = create_view_menu_item (submenu, _("Play selection"), "/Playback/Transport/Play selection", view, play_view_sel_cb, FALSE, GDK_space, GDK_BUTTON1_MASK, view); NOALLOC(menuitem); menuitem = create_view_menu_item (submenu, _("Play sample"), "/Playback/Transport/Play sample", view, play_view_cb, FALSE, GDK_space, GDK_CONTROL_MASK, view); NOALLOC(menuitem); menuitem = gtk_menu_item_new_with_label(_("Play note")); gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); subsubmenu = gtk_menu_new(); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), subsubmenu); NOALLOC(menuitem); /* ** This sets up menu items and callbacks for all the note play ** and is quite a bit neater than the old stuff. */ noteplay_setup (subsubmenu, view, accel_group); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); menuitem = gtk_check_menu_item_new_with_label(_("Toggle monitoring")); gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(menuitem), view->sample->play_head->monitor); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(monitor_toggle_cb), view); gtk_menu_item_set_accel_path (GTK_MENU_ITEM(menuitem), "/Playback/Transport/Toggle monitoring"); gtk_widget_show(menuitem); view->monitor_checkmenu = menuitem; menuitem = gtk_check_menu_item_new_with_label(_("Toggle looping")); gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(menuitem), view->sample->play_head->looping); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(loop_toggle_cb), view); gtk_menu_item_set_accel_path (GTK_MENU_ITEM(menuitem), "/Playback/Transport/Toggle looping"); gtk_widget_show(menuitem); view->loop_checkmenu = menuitem; menuitem = gtk_check_menu_item_new_with_label(_("Toggle muting")); gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(menuitem), view->sample->play_head->mute); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(mute_toggle_cb), view); gtk_menu_item_set_accel_path (GTK_MENU_ITEM(menuitem), "/Playback/Transport/Toggle muting"); gtk_widget_show(menuitem); view->mute_checkmenu = menuitem; menuitem = gtk_check_menu_item_new_with_label(_("Toggle reverse playback")); gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(menuitem), view->sample->play_head->reverse); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(playrev_toggle_cb), view); gtk_widget_show(menuitem); gtk_menu_item_set_accel_path (GTK_MENU_ITEM(menuitem), "/Playback/Transport/Toggle reverse playback"); gtk_accel_map_add_entry ("/Playback/Transport/Toggle reverse playback", GDK_quoteleft, GDK_BUTTON1_MASK); view->playrev_checkmenu = menuitem; menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); menuitem = create_view_menu_item (submenu, _("Pause"), "/Playback/Pause", view, pause_playback_cb, FALSE, 0, 0, view); NOALLOC(menuitem); menuitem = create_view_menu_item (submenu, _("Stop"), "/Playback/Stop", view, stop_playback_cb, FALSE, GDK_Return, GDK_BUTTON1_MASK, view); NOALLOC(menuitem); menuitem = gtk_menu_item_new_with_label (_("Help")); MENU_APPEND(m, menuitem); gtk_widget_show(menuitem); submenu = gtk_menu_new (); gtk_menu_item_set_submenu (GTK_MENU_ITEM(menuitem), submenu); menuitem = gtk_menu_item_new_with_label (_("About MP3 export...")); gtk_menu_append (GTK_MENU(submenu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(mp3_unsupported_dialog), NULL); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label (_("About Sweep ...")); gtk_menu_append (GTK_MENU(submenu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(about_dialog_create), NULL); gtk_widget_show(menuitem); return accel_group; } /* * create_context_menu_sel (view) * * Creates a context menu for operations on a selection */ static GtkWidget * create_context_menu_sel (sw_view * view) { GtkWidget * menu; GtkWidget * menuitem; GtkWidget * submenu; SampleDisplay * s = SAMPLE_DISPLAY(view->display); menu = gtk_menu_new (); /* Zoom */ menuitem = gtk_menu_item_new_with_label(_("Zoom to selection")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(zoom_to_sel_cb), s); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label(_("Zoom normal")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(zoom_norm_cb), s); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label(_("Zoom all")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(zoom_all_cb), view); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(menu), menuitem); gtk_widget_show(menuitem); /* Edit */ menuitem = gtk_menu_item_new_with_label(_("Edit")); gtk_menu_append (GTK_MENU(menu), menuitem); gtk_widget_show(menuitem); submenu = gtk_menu_new(); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), submenu); NOMODIFY(menuitem); menuitem = gtk_menu_item_new_with_label(_("Cut")); gtk_menu_append(GTK_MENU(submenu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(cut_cb), view); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label(_("Copy")); gtk_menu_append(GTK_MENU(submenu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(copy_cb), view); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label(_("Clear")); gtk_menu_append(GTK_MENU(submenu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(clear_cb), view); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label(_("Crop")); gtk_menu_append(GTK_MENU(submenu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(crop_cb), view); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(submenu), menuitem); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label(_("Paste: Insert")); gtk_menu_append(GTK_MENU(submenu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(paste_cb), view); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label(_("Paste: Mix")); gtk_menu_append(GTK_MENU(submenu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(paste_mix_cb), view); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label(_("Paste: Crossfade")); gtk_menu_append(GTK_MENU(submenu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(paste_xfade_cb), view); gtk_widget_show(menuitem); /* Filters */ menuitem = gtk_menu_item_new_with_label(_("Process")); gtk_menu_append (GTK_MENU(menu), menuitem); gtk_widget_show(menuitem); submenu = create_proc_menu (view, NULL); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), submenu); NOMODIFY(menuitem); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(menu), menuitem); gtk_widget_show(menuitem); /* Select */ menuitem = gtk_menu_item_new_with_label(_("Invert selection")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(select_invert_cb), s); gtk_widget_show(menuitem); NOMODIFY(menuitem); menuitem = gtk_menu_item_new_with_label(_("Select all")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(select_all_cb), s); gtk_widget_show(menuitem); NOMODIFY(menuitem); menuitem = gtk_menu_item_new_with_label(_("Select none")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(select_none_cb), s); gtk_widget_show(menuitem); NOMODIFY(menuitem); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(menu), menuitem); gtk_widget_show(menuitem); /* View */ menuitem = gtk_menu_item_new_with_label(_("New View")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(view_new_cb), s); gtk_widget_show(menuitem); #if 0 menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(menu), menuitem); gtk_widget_show(menuitem); /* Properties */ menuitem = gtk_menu_item_new_with_label(_("File properties ...")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(show_info_dialog_cb), view); gtk_widget_show(menuitem); #endif return menu; } /* * create_context_menu_point (view) * * Creates a context menu for point (cursor) operations, ie. when * no selection is active */ static GtkWidget * create_context_menu_point (sw_view * view) { GtkWidget * menu; GtkWidget * menuitem; SampleDisplay * s = SAMPLE_DISPLAY(view->display); menu = gtk_menu_new (); /* Zoom */ menuitem = gtk_menu_item_new_with_label(_("Zoom normal")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(zoom_norm_cb), s); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new_with_label(_("Zoom all")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(zoom_all_cb), view); gtk_widget_show(menuitem); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(menu), menuitem); gtk_widget_show(menuitem); /* Edit */ menuitem = gtk_menu_item_new_with_label(_("Paste")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(paste_cb), view); gtk_widget_show(menuitem); NOMODIFY(menuitem); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(menu), menuitem); gtk_widget_show(menuitem); /* Select */ menuitem = gtk_menu_item_new_with_label(_("Select all")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(select_all_cb), s); gtk_widget_show(menuitem); NOMODIFY(menuitem); menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(menu), menuitem); gtk_widget_show(menuitem); /* View */ menuitem = gtk_menu_item_new_with_label(_("New View")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(view_new_cb), s); gtk_widget_show(menuitem); #if 0 menuitem = gtk_menu_item_new(); /* Separator */ gtk_menu_append(GTK_MENU(menu), menuitem); gtk_widget_show(menuitem); /* Properties */ menuitem = gtk_menu_item_new_with_label(_("File properties ...")); gtk_menu_append(GTK_MENU(menu), menuitem); g_signal_connect (G_OBJECT(menuitem), "activate", G_CALLBACK(show_info_dialog_cb), view); gtk_widget_show(menuitem); #endif return menu; } static gint view_destroy_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sample_display_stop_marching_ants (SAMPLE_DISPLAY(view->display)); if (view->sample->op_progress_tag != -1) gtk_timeout_remove(view->sample->op_progress_tag); cancel_active_op (view->sample); sample_remove_view(view->sample, view); gtk_widget_destroy (GTK_WIDGET (view->display)); return (FALSE); } static void db_ruler_changed_cb (GtkWidget * widget, gpointer data) { GtkRuler * ruler = GTK_RULER(widget); sw_view * view = (sw_view *)data; view_set_vzoom (view, ruler->lower, ruler->upper); } static void view_refresh_db_rulers (sw_view * view) { int i, old_channels, new_channels; GtkWidget * vbox = view->db_rulers_vbox; GList * gl; GtkWidget * db_ruler; old_channels = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(vbox), "default")); new_channels = view->sample->sounddata->format->channels; if (old_channels == 0 || old_channels != new_channels) { for (gl = view->db_rulers; gl; gl = gl->next) { g_signal_handlers_disconnect_matched(GTK_OBJECT(view->window), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, gl->data); gtk_widget_destroy (GTK_WIDGET(gl->data)); } g_list_free (view->db_rulers); view->db_rulers = NULL; g_object_set_data (G_OBJECT(vbox), "default", GINT_TO_POINTER(new_channels)); for (i = 0; i < new_channels; i++) { db_ruler = db_ruler_new (); gtk_box_pack_start (GTK_BOX(vbox), db_ruler, TRUE, TRUE, 0); gtk_ruler_set_range (GTK_RULER(db_ruler), -1.0, 1.0, 0, 2.0); gtk_widget_show (db_ruler); g_signal_connect_swapped(GTK_OBJECT(view->window), "motion_notify_event", G_CALLBACK(GTK_WIDGET_GET_CLASS(db_ruler)->motion_notify_event), GTK_OBJECT (db_ruler)); g_signal_connect (G_OBJECT(db_ruler), "changed", G_CALLBACK(db_ruler_changed_cb), view); view->db_rulers = g_list_append (view->db_rulers, db_ruler); } } for (gl = view->db_rulers; gl; gl = gl->next) { db_ruler = GTK_WIDGET(gl->data); gtk_ruler_set_range (GTK_RULER(db_ruler), view->vlow, view->vhigh, 0, 2.0); } } static void view_rate_changed_cb (GtkWidget * widget, gpointer data) { sw_view * v = (sw_view *)data; sw_sample * s = v->sample; s->rate = 1.0 - GTK_ADJUSTMENT(v->rate_adj)->value/1000.0; } static void view_rate_zeroed_cb (GtkWidget * Widget, gpointer data) { sw_view * v = (sw_view *)data; sw_sample * s = v->sample; s->rate = 1.0; gtk_adjustment_set_value (GTK_ADJUSTMENT(v->rate_adj), 0.0); } static void view_gain_changed_cb (GtkWidget * widget, gpointer data) { sw_view * v = (sw_view *)data; head_set_gain (v->sample->play_head, GTK_ADJUSTMENT (v->gain_adj)->value / 10.0); } static void view_set_pos_indicator_cb (GtkWidget * widget, gpointer data) { SampleDisplay * sd = SAMPLE_DISPLAY(data); sw_view * view = sd->view; #define BUF_LEN 16 char buf[BUF_LEN]; if (sd->mouse_offset >= 0) { snprint_time (buf, BUF_LEN, frames_to_time (view->sample->sounddata->format, sd->mouse_offset)); gtk_label_set_text (GTK_LABEL(view->pos), buf); } else { gtk_label_set_text (GTK_LABEL(view->pos), NO_TIME); } #undef BUF_LEN } static gint menu_button_handler (GtkWidget * widget, GdkEvent * event) { GtkMenu * menu; GdkEventButton *event_button; g_return_val_if_fail (widget != NULL, FALSE); g_return_val_if_fail (GTK_IS_MENU (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); menu = GTK_MENU (widget); if (event->type == GDK_BUTTON_PRESS) { event_button = (GdkEventButton *) event; gtk_menu_popup (menu, NULL, NULL, NULL, NULL, event_button->button, event_button->time); return TRUE; } return FALSE; } #define VIEW_TOOLBAR_BUTTON SW_TOOLBAR_BUTTON #define VIEW_TOOLBAR_TOGGLE_BUTTON SW_TOOLBAR_TOGGLE_BUTTON #define VIEW_TOOLBAR_RADIO_BUTTON SW_TOOLBAR_RADIO_BUTTON #if 0 typedef enum { VIEW_TOOLBAR_BUTTON, VIEW_TOOLBAR_TOGGLE_BUTTON, VIEW_TOOLBAR_RADIO_BUTTON, } view_toolbar_button_type; static GtkWidget * create_pixmap_button (GtkWidget * widget, gchar ** xpm_data, const gchar * tip_text, const gchar * custom_name, view_toolbar_button_type button_type, GCallback clicked, GCallback pressed, GCallback released, gpointer data) { GtkWidget * pixmap; GtkWidget * button; GtkTooltips * tooltips; switch (button_type) { case VIEW_TOOLBAR_TOGGLE_BUTTON: button = gtk_toggle_button_new (); break; case VIEW_TOOLBAR_RADIO_BUTTON: button = gtk_radio_button_new (NULL); break; case VIEW_TOOLBAR_BUTTON: default: button = gtk_button_new (); break; } if (xpm_data != NULL) { pixmap = create_widget_from_xpm (widget, xpm_data); gtk_widget_show (pixmap); gtk_container_add (GTK_CONTAINER (button), pixmap); } if (tip_text != NULL) { tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, button, tip_text, NULL); } if (style != NULL) { gtk_widget_set_style (button, style); } if (clicked != NULL) { g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK(clicked), data); } if (pressed != NULL) { g_signal_connect (G_OBJECT(button), "pressed", G_CALLBACK(pressed), data); } if (released != NULL) { g_signal_connect (G_OBJECT(button), "released", G_CALLBACK(released), data); } return button; } #endif static void scrub_clicked_cb (GtkWidget * widget, GdkEventButton * event, gpointer data) { sw_view * view = (sw_view *)data; int width; sw_framecount_t offset; width = widget->allocation.width; offset = view->start + (view->end - view->start) * event->x / width; sample_set_playmarker (view->sample, offset, TRUE); sample_set_scrubbing (view->sample, TRUE); } static void scrub_motion_cb (GtkWidget * widget, GdkEventMotion * event, gpointer data) { sw_view * view = (sw_view *)data; int width; sw_framecount_t offset; gdk_window_set_cursor (widget->window, sweep_cursors[SWEEP_CURSOR_NEEDLE]); if (event->state & (GDK_BUTTON1_MASK|GDK_BUTTON2_MASK|GDK_BUTTON3_MASK)) { width = widget->allocation.width; offset = view->start + (view->end - view->start) * event->x / width; sample_set_playmarker (view->sample, offset, TRUE); } } static void scrub_released_cb (GtkWidget * widget, GdkEventButton * event, gpointer data) { sw_view * view = (sw_view *)data; sample_set_scrubbing (view->sample, FALSE); } static void vzoom_clicked_cb (GtkWidget * widget, GdkEventButton * event, gpointer data) { /* sw_view * view = (sw_view *)data;*/ } static void vzoom_motion_cb (GtkWidget * widget, GdkEventMotion * event, gpointer data) { /* sw_view * view = (sw_view *)data;*/ } static void vzoom_released_cb (GtkWidget * widget, GdkEventButton * event, gpointer data) { /* sw_view * view = (sw_view *)data;*/ } sw_view * view_new(sw_sample * sample, sw_framecount_t start, sw_framecount_t end, gfloat gain) { sw_view * view; gint screen_width, screen_height; gint win_width, win_height; GtkWidget * window; GtkWidget * main_vbox; GtkWidget * table; GtkWidget * hbox; GtkWidget * vbox; GtkWidget * handlebox; GtkWidget * separator; GtkWidget * ebox; GtkWidget * time_ruler; GtkWidget * scrollbar; GtkWidget * rate_vbox; GtkObject * rate_adj; GtkWidget * rate_vscale; GtkWidget * lcdbox; GtkWidget * imagebox; GtkObject * gain_adj; GtkWidget * tool_hbox; GtkWidget * gain_hscale; GtkWidget * menu_button; GtkWidget * button; GtkWidget * arrow; GtkWidget * pixmap; GtkWidget * progress; GtkWidget * frame; GtkWidget * label; #if 0 GtkWidget * entry; #endif #if 0 GtkWidget * toolbar; #endif #ifdef DEVEL_CODE GtkWidget * notebook; #endif GtkAccelGroup * accel_group; GtkTooltips * tooltips; GList * zoom_combo_items; GtkWidget * zoom_combo; gfloat step = 1.0; view = g_malloc0 (sizeof(sw_view)); view->sample = sample; view->start = start; view->end = end; view->vlow = SW_AUDIO_T_MIN; view->vhigh = SW_AUDIO_T_MAX; /* view->gain = gain;*/ view->current_tool = TOOL_SELECT; view->repeater_tag = 0; view->following = TRUE; view->noready_widgets = NULL; view->nomodify_widgets = NULL; view->noalloc_widgets = NULL; view->channelops_widgets = NULL; #if 0 win_width = CLAMP (sample->sounddata->nr_frames / 150, VIEW_MIN_WIDTH, VIEW_MAX_WIDTH); win_height = VIEW_DEFAULT_HEIGHT_PER_CHANNEL * MIN (2, sample->sounddata->format->channels); #else screen_width = gdk_screen_width (); screen_height = gdk_screen_height (); if (sample->views == NULL) { win_height = screen_height / 4; } else { win_height = screen_height / 8; } win_width = (win_height * 2 * 1618) / 1000; win_height *= MIN (2, sample->sounddata->format->channels); #endif window = gtk_window_new(GTK_WINDOW_TOPLEVEL); sweep_set_window_icon (GTK_WINDOW(window)); gtk_window_set_default_size (GTK_WINDOW(window), win_width, win_height); view->window = window; g_signal_connect (G_OBJECT(window), "destroy", G_CALLBACK(view_destroy_cb), view); main_vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(window), main_vbox); gtk_widget_show (main_vbox); handlebox = gtk_handle_box_new (); gtk_box_pack_start (GTK_BOX (main_vbox), handlebox, FALSE, TRUE, 0); gtk_widget_show (handlebox); view->menubar = gtk_menu_bar_new (); gtk_container_add (GTK_CONTAINER (handlebox), view->menubar); gtk_widget_show (view->menubar); /* file toolbar */ handlebox = gtk_handle_box_new (); gtk_handle_box_set_shadow_type (GTK_HANDLE_BOX(handlebox), GTK_SHADOW_NONE); gtk_box_pack_start (GTK_BOX (main_vbox), handlebox, FALSE, TRUE, 0); gtk_widget_show (handlebox); /* gtk_widget_set_style (handlebox, style_dark_grey);*/ hbox = gtk_hbox_new (FALSE, 8); gtk_container_add (GTK_CONTAINER (handlebox), hbox); gtk_widget_show (hbox); gtk_widget_set_size_request (hbox, -1, 26); separator = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX (hbox), separator, FALSE, TRUE, 2); gtk_widget_show (separator); /* File op buttons */ tool_hbox = gtk_hbox_new (TRUE, 2); gtk_box_pack_start (GTK_BOX (hbox), tool_hbox, FALSE, TRUE, 0); gtk_widget_show (tool_hbox); button = create_pixmap_button (window, new_xpm, _("New ..."), NULL, VIEW_TOOLBAR_BUTTON, G_CALLBACK (sample_new_empty_cb), NULL, NULL, view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); button = create_pixmap_button (window, open_xpm, _("Open ..."), NULL, VIEW_TOOLBAR_BUTTON, G_CALLBACK (sample_load_cb), NULL, NULL, window); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); button = create_pixmap_button (window, save_xpm, _("Save"), NULL, VIEW_TOOLBAR_BUTTON, G_CALLBACK (sample_save_cb), NULL, NULL, view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOMODIFY(button); button = create_pixmap_button (window, saveas_xpm, _("Save as ..."), NULL, VIEW_TOOLBAR_BUTTON, G_CALLBACK (sample_save_as_cb), NULL, NULL, view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOMODIFY(button); separator = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX (hbox), separator, FALSE, TRUE, 2); gtk_widget_show (separator); /* Edit buttons */ tool_hbox = gtk_hbox_new (TRUE, 2); gtk_box_pack_start (GTK_BOX (hbox), tool_hbox, FALSE, TRUE, 0); gtk_widget_show (tool_hbox); button = create_pixmap_button (window, cut_xpm, _("Cut selection to clipboard"), NULL, VIEW_TOOLBAR_BUTTON, G_CALLBACK (cut_cb), NULL, NULL, view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOMODIFY(button); button = create_pixmap_button (window, copy_xpm, _("Copy selection to clipboard"), NULL, VIEW_TOOLBAR_BUTTON, G_CALLBACK (copy_cb), NULL, NULL, view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOMODIFY(button); button = create_pixmap_button (window, paste_xpm, _("Paste: insert clipboard at cursor position"), NULL, VIEW_TOOLBAR_BUTTON, G_CALLBACK (paste_cb), NULL, NULL, view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOMODIFY(button); button = create_pixmap_button (window, pastemix_xpm, _("Paste: mix clipboard in from cursor position"), NULL, VIEW_TOOLBAR_BUTTON, G_CALLBACK (paste_mix_cb), NULL, NULL, view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOMODIFY(button); button = create_pixmap_button (window, pastexfade_xpm, _("Paste: fade clipboard in from cursor position"), NULL, VIEW_TOOLBAR_BUTTON, G_CALLBACK (paste_xfade_cb), NULL, NULL, view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOMODIFY(button); separator = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX (hbox), separator, FALSE, TRUE, 2); gtk_widget_show (separator); button = create_pixmap_button (window, crop_xpm, _("Crop"), NULL, VIEW_TOOLBAR_BUTTON, G_CALLBACK (crop_cb), NULL, NULL, view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOMODIFY(button); separator = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX (hbox), separator, FALSE, TRUE, 2); gtk_widget_show (separator); /* Undo/Redo */ tool_hbox = gtk_hbox_new (TRUE, 2); gtk_box_pack_start (GTK_BOX (hbox), tool_hbox, FALSE, TRUE, 0); gtk_widget_show (tool_hbox); button = create_pixmap_button (window, undo_xpm, _("Undo"), NULL, VIEW_TOOLBAR_BUTTON, G_CALLBACK (undo_cb), NULL, NULL, view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOMODIFY(button); button = create_pixmap_button (window, redo_xpm, _("Redo"), NULL, VIEW_TOOLBAR_BUTTON, G_CALLBACK (redo_cb), NULL, NULL, view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOMODIFY(button); separator = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX (hbox), separator, FALSE, TRUE, 4); gtk_widget_show (separator); /* TOOLS */ ebox = gtk_event_box_new (); gtk_box_pack_start (GTK_BOX (hbox), ebox, FALSE, FALSE, 0); gtk_widget_show (ebox); gtk_widget_set_style (ebox, style_light_grey); tool_hbox = gtk_hbox_new (TRUE, 4); gtk_container_add (GTK_CONTAINER(ebox), tool_hbox); gtk_widget_show (tool_hbox); view->tool_buttons = NULL; button = create_pixmap_button (window, hand_xpm, _("Hand tool"), style_light_grey, VIEW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (view_set_tool_cb), NULL, NULL, view); g_object_set_data (G_OBJECT(button), "default", GINT_TO_POINTER(TOOL_HAND)); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, FALSE, 0); gtk_widget_show (button); view->tool_buttons = g_list_append (view->tool_buttons, button); button = create_pixmap_button (window, select_xpm, _("Selector tool"), style_light_grey, VIEW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (view_set_tool_cb), NULL, NULL, view); g_object_set_data (G_OBJECT(button), "default", GINT_TO_POINTER(TOOL_SELECT)); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, FALSE, 0); gtk_widget_show (button); view->tool_buttons = g_list_append (view->tool_buttons, button); NOMODIFY(button); button = create_pixmap_button (window, scrub_xpm, _("\"Scrubby\" the scrub tool"), style_light_grey, VIEW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (view_set_tool_cb), NULL, NULL, view); g_object_set_data (G_OBJECT(button), "default", GINT_TO_POINTER(TOOL_SCRUB)); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, FALSE, 0); gtk_widget_show (button); view->tool_buttons = g_list_append (view->tool_buttons, button); #ifdef DEVEL_CODE /* Pencil & Noise -- these need undos */ button = create_pixmap_button (window, pencil_xpm, _("Pencil tool"), style_light_grey, VIEW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (view_set_tool_cb), NULL, NULL, view); g_object_set_data (G_OBJECT(button), "default", GINT_TO_POINTER(TOOL_PENCIL)); gtk_box_pack_start (GTK_BOX (tool_hbox), button, TRUE, TRUE, 0); gtk_widget_show (button); view->tool_buttons = g_list_append (view->tool_buttons, button); button = create_pixmap_button (window, spraycan_xpm, _("Noise tool"), style_light_grey, VIEW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (view_set_tool_cb), NULL, NULL, view); g_object_set_data (G_OBJECT(button), "default", GINT_TO_POINTER(TOOL_NOISE)); gtk_box_pack_start (GTK_BOX (tool_hbox), button, TRUE, TRUE, 0); gtk_widget_show (button); view->tool_buttons = g_list_append (view->tool_buttons, button); #endif separator = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX (hbox), separator, FALSE, TRUE, 4); gtk_widget_show (separator); /* ZOOM */ tool_hbox = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (hbox), tool_hbox, FALSE, TRUE, 0); gtk_widget_show (tool_hbox); gtk_widget_set_style (tool_hbox, style_dark_grey); #if 0 /* Zoom all */ button = create_pixmap_button (window, zoom_all_xpm, _("Zoom all"), NULL, VIEW_TOOLBAR_BUTTON, G_CALLBACK (zoom_all_cb), NULL, NULL, view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); #endif /* Zoom in */ button = create_pixmap_button (window, zoom_in_xpm, _("Zoom in"), NULL, VIEW_TOOLBAR_BUTTON, NULL, G_CALLBACK (zoom_in_pressed_cb), G_CALLBACK (repeater_released_cb), view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); /* Zoom out */ button = create_pixmap_button (window, zoom_out_xpm, _("Zoom out"), NULL, VIEW_TOOLBAR_BUTTON, NULL, G_CALLBACK (zoom_out_pressed_cb), G_CALLBACK (repeater_released_cb), view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); /* Zoom combo */ zoom_combo_items = NULL; zoom_combo_items = g_list_append (zoom_combo_items, "All"); zoom_combo_items = g_list_append (zoom_combo_items, "01:00:00.000"); zoom_combo_items = g_list_append (zoom_combo_items, "00:30:00.000"); zoom_combo_items = g_list_append (zoom_combo_items, "00:05:00.000"); zoom_combo_items = g_list_append (zoom_combo_items, "00:01:00.000"); zoom_combo_items = g_list_append (zoom_combo_items, "00:00:30.000"); zoom_combo_items = g_list_append (zoom_combo_items, "00:00:15.000"); zoom_combo_items = g_list_append (zoom_combo_items, "00:00:05.000"); zoom_combo_items = g_list_append (zoom_combo_items, "00:00:01.000"); zoom_combo_items = g_list_append (zoom_combo_items, "00:00:00.500"); zoom_combo_items = g_list_append (zoom_combo_items, "00:00:00.100"); zoom_combo_items = g_list_append (zoom_combo_items, "00:00:00.010"); zoom_combo_items = g_list_append (zoom_combo_items, "00:00:00.001"); zoom_combo = gtk_combo_new (); /* connect hack_max_combo_width_cb to the theme change signal so zoom_combo is * kept at an appropriate size regardless of font or theme changes. * * replace with gtk_entry_set_width_chars() when GTK+-2.6 is used by mainstream distro's */ g_signal_connect (G_OBJECT(GTK_COMBO(zoom_combo)->entry), "style_set", G_CALLBACK(hack_max_combo_width_cb), NULL); gtk_combo_set_popdown_strings (GTK_COMBO(zoom_combo), zoom_combo_items); gtk_combo_set_value_in_list (GTK_COMBO(zoom_combo), FALSE, TRUE); /* unfortunately we can't just edit the zoom value, because the entry * reports every keystroke as a change, and not the 'enter' key. */ gtk_editable_set_editable (GTK_EDITABLE (GTK_COMBO(zoom_combo)->entry), TRUE); /*gtk_widget_set_style (GTK_COMBO(zoom_combo)->button, style_dark_grey);*/ g_signal_connect (G_OBJECT(GTK_COMBO(zoom_combo)->entry), "changed", G_CALLBACK(zoom_combo_changed_cb), view); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, GTK_COMBO(zoom_combo)->button, _("Visible length"), NULL); view->zoom_combo = zoom_combo; gtk_box_pack_start (GTK_BOX (tool_hbox), view->zoom_combo, FALSE, FALSE, 0); gtk_widget_show (zoom_combo); button = create_pixmap_button (window, scroll_xpm, _("Autoscroll: follow playback cursor"), NULL, VIEW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (follow_toggled_cb), NULL, NULL, view); gtk_button_set_relief (GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_widget_set_style (button, style_light_grey); gtk_signal_handler_block_by_data (GTK_OBJECT(button), view); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(button), view->following); g_signal_handlers_unblock_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); view->follow_toggle = button; #ifdef DEVEL_CODE button = gtk_hseparator_new (); gtk_box_pack_start (GTK_BOX(main_vbox), button, FALSE, TRUE, 0); gtk_widget_show (button); /* notebook */ notebook = gtk_notebook_new (); gtk_box_pack_start (GTK_BOX(main_vbox), notebook, TRUE, TRUE, 0); gtk_widget_show (notebook); gtk_widget_set_style (notebook, style_light_grey); gtk_container_set_border_width (GTK_CONTAINER(notebook), 0); if (TRUE) { gtk_notebook_set_show_tabs (GTK_NOTEBOOK(notebook), TRUE); } #endif /* main table */ table = gtk_table_new (3, 3, FALSE); gtk_table_set_col_spacing (GTK_TABLE(table), 0, 1); gtk_table_set_col_spacing (GTK_TABLE(table), 1, 2); gtk_table_set_row_spacing (GTK_TABLE(table), 0, 1); gtk_table_set_row_spacing (GTK_TABLE(table), 1, 2); gtk_container_set_border_width (GTK_CONTAINER(table), 2); #ifdef DEVEL_CODE label = gtk_label_new (g_basename(sample->pathname)); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), table, label); #else gtk_box_pack_start (GTK_BOX(main_vbox), table, TRUE, TRUE, 0); #endif gtk_widget_show (table); /* menu button */ menu_button = gtk_button_new (); gtk_table_attach (GTK_TABLE(table), menu_button, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0); gtk_widget_show (menu_button); arrow = gtk_arrow_new (GTK_ARROW_RIGHT, GTK_SHADOW_NONE); gtk_container_add (GTK_CONTAINER (menu_button), arrow); gtk_widget_show (arrow); /* time_ruler */ ebox = gtk_event_box_new (); gtk_table_attach (GTK_TABLE(table), ebox, 1, 2, 0, 1, GTK_EXPAND|GTK_FILL|GTK_SHRINK, GTK_FILL, 0, 0); g_signal_connect (G_OBJECT(ebox), "button-press-event", G_CALLBACK(scrub_clicked_cb), view); g_signal_connect (G_OBJECT(ebox), "motion-notify-event", G_CALLBACK(scrub_motion_cb), view); g_signal_connect (G_OBJECT(ebox), "button-release-event", G_CALLBACK(scrub_released_cb), view); gtk_widget_show (ebox); time_ruler = time_ruler_new (); gtk_container_add (GTK_CONTAINER(ebox), time_ruler); gtk_ruler_set_range (GTK_RULER(time_ruler), start, end, start, end); time_ruler_set_format (TIME_RULER(time_ruler), sample->sounddata->format); gtk_widget_show (time_ruler); view->time_ruler = time_ruler; /* tmp GTK__GET_CLASS (object) */ g_signal_connect_swapped (GTK_OBJECT (table), "motion_notify_event", G_CALLBACK(GTK_WIDGET_GET_CLASS(time_ruler)->motion_notify_event), GTK_OBJECT (time_ruler)); /* db_ruler */ ebox = gtk_event_box_new (); gtk_table_attach (GTK_TABLE(table), ebox, 0, 1, 1, 2, GTK_FILL, GTK_EXPAND|GTK_SHRINK|GTK_FILL, 0, 0); g_signal_connect (G_OBJECT(ebox), "button-press-event", G_CALLBACK(vzoom_clicked_cb), view); g_signal_connect (G_OBJECT(ebox), "motion-notify-event", G_CALLBACK(vzoom_motion_cb), view); g_signal_connect (G_OBJECT(ebox), "button-release-event", G_CALLBACK(vzoom_released_cb), view); gtk_widget_show (ebox); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, ebox, _("Vertical zoom [Shift + Arrow Up/Down]"), NULL); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(ebox), vbox); gtk_widget_show (vbox); view->db_rulers_vbox = vbox; view->db_rulers = NULL; view_refresh_db_rulers (view); /* display */ view->display = sample_display_new(); gtk_table_attach (GTK_TABLE(table), view->display, 1, 2, 1, 2, GTK_EXPAND|GTK_FILL|GTK_SHRINK, GTK_EXPAND|GTK_FILL|GTK_SHRINK, 0, 0); sample_display_set_view(SAMPLE_DISPLAY(view->display), view); g_signal_connect (G_OBJECT(view->display), "selection-changed", G_CALLBACK(sd_sel_changed_cb), view); g_signal_connect (G_OBJECT(view->display), "window-changed", G_CALLBACK(sd_win_changed_cb), view); gtk_widget_show(view->display); /* rate adjuster */ rate_vbox = gtk_vbox_new (FALSE, 0); gtk_table_attach (GTK_TABLE(table), rate_vbox, 2, 3, 1, 2, GTK_FILL, GTK_EXPAND|GTK_SHRINK|GTK_FILL, 0, 0); gtk_widget_show (rate_vbox); label = gtk_label_new ("+10%"); gtk_box_pack_start (GTK_BOX(rate_vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); #if 0 rate_adj = gtk_adjustment_new (50.0, /* value */ 0.0, /* lower */ 100.0, /* upper */ 0.001, /* step incr */ 0.001, /* page incr */ 0.001 /* page size */ ); #else rate_adj = gtk_adjustment_new (0.0, /* value */ -100.0, /* lower */ 100.0, /* upper */ 2.5, /* step incr */ 20.0, /* page incr */ 0.0 /* page size */ ); #endif /* view->rate = 1.0;*/ view->rate_adj = rate_adj; rate_vscale = gtk_vscale_new (GTK_ADJUSTMENT(rate_adj)); gtk_box_pack_start (GTK_BOX(rate_vbox), rate_vscale, TRUE, TRUE, 0); gtk_scale_set_draw_value (GTK_SCALE(rate_vscale), FALSE); gtk_range_set_update_policy (GTK_RANGE(rate_vscale), GTK_UPDATE_CONTINUOUS); gtk_widget_show (rate_vscale); g_signal_connect (G_OBJECT(rate_adj), "value_changed", G_CALLBACK(view_rate_changed_cb), view); label = gtk_label_new ("-10%"); gtk_box_pack_start (GTK_BOX(rate_vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); button = gtk_button_new_with_label ("0%"); gtk_box_pack_start (GTK_BOX(rate_vbox), button, FALSE, FALSE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(view_rate_zeroed_cb), view); /* scrollbar */ step = ((gfloat)(end - start)) / 10.0; if (step < 1.0) step = 1.0; view->adj = gtk_adjustment_new((gfloat)start, /* value */ (gfloat)0.0, /* start */ (gfloat)sample->sounddata->nr_frames, /* end */ step, /* step_incr */ (gfloat)(end-start), /* page_incr */ (gfloat)(end-start) /* page_size */ ); g_signal_connect (G_OBJECT(view->adj), "value-changed", G_CALLBACK(adj_value_changed_cb), view); g_signal_connect (G_OBJECT(view->adj), "changed", G_CALLBACK(adj_changed_cb), view); scrollbar = gtk_hscrollbar_new(GTK_ADJUSTMENT(view->adj)); gtk_table_attach (GTK_TABLE(table), scrollbar, 1, 2, 2, 3, GTK_EXPAND|GTK_FILL|GTK_SHRINK, GTK_FILL, 0, 0); gtk_widget_show(scrollbar); /* playback toolbar */ handlebox = gtk_handle_box_new (); gtk_box_pack_start (GTK_BOX (main_vbox), handlebox, FALSE, TRUE, 0); gtk_widget_show (handlebox); gtk_widget_set_style (handlebox, style_light_grey); hbox = gtk_hbox_new (FALSE, 8); gtk_container_add (GTK_CONTAINER (handlebox), hbox); gtk_widget_show (hbox); gtk_widget_set_usize (hbox, -1, 24); /* Record */ tool_hbox = gtk_hbox_new (TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), tool_hbox, FALSE, TRUE, 0); gtk_widget_show (tool_hbox); button = create_pixmap_button (window, record_dialog_xpm, _("Record ..."), style_red_grey, VIEW_TOOLBAR_BUTTON, G_CALLBACK (show_rec_dialog_cb), NULL, NULL, view); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOALLOC(button); #define PLAYPOS_LABEL #ifdef PLAYPOS_LABEL frame = gtk_frame_new (NULL); gtk_widget_set_style (frame, style_light_grey); gtk_box_pack_start (GTK_BOX(hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); lcdbox = gtk_event_box_new (); gtk_widget_set_style (lcdbox, style_LCD); gtk_container_add (GTK_CONTAINER(frame), lcdbox); gtk_widget_show (lcdbox); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, lcdbox, _("Cursor position (indicator)"), NULL); tool_hbox = gtk_hbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(lcdbox), tool_hbox); gtk_widget_show (tool_hbox); imagebox = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(tool_hbox), imagebox, FALSE, FALSE, 0); gtk_widget_show (imagebox); pixmap = create_widget_from_xpm (window, upleft_xpm); gtk_widget_show (pixmap); gtk_box_pack_start (GTK_BOX(imagebox), pixmap, FALSE, FALSE, 0); pixmap = create_widget_from_xpm (window, lowleft_xpm); gtk_widget_show (pixmap); gtk_box_pack_end (GTK_BOX(imagebox), pixmap, FALSE, FALSE, 0); label = gtk_label_new ("00:00:00.000"); gtk_box_pack_start (GTK_BOX(tool_hbox), label, TRUE, TRUE, 0); gtk_widget_show (label); view->play_pos = label; imagebox = gtk_vbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(tool_hbox), imagebox, FALSE, FALSE, 0); gtk_widget_show (imagebox); pixmap = create_widget_from_xpm (window, upright_xpm); gtk_widget_show (pixmap); gtk_box_pack_start (GTK_BOX(imagebox), pixmap, FALSE, FALSE, 0); pixmap = create_widget_from_xpm (window, lowright_xpm); gtk_widget_show (pixmap); gtk_box_pack_end (GTK_BOX(imagebox), pixmap, FALSE, FALSE, 0); #else entry = gtk_entry_new (); gtk_entry_set_text (GTK_ENTRY(entry), "00:00:00.000"); gtk_entry_set_editable (GTK_ENTRY(entry), FALSE); gtk_widget_set_style (entry, style_LCD); gtk_box_pack_start (GTK_BOX(hbox), entry, TRUE, TRUE, 0); gtk_widget_show (entry); view->play_pos = entry; #endif tool_hbox = gtk_hbox_new (TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), tool_hbox, FALSE, TRUE, 0); gtk_widget_show (tool_hbox); /* Play reverse */ button = create_pixmap_button (window, playrev_xpm, _("Reverse mode playback (toggle)"), style_green_grey, VIEW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (playrev_toggled_cb), NULL, NULL, view); g_signal_handlers_block_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(button), view->sample->play_head->reverse); g_signal_handlers_unblock_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); view->playrev_toggle = button; /* Loop */ button = create_pixmap_button (window, loop_xpm, _("Loop mode playback (toggle)"), style_green_grey, VIEW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (loop_toggled_cb), NULL, NULL, view); g_signal_handlers_block_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(button), view->sample->play_head->looping); g_signal_handlers_unblock_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); view->loop_toggle = button; /* Play */ tool_hbox = gtk_hbox_new (TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), tool_hbox, TRUE, TRUE, 0); gtk_widget_show (tool_hbox); button = create_pixmap_button (window, playpaus_xpm, /* _("Play all / Pause [Ctrl+Space / Enter]"),*/ _("Play all / Pause"), style_green_grey, VIEW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (play_view_button_cb), NULL, NULL, view); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOALLOC(button); view->play_toggle = button; /* Play selection */ button = create_pixmap_button (window, playpsel_xpm, /*_("Play selection / Pause [Space / Enter]"),*/ _("Play selection / Pause"), style_green_grey, VIEW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (play_view_sel_button_cb), NULL, NULL, view); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOALLOC(button); view->play_sel_toggle = button; /* Stop */ button = create_pixmap_button (window, stop_xpm, /*_("Stop playback [Space]"),*/ _("Stop playback"), style_green_grey, VIEW_TOOLBAR_BUTTON, G_CALLBACK (stop_playback_cb), NULL, NULL, view); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOALLOC(button); /* Beginning */ tool_hbox = gtk_hbox_new (TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), tool_hbox, FALSE, TRUE, 0); gtk_widget_show (tool_hbox); button = create_pixmap_button (window, prevtrk_xpm, _("Go to beginning"), style_green_grey, VIEW_TOOLBAR_BUTTON, G_CALLBACK (goto_start_cb), NULL, NULL, view); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOALLOC(button); /* Rewind */ button = create_pixmap_button (window, rew_xpm, _("Rewind"), style_green_grey, VIEW_TOOLBAR_BUTTON, NULL, G_CALLBACK (rewind_pressed_cb), G_CALLBACK (repeater_released_cb), view); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOALLOC(button); /* Fast forward */ button = create_pixmap_button (window, ff_xpm, _("Fast forward"), style_green_grey, VIEW_TOOLBAR_BUTTON, NULL, G_CALLBACK (ffwd_pressed_cb), G_CALLBACK (repeater_released_cb), view); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOALLOC(button); /* End */ button = create_pixmap_button (window, nexttrk_xpm, _("Go to the end"), style_green_grey, VIEW_TOOLBAR_BUTTON, G_CALLBACK (goto_end_cb), NULL, NULL, view); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); NOALLOC(button); /* gain */ tool_hbox = gtk_hbox_new (FALSE, 2); gtk_widget_show (tool_hbox); button = create_pixmap_button (window, mute_xpm, _("Muted playback (toggle)"), style_green_grey, VIEW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (mute_toggled_cb), NULL, NULL, view); g_signal_handlers_block_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(button), view->sample->play_head->mute); g_signal_handlers_unblock_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); gtk_widget_show (button); view->mute_toggle = button; pixmap = create_widget_from_xpm (window, vol_xpm); gtk_box_pack_start (GTK_BOX (tool_hbox), pixmap, FALSE, FALSE, 0); gtk_widget_show (pixmap); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, pixmap, _("Playback gain slider (volume)"), NULL); gain_adj = gtk_adjustment_new (view->sample->play_head->gain*10.0,/* value */ 0.0, /* lower */ 10.0, /* upper */ 0.17, /* step incr */ 1.6, /* page incr */ 0.0 /* page size */ ); view->gain_adj = gain_adj; gain_hscale = gtk_hscale_new (GTK_ADJUSTMENT(gain_adj)); gtk_scale_set_draw_value (GTK_SCALE(gain_hscale), FALSE); gtk_range_set_update_policy (GTK_RANGE(gain_hscale), GTK_UPDATE_CONTINUOUS); gtk_widget_show (gain_hscale); tooltips = gtk_tooltips_new (); gtk_tooltips_set_tip (tooltips, gain_hscale, _("Playback gain slider (volume)"), NULL); gtk_widget_set_style (gain_hscale, style_green_grey); g_signal_connect (G_OBJECT(gain_adj), "value_changed", G_CALLBACK(view_gain_changed_cb), view); gtk_box_pack_start (GTK_BOX(tool_hbox), gain_hscale, TRUE, TRUE, 0); /* Monitor */ button = create_pixmap_button (window, headphones_xpm, _("Monitor (toggle)"), style_green_grey, VIEW_TOOLBAR_TOGGLE_BUTTON, G_CALLBACK (monitor_toggled_cb), NULL, NULL, view); g_signal_handlers_block_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(button), view->sample->play_head->monitor); g_signal_handlers_unblock_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_box_pack_start (GTK_BOX (tool_hbox), button, TRUE, TRUE, 0); gtk_widget_show (button); view->monitor_toggle = button; NOALLOC(button); /* SYNC */ button = gtk_button_new_with_label (_("SYNC")); gtk_widget_set_style (button, style_green_grey); gtk_box_pack_start (GTK_BOX (tool_hbox), button, FALSE, TRUE, 0); /*gtk_widget_show (button);*/ NOALLOC(button); gtk_box_pack_start (GTK_BOX (hbox), tool_hbox, TRUE, TRUE, 0); /* Status line */ hbox = gtk_hbox_new (FALSE, 0); #if 0 gtk_table_attach (GTK_TABLE(table), hbox, 0, 3, 3, 4, GTK_FILL|GTK_SHRINK, GTK_FILL, 0, 0); #endif gtk_box_pack_start (GTK_BOX(main_vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); /* position indicator */ frame = gtk_frame_new (NULL); gtk_box_pack_start (GTK_BOX(hbox), frame, FALSE, FALSE, 0); gtk_widget_show (frame); tool_hbox = gtk_hbox_new (FALSE, 2); gtk_container_add (GTK_CONTAINER(frame), tool_hbox); gtk_widget_show (tool_hbox); pixmap = create_widget_from_xpm (window, mouse_xpm); gtk_box_pack_start (GTK_BOX(tool_hbox), pixmap, FALSE, FALSE, 0); gtk_widget_show (pixmap); label = gtk_label_new (NO_TIME); gtk_box_pack_start (GTK_BOX(tool_hbox), label, FALSE, FALSE, 0); /* connect hack_max_label_width_cb to the theme change signal so label is * kept at an appropriate size regardless of font or theme changes. * * replace with gtk_label_set_width_chars() when GTK+-2.6 is used by mainstream distro's */ g_signal_connect (G_OBJECT(label), "style_set", G_CALLBACK(hack_max_label_width_cb), NULL); gtk_widget_show (label); view->pos = label; /* progress bar */ frame = gtk_frame_new (NULL); gtk_box_pack_start (GTK_BOX(hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); tool_hbox = gtk_hbox_new (FALSE, 2); gtk_container_add (GTK_CONTAINER(frame), tool_hbox); gtk_widget_show (tool_hbox); progress = gtk_progress_bar_new (); gtk_box_pack_start (GTK_BOX(tool_hbox), progress, TRUE, TRUE, 0); gtk_progress_set_show_text (GTK_PROGRESS(progress), TRUE); gtk_widget_show (progress); view->progress = progress; button = gtk_button_new_with_label (_("Cancel")); gtk_box_pack_start (GTK_BOX(tool_hbox), button, FALSE, FALSE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(cancel_cb), view); NOREADY(button); /* status */ frame = gtk_frame_new (NULL); gtk_box_pack_start (GTK_BOX(hbox), frame, FALSE, TRUE, 0); gtk_widget_show (frame); tool_hbox = gtk_hbox_new (FALSE, 2); gtk_container_add (GTK_CONTAINER(frame), tool_hbox); gtk_widget_show (tool_hbox); label = gtk_label_new ("Sweep " VERSION); gtk_box_pack_start (GTK_BOX(tool_hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); view->status = label; button = gtk_button_new (); gtk_box_pack_start (GTK_BOX(tool_hbox), button, FALSE, FALSE, 0); gtk_widget_show (button); g_signal_connect (G_OBJECT(button), "clicked", G_CALLBACK(show_info_dialog_cb), view); pixmap = create_widget_from_xpm (window, info_xpm); gtk_container_add (GTK_CONTAINER(button), pixmap); gtk_widget_show (pixmap); /* Had to wait until view->display was created before * setting the menus up */ view->menu = gtk_menu_new (); accel_group = create_view_menu (view, view->menu); gtk_window_add_accel_group (GTK_WINDOW(view->window), accel_group); create_view_menu (view, view->menubar); view->menu_sel = create_context_menu_sel (view); view->menu_point = create_context_menu_point (view); g_signal_connect_swapped (G_OBJECT(menu_button), "button_press_event", G_CALLBACK(menu_button_handler), G_OBJECT(view->menu)); /* Had to wait till view->display was created to set these up */ g_signal_connect (G_OBJECT(view->display), "mouse-offset-changed", G_CALLBACK(view_set_pos_indicator_cb), view->display); #if 0 g_signal_connect_swapped (G_OBJECT(view->display), "motion_notify_event", G_CALLBACK(view_set_pos_indicator_cb), G_OBJECT(view->display)); #endif if (sample->sounddata->sels) sample_display_start_marching_ants (SAMPLE_DISPLAY(view->display)); view_refresh_title(view); view_default_status(view); view_refresh_tool_buttons (view); view_refresh_edit_mode (view); gtk_widget_show(window); view_zoom_normal (view); return view; } sw_view * view_new_all (sw_sample * sample, gfloat gain) { return view_new(sample, 0, sample->sounddata->nr_frames, gain); } void view_popup_context_menu (sw_view * view, guint button, guint32 activate_time) { GtkWidget * menu; if (view->sample->sounddata->sels == NULL) { menu = view->menu_point; } else { menu = view->menu_sel; } gtk_menu_popup (GTK_MENU(menu), NULL, NULL, NULL, NULL, button, activate_time); } /* * view_set_ends (v, start, end) * * set the endpoints shown by this view. */ void view_set_ends (sw_view * view, sw_framecount_t start, sw_framecount_t end) { GtkAdjustment * adj = GTK_ADJUSTMENT(view->adj); GtkWidget * entry; sw_framecount_t orig_length; sw_time_t length; #define BUF_LEN 16 gchar buf[BUF_LEN]; gfloat step; /* Clamp view to within bounds of sample */ orig_length = end - start; if(end > view->sample->sounddata->nr_frames) { end = view->sample->sounddata->nr_frames; start = end - orig_length; } if(start < 0) start = 0; /* Update duration displayed in zoom combo */ length = frames_to_time (view->sample->sounddata->format, end-start); snprint_time (buf, BUF_LEN, length); entry = GTK_COMBO(view->zoom_combo)->entry; g_signal_handlers_block_matched (G_OBJECT(entry), G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, view); gtk_entry_set_text (GTK_ENTRY(entry), buf); g_signal_handlers_unblock_matched (G_OBJECT(entry), G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, view); /* This check used to be at at the start of this function, but by * putting it down here we ensure the zoom combo displays the correct * length, and not a string like "All". */ if (start == view->start && end == view->end) return; /* Update main scrollbar */ step = ((gfloat)(end - start)) / 10.0; if (step < 1.0) step = 1.0; adj->value = (gfloat)start; adj->step_increment = step; adj->page_increment = (gfloat)(end - start); adj->page_size = (gfloat)(end - start); gtk_adjustment_changed(adj); /* Update ruler */ gtk_ruler_set_range (GTK_RULER(view->time_ruler), start, end, start, end); /* Update title etc. */ view_refresh_title(view); view_refresh_display(view); #undef BUF_LEN } void view_set_vzoom (sw_view * view, sw_audio_t low, sw_audio_t high) { sw_audio_t length; length = high - low; if (length > 2.0) { low = -1.0; high = 1.0; } else if (low < -1.0) { low = -1.0; high = low + length; } else if (high > 1.0) { high = 1.0; low = high - length; } view->vlow = low; view->vhigh = high; view_refresh_db_rulers (view); view_refresh_display (view); } void view_vzoom_in (sw_view * view, double ratio) { sw_audio_t oz, z; sw_audio_t nhigh, nlow; oz = view->vhigh - view->vlow; z = (sw_audio_t)((gdouble)oz / ratio); nlow = view->vlow + (oz - z)/2; nhigh = nlow + z; view_set_vzoom (view, nlow, nhigh); } void view_vzoom_out (sw_view * view, double ratio) { sw_audio_t oz, z; sw_audio_t nhigh, nlow; oz = view->vhigh - view->vlow; z = (sw_audio_t)((gdouble)oz * ratio); nlow = view->vlow + (oz - z)/2; nhigh = nlow + z; view_set_vzoom (view, nlow, nhigh); } static void view_clamp_to_offset (sw_view * view, sw_framecount_t * start, sw_framecount_t * end, sw_framecount_t offset) { sw_framecount_t length, width, nr_frames; length = *end - *start; width = SAMPLE_DISPLAY(view->display)->width; nr_frames = view->sample->sounddata->nr_frames; #ifdef SCROLL_SMOOTHLY if (!view->sample->play_head->scrubbing) { #else if (offset < *start || offset > *end) { #endif if (offset > nr_frames - length/2) { *start = nr_frames - length; *end = nr_frames; } else if (offset < length/2) { *start = 0; *end = length; } else if (length <= width * 8) { *start = offset - length/2; *end = *start + length; } else { #ifdef SCROLL_SMOOTHLY *start = offset - length/2; *end = *start + length; #else if (view->sample->play_head->reverse) { *end = offset; *start = *end - length; } else { *start = offset; *end = *start + length; } #endif } } } void view_zoom_to_playmarker (sw_view * view) { sw_framecount_t start, end; g_assert (view->following); start = view->start; end = view->end; view_clamp_to_offset (view, &start, &end, view->sample->user_offset); view_set_ends (view, start, end); } void view_zoom_to_offset (sw_view * view, sw_framecount_t offset) { sw_framecount_t start, end; start = view->start; end = view->end; view_clamp_to_offset (view, &start, &end, offset); view_set_ends (view, start, end); } void view_center_on (sw_view * view, sw_framecount_t offset) { sw_framecount_t vlen2; vlen2 = (view->end - view->start) / 2; view_set_ends (view, offset - vlen2, offset + vlen2); } void view_zoom_normal (sw_view * view) { sw_framecount_t length; length = MIN (view->sample->sounddata->nr_frames, SAMPLE_DISPLAY(view->display)->width * 1024); view_zoom_length (view, length); view_center_on (view, view->sample->user_offset); } void view_zoom_length (sw_view * view, sw_framecount_t length) { sw_framecount_t center; center = (view->end + view->start) / 2; view_set_ends (view, center - length/2, center + length/2); } void view_zoom_in (sw_view * view, double ratio) { sw_framecount_t nstart, nend, nlength, olength, offset, nr_frames; gboolean do_following; SampleDisplay * sd = SAMPLE_DISPLAY(view->display); olength = view->end - view->start; nlength = (sw_framecount_t)((double)olength / ratio); if(nlength <= DEFAULT_MIN_ZOOM) return; offset = view->sample->user_offset; /* zoom centred on the play marker if its visible, otherwise on * the middle of the view */ do_following = (view->following && offset >= view->start && offset <= view->end); if (do_following) { nr_frames = view->sample->sounddata->nr_frames; if (offset >= view->start && offset < view->end) { nstart = offset - (offset - view->start) / ratio; } else { nstart = offset - nlength/2; } if (nstart > nr_frames - nlength) { nstart = nr_frames - nlength; } else if (nstart < 0) { nstart = 0; } } else { nstart = view->start + (olength - nlength)/2; } sample_display_set_cursor(sd, sweep_cursors[SWEEP_CURSOR_ZOOM_IN]); nend = nstart+nlength; /* if (view->following) { view_clamp_to_playmarker (view, &nstart, &nend); } */ view_set_ends(view, nstart, nend); } void view_zoom_out (sw_view * view, double ratio) { sw_framecount_t nstart, nend, nlength, olength, offset, nr_frames; gboolean do_following; SampleDisplay * sd = SAMPLE_DISPLAY(view->display); olength = view->end - view->start; nlength = (sw_framecount_t)((double)olength * ratio); if (nlength < 0) return; /* sw_framecount_t multiplication overflow */ offset = view->sample->user_offset; /* zoom centred on the play marker if it's visible, otherwise on * the middle of the view */ do_following = (view->following && offset >= view->start && offset <= view->end); if (do_following) { nr_frames = view->sample->sounddata->nr_frames; if (offset >= view->start && offset < view->end) { nstart = offset - (offset - view->start) * ratio; } else { nstart = offset - nlength/2; } if (nstart > nr_frames - nlength) { nstart = nr_frames - nlength; } else if (nstart < 0) { nstart = 0; } } else { if (nlength > olength) { nstart = view->start - (nlength - olength)/2; } else { nstart = view->start + (olength - nlength)/2; } } if (nstart == view->start && (nstart+nlength) == view->end) return; sample_display_set_cursor(sd, sweep_cursors[SWEEP_CURSOR_ZOOM_OUT]); nend = nstart + nlength; view_set_ends(view, nstart, nend); } void view_zoom_to_sel (sw_view * view) { GList * gl; sw_sel * sel; gint sel_min, sel_max; if(!view->sample->sounddata->sels) return; gl = view->sample->sounddata->sels; sel = (sw_sel *)gl->data; sel_min = sel->sel_start; if (gl->next) for (gl = gl->next; gl->next; gl = gl->next); sel = (sw_sel *)gl->data; sel_max = sel->sel_end; view_set_ends(view, sel_min, sel_max); } void view_zoom_left (sw_view * view) { GtkAdjustment * adj = GTK_ADJUSTMENT(view->adj); adj->value -= adj->page_size; if(adj->value < adj->lower) { adj->value = adj->lower; } gtk_adjustment_value_changed (GTK_ADJUSTMENT(adj)); } void view_zoom_right (sw_view * view) { GtkAdjustment * adj = GTK_ADJUSTMENT(view->adj); adj->value += adj->page_size; if(adj->value > adj->upper) { adj->value = adj->upper; } gtk_adjustment_value_changed (GTK_ADJUSTMENT(adj)); } void view_zoom_all (sw_view * view) { sw_sample * s; s = view->sample; view_set_ends(view, 0, s->sounddata->nr_frames); } static void view_store_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; gint slot; slot = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "default")); if (slot < 0 || slot > 9) return; sample->stored_views[slot].start = view->start; sample->stored_views[slot].end = view->end; sample_set_tmp_message (sample, _("Remembered as area %d"), slot); } static void view_retrieve_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; sw_sample * sample = view->sample; gint slot; sw_framecount_t start, end; slot = GPOINTER_TO_INT(g_object_get_data (G_OBJECT(widget), "default")); if (slot < 0 || slot > 9) return; start = sample->stored_views[slot].start; end = sample->stored_views[slot].end; if (start == end) { sample_set_tmp_message (sample, _("No area remembered as %d"), slot); } else { view_set_ends (view, start, end); sample_set_tmp_message (sample, _("Zoomed to area %d"), slot); } } void view_refresh_edit_mode (sw_view * view) { GList * gl; GtkWidget * w; if (view->sample == NULL) return; switch (view->sample->edit_mode) { case SWEEP_EDIT_MODE_READY: for (gl = view->noready_widgets; gl; gl = gl->next) { w = (GtkWidget *)gl->data; gtk_widget_set_sensitive (w, FALSE); } for (gl = view->nomodify_widgets; gl; gl = gl->next) { w = (GtkWidget *)gl->data; gtk_widget_set_sensitive (w, TRUE); } for (gl = view->noalloc_widgets; gl; gl = gl->next) { w = (GtkWidget *)gl->data; gtk_widget_set_sensitive (w, TRUE); } if (view->sample->tmp_message_active) { view_set_tmp_message (view, view->sample->last_tmp_message); } else { view_set_progress_ready (view); } break; case SWEEP_EDIT_MODE_META: case SWEEP_EDIT_MODE_FILTER: for (gl = view->noready_widgets; gl; gl = gl->next) { w = (GtkWidget *)gl->data; gtk_widget_set_sensitive (w, TRUE); } for (gl = view->nomodify_widgets; gl; gl = gl->next) { w = (GtkWidget *)gl->data; gtk_widget_set_sensitive (w, FALSE); } for (gl = view->noalloc_widgets; gl; gl = gl->next) { w = (GtkWidget *)gl->data; gtk_widget_set_sensitive (w, TRUE); } break; case SWEEP_EDIT_MODE_ALLOC: for (gl = view->noready_widgets; gl; gl = gl->next) { w = (GtkWidget *)gl->data; gtk_widget_set_sensitive (w, TRUE); } for (gl = view->nomodify_widgets; gl; gl = gl->next) { w = (GtkWidget *)gl->data; gtk_widget_set_sensitive (w, FALSE); } for (gl = view->noalloc_widgets; gl; gl = gl->next) { w = (GtkWidget *)gl->data; gtk_widget_set_sensitive (w, FALSE); } break; default: g_assert_not_reached (); break; } } void view_refresh_playmode (sw_view * view) { sw_head * head = view->sample->play_head; gboolean playing, playing_sel; g_mutex_lock (head->head_mutex); playing = head->going && !head->restricted; playing_sel = head->going && head->restricted; g_mutex_unlock (head->head_mutex); g_signal_handlers_block_matched (GTK_OBJECT(view->play_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(view->play_toggle), playing); g_signal_handlers_unblock_matched (GTK_OBJECT(view->play_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); g_signal_handlers_block_matched (GTK_OBJECT(view->play_sel_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(view->play_sel_toggle), playing_sel); g_signal_handlers_unblock_matched (GTK_OBJECT(view->play_sel_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); /* If we're stopped, don't show the play line any more */ view_refresh_display (view); view_refresh_offset_indicators (view); } void view_refresh_offset_indicators (sw_view * view) { SampleDisplay * sd = SAMPLE_DISPLAY(view->display); sw_sample * sample = view->sample; sw_framecount_t offset; static int rate_limit = 0; #define BUF_LEN 16 char buf[BUF_LEN]; offset = (sample->play_head->going ? (sw_framecount_t)sample->play_head->offset : sample->user_offset); snprint_time (buf, BUF_LEN, frames_to_time (sample->sounddata->format, offset)); /* cheesy rate limiter. ugly in operation. limits pango damage */ if (rate_limit >= 3) { rate_limit=0; #ifdef PLAYPOS_LABEL gtk_label_set_text (GTK_LABEL(view->play_pos), buf); #else gtk_entry_set_text (GTK_ENTRY(view->play_pos), buf); #endif } ++rate_limit; #undef BUF_LEN sample_display_refresh_play_marker (sd); sample_display_refresh_user_marker (sd); if (view->following) { view_zoom_to_offset (view, offset); } } void view_refresh_rec_offset_indicators (sw_view * view) { SampleDisplay * sd = SAMPLE_DISPLAY(view->display); sample_display_refresh_rec_marker (sd); } /* format string can include %p (current percentage) or %v (current value) */ void view_set_progress_text (sw_view * view, gchar * text) { if (view == NULL) return; gtk_progress_set_format_string (GTK_PROGRESS(view->progress), text); } void view_set_progress_percent (sw_view * view, gint percent) { if (view == NULL) return; gtk_progress_set_percentage (GTK_PROGRESS(view->progress), (gfloat)percent/100.0); } void view_set_tmp_message (sw_view * view, gchar * message) { if (view == NULL) return; gtk_progress_set_format_string (GTK_PROGRESS(view->progress), message); gtk_progress_set_percentage (GTK_PROGRESS(view->progress), 0.0); } void view_set_progress_ready (sw_view * view) { #define BUF_LEN 64 static gchar buf[BUF_LEN]; if (view == NULL) return; snprintf (buf, BUF_LEN, "%s%s - %s", view->sample->modified ? "*" : "", g_basename (view->sample->pathname), view->sample->play_head->scrubbing ? _("Scrub!") : _("Ready")); #if 0 if (view->sample->play_head->scrubbing) { snprintf (buf, BUF_LEN, "Sweep %s - %s", VERSION, _("Scrub!")); } else { snprintf (buf, BUF_LEN, "Sweep %s - %s", VERSION, _("Ready")); } #endif gtk_progress_set_format_string (GTK_PROGRESS(view->progress), buf); gtk_progress_set_percentage (GTK_PROGRESS(view->progress), 0.0); #undef BUF_LEN } void view_set_following (sw_view * view, gboolean following) { view->following = following; g_signal_handlers_block_matched (GTK_OBJECT(view->follow_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(view->follow_toggle), view->following); g_signal_handlers_unblock_matched (GTK_OBJECT(view->follow_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); g_signal_handlers_block_matched (GTK_OBJECT(view->follow_checkmenu), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(view->follow_checkmenu), view->following); g_signal_handlers_unblock_matched (GTK_OBJECT(view->follow_checkmenu), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); if (view->following) { view_zoom_to_playmarker (view); } } static void view_close_ok_cb (GtkWidget * widget, gpointer data) { sw_view * view = (sw_view *)data; gtk_widget_destroy(view->window); g_free(view); } void view_close (sw_view * view) { sw_sample * sample = view->sample; #define BUF_LEN 256 char buf[BUF_LEN]; if (sample->modified && g_list_length (sample->views) == 1) { snprintf (buf, BUF_LEN, _("%s has been modified. Close anyway?"), g_basename (sample->pathname)); question_dialog_new (sample, _("File modified"), buf, _("Close"), _("Don't close"), G_CALLBACK (view_close_ok_cb), view, NULL, NULL, SWEEP_EDIT_MODE_ALLOC); } else { view_close_ok_cb (NULL, view); } } void view_volume_increase (sw_view * view) { GtkAdjustment * adj = GTK_ADJUSTMENT(view->gain_adj); adj->value += 0.1; if (adj->value >= 1.0) adj->value = 1.0; gtk_adjustment_value_changed (adj); } void view_volume_decrease (sw_view * view) { GtkAdjustment * adj = GTK_ADJUSTMENT(view->gain_adj); adj->value -= 0.1; if (adj->value <= 0.0) adj->value = 0.0; gtk_adjustment_value_changed (adj); } void view_refresh_title (sw_view * view) { sw_sample * s = (sw_sample *)view->sample; #define BUF_LEN 256 char buf[BUF_LEN]; if (s->sounddata->nr_frames > 0) { snprintf(buf, BUF_LEN, #if 0 "%s (%dHz %s) %0d%% - Sweep " VERSION, s->filename ? s->filename : _("Untitled"), s->sounddata->format->rate, s->sounddata->format->channels == 1 ? _("Mono") : _("Stereo"), #else "%s%s %0d%% - Sweep " VERSION, s->modified ? _("*") : "", s->pathname ? g_basename (s->pathname) : _("Untitled"), #endif s->progress_percent); } else { snprintf(buf, BUF_LEN, #if 0 "%s (%dHz %s) %s - Sweep " VERSION, s->filename ? s->filename : _("Untitled"), s->sounddata->format->rate, s->sounddata->format->channels == 1 ? _("Mono") : _("Stereo"), #else "%s%s %s - Sweep " VERSION, s->modified ? _("*") : "", s->pathname ? g_basename (s->pathname) : _("Untitled"), #endif _("Empty")); } gtk_window_set_title (GTK_WINDOW(view->window), buf); #undef BUF_LEN } void view_default_status (sw_view * view) { sw_sample * s = (sw_sample *)view->sample; sw_sounddata * sounddata = s->sounddata; #define BYTE_BUF_LEN 16 char byte_buf[BYTE_BUF_LEN]; #define TIME_BUF_LEN 16 char time_buf[TIME_BUF_LEN]; #define CHAN_BUF_LEN 16 char chan_buf[CHAN_BUF_LEN]; #define BUF_LEN 256 char buf [BUF_LEN]; snprint_bytes (byte_buf, BYTE_BUF_LEN, frames_to_bytes (sounddata->format, sounddata->nr_frames)); snprint_time (time_buf, TIME_BUF_LEN, frames_to_time (sounddata->format, sounddata->nr_frames)); switch (s->sounddata->format->channels) { case 1: snprintf (chan_buf, CHAN_BUF_LEN, _("Mono")); break; case 2: snprintf (chan_buf, CHAN_BUF_LEN, _("Stereo")); break; default: snprintf (chan_buf, CHAN_BUF_LEN, "%d %s", s->sounddata->format->channels, _("channels")); break; } snprintf (buf, BUF_LEN, "%dHz %s [%s]", s->sounddata->format->rate, chan_buf, time_buf); gtk_label_set_text (GTK_LABEL(view->status), buf); #undef BUF_LEN #undef BYTE_BUF_LEN #undef TIME_BUF_LEN } void view_refresh_tool_buttons (sw_view * v) { GList * gl; GtkWidget * button; sw_tool_t tool; for (gl = v->tool_buttons; gl; gl = gl->next) { button = (GtkWidget *)gl->data; tool = (sw_tool_t) g_object_get_data (G_OBJECT(button), "default"); g_signal_handlers_block_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, v); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(button), (tool == v->current_tool)); g_signal_handlers_unblock_matched (GTK_OBJECT(button), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, v); } } void view_refresh_hruler (sw_view * v) { gtk_ruler_set_range (GTK_RULER(v->time_ruler), v->start, v->end, v->start, v->end); time_ruler_set_format (TIME_RULER(v->time_ruler), v->sample->sounddata->format); } void view_refresh_display (sw_view * v) { SampleDisplay * sd = SAMPLE_DISPLAY(v->display); sample_display_refresh(sd); } void view_refresh_adjustment (sw_view * v) { GtkAdjustment * adj = GTK_ADJUSTMENT(v->adj); gboolean changed = FALSE; adj->upper = (gfloat)v->sample->sounddata->nr_frames; if (adj->page_size > (gfloat)v->sample->sounddata->nr_frames) { adj->page_size = (gfloat)v->sample->sounddata->nr_frames; adj->value = 0; changed = TRUE; } if (adj->value > adj->upper - adj->page_size) { adj->value = adj->upper - adj->page_size; changed = TRUE; } #if 0 if (adj->page_size > adj->upper - adj->value) adj->page_size = adj->upper - adj->value; #endif #if 0 if (v->end > v->sample->sounddata->nr_frames) v->end = v->sample->sounddata->nr_frames; #endif if (adj->page_increment == 0) { adj->page_increment = (gfloat)(v->end - v->start); changed = TRUE; } if (adj->page_size == 0) { adj->page_size = (gfloat)(v->end - v->start); changed = TRUE; } if (changed) gtk_adjustment_changed (adj); } void view_refresh_looping (sw_view * view) { g_signal_handlers_block_matched (GTK_OBJECT(view->loop_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(view->loop_toggle), view->sample->play_head->looping); g_signal_handlers_unblock_matched (GTK_OBJECT(view->loop_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); g_signal_handlers_block_matched (GTK_OBJECT(view->loop_checkmenu), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(view->loop_checkmenu), view->sample->play_head->looping); g_signal_handlers_unblock_matched (GTK_OBJECT(view->loop_checkmenu), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); } void view_refresh_playrev (sw_view * view) { g_signal_handlers_block_matched (GTK_OBJECT(view->playrev_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(view->playrev_toggle), view->sample->play_head->reverse); g_signal_handlers_unblock_matched (GTK_OBJECT(view->playrev_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); g_signal_handlers_block_matched (GTK_OBJECT(view->playrev_checkmenu), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(view->playrev_checkmenu), view->sample->play_head->reverse); g_signal_handlers_unblock_matched (GTK_OBJECT(view->playrev_checkmenu), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); } void view_refresh_mute (sw_view * view) { g_signal_handlers_block_matched (GTK_OBJECT(view->mute_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(view->mute_toggle), view->sample->play_head->mute); g_signal_handlers_unblock_matched (GTK_OBJECT(view->mute_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); g_signal_handlers_block_matched (GTK_OBJECT(view->mute_checkmenu), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(view->mute_checkmenu), view->sample->play_head->mute); g_signal_handlers_unblock_matched (GTK_OBJECT(view->mute_checkmenu), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); } void view_refresh_monitor (sw_view * view) { g_signal_handlers_block_matched (GTK_OBJECT(view->monitor_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(view->monitor_toggle), view->sample->play_head->monitor); g_signal_handlers_unblock_matched (GTK_OBJECT(view->monitor_toggle), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); g_signal_handlers_block_matched (GTK_OBJECT(view->monitor_checkmenu), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(view->monitor_checkmenu), view->sample->play_head->monitor); g_signal_handlers_unblock_matched (GTK_OBJECT(view->monitor_checkmenu), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, view); } void view_fix_adjustment (sw_view * v) { GtkAdjustment * adj = GTK_ADJUSTMENT(v->adj); adj->value = (gfloat)v->start; adj->lower = (gfloat)0.0; adj->upper = (gfloat)v->sample->sounddata->nr_frames; adj->page_increment = (gfloat)(v->end - v->start); adj->page_size = (gfloat)(v->end - v->start); gtk_adjustment_changed (adj); } void view_refresh (sw_view * v) { view_refresh_adjustment (v); view_refresh_title (v); view_default_status (v); view_refresh_display (v); view_refresh_offset_indicators (v); view_refresh_tool_buttons (v); view_refresh_looping (v); view_refresh_playrev (v); view_refresh_channelops_menu (v); view_refresh_db_rulers (v); } void view_sink_last_tmp_view (void) { if (!last_tmp_view) return; sample_display_sink_tmp_sel(SAMPLE_DISPLAY(last_tmp_view->display)); } void view_clear_last_tmp_view (void) { if (!last_tmp_view) return; sample_display_clear_sel(SAMPLE_DISPLAY(last_tmp_view->display)); } sweep-0.9.3/src/sw_chooser.c0000644000175000017500000002401110777660160014502 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * Copyright (C) 2002 Commonwealth Scientific and Industrial Research * Organisation (CSIRO), Australia * * 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. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #include #include #include #include #include #include "interface.h" #include "sw_chooser.h" typedef struct { int number; char * name; } sw_choice; /* first choice must be _("Custom") */ static sw_choice samplerate_choices[] = { { -1, N_("Custom") }, { 192000, N_("192000 Hz (Studio quality)") }, { 96000, N_(" 96000 Hz (High quality)") }, { 48000, N_(" 48000 Hz (DAT quality)") }, { 44100, N_(" 44100 Hz (CD quality)") }, { 32000, N_(" 32000 Hz (Ultra-wideband voice quality)") }, { 22050, N_(" 22050 Hz") }, { 16000, N_(" 16000 Hz (Wideband voice quality)") }, { 11025, N_(" 11025 Hz") }, { 8000, N_(" 8000 Hz (Narrowband voice quality)") }, { 4000, N_(" 4000 Hz (Low quality)") }, { 0, NULL } }; static sw_choice channelcount_choices[] = { { -1, N_("Custom") }, { 1, N_("Mono") }, { 2, N_("Stereo") }, { 4, N_("Quadraphonic") }, /* { 6, N_("5.1") },*/ { 0, NULL } }; enum { NUMBER_CHANGED_SIGNAL, LAST_SIGNAL }; static gint sw_chooser_signals[LAST_SIGNAL] = { 0 }; static void sw_chooser_class_init(SWChooserClass * class) { GtkObjectClass *object_class; object_class = (GtkObjectClass *) class; sw_chooser_signals[NUMBER_CHANGED_SIGNAL] = g_signal_new ("number-changed", G_TYPE_FROM_CLASS (class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (SWChooserClass, number_changed), NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT); class->number_changed = NULL; } static void sw_chooser_init (GtkWidget * chooser) { } GType sw_chooser_get_type (void) { static GType sw_chooser_type = 0; if (!sw_chooser_type) { static const GTypeInfo sw_chooser_info = { sizeof(SWChooserClass), NULL, /* base_init */ NULL, /* base_finalize */ (GClassInitFunc) sw_chooser_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (SWChooser), 0, /* n_preallocs */ (GInstanceInitFunc) sw_chooser_init, }; sw_chooser_type = g_type_register_static (GTK_TYPE_FRAME, "SWChooser", &sw_chooser_info, 0); } return sw_chooser_type; } static int chooser_get_number (GtkWidget * chooser) { return GPOINTER_TO_INT (g_object_get_data (G_OBJECT(chooser), "number")); } static int chooser_set_number_direct (GtkWidget * chooser, int number) { GtkWidget * direct_entry; #define BUF_LEN 16 char buf[BUF_LEN]; direct_entry = GTK_WIDGET (g_object_get_data (G_OBJECT(chooser), "direct_entry")); /* * Print the number in the direct_entry, but leave it blank for zero. * (otherwise, if zero is printed as '0', the GtkEntry behaves wierdly). */ if (number > 0) { snprintf (buf, BUF_LEN, "%d", number); } else { buf[0] = '\0'; } gtk_entry_set_text (GTK_ENTRY(direct_entry), buf); g_object_set_data (G_OBJECT(chooser), "number", GINT_TO_POINTER(number)); g_signal_emit(G_OBJECT(chooser), sw_chooser_signals[NUMBER_CHANGED_SIGNAL], 0, number); return number; } static int chooser_set_number (GtkWidget * chooser, int number, sw_choice * choices) { GtkWidget * combo_entry; int i; combo_entry = GTK_WIDGET (g_object_get_data (G_OBJECT(chooser), "combo_entry")); for (i = 0; choices[i].name != NULL; i++) { if (number == choices[i].number) { gtk_entry_set_text (GTK_ENTRY(combo_entry), _(choices[i].name)); return number; } } /* not in the entry -- assume first choice is "Custom" and set that */ gtk_entry_set_text (GTK_ENTRY(combo_entry), _(choices[0].name)); return chooser_set_number_direct (chooser, number);; } static void chooser_combo_changed_cb (GtkWidget * widget, gpointer data) { GtkWidget * chooser = (GtkWidget *)data; sw_choice * choices; GtkWidget * direct_hbox; const gchar * text; int i, number = -1; /* find what number the chosen menu string corresponds to */ text = gtk_entry_get_text (GTK_ENTRY(widget)); choices = g_object_get_data (G_OBJECT(chooser), "choices"); for (i = 0; choices[i].name != NULL; i++) { if (strcmp (text, _(choices[i].name)) == 0) { number = choices[i].number; break; } } /* set the direct hbox sensitive if "Custom", else insensitive */ direct_hbox = GTK_WIDGET(g_object_get_data (G_OBJECT(chooser), "direct_hbox")); if (number == -1) { gtk_widget_set_sensitive (direct_hbox, TRUE); } else { gtk_widget_set_sensitive (direct_hbox, FALSE); /* change the direct_entry to reflect the new value */ chooser_set_number_direct (chooser, number); } } static void chooser_entry_changed_cb (GtkWidget * widget, gpointer data) { GtkWidget * chooser = (GtkWidget *)data; GtkWidget * combo_entry; sw_choice * choices; const gchar * text; int number = -1; text = gtk_entry_get_text (GTK_ENTRY(widget)); number = atoi (text); choices = g_object_get_data (G_OBJECT(chooser), "choices"); combo_entry = GTK_WIDGET (g_object_get_data (G_OBJECT(chooser), "combo_entry")); g_signal_handlers_block_matched (GTK_OBJECT(widget), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, chooser); g_signal_handlers_block_matched (GTK_OBJECT(combo_entry), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, chooser); chooser_set_number (chooser, number, choices); g_signal_handlers_unblock_matched (GTK_OBJECT(combo_entry), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, chooser); g_signal_handlers_unblock_matched (GTK_OBJECT(widget), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, chooser); } static void sw_chooser_build (GtkWidget * chooser) { GtkWidget * frame; GtkWidget * vbox; GList * choice_names = NULL; GtkWidget * combo; GtkWidget * hbox; GtkWidget * combo_entry, * direct_entry; GtkWidget * label; sw_choice * choices; int i; frame = chooser; gtk_frame_set_label (GTK_FRAME (frame), SW_CHOOSER(chooser)->title); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER(frame), vbox); gtk_container_set_border_width (GTK_CONTAINER(vbox), 8); gtk_widget_show (vbox); choices = (sw_choice *) (SW_CHOOSER(chooser)->choices); choice_names = NULL; for (i = 0; choices[i].name != NULL; i++) { choice_names = g_list_append (choice_names, _(choices[i].name)); } combo = gtk_combo_new (); gtk_combo_set_popdown_strings (GTK_COMBO(combo), choice_names); gtk_combo_set_value_in_list (GTK_COMBO(combo), TRUE, FALSE); combo_entry = GTK_COMBO(combo)->entry; gtk_editable_set_editable (GTK_EDITABLE(combo_entry), FALSE); gtk_box_pack_start (GTK_BOX (vbox), combo, TRUE, FALSE, 4); gtk_widget_show (combo); hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 4); gtk_widget_show (hbox); label = gtk_label_new (_("Custom: ")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); direct_entry = gtk_entry_new (); gtk_box_pack_start (GTK_BOX (hbox), direct_entry, FALSE, FALSE, 4); gtk_widget_show (direct_entry); if (SW_CHOOSER(chooser)->units != NULL) { label = gtk_label_new (SW_CHOOSER(chooser)->units); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 4); gtk_widget_show (label); } g_signal_connect (G_OBJECT(combo_entry), "changed", G_CALLBACK(chooser_combo_changed_cb), chooser); g_signal_connect (G_OBJECT(direct_entry), "changed", G_CALLBACK(chooser_entry_changed_cb), chooser); g_object_set_data (G_OBJECT(chooser), "combo_entry", combo_entry); g_object_set_data (G_OBJECT(chooser), "direct_entry", direct_entry); g_object_set_data (G_OBJECT(chooser), "direct_hbox", hbox); g_object_set_data (G_OBJECT(chooser), "choices", choices); /* fake a change event to set the number data */ chooser_combo_changed_cb (combo_entry, chooser); } GtkWidget * samplerate_chooser_new (gchar * title) { SWChooser * chooser = SW_CHOOSER (g_object_new (sw_chooser_get_type (), NULL)); chooser->title = title ? title : _("Sampling rate"); chooser->choices = (gpointer)samplerate_choices; chooser->units = _("Hz"); sw_chooser_build (GTK_WIDGET (chooser)); return GTK_WIDGET (chooser); } int samplerate_chooser_get_rate (GtkWidget * chooser) { return chooser_get_number (chooser); } int samplerate_chooser_set_rate (GtkWidget * chooser, int rate) { return chooser_set_number (chooser, rate, samplerate_choices); } GtkWidget * channelcount_chooser_new (gchar * title) { SWChooser * chooser = SW_CHOOSER (g_object_new (sw_chooser_get_type (), NULL)); chooser->title = title ? title : _("Channels"); chooser->choices = channelcount_choices; chooser->units = _("channels"); sw_chooser_build (GTK_WIDGET (chooser)); return GTK_WIDGET (chooser); } int channelcount_chooser_get_count (GtkWidget * chooser) { return chooser_get_number (chooser); } int channelcount_chooser_set_count (GtkWidget * chooser, int count) { return chooser_set_number (chooser, count, channelcount_choices); } sweep-0.9.3/src/sw_chooser.h0000644000175000017500000000361510777660160014516 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * Copyright (C) 2002 Commonwealth Scientific and Industrial Research * Organisation (CSIRO), Australia * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __SW_CHOOSER_H__ #define __SW_CHOOSER_H__ #define SW_CHOOSER(obj) GTK_CHECK_CAST (obj, sw_chooser_get_type (), SWChooser) #define SW_CHOOSER_CLASS(klass) \ GTK_CHECK_CLASS_CAST (klass, sw_chooser_get_type (), SWChooserClass) #define IS_SW_CHOOSER(obj) GTK_CHECK_TYPE (obj, sw_chooser_get_type ()) typedef struct _SWChooser SWChooser; typedef struct _SWChooserClass SWChooserClass; struct _SWChooser { GtkFrame frame; gchar * title; gchar * units; gpointer choices; }; struct _SWChooserClass { GtkFrameClass parent_class; void (*number_changed) (SWChooser * chooser, int number); }; GType sw_chooser_get_type (void); GtkWidget * samplerate_chooser_new (gchar * title); int samplerate_chooser_get_rate (GtkWidget * chooser); int samplerate_chooser_set_rate (GtkWidget * chooser, int rate); GtkWidget * channelcount_chooser_new (gchar * title); int channelcount_chooser_get_count (GtkWidget * chooser); int channelcount_chooser_set_count (GtkWidget * chooser, int count); #endif /* __SW_CHOOSER_H__ */ sweep-0.9.3/sweep.desktop0000644000175000017500000000032010777660176014116 0ustar useruser[Desktop Entry] Name=Sweep GenericName=Sound Editor Comment=Sweep Sound Editor Categories=Application;AudioVideo; Encoding=UTF-8 Exec=sweep Icon=sweep.svg MimeType=audio/x-wav Terminal=false Type=Application sweep-0.9.3/intl/0000755000175000017500000000000011001133762012324 5ustar userusersweep-0.9.3/intl/vasnprintf.c0000644000175000017500000003653210777660165014720 0ustar useruser/* vasnprintf with automatic memory allocation. Copyright (C) 1999, 2002-2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for snprintf(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #ifndef IN_LIBINTL # include #endif /* Specification. */ #if WIDE_CHAR_VERSION # include "vasnwprintf.h" #else # include "vasnprintf.h" #endif #include /* snprintf() */ #include /* abort(), malloc(), realloc(), free() */ #include /* memcpy(), strlen() */ #include /* errno */ #include /* CHAR_BIT, INT_MAX */ #include /* DBL_MAX_EXP, LDBL_MAX_EXP */ #if WIDE_CHAR_VERSION # include "wprintf-parse.h" #else # include "printf-parse.h" #endif /* Checked size_t computations. */ #include "xsize.h" /* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ #ifndef EOVERFLOW # define EOVERFLOW E2BIG #endif #ifdef HAVE_WCHAR_T # ifdef HAVE_WCSLEN # define local_wcslen wcslen # else /* Solaris 2.5.1 has wcslen() in a separate library libw.so. To avoid a dependency towards this library, here is a local substitute. Define this substitute only once, even if this file is included twice in the same compilation unit. */ # ifndef local_wcslen_defined # define local_wcslen_defined 1 static size_t local_wcslen (const wchar_t *s) { const wchar_t *ptr; for (ptr = s; *ptr != (wchar_t) 0; ptr++) ; return ptr - s; } # endif # endif #endif #if WIDE_CHAR_VERSION # define VASNPRINTF vasnwprintf # define CHAR_T wchar_t # define DIRECTIVE wchar_t_directive # define DIRECTIVES wchar_t_directives # define PRINTF_PARSE wprintf_parse # define USE_SNPRINTF 1 # if HAVE_DECL__SNWPRINTF /* On Windows, the function swprintf() has a different signature than on Unix; we use the _snwprintf() function instead. */ # define SNPRINTF _snwprintf # else /* Unix. */ # define SNPRINTF swprintf # endif #else # define VASNPRINTF vasnprintf # define CHAR_T char # define DIRECTIVE char_directive # define DIRECTIVES char_directives # define PRINTF_PARSE printf_parse # define USE_SNPRINTF (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF) # if HAVE_DECL__SNPRINTF /* Windows. */ # define SNPRINTF _snprintf # else /* Unix. */ # define SNPRINTF snprintf # endif #endif CHAR_T * VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list args) { DIRECTIVES d; arguments a; if (PRINTF_PARSE (format, &d, &a) < 0) { errno = EINVAL; return NULL; } #define CLEANUP() \ free (d.dir); \ if (a.arg) \ free (a.arg); if (printf_fetchargs (args, &a) < 0) { CLEANUP (); errno = EINVAL; return NULL; } { size_t buf_neededlength; CHAR_T *buf; CHAR_T *buf_malloced; const CHAR_T *cp; size_t i; DIRECTIVE *dp; /* Output string accumulator. */ CHAR_T *result; size_t allocated; size_t length; /* Allocate a small buffer that will hold a directive passed to snprintf. */ buf_neededlength = xsum4 (7, d.max_width_length, d.max_precision_length, 6); #if HAVE_ALLOCA if (buf_neededlength < 4000 / sizeof (CHAR_T)) { buf = (CHAR_T *) alloca (buf_neededlength * sizeof (CHAR_T)); buf_malloced = NULL; } else #endif { size_t buf_memsize = xtimes (buf_neededlength, sizeof (CHAR_T)); if (size_overflow_p (buf_memsize)) goto out_of_memory_1; buf = (CHAR_T *) malloc (buf_memsize); if (buf == NULL) goto out_of_memory_1; buf_malloced = buf; } if (resultbuf != NULL) { result = resultbuf; allocated = *lengthp; } else { result = NULL; allocated = 0; } length = 0; /* Invariants: result is either == resultbuf or == NULL or malloc-allocated. If length > 0, then result != NULL. */ /* Ensures that allocated >= needed. Aborts through a jump to out_of_memory if needed is SIZE_MAX or otherwise too big. */ #define ENSURE_ALLOCATION(needed) \ if ((needed) > allocated) \ { \ size_t memory_size; \ CHAR_T *memory; \ \ allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ if ((needed) > allocated) \ allocated = (needed); \ memory_size = xtimes (allocated, sizeof (CHAR_T)); \ if (size_overflow_p (memory_size)) \ goto out_of_memory; \ if (result == resultbuf || result == NULL) \ memory = (CHAR_T *) malloc (memory_size); \ else \ memory = (CHAR_T *) realloc (result, memory_size); \ if (memory == NULL) \ goto out_of_memory; \ if (result == resultbuf && length > 0) \ memcpy (memory, result, length * sizeof (CHAR_T)); \ result = memory; \ } for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++) { if (cp != dp->dir_start) { size_t n = dp->dir_start - cp; size_t augmented_length = xsum (length, n); ENSURE_ALLOCATION (augmented_length); memcpy (result + length, cp, n * sizeof (CHAR_T)); length = augmented_length; } if (i == d.count) break; /* Execute a single directive. */ if (dp->conversion == '%') { size_t augmented_length; if (!(dp->arg_index == ARG_NONE)) abort (); augmented_length = xsum (length, 1); ENSURE_ALLOCATION (augmented_length); result[length] = '%'; length = augmented_length; } else { if (!(dp->arg_index != ARG_NONE)) abort (); if (dp->conversion == 'n') { switch (a.arg[dp->arg_index].type) { case TYPE_COUNT_SCHAR_POINTER: *a.arg[dp->arg_index].a.a_count_schar_pointer = length; break; case TYPE_COUNT_SHORT_POINTER: *a.arg[dp->arg_index].a.a_count_short_pointer = length; break; case TYPE_COUNT_INT_POINTER: *a.arg[dp->arg_index].a.a_count_int_pointer = length; break; case TYPE_COUNT_LONGINT_POINTER: *a.arg[dp->arg_index].a.a_count_longint_pointer = length; break; #ifdef HAVE_LONG_LONG case TYPE_COUNT_LONGLONGINT_POINTER: *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length; break; #endif default: abort (); } } else { arg_type type = a.arg[dp->arg_index].type; CHAR_T *p; unsigned int prefix_count; int prefixes[2]; /* Construct the format string for calling snprintf. */ p = buf; *p++ = '%'; if (dp->flags & FLAG_GROUP) *p++ = '\''; if (dp->flags & FLAG_LEFT) *p++ = '-'; if (dp->flags & FLAG_SHOWSIGN) *p++ = '+'; if (dp->flags & FLAG_SPACE) *p++ = ' '; if (dp->flags & FLAG_ALT) *p++ = '#'; if (dp->flags & FLAG_ZERO) *p++ = '0'; if (dp->width_start != dp->width_end) { size_t n = dp->width_end - dp->width_start; memcpy (p, dp->width_start, n * sizeof (CHAR_T)); p += n; } if (dp->precision_start != dp->precision_end) { size_t n = dp->precision_end - dp->precision_start; memcpy (p, dp->precision_start, n * sizeof (CHAR_T)); p += n; } switch (type) { #ifdef HAVE_LONG_LONG case TYPE_LONGLONGINT: case TYPE_ULONGLONGINT: *p++ = 'l'; /*FALLTHROUGH*/ #endif case TYPE_LONGINT: case TYPE_ULONGINT: #ifdef HAVE_WINT_T case TYPE_WIDE_CHAR: #endif #ifdef HAVE_WCHAR_T case TYPE_WIDE_STRING: #endif *p++ = 'l'; break; #ifdef HAVE_LONG_DOUBLE case TYPE_LONGDOUBLE: *p++ = 'L'; break; #endif default: break; } *p = dp->conversion; #if USE_SNPRINTF p[1] = '%'; p[2] = 'n'; p[3] = '\0'; #else p[1] = '\0'; #endif /* Construct the arguments for calling snprintf. */ prefix_count = 0; if (dp->width_arg_index != ARG_NONE) { if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; } if (dp->precision_arg_index != ARG_NONE) { if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; } #if USE_SNPRINTF /* Prepare checking whether snprintf returns the count via %n. */ ENSURE_ALLOCATION (xsum (length, 1)); result[length] = '\0'; #endif for (;;) { size_t maxlen; int count; int retcount; maxlen = allocated - length; count = -1; retcount = 0; #if USE_SNPRINTF # define SNPRINTF_BUF(arg) \ switch (prefix_count) \ { \ case 0: \ retcount = SNPRINTF (result + length, maxlen, buf, \ arg, &count); \ break; \ case 1: \ retcount = SNPRINTF (result + length, maxlen, buf, \ prefixes[0], arg, &count); \ break; \ case 2: \ retcount = SNPRINTF (result + length, maxlen, buf, \ prefixes[0], prefixes[1], arg, \ &count); \ break; \ default: \ abort (); \ } #endif switch (type) { case TYPE_SCHAR: { int arg = a.arg[dp->arg_index].a.a_schar; SNPRINTF_BUF (arg); } break; case TYPE_UCHAR: { unsigned int arg = a.arg[dp->arg_index].a.a_uchar; SNPRINTF_BUF (arg); } break; case TYPE_SHORT: { int arg = a.arg[dp->arg_index].a.a_short; SNPRINTF_BUF (arg); } break; case TYPE_USHORT: { unsigned int arg = a.arg[dp->arg_index].a.a_ushort; SNPRINTF_BUF (arg); } break; case TYPE_INT: { int arg = a.arg[dp->arg_index].a.a_int; SNPRINTF_BUF (arg); } break; case TYPE_UINT: { unsigned int arg = a.arg[dp->arg_index].a.a_uint; SNPRINTF_BUF (arg); } break; case TYPE_LONGINT: { long int arg = a.arg[dp->arg_index].a.a_longint; SNPRINTF_BUF (arg); } break; case TYPE_ULONGINT: { unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint; SNPRINTF_BUF (arg); } break; #ifdef HAVE_LONG_LONG case TYPE_LONGLONGINT: { long long int arg = a.arg[dp->arg_index].a.a_longlongint; SNPRINTF_BUF (arg); } break; case TYPE_ULONGLONGINT: { unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint; SNPRINTF_BUF (arg); } break; #endif case TYPE_DOUBLE: { double arg = a.arg[dp->arg_index].a.a_double; SNPRINTF_BUF (arg); } break; #ifdef HAVE_LONG_DOUBLE case TYPE_LONGDOUBLE: { long double arg = a.arg[dp->arg_index].a.a_longdouble; SNPRINTF_BUF (arg); } break; #endif case TYPE_CHAR: { int arg = a.arg[dp->arg_index].a.a_char; SNPRINTF_BUF (arg); } break; #ifdef HAVE_WINT_T case TYPE_WIDE_CHAR: { wint_t arg = a.arg[dp->arg_index].a.a_wide_char; SNPRINTF_BUF (arg); } break; #endif case TYPE_STRING: { const char *arg = a.arg[dp->arg_index].a.a_string; SNPRINTF_BUF (arg); } break; #ifdef HAVE_WCHAR_T case TYPE_WIDE_STRING: { const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; SNPRINTF_BUF (arg); } break; #endif case TYPE_POINTER: { void *arg = a.arg[dp->arg_index].a.a_pointer; SNPRINTF_BUF (arg); } break; default: abort (); } #if USE_SNPRINTF /* Portability: Not all implementations of snprintf() are ISO C 99 compliant. Determine the number of bytes that snprintf() has produced or would have produced. */ if (count >= 0) { /* Verify that snprintf() has NUL-terminated its result. */ if (count < maxlen && result[length + count] != '\0') abort (); /* Portability hack. */ if (retcount > count) count = retcount; } else { /* snprintf() doesn't understand the '%n' directive. */ if (p[1] != '\0') { /* Don't use the '%n' directive; instead, look at the snprintf() return value. */ p[1] = '\0'; continue; } else { /* Look at the snprintf() return value. */ if (retcount < 0) { /* HP-UX 10.20 snprintf() is doubly deficient: It doesn't understand the '%n' directive, *and* it returns -1 (rather than the length that would have been required) when the buffer is too small. */ size_t bigger_need = xsum (xtimes (allocated, 2), 12); ENSURE_ALLOCATION (bigger_need); continue; } else count = retcount; } } #endif /* Attempt to handle failure. */ if (count < 0) { if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EINVAL; return NULL; } #if !USE_SNPRINTF if (count >= tmp_length) /* tmp_length was incorrectly calculated - fix the code above! */ abort (); #endif /* Make room for the result. */ if (count >= maxlen) { /* Need at least count bytes. But allocate proportionally, to avoid looping eternally if snprintf() reports a too small count. */ size_t n = xmax (xsum (length, count), xtimes (allocated, 2)); ENSURE_ALLOCATION (n); #if USE_SNPRINTF continue; #endif } length += count; break; } } } } /* Add the final NUL. */ ENSURE_ALLOCATION (xsum (length, 1)); result[length] = '\0'; if (result != resultbuf && length + 1 < allocated) { /* Shrink the allocated memory if possible. */ CHAR_T *memory; memory = (CHAR_T *) realloc (result, (length + 1) * sizeof (CHAR_T)); if (memory != NULL) result = memory; } if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); *lengthp = length; if (length > INT_MAX) goto length_overflow; return result; length_overflow: /* We could produce such a big string, but its length doesn't fit into an 'int'. POSIX says that snprintf() fails with errno = EOVERFLOW in this case. */ if (result != resultbuf) free (result); errno = EOVERFLOW; return NULL; out_of_memory: if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); out_of_memory_1: CLEANUP (); errno = ENOMEM; return NULL; } } #undef SNPRINTF #undef USE_SNPRINTF #undef PRINTF_PARSE #undef DIRECTIVES #undef DIRECTIVE #undef CHAR_T #undef VASNPRINTF sweep-0.9.3/intl/gmo.h0000644000175000017500000001135110777660165013305 0ustar useruser/* Description of GNU message catalog format: general file layout. Copyright (C) 1995, 1997, 2000-2002, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _GETTEXT_H #define _GETTEXT_H 1 #include /* @@ end of prolog @@ */ /* The magic number of the GNU message catalog format. */ #define _MAGIC 0x950412de #define _MAGIC_SWAPPED 0xde120495 /* Revision number of the currently used .mo (binary) file format. */ #define MO_REVISION_NUMBER 0 #define MO_REVISION_NUMBER_WITH_SYSDEP_I 1 /* The following contortions are an attempt to use the C preprocessor to determine an unsigned integral type that is 32 bits wide. An alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but as of version autoconf-2.13, the AC_CHECK_SIZEOF macro doesn't work when cross-compiling. */ #if __STDC__ # define UINT_MAX_32_BITS 4294967295U #else # define UINT_MAX_32_BITS 0xFFFFFFFF #endif /* If UINT_MAX isn't defined, assume it's a 32-bit type. This should be valid for all systems GNU cares about because that doesn't include 16-bit systems, and only modern systems (that certainly have ) have 64+-bit integral types. */ #ifndef UINT_MAX # define UINT_MAX UINT_MAX_32_BITS #endif #if UINT_MAX == UINT_MAX_32_BITS typedef unsigned nls_uint32; #else # if USHRT_MAX == UINT_MAX_32_BITS typedef unsigned short nls_uint32; # else # if ULONG_MAX == UINT_MAX_32_BITS typedef unsigned long nls_uint32; # else /* The following line is intended to throw an error. Using #error is not portable enough. */ "Cannot determine unsigned 32-bit data type." # endif # endif #endif /* Header for binary .mo file format. */ struct mo_file_header { /* The magic number. */ nls_uint32 magic; /* The revision number of the file format. */ nls_uint32 revision; /* The following are only used in .mo files with major revision 0 or 1. */ /* The number of strings pairs. */ nls_uint32 nstrings; /* Offset of table with start offsets of original strings. */ nls_uint32 orig_tab_offset; /* Offset of table with start offsets of translated strings. */ nls_uint32 trans_tab_offset; /* Size of hash table. */ nls_uint32 hash_tab_size; /* Offset of first hash table entry. */ nls_uint32 hash_tab_offset; /* The following are only used in .mo files with minor revision >= 1. */ /* The number of system dependent segments. */ nls_uint32 n_sysdep_segments; /* Offset of table describing system dependent segments. */ nls_uint32 sysdep_segments_offset; /* The number of system dependent strings pairs. */ nls_uint32 n_sysdep_strings; /* Offset of table with start offsets of original sysdep strings. */ nls_uint32 orig_sysdep_tab_offset; /* Offset of table with start offsets of translated sysdep strings. */ nls_uint32 trans_sysdep_tab_offset; }; /* Descriptor for static string contained in the binary .mo file. */ struct string_desc { /* Length of addressed string, not including the trailing NUL. */ nls_uint32 length; /* Offset of string in file. */ nls_uint32 offset; }; /* The following are only used in .mo files with minor revision >= 1. */ /* Descriptor for system dependent string segment. */ struct sysdep_segment { /* Length of addressed string, including the trailing NUL. */ nls_uint32 length; /* Offset of string in file. */ nls_uint32 offset; }; /* Descriptor for system dependent string. */ struct sysdep_string { /* Offset of static string segments in file. */ nls_uint32 offset; /* Alternating sequence of static and system dependent segments. The last segment is a static segment, including the trailing NUL. */ struct segment_pair { /* Size of static segment. */ nls_uint32 segsize; /* Reference to system dependent string segment, or ~0 at the end. */ nls_uint32 sysdepref; } segments[1]; }; /* Marker for the end of the segments[] array. This has the value 0xFFFFFFFF, regardless whether 'int' is 16 bit, 32 bit, or 64 bit. */ #define SEGMENTS_END ((nls_uint32) ~0) /* @@ begin of epilog @@ */ #endif /* gettext.h */ sweep-0.9.3/intl/explodename.c0000644000175000017500000001064710777660165015026 0ustar useruser/* Copyright (C) 1995-1998, 2000-2001, 2003 Free Software Foundation, Inc. Contributed by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "loadinfo.h" /* On some strange systems still no definition of NULL is found. Sigh! */ #ifndef NULL # if defined __STDC__ && __STDC__ # define NULL ((void *) 0) # else # define NULL 0 # endif #endif /* @@ end of prolog @@ */ char * _nl_find_language (const char *name) { while (name[0] != '\0' && name[0] != '_' && name[0] != '@' && name[0] != '+' && name[0] != ',') ++name; return (char *) name; } int _nl_explode_name (char *name, const char **language, const char **modifier, const char **territory, const char **codeset, const char **normalized_codeset, const char **special, const char **sponsor, const char **revision) { enum { undecided, xpg, cen } syntax; char *cp; int mask; *modifier = NULL; *territory = NULL; *codeset = NULL; *normalized_codeset = NULL; *special = NULL; *sponsor = NULL; *revision = NULL; /* Now we determine the single parts of the locale name. First look for the language. Termination symbols are `_' and `@' if we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */ mask = 0; syntax = undecided; *language = cp = name; cp = _nl_find_language (*language); if (*language == cp) /* This does not make sense: language has to be specified. Use this entry as it is without exploding. Perhaps it is an alias. */ cp = strchr (*language, '\0'); else if (cp[0] == '_') { /* Next is the territory. */ cp[0] = '\0'; *territory = ++cp; while (cp[0] != '\0' && cp[0] != '.' && cp[0] != '@' && cp[0] != '+' && cp[0] != ',' && cp[0] != '_') ++cp; mask |= TERRITORY; if (cp[0] == '.') { /* Next is the codeset. */ syntax = xpg; cp[0] = '\0'; *codeset = ++cp; while (cp[0] != '\0' && cp[0] != '@') ++cp; mask |= XPG_CODESET; if (*codeset != cp && (*codeset)[0] != '\0') { *normalized_codeset = _nl_normalize_codeset (*codeset, cp - *codeset); if (strcmp (*codeset, *normalized_codeset) == 0) free ((char *) *normalized_codeset); else mask |= XPG_NORM_CODESET; } } } if (cp[0] == '@' || (syntax != xpg && cp[0] == '+')) { /* Next is the modifier. */ syntax = cp[0] == '@' ? xpg : cen; cp[0] = '\0'; *modifier = ++cp; while (syntax == cen && cp[0] != '\0' && cp[0] != '+' && cp[0] != ',' && cp[0] != '_') ++cp; mask |= XPG_MODIFIER | CEN_AUDIENCE; } if (syntax != xpg && (cp[0] == '+' || cp[0] == ',' || cp[0] == '_')) { syntax = cen; if (cp[0] == '+') { /* Next is special application (CEN syntax). */ cp[0] = '\0'; *special = ++cp; while (cp[0] != '\0' && cp[0] != ',' && cp[0] != '_') ++cp; mask |= CEN_SPECIAL; } if (cp[0] == ',') { /* Next is sponsor (CEN syntax). */ cp[0] = '\0'; *sponsor = ++cp; while (cp[0] != '\0' && cp[0] != '_') ++cp; mask |= CEN_SPONSOR; } if (cp[0] == '_') { /* Next is revision (CEN syntax). */ cp[0] = '\0'; *revision = ++cp; mask |= CEN_REVISION; } } /* For CEN syntax values it might be important to have the separator character in the file name, not for XPG syntax. */ if (syntax == xpg) { if (*territory != NULL && (*territory)[0] == '\0') mask &= ~TERRITORY; if (*codeset != NULL && (*codeset)[0] == '\0') mask &= ~XPG_CODESET; if (*modifier != NULL && (*modifier)[0] == '\0') mask &= ~XPG_MODIFIER; } return mask; } sweep-0.9.3/intl/config.charset0000755000175000017500000004653410777660165015210 0ustar useruser#! /bin/sh # Output a system dependent table of character encoding aliases. # # Copyright (C) 2000-2004 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # # The table consists of lines of the form # ALIAS CANONICAL # # ALIAS is the (system dependent) result of "nl_langinfo (CODESET)". # ALIAS is compared in a case sensitive way. # # CANONICAL is the GNU canonical name for this character encoding. # It must be an encoding supported by libiconv. Support by GNU libc is # also desirable. CANONICAL is case insensitive. Usually an upper case # MIME charset name is preferred. # The current list of GNU canonical charset names is as follows. # # name MIME? used by which systems # ASCII, ANSI_X3.4-1968 glibc solaris freebsd darwin # ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd darwin # ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd darwin # ISO-8859-3 Y glibc solaris # ISO-8859-4 Y osf solaris freebsd darwin # ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd darwin # ISO-8859-6 Y glibc aix hpux solaris # ISO-8859-7 Y glibc aix hpux irix osf solaris darwin # ISO-8859-8 Y glibc aix hpux osf solaris # ISO-8859-9 Y glibc aix hpux irix osf solaris darwin # ISO-8859-13 glibc darwin # ISO-8859-14 glibc # ISO-8859-15 glibc aix osf solaris freebsd darwin # KOI8-R Y glibc solaris freebsd darwin # KOI8-U Y glibc freebsd darwin # KOI8-T glibc # CP437 dos # CP775 dos # CP850 aix osf dos # CP852 dos # CP855 dos # CP856 aix # CP857 dos # CP861 dos # CP862 dos # CP864 dos # CP865 dos # CP866 freebsd darwin dos # CP869 dos # CP874 woe32 dos # CP922 aix # CP932 aix woe32 dos # CP943 aix # CP949 osf woe32 dos # CP950 woe32 dos # CP1046 aix # CP1124 aix # CP1125 dos # CP1129 aix # CP1250 woe32 # CP1251 glibc solaris darwin woe32 # CP1252 aix woe32 # CP1253 woe32 # CP1254 woe32 # CP1255 glibc woe32 # CP1256 woe32 # CP1257 woe32 # GB2312 Y glibc aix hpux irix solaris freebsd darwin # EUC-JP Y glibc aix hpux irix osf solaris freebsd darwin # EUC-KR Y glibc aix hpux irix osf solaris freebsd darwin # EUC-TW glibc aix hpux irix osf solaris # BIG5 Y glibc aix hpux osf solaris freebsd darwin # BIG5-HKSCS glibc solaris # GBK glibc aix osf solaris woe32 dos # GB18030 glibc solaris # SHIFT_JIS Y hpux osf solaris freebsd darwin # JOHAB glibc solaris woe32 # TIS-620 glibc aix hpux osf solaris # VISCII Y glibc # TCVN5712-1 glibc # GEORGIAN-PS glibc # HP-ROMAN8 hpux # HP-ARABIC8 hpux # HP-GREEK8 hpux # HP-HEBREW8 hpux # HP-TURKISH8 hpux # HP-KANA8 hpux # DEC-KANJI osf # DEC-HANYU osf # UTF-8 Y glibc aix hpux osf solaris darwin # # Note: Names which are not marked as being a MIME name should not be used in # Internet protocols for information interchange (mail, news, etc.). # # Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names. Applications # must understand both names and treat them as equivalent. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM host="$1" os=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'` echo "# This file contains a table of character encoding aliases," echo "# suitable for operating system '${os}'." echo "# It was automatically generated from config.charset." # List of references, updated during installation: echo "# Packages using this file: " case "$os" in linux-gnulibc1*) # Linux libc5 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "C ASCII" echo "POSIX ASCII" for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ sv_FI sv_SE; do echo "$l ISO-8859-1" echo "$l.iso-8859-1 ISO-8859-1" echo "$l.iso-8859-15 ISO-8859-15" echo "$l.iso-8859-15@euro ISO-8859-15" echo "$l@euro ISO-8859-15" echo "$l.cp-437 CP437" echo "$l.cp-850 CP850" echo "$l.cp-1252 CP1252" echo "$l.cp-1252@euro CP1252" #echo "$l.atari-st ATARI-ST" # not a commonly used encoding echo "$l.utf-8 UTF-8" echo "$l.utf-8@euro UTF-8" done for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ sl_SI sr sr_CS sr_YU; do echo "$l ISO-8859-2" echo "$l.iso-8859-2 ISO-8859-2" echo "$l.cp-852 CP852" echo "$l.cp-1250 CP1250" echo "$l.utf-8 UTF-8" done for l in mk mk_MK ru ru_RU; do echo "$l ISO-8859-5" echo "$l.iso-8859-5 ISO-8859-5" echo "$l.koi8-r KOI8-R" echo "$l.cp-866 CP866" echo "$l.cp-1251 CP1251" echo "$l.utf-8 UTF-8" done for l in ar ar_SA; do echo "$l ISO-8859-6" echo "$l.iso-8859-6 ISO-8859-6" echo "$l.cp-864 CP864" #echo "$l.cp-868 CP868" # not a commonly used encoding echo "$l.cp-1256 CP1256" echo "$l.utf-8 UTF-8" done for l in el el_GR gr gr_GR; do echo "$l ISO-8859-7" echo "$l.iso-8859-7 ISO-8859-7" echo "$l.cp-869 CP869" echo "$l.cp-1253 CP1253" echo "$l.cp-1253@euro CP1253" echo "$l.utf-8 UTF-8" echo "$l.utf-8@euro UTF-8" done for l in he he_IL iw iw_IL; do echo "$l ISO-8859-8" echo "$l.iso-8859-8 ISO-8859-8" echo "$l.cp-862 CP862" echo "$l.cp-1255 CP1255" echo "$l.utf-8 UTF-8" done for l in tr tr_TR; do echo "$l ISO-8859-9" echo "$l.iso-8859-9 ISO-8859-9" echo "$l.cp-857 CP857" echo "$l.cp-1254 CP1254" echo "$l.utf-8 UTF-8" done for l in lt lt_LT lv lv_LV; do #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name echo "$l ISO-8859-13" done for l in ru_UA uk uk_UA; do echo "$l KOI8-U" done for l in zh zh_CN; do #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name echo "$l GB2312" done for l in ja ja_JP ja_JP.EUC; do echo "$l EUC-JP" done for l in ko ko_KR; do echo "$l EUC-KR" done for l in th th_TH; do echo "$l TIS-620" done for l in fa fa_IR; do #echo "$l ISIRI-3342" # a broken encoding echo "$l.utf-8 UTF-8" done ;; linux* | *-gnu*) # With glibc-2.1 or newer, we don't need any canonicalization, # because glibc has iconv and both glibc and libiconv support all # GNU canonical names directly. Therefore, the Makefile does not # need to install the alias file at all. # The following applies only to glibc-2.0.x and older libcs. echo "ISO_646.IRV:1983 ASCII" ;; aix*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-6 ISO-8859-6" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "IBM-850 CP850" echo "IBM-856 CP856" echo "IBM-921 ISO-8859-13" echo "IBM-922 CP922" echo "IBM-932 CP932" echo "IBM-943 CP943" echo "IBM-1046 CP1046" echo "IBM-1124 CP1124" echo "IBM-1129 CP1129" echo "IBM-1252 CP1252" echo "IBM-eucCN GB2312" echo "IBM-eucJP EUC-JP" echo "IBM-eucKR EUC-KR" echo "IBM-eucTW EUC-TW" echo "big5 BIG5" echo "GBK GBK" echo "TIS-620 TIS-620" echo "UTF-8 UTF-8" ;; hpux*) echo "iso88591 ISO-8859-1" echo "iso88592 ISO-8859-2" echo "iso88595 ISO-8859-5" echo "iso88596 ISO-8859-6" echo "iso88597 ISO-8859-7" echo "iso88598 ISO-8859-8" echo "iso88599 ISO-8859-9" echo "iso885915 ISO-8859-15" echo "roman8 HP-ROMAN8" echo "arabic8 HP-ARABIC8" echo "greek8 HP-GREEK8" echo "hebrew8 HP-HEBREW8" echo "turkish8 HP-TURKISH8" echo "kana8 HP-KANA8" echo "tis620 TIS-620" echo "big5 BIG5" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "hp15CN GB2312" #echo "ccdc ?" # what is this? echo "SJIS SHIFT_JIS" echo "utf8 UTF-8" ;; irix*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-9 ISO-8859-9" echo "eucCN GB2312" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" ;; osf*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "cp850 CP850" echo "big5 BIG5" echo "dechanyu DEC-HANYU" echo "dechanzi GB2312" echo "deckanji DEC-KANJI" echo "deckorean EUC-KR" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "GBK GBK" echo "KSC5601 CP949" echo "sdeckanji EUC-JP" echo "SJIS SHIFT_JIS" echo "TACTIS TIS-620" echo "UTF-8 UTF-8" ;; solaris*) echo "646 ASCII" echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-3 ISO-8859-3" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-6 ISO-8859-6" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "koi8-r KOI8-R" echo "ansi-1251 CP1251" echo "BIG5 BIG5" echo "Big5-HKSCS BIG5-HKSCS" echo "gb2312 GB2312" echo "GBK GBK" echo "GB18030 GB18030" echo "cns11643 EUC-TW" echo "5601 EUC-KR" echo "ko_KR.johap92 JOHAB" echo "eucJP EUC-JP" echo "PCK SHIFT_JIS" echo "TIS620.2533 TIS-620" #echo "sun_eu_greek ?" # what is this? echo "UTF-8 UTF-8" ;; freebsd* | os2*) # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just # reuse FreeBSD's locale data for OS/2. echo "C ASCII" echo "US-ASCII ASCII" for l in la_LN lt_LN; do echo "$l.ASCII ASCII" done for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do echo "$l.ISO_8859-1 ISO-8859-1" echo "$l.DIS_8859-15 ISO-8859-15" done for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do echo "$l.ISO_8859-2 ISO-8859-2" done for l in la_LN lt_LT; do echo "$l.ISO_8859-4 ISO-8859-4" done for l in ru_RU ru_SU; do echo "$l.KOI8-R KOI8-R" echo "$l.ISO_8859-5 ISO-8859-5" echo "$l.CP866 CP866" done echo "uk_UA.KOI8-U KOI8-U" echo "zh_TW.BIG5 BIG5" echo "zh_TW.Big5 BIG5" echo "zh_CN.EUC GB2312" echo "ja_JP.EUC EUC-JP" echo "ja_JP.SJIS SHIFT_JIS" echo "ja_JP.Shift_JIS SHIFT_JIS" echo "ko_KR.EUC EUC-KR" ;; netbsd*) echo "646 ASCII" echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-15 ISO-8859-15" echo "eucCN GB2312" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "BIG5 BIG5" echo "SJIS SHIFT_JIS" ;; darwin[56]*) # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "C ASCII" for l in en_AU en_CA en_GB en_US la_LN; do echo "$l.US-ASCII ASCII" done for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \ nl_NL no_NO pt_PT sv_SE; do echo "$l ISO-8859-1" echo "$l.ISO8859-1 ISO-8859-1" echo "$l.ISO8859-15 ISO-8859-15" done for l in la_LN; do echo "$l.ISO8859-1 ISO-8859-1" echo "$l.ISO8859-15 ISO-8859-15" done for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do echo "$l.ISO8859-2 ISO-8859-2" done for l in la_LN lt_LT; do echo "$l.ISO8859-4 ISO-8859-4" done for l in ru_RU; do echo "$l.KOI8-R KOI8-R" echo "$l.ISO8859-5 ISO-8859-5" echo "$l.CP866 CP866" done for l in bg_BG; do echo "$l.CP1251 CP1251" done echo "uk_UA.KOI8-U KOI8-U" echo "zh_TW.BIG5 BIG5" echo "zh_TW.Big5 BIG5" echo "zh_CN.EUC GB2312" echo "ja_JP.EUC EUC-JP" echo "ja_JP.SJIS SHIFT_JIS" echo "ko_KR.EUC EUC-KR" ;; darwin*) # Darwin 7.5 has nl_langinfo(CODESET), but it is useless: # - It returns the empty string when LANG is set to a locale of the # form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8 # LC_CTYPE file. # - The environment variables LANG, LC_CTYPE, LC_ALL are not set by # the system; nl_langinfo(CODESET) returns "US-ASCII" in this case. # - The documentation says: # "... all code that calls BSD system routines should ensure # that the const *char parameters of these routines are in UTF-8 # encoding. All BSD system functions expect their string # parameters to be in UTF-8 encoding and nothing else." # It also says # "An additional caveat is that string parameters for files, # paths, and other file-system entities must be in canonical # UTF-8. In a canonical UTF-8 Unicode string, all decomposable # characters are decomposed ..." # but this is not true: You can pass non-decomposed UTF-8 strings # to file system functions, and it is the OS which will convert # them to decomposed UTF-8 before accessing the file system. # - The Apple Terminal application displays UTF-8 by default. # - However, other applications are free to use different encodings: # - xterm uses ISO-8859-1 by default. # - TextEdit uses MacRoman by default. # We prefer UTF-8 over decomposed UTF-8-MAC because one should # minimize the use of decomposed Unicode. Unfortunately, through the # Darwin file system, decomposed UTF-8 strings are leaked into user # space nevertheless. echo "* UTF-8" ;; beos*) # BeOS has a single locale, and it has UTF-8 encoding. echo "* UTF-8" ;; msdosdjgpp*) # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "#" echo "# The encodings given here may not all be correct." echo "# If you find that the encoding given for your language and" echo "# country is not the one your DOS machine actually uses, just" echo "# correct it in this file, and send a mail to" echo "# Juan Manuel Guerrero " echo "# and Bruno Haible ." echo "#" echo "C ASCII" # ISO-8859-1 languages echo "ca CP850" echo "ca_ES CP850" echo "da CP865" # not CP850 ?? echo "da_DK CP865" # not CP850 ?? echo "de CP850" echo "de_AT CP850" echo "de_CH CP850" echo "de_DE CP850" echo "en CP850" echo "en_AU CP850" # not CP437 ?? echo "en_CA CP850" echo "en_GB CP850" echo "en_NZ CP437" echo "en_US CP437" echo "en_ZA CP850" # not CP437 ?? echo "es CP850" echo "es_AR CP850" echo "es_BO CP850" echo "es_CL CP850" echo "es_CO CP850" echo "es_CR CP850" echo "es_CU CP850" echo "es_DO CP850" echo "es_EC CP850" echo "es_ES CP850" echo "es_GT CP850" echo "es_HN CP850" echo "es_MX CP850" echo "es_NI CP850" echo "es_PA CP850" echo "es_PY CP850" echo "es_PE CP850" echo "es_SV CP850" echo "es_UY CP850" echo "es_VE CP850" echo "et CP850" echo "et_EE CP850" echo "eu CP850" echo "eu_ES CP850" echo "fi CP850" echo "fi_FI CP850" echo "fr CP850" echo "fr_BE CP850" echo "fr_CA CP850" echo "fr_CH CP850" echo "fr_FR CP850" echo "ga CP850" echo "ga_IE CP850" echo "gd CP850" echo "gd_GB CP850" echo "gl CP850" echo "gl_ES CP850" echo "id CP850" # not CP437 ?? echo "id_ID CP850" # not CP437 ?? echo "is CP861" # not CP850 ?? echo "is_IS CP861" # not CP850 ?? echo "it CP850" echo "it_CH CP850" echo "it_IT CP850" echo "lt CP775" echo "lt_LT CP775" echo "lv CP775" echo "lv_LV CP775" echo "nb CP865" # not CP850 ?? echo "nb_NO CP865" # not CP850 ?? echo "nl CP850" echo "nl_BE CP850" echo "nl_NL CP850" echo "nn CP865" # not CP850 ?? echo "nn_NO CP865" # not CP850 ?? echo "no CP865" # not CP850 ?? echo "no_NO CP865" # not CP850 ?? echo "pt CP850" echo "pt_BR CP850" echo "pt_PT CP850" echo "sv CP850" echo "sv_SE CP850" # ISO-8859-2 languages echo "cs CP852" echo "cs_CZ CP852" echo "hr CP852" echo "hr_HR CP852" echo "hu CP852" echo "hu_HU CP852" echo "pl CP852" echo "pl_PL CP852" echo "ro CP852" echo "ro_RO CP852" echo "sk CP852" echo "sk_SK CP852" echo "sl CP852" echo "sl_SI CP852" echo "sq CP852" echo "sq_AL CP852" echo "sr CP852" # CP852 or CP866 or CP855 ?? echo "sr_CS CP852" # CP852 or CP866 or CP855 ?? echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? # ISO-8859-3 languages echo "mt CP850" echo "mt_MT CP850" # ISO-8859-5 languages echo "be CP866" echo "be_BE CP866" echo "bg CP866" # not CP855 ?? echo "bg_BG CP866" # not CP855 ?? echo "mk CP866" # not CP855 ?? echo "mk_MK CP866" # not CP855 ?? echo "ru CP866" echo "ru_RU CP866" echo "uk CP1125" echo "uk_UA CP1125" # ISO-8859-6 languages echo "ar CP864" echo "ar_AE CP864" echo "ar_DZ CP864" echo "ar_EG CP864" echo "ar_IQ CP864" echo "ar_IR CP864" echo "ar_JO CP864" echo "ar_KW CP864" echo "ar_MA CP864" echo "ar_OM CP864" echo "ar_QA CP864" echo "ar_SA CP864" echo "ar_SY CP864" # ISO-8859-7 languages echo "el CP869" echo "el_GR CP869" # ISO-8859-8 languages echo "he CP862" echo "he_IL CP862" # ISO-8859-9 languages echo "tr CP857" echo "tr_TR CP857" # Japanese echo "ja CP932" echo "ja_JP CP932" # Chinese echo "zh_CN GBK" echo "zh_TW CP950" # not CP938 ?? # Korean echo "kr CP949" # not CP934 ?? echo "kr_KR CP949" # not CP934 ?? # Thai echo "th CP874" echo "th_TH CP874" # Other echo "eo CP850" echo "eo_EO CP850" ;; esac sweep-0.9.3/intl/os2compat.h0000644000175000017500000000302610777660165014432 0ustar useruser/* OS/2 compatibility defines. This file is intended to be included from config.h Copyright (C) 2001-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* When included from os2compat.h we need all the original definitions */ #ifndef OS2_AWARE #undef LIBDIR #define LIBDIR _nlos2_libdir extern char *_nlos2_libdir; #undef LOCALEDIR #define LOCALEDIR _nlos2_localedir extern char *_nlos2_localedir; #undef LOCALE_ALIAS_PATH #define LOCALE_ALIAS_PATH _nlos2_localealiaspath extern char *_nlos2_localealiaspath; #endif #undef HAVE_STRCASECMP #define HAVE_STRCASECMP 1 #define strcasecmp stricmp #define strncasecmp strnicmp /* We have our own getenv() which works even if library is compiled as DLL */ #define getenv _nl_getenv /* Older versions of gettext used -1 as the value of LC_MESSAGES */ #define LC_MESSAGES_COMPAT (-1) sweep-0.9.3/intl/intl-compat.c0000644000175000017500000000644710777660165014757 0ustar useruser/* intl-compat.c - Stub functions to call gettext functions from GNU gettext Library. Copyright (C) 1995, 2000-2003 Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" /* @@ end of prolog @@ */ /* This file redirects the gettext functions (without prefix) to those defined in the included GNU libintl library (with "libintl_" prefix). It is compiled into libintl in order to make the AM_GNU_GETTEXT test of gettext <= 0.11.2 work with the libintl library >= 0.11.3 which has the redirections primarily in the include file. It is also compiled into libgnuintl so that libgnuintl.so can be used as LD_PRELOADable library on glibc systems, to provide the extra features that the functions in the libc don't have (namely, logging). */ #undef gettext #undef dgettext #undef dcgettext #undef ngettext #undef dngettext #undef dcngettext #undef textdomain #undef bindtextdomain #undef bind_textdomain_codeset /* When building a DLL, we must export some functions. Note that because the functions are only defined for binary backward compatibility, we don't need to use __declspec(dllimport) in any case. */ #if defined _MSC_VER && BUILDING_DLL # define DLL_EXPORTED __declspec(dllexport) #else # define DLL_EXPORTED #endif DLL_EXPORTED char * gettext (const char *msgid) { return libintl_gettext (msgid); } DLL_EXPORTED char * dgettext (const char *domainname, const char *msgid) { return libintl_dgettext (domainname, msgid); } DLL_EXPORTED char * dcgettext (const char *domainname, const char *msgid, int category) { return libintl_dcgettext (domainname, msgid, category); } DLL_EXPORTED char * ngettext (const char *msgid1, const char *msgid2, unsigned long int n) { return libintl_ngettext (msgid1, msgid2, n); } DLL_EXPORTED char * dngettext (const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n) { return libintl_dngettext (domainname, msgid1, msgid2, n); } DLL_EXPORTED char * dcngettext (const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n, int category) { return libintl_dcngettext (domainname, msgid1, msgid2, n, category); } DLL_EXPORTED char * textdomain (const char *domainname) { return libintl_textdomain (domainname); } DLL_EXPORTED char * bindtextdomain (const char *domainname, const char *dirname) { return libintl_bindtextdomain (domainname, dirname); } DLL_EXPORTED char * bind_textdomain_codeset (const char *domainname, const char *codeset) { return libintl_bind_textdomain_codeset (domainname, codeset); } sweep-0.9.3/intl/ngettext.c0000644000175000017500000000367410777660165014371 0ustar useruser/* Implementation of ngettext(3) function. Copyright (C) 1995, 1997, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef _LIBC # define __need_NULL # include #else # include /* Just for NULL. */ #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif #include /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define NGETTEXT __ngettext # define DCNGETTEXT __dcngettext #else # define NGETTEXT libintl_ngettext # define DCNGETTEXT libintl_dcngettext #endif /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ char * NGETTEXT (const char *msgid1, const char *msgid2, unsigned long int n) { return DCNGETTEXT (NULL, msgid1, msgid2, n, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__ngettext, ngettext); #endif sweep-0.9.3/intl/wprintf-parse.h0000644000175000017500000000426310777660165015330 0ustar useruser/* Parse printf format string. Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _WPRINTF_PARSE_H #define _WPRINTF_PARSE_H #include "printf-args.h" /* Flags */ #define FLAG_GROUP 1 /* ' flag */ #define FLAG_LEFT 2 /* - flag */ #define FLAG_SHOWSIGN 4 /* + flag */ #define FLAG_SPACE 8 /* space flag */ #define FLAG_ALT 16 /* # flag */ #define FLAG_ZERO 32 /* arg_index value indicating that no argument is consumed. */ #define ARG_NONE (~(size_t)0) /* A parsed directive. */ typedef struct { const wchar_t* dir_start; const wchar_t* dir_end; int flags; const wchar_t* width_start; const wchar_t* width_end; size_t width_arg_index; const wchar_t* precision_start; const wchar_t* precision_end; size_t precision_arg_index; wchar_t conversion; /* d i o u x X f e E g G c s p n U % but not C S */ size_t arg_index; } wchar_t_directive; /* A parsed format string. */ typedef struct { size_t count; wchar_t_directive *dir; size_t max_width_length; size_t max_precision_length; } wchar_t_directives; /* Parses the format string. Fills in the number N of directives, and fills in directives[0], ..., directives[N-1], and sets directives[N].dir_start to the end of the format string. Also fills in the arg_type fields of the arguments and the needed count of arguments. */ #ifdef STATIC STATIC #else extern #endif int wprintf_parse (const wchar_t *format, wchar_t_directives *d, arguments *a); #endif /* _WPRINTF_PARSE_H */ sweep-0.9.3/intl/printf-parse.h0000644000175000017500000000421310777660165015134 0ustar useruser/* Parse printf format string. Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _PRINTF_PARSE_H #define _PRINTF_PARSE_H #include "printf-args.h" /* Flags */ #define FLAG_GROUP 1 /* ' flag */ #define FLAG_LEFT 2 /* - flag */ #define FLAG_SHOWSIGN 4 /* + flag */ #define FLAG_SPACE 8 /* space flag */ #define FLAG_ALT 16 /* # flag */ #define FLAG_ZERO 32 /* arg_index value indicating that no argument is consumed. */ #define ARG_NONE (~(size_t)0) /* A parsed directive. */ typedef struct { const char* dir_start; const char* dir_end; int flags; const char* width_start; const char* width_end; size_t width_arg_index; const char* precision_start; const char* precision_end; size_t precision_arg_index; char conversion; /* d i o u x X f e E g G c s p n U % but not C S */ size_t arg_index; } char_directive; /* A parsed format string. */ typedef struct { size_t count; char_directive *dir; size_t max_width_length; size_t max_precision_length; } char_directives; /* Parses the format string. Fills in the number N of directives, and fills in directives[0], ..., directives[N-1], and sets directives[N].dir_start to the end of the format string. Also fills in the arg_type fields of the arguments and the needed count of arguments. */ #ifdef STATIC STATIC #else extern #endif int printf_parse (const char *format, char_directives *d, arguments *a); #endif /* _PRINTF_PARSE_H */ sweep-0.9.3/intl/ChangeLog0000644000175000017500000000011110777660165014114 0ustar useruser2005-05-23 GNU * Version 0.14.5 released. sweep-0.9.3/intl/VERSION0000644000175000017500000000005010777660165013414 0ustar useruserGNU gettext library from gettext-0.14.5 sweep-0.9.3/intl/vasnwprintf.h0000644000175000017500000000330610777660165015105 0ustar useruser/* vswprintf with automatic memory allocation. Copyright (C) 2002-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _VASNWPRINTF_H #define _VASNWPRINTF_H /* Get va_list. */ #include /* Get wchar_t, size_t. */ #include #ifdef __cplusplus extern "C" { #endif /* Write formatted output to a string dynamically allocated with malloc(). You can pass a preallocated buffer for the result in RESULTBUF and its size in *LENGTHP; otherwise you pass RESULTBUF = NULL. If successful, return the address of the string (this may be = RESULTBUF if no dynamic memory allocation was necessary) and set *LENGTHP to the number of resulting bytes, excluding the trailing NUL. Upon error, set errno and return NULL. */ extern wchar_t * asnwprintf (wchar_t *resultbuf, size_t *lengthp, const wchar_t *format, ...); extern wchar_t * vasnwprintf (wchar_t *resultbuf, size_t *lengthp, const wchar_t *format, va_list args); #ifdef __cplusplus } #endif #endif /* _VASNWPRINTF_H */ sweep-0.9.3/intl/localename.c0000644000175000017500000012430010777660165014615 0ustar useruser/* Determine the current selected locale. Copyright (C) 1995-1999, 2000-2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Ulrich Drepper , 1995. */ /* Win32 code written by Tor Lillqvist . */ /* MacOS X code written by Bruno Haible . */ #ifdef HAVE_CONFIG_H # include #endif #include #include #if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE # include # include # if HAVE_CFLOCALECOPYCURRENT # include # elif HAVE_CFPREFERENCESCOPYAPPVALUE # include # endif #endif #if defined _WIN32 || defined __WIN32__ # undef WIN32 /* avoid warning on mingw32 */ # define WIN32 #endif #ifdef WIN32 # define WIN32_LEAN_AND_MEAN # include /* List of language codes, sorted by value: 0x01 LANG_ARABIC 0x02 LANG_BULGARIAN 0x03 LANG_CATALAN 0x04 LANG_CHINESE 0x05 LANG_CZECH 0x06 LANG_DANISH 0x07 LANG_GERMAN 0x08 LANG_GREEK 0x09 LANG_ENGLISH 0x0a LANG_SPANISH 0x0b LANG_FINNISH 0x0c LANG_FRENCH 0x0d LANG_HEBREW 0x0e LANG_HUNGARIAN 0x0f LANG_ICELANDIC 0x10 LANG_ITALIAN 0x11 LANG_JAPANESE 0x12 LANG_KOREAN 0x13 LANG_DUTCH 0x14 LANG_NORWEGIAN 0x15 LANG_POLISH 0x16 LANG_PORTUGUESE 0x17 LANG_RHAETO_ROMANCE 0x18 LANG_ROMANIAN 0x19 LANG_RUSSIAN 0x1a LANG_CROATIAN == LANG_SERBIAN 0x1b LANG_SLOVAK 0x1c LANG_ALBANIAN 0x1d LANG_SWEDISH 0x1e LANG_THAI 0x1f LANG_TURKISH 0x20 LANG_URDU 0x21 LANG_INDONESIAN 0x22 LANG_UKRAINIAN 0x23 LANG_BELARUSIAN 0x24 LANG_SLOVENIAN 0x25 LANG_ESTONIAN 0x26 LANG_LATVIAN 0x27 LANG_LITHUANIAN 0x28 LANG_TAJIK 0x29 LANG_FARSI 0x2a LANG_VIETNAMESE 0x2b LANG_ARMENIAN 0x2c LANG_AZERI 0x2d LANG_BASQUE 0x2e LANG_SORBIAN 0x2f LANG_MACEDONIAN 0x30 LANG_SUTU 0x31 LANG_TSONGA 0x32 LANG_TSWANA 0x33 LANG_VENDA 0x34 LANG_XHOSA 0x35 LANG_ZULU 0x36 LANG_AFRIKAANS 0x37 LANG_GEORGIAN 0x38 LANG_FAEROESE 0x39 LANG_HINDI 0x3a LANG_MALTESE 0x3b LANG_SAAMI 0x3c LANG_GAELIC 0x3d LANG_YIDDISH 0x3e LANG_MALAY 0x3f LANG_KAZAK 0x40 LANG_KYRGYZ 0x41 LANG_SWAHILI 0x42 LANG_TURKMEN 0x43 LANG_UZBEK 0x44 LANG_TATAR 0x45 LANG_BENGALI 0x46 LANG_PUNJABI 0x47 LANG_GUJARATI 0x48 LANG_ORIYA 0x49 LANG_TAMIL 0x4a LANG_TELUGU 0x4b LANG_KANNADA 0x4c LANG_MALAYALAM 0x4d LANG_ASSAMESE 0x4e LANG_MARATHI 0x4f LANG_SANSKRIT 0x50 LANG_MONGOLIAN 0x51 LANG_TIBETAN 0x52 LANG_WELSH 0x53 LANG_CAMBODIAN 0x54 LANG_LAO 0x55 LANG_BURMESE 0x56 LANG_GALICIAN 0x57 LANG_KONKANI 0x58 LANG_MANIPURI 0x59 LANG_SINDHI 0x5a LANG_SYRIAC 0x5b LANG_SINHALESE 0x5c LANG_CHEROKEE 0x5d LANG_INUKTITUT 0x5e LANG_AMHARIC 0x5f LANG_TAMAZIGHT 0x60 LANG_KASHMIRI 0x61 LANG_NEPALI 0x62 LANG_FRISIAN 0x63 LANG_PASHTO 0x64 LANG_TAGALOG 0x65 LANG_DIVEHI 0x66 LANG_EDO 0x67 LANG_FULFULDE 0x68 LANG_HAUSA 0x69 LANG_IBIBIO 0x6a LANG_YORUBA 0x70 LANG_IGBO 0x71 LANG_KANURI 0x72 LANG_OROMO 0x73 LANG_TIGRINYA 0x74 LANG_GUARANI 0x75 LANG_HAWAIIAN 0x76 LANG_LATIN 0x77 LANG_SOMALI 0x78 LANG_YI 0x79 LANG_PAPIAMENTU */ /* Mingw headers don't have latest language and sublanguage codes. */ # ifndef LANG_AFRIKAANS # define LANG_AFRIKAANS 0x36 # endif # ifndef LANG_ALBANIAN # define LANG_ALBANIAN 0x1c # endif # ifndef LANG_AMHARIC # define LANG_AMHARIC 0x5e # endif # ifndef LANG_ARABIC # define LANG_ARABIC 0x01 # endif # ifndef LANG_ARMENIAN # define LANG_ARMENIAN 0x2b # endif # ifndef LANG_ASSAMESE # define LANG_ASSAMESE 0x4d # endif # ifndef LANG_AZERI # define LANG_AZERI 0x2c # endif # ifndef LANG_BASQUE # define LANG_BASQUE 0x2d # endif # ifndef LANG_BELARUSIAN # define LANG_BELARUSIAN 0x23 # endif # ifndef LANG_BENGALI # define LANG_BENGALI 0x45 # endif # ifndef LANG_BURMESE # define LANG_BURMESE 0x55 # endif # ifndef LANG_CAMBODIAN # define LANG_CAMBODIAN 0x53 # endif # ifndef LANG_CATALAN # define LANG_CATALAN 0x03 # endif # ifndef LANG_CHEROKEE # define LANG_CHEROKEE 0x5c # endif # ifndef LANG_DIVEHI # define LANG_DIVEHI 0x65 # endif # ifndef LANG_EDO # define LANG_EDO 0x66 # endif # ifndef LANG_ESTONIAN # define LANG_ESTONIAN 0x25 # endif # ifndef LANG_FAEROESE # define LANG_FAEROESE 0x38 # endif # ifndef LANG_FARSI # define LANG_FARSI 0x29 # endif # ifndef LANG_FRISIAN # define LANG_FRISIAN 0x62 # endif # ifndef LANG_FULFULDE # define LANG_FULFULDE 0x67 # endif # ifndef LANG_GAELIC # define LANG_GAELIC 0x3c # endif # ifndef LANG_GALICIAN # define LANG_GALICIAN 0x56 # endif # ifndef LANG_GEORGIAN # define LANG_GEORGIAN 0x37 # endif # ifndef LANG_GUARANI # define LANG_GUARANI 0x74 # endif # ifndef LANG_GUJARATI # define LANG_GUJARATI 0x47 # endif # ifndef LANG_HAUSA # define LANG_HAUSA 0x68 # endif # ifndef LANG_HAWAIIAN # define LANG_HAWAIIAN 0x75 # endif # ifndef LANG_HEBREW # define LANG_HEBREW 0x0d # endif # ifndef LANG_HINDI # define LANG_HINDI 0x39 # endif # ifndef LANG_IBIBIO # define LANG_IBIBIO 0x69 # endif # ifndef LANG_IGBO # define LANG_IGBO 0x70 # endif # ifndef LANG_INDONESIAN # define LANG_INDONESIAN 0x21 # endif # ifndef LANG_INUKTITUT # define LANG_INUKTITUT 0x5d # endif # ifndef LANG_KANNADA # define LANG_KANNADA 0x4b # endif # ifndef LANG_KANURI # define LANG_KANURI 0x71 # endif # ifndef LANG_KASHMIRI # define LANG_KASHMIRI 0x60 # endif # ifndef LANG_KAZAK # define LANG_KAZAK 0x3f # endif # ifndef LANG_KONKANI # define LANG_KONKANI 0x57 # endif # ifndef LANG_KYRGYZ # define LANG_KYRGYZ 0x40 # endif # ifndef LANG_LAO # define LANG_LAO 0x54 # endif # ifndef LANG_LATIN # define LANG_LATIN 0x76 # endif # ifndef LANG_LATVIAN # define LANG_LATVIAN 0x26 # endif # ifndef LANG_LITHUANIAN # define LANG_LITHUANIAN 0x27 # endif # ifndef LANG_MACEDONIAN # define LANG_MACEDONIAN 0x2f # endif # ifndef LANG_MALAY # define LANG_MALAY 0x3e # endif # ifndef LANG_MALAYALAM # define LANG_MALAYALAM 0x4c # endif # ifndef LANG_MALTESE # define LANG_MALTESE 0x3a # endif # ifndef LANG_MANIPURI # define LANG_MANIPURI 0x58 # endif # ifndef LANG_MARATHI # define LANG_MARATHI 0x4e # endif # ifndef LANG_MONGOLIAN # define LANG_MONGOLIAN 0x50 # endif # ifndef LANG_NEPALI # define LANG_NEPALI 0x61 # endif # ifndef LANG_ORIYA # define LANG_ORIYA 0x48 # endif # ifndef LANG_OROMO # define LANG_OROMO 0x72 # endif # ifndef LANG_PAPIAMENTU # define LANG_PAPIAMENTU 0x79 # endif # ifndef LANG_PASHTO # define LANG_PASHTO 0x63 # endif # ifndef LANG_PUNJABI # define LANG_PUNJABI 0x46 # endif # ifndef LANG_RHAETO_ROMANCE # define LANG_RHAETO_ROMANCE 0x17 # endif # ifndef LANG_SAAMI # define LANG_SAAMI 0x3b # endif # ifndef LANG_SANSKRIT # define LANG_SANSKRIT 0x4f # endif # ifndef LANG_SERBIAN # define LANG_SERBIAN 0x1a # endif # ifndef LANG_SINDHI # define LANG_SINDHI 0x59 # endif # ifndef LANG_SINHALESE # define LANG_SINHALESE 0x5b # endif # ifndef LANG_SLOVAK # define LANG_SLOVAK 0x1b # endif # ifndef LANG_SOMALI # define LANG_SOMALI 0x77 # endif # ifndef LANG_SORBIAN # define LANG_SORBIAN 0x2e # endif # ifndef LANG_SUTU # define LANG_SUTU 0x30 # endif # ifndef LANG_SWAHILI # define LANG_SWAHILI 0x41 # endif # ifndef LANG_SYRIAC # define LANG_SYRIAC 0x5a # endif # ifndef LANG_TAGALOG # define LANG_TAGALOG 0x64 # endif # ifndef LANG_TAJIK # define LANG_TAJIK 0x28 # endif # ifndef LANG_TAMAZIGHT # define LANG_TAMAZIGHT 0x5f # endif # ifndef LANG_TAMIL # define LANG_TAMIL 0x49 # endif # ifndef LANG_TATAR # define LANG_TATAR 0x44 # endif # ifndef LANG_TELUGU # define LANG_TELUGU 0x4a # endif # ifndef LANG_THAI # define LANG_THAI 0x1e # endif # ifndef LANG_TIBETAN # define LANG_TIBETAN 0x51 # endif # ifndef LANG_TIGRINYA # define LANG_TIGRINYA 0x73 # endif # ifndef LANG_TSONGA # define LANG_TSONGA 0x31 # endif # ifndef LANG_TSWANA # define LANG_TSWANA 0x32 # endif # ifndef LANG_TURKMEN # define LANG_TURKMEN 0x42 # endif # ifndef LANG_UKRAINIAN # define LANG_UKRAINIAN 0x22 # endif # ifndef LANG_URDU # define LANG_URDU 0x20 # endif # ifndef LANG_UZBEK # define LANG_UZBEK 0x43 # endif # ifndef LANG_VENDA # define LANG_VENDA 0x33 # endif # ifndef LANG_VIETNAMESE # define LANG_VIETNAMESE 0x2a # endif # ifndef LANG_WELSH # define LANG_WELSH 0x52 # endif # ifndef LANG_XHOSA # define LANG_XHOSA 0x34 # endif # ifndef LANG_YI # define LANG_YI 0x78 # endif # ifndef LANG_YIDDISH # define LANG_YIDDISH 0x3d # endif # ifndef LANG_YORUBA # define LANG_YORUBA 0x6a # endif # ifndef LANG_ZULU # define LANG_ZULU 0x35 # endif # ifndef SUBLANG_ARABIC_SAUDI_ARABIA # define SUBLANG_ARABIC_SAUDI_ARABIA 0x01 # endif # ifndef SUBLANG_ARABIC_IRAQ # define SUBLANG_ARABIC_IRAQ 0x02 # endif # ifndef SUBLANG_ARABIC_EGYPT # define SUBLANG_ARABIC_EGYPT 0x03 # endif # ifndef SUBLANG_ARABIC_LIBYA # define SUBLANG_ARABIC_LIBYA 0x04 # endif # ifndef SUBLANG_ARABIC_ALGERIA # define SUBLANG_ARABIC_ALGERIA 0x05 # endif # ifndef SUBLANG_ARABIC_MOROCCO # define SUBLANG_ARABIC_MOROCCO 0x06 # endif # ifndef SUBLANG_ARABIC_TUNISIA # define SUBLANG_ARABIC_TUNISIA 0x07 # endif # ifndef SUBLANG_ARABIC_OMAN # define SUBLANG_ARABIC_OMAN 0x08 # endif # ifndef SUBLANG_ARABIC_YEMEN # define SUBLANG_ARABIC_YEMEN 0x09 # endif # ifndef SUBLANG_ARABIC_SYRIA # define SUBLANG_ARABIC_SYRIA 0x0a # endif # ifndef SUBLANG_ARABIC_JORDAN # define SUBLANG_ARABIC_JORDAN 0x0b # endif # ifndef SUBLANG_ARABIC_LEBANON # define SUBLANG_ARABIC_LEBANON 0x0c # endif # ifndef SUBLANG_ARABIC_KUWAIT # define SUBLANG_ARABIC_KUWAIT 0x0d # endif # ifndef SUBLANG_ARABIC_UAE # define SUBLANG_ARABIC_UAE 0x0e # endif # ifndef SUBLANG_ARABIC_BAHRAIN # define SUBLANG_ARABIC_BAHRAIN 0x0f # endif # ifndef SUBLANG_ARABIC_QATAR # define SUBLANG_ARABIC_QATAR 0x10 # endif # ifndef SUBLANG_AZERI_LATIN # define SUBLANG_AZERI_LATIN 0x01 # endif # ifndef SUBLANG_AZERI_CYRILLIC # define SUBLANG_AZERI_CYRILLIC 0x02 # endif # ifndef SUBLANG_BENGALI_INDIA # define SUBLANG_BENGALI_INDIA 0x00 # endif # ifndef SUBLANG_BENGALI_BANGLADESH # define SUBLANG_BENGALI_BANGLADESH 0x01 # endif # ifndef SUBLANG_CHINESE_MACAU # define SUBLANG_CHINESE_MACAU 0x05 # endif # ifndef SUBLANG_ENGLISH_SOUTH_AFRICA # define SUBLANG_ENGLISH_SOUTH_AFRICA 0x07 # endif # ifndef SUBLANG_ENGLISH_JAMAICA # define SUBLANG_ENGLISH_JAMAICA 0x08 # endif # ifndef SUBLANG_ENGLISH_CARIBBEAN # define SUBLANG_ENGLISH_CARIBBEAN 0x09 # endif # ifndef SUBLANG_ENGLISH_BELIZE # define SUBLANG_ENGLISH_BELIZE 0x0a # endif # ifndef SUBLANG_ENGLISH_TRINIDAD # define SUBLANG_ENGLISH_TRINIDAD 0x0b # endif # ifndef SUBLANG_ENGLISH_ZIMBABWE # define SUBLANG_ENGLISH_ZIMBABWE 0x0c # endif # ifndef SUBLANG_ENGLISH_PHILIPPINES # define SUBLANG_ENGLISH_PHILIPPINES 0x0d # endif # ifndef SUBLANG_ENGLISH_INDONESIA # define SUBLANG_ENGLISH_INDONESIA 0x0e # endif # ifndef SUBLANG_ENGLISH_HONGKONG # define SUBLANG_ENGLISH_HONGKONG 0x0f # endif # ifndef SUBLANG_ENGLISH_INDIA # define SUBLANG_ENGLISH_INDIA 0x10 # endif # ifndef SUBLANG_ENGLISH_MALAYSIA # define SUBLANG_ENGLISH_MALAYSIA 0x11 # endif # ifndef SUBLANG_ENGLISH_SINGAPORE # define SUBLANG_ENGLISH_SINGAPORE 0x12 # endif # ifndef SUBLANG_FRENCH_LUXEMBOURG # define SUBLANG_FRENCH_LUXEMBOURG 0x05 # endif # ifndef SUBLANG_FRENCH_MONACO # define SUBLANG_FRENCH_MONACO 0x06 # endif # ifndef SUBLANG_FRENCH_WESTINDIES # define SUBLANG_FRENCH_WESTINDIES 0x07 # endif # ifndef SUBLANG_FRENCH_REUNION # define SUBLANG_FRENCH_REUNION 0x08 # endif # ifndef SUBLANG_FRENCH_CONGO # define SUBLANG_FRENCH_CONGO 0x09 # endif # ifndef SUBLANG_FRENCH_SENEGAL # define SUBLANG_FRENCH_SENEGAL 0x0a # endif # ifndef SUBLANG_FRENCH_CAMEROON # define SUBLANG_FRENCH_CAMEROON 0x0b # endif # ifndef SUBLANG_FRENCH_COTEDIVOIRE # define SUBLANG_FRENCH_COTEDIVOIRE 0x0c # endif # ifndef SUBLANG_FRENCH_MALI # define SUBLANG_FRENCH_MALI 0x0d # endif # ifndef SUBLANG_FRENCH_MOROCCO # define SUBLANG_FRENCH_MOROCCO 0x0e # endif # ifndef SUBLANG_FRENCH_HAITI # define SUBLANG_FRENCH_HAITI 0x0f # endif # ifndef SUBLANG_GERMAN_LUXEMBOURG # define SUBLANG_GERMAN_LUXEMBOURG 0x04 # endif # ifndef SUBLANG_GERMAN_LIECHTENSTEIN # define SUBLANG_GERMAN_LIECHTENSTEIN 0x05 # endif # ifndef SUBLANG_KASHMIRI_INDIA # define SUBLANG_KASHMIRI_INDIA 0x02 # endif # ifndef SUBLANG_MALAY_MALAYSIA # define SUBLANG_MALAY_MALAYSIA 0x01 # endif # ifndef SUBLANG_MALAY_BRUNEI_DARUSSALAM # define SUBLANG_MALAY_BRUNEI_DARUSSALAM 0x02 # endif # ifndef SUBLANG_NEPALI_INDIA # define SUBLANG_NEPALI_INDIA 0x02 # endif # ifndef SUBLANG_PUNJABI_INDIA # define SUBLANG_PUNJABI_INDIA 0x00 # endif # ifndef SUBLANG_PUNJABI_PAKISTAN # define SUBLANG_PUNJABI_PAKISTAN 0x01 # endif # ifndef SUBLANG_ROMANIAN_ROMANIA # define SUBLANG_ROMANIAN_ROMANIA 0x00 # endif # ifndef SUBLANG_ROMANIAN_MOLDOVA # define SUBLANG_ROMANIAN_MOLDOVA 0x01 # endif # ifndef SUBLANG_SERBIAN_LATIN # define SUBLANG_SERBIAN_LATIN 0x02 # endif # ifndef SUBLANG_SERBIAN_CYRILLIC # define SUBLANG_SERBIAN_CYRILLIC 0x03 # endif # ifndef SUBLANG_SINDHI_INDIA # define SUBLANG_SINDHI_INDIA 0x00 # endif # ifndef SUBLANG_SINDHI_PAKISTAN # define SUBLANG_SINDHI_PAKISTAN 0x01 # endif # ifndef SUBLANG_SPANISH_GUATEMALA # define SUBLANG_SPANISH_GUATEMALA 0x04 # endif # ifndef SUBLANG_SPANISH_COSTA_RICA # define SUBLANG_SPANISH_COSTA_RICA 0x05 # endif # ifndef SUBLANG_SPANISH_PANAMA # define SUBLANG_SPANISH_PANAMA 0x06 # endif # ifndef SUBLANG_SPANISH_DOMINICAN_REPUBLIC # define SUBLANG_SPANISH_DOMINICAN_REPUBLIC 0x07 # endif # ifndef SUBLANG_SPANISH_VENEZUELA # define SUBLANG_SPANISH_VENEZUELA 0x08 # endif # ifndef SUBLANG_SPANISH_COLOMBIA # define SUBLANG_SPANISH_COLOMBIA 0x09 # endif # ifndef SUBLANG_SPANISH_PERU # define SUBLANG_SPANISH_PERU 0x0a # endif # ifndef SUBLANG_SPANISH_ARGENTINA # define SUBLANG_SPANISH_ARGENTINA 0x0b # endif # ifndef SUBLANG_SPANISH_ECUADOR # define SUBLANG_SPANISH_ECUADOR 0x0c # endif # ifndef SUBLANG_SPANISH_CHILE # define SUBLANG_SPANISH_CHILE 0x0d # endif # ifndef SUBLANG_SPANISH_URUGUAY # define SUBLANG_SPANISH_URUGUAY 0x0e # endif # ifndef SUBLANG_SPANISH_PARAGUAY # define SUBLANG_SPANISH_PARAGUAY 0x0f # endif # ifndef SUBLANG_SPANISH_BOLIVIA # define SUBLANG_SPANISH_BOLIVIA 0x10 # endif # ifndef SUBLANG_SPANISH_EL_SALVADOR # define SUBLANG_SPANISH_EL_SALVADOR 0x11 # endif # ifndef SUBLANG_SPANISH_HONDURAS # define SUBLANG_SPANISH_HONDURAS 0x12 # endif # ifndef SUBLANG_SPANISH_NICARAGUA # define SUBLANG_SPANISH_NICARAGUA 0x13 # endif # ifndef SUBLANG_SPANISH_PUERTO_RICO # define SUBLANG_SPANISH_PUERTO_RICO 0x14 # endif # ifndef SUBLANG_SWEDISH_FINLAND # define SUBLANG_SWEDISH_FINLAND 0x02 # endif # ifndef SUBLANG_TAMAZIGHT_ARABIC # define SUBLANG_TAMAZIGHT_ARABIC 0x01 # endif # ifndef SUBLANG_TAMAZIGHT_LATIN # define SUBLANG_TAMAZIGHT_LATIN 0x02 # endif # ifndef SUBLANG_TIGRINYA_ETHIOPIA # define SUBLANG_TIGRINYA_ETHIOPIA 0x00 # endif # ifndef SUBLANG_TIGRINYA_ERITREA # define SUBLANG_TIGRINYA_ERITREA 0x01 # endif # ifndef SUBLANG_URDU_PAKISTAN # define SUBLANG_URDU_PAKISTAN 0x01 # endif # ifndef SUBLANG_URDU_INDIA # define SUBLANG_URDU_INDIA 0x02 # endif # ifndef SUBLANG_UZBEK_LATIN # define SUBLANG_UZBEK_LATIN 0x01 # endif # ifndef SUBLANG_UZBEK_CYRILLIC # define SUBLANG_UZBEK_CYRILLIC 0x02 # endif #endif # if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ /* Canonicalize a MacOS X locale name to a Unix locale name. NAME is a sufficiently large buffer. On input, it contains the MacOS X locale name. On output, it contains the Unix locale name. */ void _nl_locale_name_canonicalize (char *name) { /* This conversion is based on a posting by Deborah GoldSmith on 2005-03-08, http://lists.apple.com/archives/carbon-dev/2005/Mar/msg00293.html */ /* Convert legacy (NeXTstep inherited) English names to Unix (ISO 639 and ISO 3166) names. Prior to MacOS X 10.3, there is no API for doing this. Therefore we do it ourselves, using a table based on the results of the MacOS X 10.3.8 function CFLocaleCreateCanonicalLocaleIdentifierFromString(). */ typedef struct { const char legacy[21+1]; const char unixy[5+1]; } legacy_entry; static const legacy_entry legacy_table[] = { { "Afrikaans", "af" }, { "Albanian", "sq" }, { "Amharic", "am" }, { "Arabic", "ar" }, { "Armenian", "hy" }, { "Assamese", "as" }, { "Aymara", "ay" }, { "Azerbaijani", "az" }, { "Basque", "eu" }, { "Belarusian", "be" }, { "Belorussian", "be" }, { "Bengali", "bn" }, { "Brazilian Portugese", "pt_BR" }, { "Brazilian Portuguese", "pt_BR" }, { "Breton", "br" }, { "Bulgarian", "bg" }, { "Burmese", "my" }, { "Byelorussian", "be" }, { "Catalan", "ca" }, { "Chewa", "ny" }, { "Chichewa", "ny" }, { "Chinese", "zh" }, { "Chinese, Simplified", "zh_CN" }, { "Chinese, Traditional", "zh_TW" }, { "Chinese, Tradtional", "zh_TW" }, { "Croatian", "hr" }, { "Czech", "cs" }, { "Danish", "da" }, { "Dutch", "nl" }, { "Dzongkha", "dz" }, { "English", "en" }, { "Esperanto", "eo" }, { "Estonian", "et" }, { "Faroese", "fo" }, { "Farsi", "fa" }, { "Finnish", "fi" }, { "Flemish", "nl_BE" }, { "French", "fr" }, { "Galician", "gl" }, { "Gallegan", "gl" }, { "Georgian", "ka" }, { "German", "de" }, { "Greek", "el" }, { "Greenlandic", "kl" }, { "Guarani", "gn" }, { "Gujarati", "gu" }, { "Hawaiian", "haw" }, /* Yes, "haw", not "cpe". */ { "Hebrew", "he" }, { "Hindi", "hi" }, { "Hungarian", "hu" }, { "Icelandic", "is" }, { "Indonesian", "id" }, { "Inuktitut", "iu" }, { "Irish", "ga" }, { "Italian", "it" }, { "Japanese", "ja" }, { "Javanese", "jv" }, { "Kalaallisut", "kl" }, { "Kannada", "kn" }, { "Kashmiri", "ks" }, { "Kazakh", "kk" }, { "Khmer", "km" }, { "Kinyarwanda", "rw" }, { "Kirghiz", "ky" }, { "Korean", "ko" }, { "Kurdish", "ku" }, { "Latin", "la" }, { "Latvian", "lv" }, { "Lithuanian", "lt" }, { "Macedonian", "mk" }, { "Malagasy", "mg" }, { "Malay", "ms" }, { "Malayalam", "ml" }, { "Maltese", "mt" }, { "Manx", "gv" }, { "Marathi", "mr" }, { "Moldavian", "mo" }, { "Mongolian", "mn" }, { "Nepali", "ne" }, { "Norwegian", "nb" }, /* Yes, "nb", not the obsolete "no". */ { "Nyanja", "ny" }, { "Nynorsk", "nn" }, { "Oriya", "or" }, { "Oromo", "om" }, { "Panjabi", "pa" }, { "Pashto", "ps" }, { "Persian", "fa" }, { "Polish", "pl" }, { "Portuguese", "pt" }, { "Portuguese, Brazilian", "pt_BR" }, { "Punjabi", "pa" }, { "Pushto", "ps" }, { "Quechua", "qu" }, { "Romanian", "ro" }, { "Ruanda", "rw" }, { "Rundi", "rn" }, { "Russian", "ru" }, { "Sami", "se_NO" }, /* Not just "se". */ { "Sanskrit", "sa" }, { "Scottish", "gd" }, { "Serbian", "sr" }, { "Simplified Chinese", "zh_CN" }, { "Sindhi", "sd" }, { "Sinhalese", "si" }, { "Slovak", "sk" }, { "Slovenian", "sl" }, { "Somali", "so" }, { "Spanish", "es" }, { "Sundanese", "su" }, { "Swahili", "sw" }, { "Swedish", "sv" }, { "Tagalog", "tl" }, { "Tajik", "tg" }, { "Tajiki", "tg" }, { "Tamil", "ta" }, { "Tatar", "tt" }, { "Telugu", "te" }, { "Thai", "th" }, { "Tibetan", "bo" }, { "Tigrinya", "ti" }, { "Tongan", "to" }, { "Traditional Chinese", "zh_TW" }, { "Turkish", "tr" }, { "Turkmen", "tk" }, { "Uighur", "ug" }, { "Ukrainian", "uk" }, { "Urdu", "ur" }, { "Uzbek", "uz" }, { "Vietnamese", "vi" }, { "Welsh", "cy" }, { "Yiddish", "yi" } }; /* Convert new-style locale names with language tags (ISO 639 and ISO 15924) to Unix (ISO 639 and ISO 3166) names. */ typedef struct { const char langtag[7+1]; const char unixy[12+1]; } langtag_entry; static const langtag_entry langtag_table[] = { /* MacOS X has "az-Arab", "az-Cyrl", "az-Latn". The default script for az on Unix is Latin. */ { "az-Latn", "az" }, /* MacOS X has "ga-dots". Does not yet exist on Unix. */ { "ga-dots", "ga" }, /* MacOS X has "kk-Cyrl". Does not yet exist on Unix. */ /* MacOS X has "mn-Cyrl", "mn-Mong". The default script for mn on Unix is Cyrillic. */ { "mn-Cyrl", "mn" }, /* MacOS X has "ms-Arab", "ms-Latn". The default script for ms on Unix is Latin. */ { "ms-Latn", "ms" }, /* MacOS X has "tg-Cyrl". The default script for tg on Unix is Cyrillic. */ { "tg-Cyrl", "tg" }, /* MacOS X has "tk-Cyrl". Does not yet exist on Unix. */ /* MacOS X has "tt-Cyrl". The default script for tt on Unix is Cyrillic. */ { "tt-Cyrl", "tt" }, /* MacOS X has "zh-Hans", "zh-Hant". Country codes are used to distinguish these on Unix. */ { "zh-Hans", "zh_CN" }, { "zh-Hant", "zh_TW" } }; /* Convert script names (ISO 15924) to Unix conventions. See http://www.unicode.org/iso15924/iso15924-codes.html */ typedef struct { const char script[4+1]; const char unixy[9+1]; } script_entry; static const script_entry script_table[] = { { "Arab", "arabic" }, { "Cyrl", "cyrillic" }, { "Mong", "mongolian" } }; /* Step 1: Convert using legacy_table. */ if (name[0] >= 'A' && name[0] <= 'Z') { unsigned int i1, i2; i1 = 0; i2 = sizeof (legacy_table) / sizeof (legacy_entry); while (i2 - i1 > 1) { /* At this point we know that if name occurs in legacy_table, its index must be >= i1 and < i2. */ unsigned int i = (i1 + i2) >> 1; const legacy_entry *p = &legacy_table[i]; if (strcmp (name, p->legacy) < 0) i2 = i; else i1 = i; } if (strcmp (name, legacy_table[i1].legacy) == 0) { strcpy (name, legacy_table[i1].unixy); return; } } /* Step 2: Convert using langtag_table and script_table. */ if (strlen (name) == 7 && name[2] == '-') { unsigned int i1, i2; i1 = 0; i2 = sizeof (langtag_table) / sizeof (langtag_entry); while (i2 - i1 > 1) { /* At this point we know that if name occurs in langtag_table, its index must be >= i1 and < i2. */ unsigned int i = (i1 + i2) >> 1; const langtag_entry *p = &langtag_table[i]; if (strcmp (name, p->langtag) < 0) i2 = i; else i1 = i; } if (strcmp (name, langtag_table[i1].langtag) == 0) { strcpy (name, langtag_table[i1].unixy); return; } i1 = 0; i2 = sizeof (script_table) / sizeof (script_entry); while (i2 - i1 > 1) { /* At this point we know that if (name + 3) occurs in script_table, its index must be >= i1 and < i2. */ unsigned int i = (i1 + i2) >> 1; const script_entry *p = &script_table[i]; if (strcmp (name + 3, p->script) < 0) i2 = i; else i1 = i; } if (strcmp (name + 3, script_table[i1].script) == 0) { name[2] = '@'; strcpy (name + 3, script_table[i1].unixy); return; } } /* Step 3: Convert new-style dash to Unix underscore. */ { char *p; for (p = name; *p != '\0'; p++) if (*p == '-') *p = '_'; } } #endif /* XPG3 defines the result of 'setlocale (category, NULL)' as: "Directs 'setlocale()' to query 'category' and return the current setting of 'local'." However it does not specify the exact format. Neither do SUSV2 and ISO C 99. So we can use this feature only on selected systems (e.g. those using GNU C Library). */ #if defined _LIBC || (defined __GNU_LIBRARY__ && __GNU_LIBRARY__ >= 2) # define HAVE_LOCALE_NULL #endif /* Determine the current locale's name, and canonicalize it into XPG syntax language[_territory[.codeset]][@modifier] The codeset part in the result is not reliable; the locale_charset() should be used for codeset information instead. The result must not be freed; it is statically allocated. */ const char * _nl_locale_name_posix (int category, const char *categoryname) { /* Use the POSIX methods of looking to 'LC_ALL', 'LC_xxx', and 'LANG'. On some systems this can be done by the 'setlocale' function itself. */ #if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL return setlocale (category, NULL); #else const char *retval; /* Setting of LC_ALL overrides all other. */ retval = getenv ("LC_ALL"); if (retval != NULL && retval[0] != '\0') return retval; /* Next comes the name of the desired category. */ retval = getenv (categoryname); if (retval != NULL && retval[0] != '\0') return retval; /* Last possibility is the LANG environment variable. */ retval = getenv ("LANG"); if (retval != NULL && retval[0] != '\0') return retval; return NULL; #endif } const char * _nl_locale_name_default (void) { /* POSIX:2001 says: "All implementations shall define a locale as the default locale, to be invoked when no environment variables are set, or set to the empty string. This default locale can be the POSIX locale or any other implementation-defined locale. Some implementations may provide facilities for local installation administrators to set the default locale, customizing it for each location. POSIX:2001 does not require such a facility. */ #if !(HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE || defined(WIN32)) /* The system does not have a way of setting the locale, other than the POSIX specified environment variables. We use C as default locale. */ return "C"; #else /* Return an XPG style locale name language[_territory][@modifier]. Don't even bother determining the codeset; it's not useful in this context, because message catalogs are not specific to a single codeset. */ # if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ { /* Cache the locale name, since CoreFoundation calls are expensive. */ static const char *cached_localename; if (cached_localename == NULL) { char namebuf[256]; # if HAVE_CFLOCALECOPYCURRENT /* MacOS X 10.3 or newer */ CFLocaleRef locale = CFLocaleCopyCurrent (); CFStringRef name = CFLocaleGetIdentifier (locale); if (CFStringGetCString (name, namebuf, sizeof(namebuf), kCFStringEncodingASCII)) { _nl_locale_name_canonicalize (namebuf); cached_localename = strdup (namebuf); } CFRelease (locale); # elif HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ CFTypeRef value = CFPreferencesCopyAppValue (CFSTR ("AppleLocale"), kCFPreferencesCurrentApplication); if (value != NULL && CFGetTypeID (value) == CFStringGetTypeID () && CFStringGetCString ((CFStringRef)value, namebuf, sizeof(namebuf), kCFStringEncodingASCII)) { _nl_locale_name_canonicalize (namebuf); cached_localename = strdup (namebuf); } # endif if (cached_localename == NULL) cached_localename = "C"; } return cached_localename; } # endif # if defined(WIN32) /* WIN32 */ { LCID lcid; LANGID langid; int primary, sub; /* Use native Win32 API locale ID. */ lcid = GetThreadLocale (); /* Strip off the sorting rules, keep only the language part. */ langid = LANGIDFROMLCID (lcid); /* Split into language and territory part. */ primary = PRIMARYLANGID (langid); sub = SUBLANGID (langid); /* Dispatch on language. See also http://www.unicode.org/unicode/onlinedat/languages.html . For details about languages, see http://www.ethnologue.com/ . */ switch (primary) { case LANG_AFRIKAANS: return "af_ZA"; case LANG_ALBANIAN: return "sq_AL"; case LANG_AMHARIC: return "am_ET"; case LANG_ARABIC: switch (sub) { case SUBLANG_ARABIC_SAUDI_ARABIA: return "ar_SA"; case SUBLANG_ARABIC_IRAQ: return "ar_IQ"; case SUBLANG_ARABIC_EGYPT: return "ar_EG"; case SUBLANG_ARABIC_LIBYA: return "ar_LY"; case SUBLANG_ARABIC_ALGERIA: return "ar_DZ"; case SUBLANG_ARABIC_MOROCCO: return "ar_MA"; case SUBLANG_ARABIC_TUNISIA: return "ar_TN"; case SUBLANG_ARABIC_OMAN: return "ar_OM"; case SUBLANG_ARABIC_YEMEN: return "ar_YE"; case SUBLANG_ARABIC_SYRIA: return "ar_SY"; case SUBLANG_ARABIC_JORDAN: return "ar_JO"; case SUBLANG_ARABIC_LEBANON: return "ar_LB"; case SUBLANG_ARABIC_KUWAIT: return "ar_KW"; case SUBLANG_ARABIC_UAE: return "ar_AE"; case SUBLANG_ARABIC_BAHRAIN: return "ar_BH"; case SUBLANG_ARABIC_QATAR: return "ar_QA"; } return "ar"; case LANG_ARMENIAN: return "hy_AM"; case LANG_ASSAMESE: return "as_IN"; case LANG_AZERI: switch (sub) { /* FIXME: Adjust this when Azerbaijani locales appear on Unix. */ case SUBLANG_AZERI_LATIN: return "az_AZ@latin"; case SUBLANG_AZERI_CYRILLIC: return "az_AZ@cyrillic"; } return "az"; case LANG_BASQUE: switch (sub) { case SUBLANG_DEFAULT: return "eu_ES"; } return "eu"; /* Ambiguous: could be "eu_ES" or "eu_FR". */ case LANG_BELARUSIAN: return "be_BY"; case LANG_BENGALI: switch (sub) { case SUBLANG_BENGALI_INDIA: return "bn_IN"; case SUBLANG_BENGALI_BANGLADESH: return "bn_BD"; } return "bn"; case LANG_BULGARIAN: return "bg_BG"; case LANG_BURMESE: return "my_MM"; case LANG_CAMBODIAN: return "km_KH"; case LANG_CATALAN: return "ca_ES"; case LANG_CHEROKEE: return "chr_US"; case LANG_CHINESE: switch (sub) { case SUBLANG_CHINESE_TRADITIONAL: return "zh_TW"; case SUBLANG_CHINESE_SIMPLIFIED: return "zh_CN"; case SUBLANG_CHINESE_HONGKONG: return "zh_HK"; case SUBLANG_CHINESE_SINGAPORE: return "zh_SG"; case SUBLANG_CHINESE_MACAU: return "zh_MO"; } return "zh"; case LANG_CROATIAN: /* LANG_CROATIAN == LANG_SERBIAN * What used to be called Serbo-Croatian * should really now be two separate * languages because of political reasons. * (Says tml, who knows nothing about Serbian * or Croatian.) * (I can feel those flames coming already.) */ switch (sub) { case SUBLANG_DEFAULT: return "hr_HR"; case SUBLANG_SERBIAN_LATIN: return "sr_CS"; case SUBLANG_SERBIAN_CYRILLIC: return "sr_CS@cyrillic"; } return "hr"; case LANG_CZECH: return "cs_CZ"; case LANG_DANISH: return "da_DK"; case LANG_DIVEHI: return "dv_MV"; case LANG_DUTCH: switch (sub) { case SUBLANG_DUTCH: return "nl_NL"; case SUBLANG_DUTCH_BELGIAN: /* FLEMISH, VLAAMS */ return "nl_BE"; } return "nl"; case LANG_EDO: return "bin_NG"; case LANG_ENGLISH: switch (sub) { /* SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. Heh. I thought * English was the language spoken in England. * Oh well. */ case SUBLANG_ENGLISH_US: return "en_US"; case SUBLANG_ENGLISH_UK: return "en_GB"; case SUBLANG_ENGLISH_AUS: return "en_AU"; case SUBLANG_ENGLISH_CAN: return "en_CA"; case SUBLANG_ENGLISH_NZ: return "en_NZ"; case SUBLANG_ENGLISH_EIRE: return "en_IE"; case SUBLANG_ENGLISH_SOUTH_AFRICA: return "en_ZA"; case SUBLANG_ENGLISH_JAMAICA: return "en_JM"; case SUBLANG_ENGLISH_CARIBBEAN: return "en_GD"; /* Grenada? */ case SUBLANG_ENGLISH_BELIZE: return "en_BZ"; case SUBLANG_ENGLISH_TRINIDAD: return "en_TT"; case SUBLANG_ENGLISH_ZIMBABWE: return "en_ZW"; case SUBLANG_ENGLISH_PHILIPPINES: return "en_PH"; case SUBLANG_ENGLISH_INDONESIA: return "en_ID"; case SUBLANG_ENGLISH_HONGKONG: return "en_HK"; case SUBLANG_ENGLISH_INDIA: return "en_IN"; case SUBLANG_ENGLISH_MALAYSIA: return "en_MY"; case SUBLANG_ENGLISH_SINGAPORE: return "en_SG"; } return "en"; case LANG_ESTONIAN: return "et_EE"; case LANG_FAEROESE: return "fo_FO"; case LANG_FARSI: return "fa_IR"; case LANG_FINNISH: return "fi_FI"; case LANG_FRENCH: switch (sub) { case SUBLANG_FRENCH: return "fr_FR"; case SUBLANG_FRENCH_BELGIAN: /* WALLOON */ return "fr_BE"; case SUBLANG_FRENCH_CANADIAN: return "fr_CA"; case SUBLANG_FRENCH_SWISS: return "fr_CH"; case SUBLANG_FRENCH_LUXEMBOURG: return "fr_LU"; case SUBLANG_FRENCH_MONACO: return "fr_MC"; case SUBLANG_FRENCH_WESTINDIES: return "fr"; /* Caribbean? */ case SUBLANG_FRENCH_REUNION: return "fr_RE"; case SUBLANG_FRENCH_CONGO: return "fr_CG"; case SUBLANG_FRENCH_SENEGAL: return "fr_SN"; case SUBLANG_FRENCH_CAMEROON: return "fr_CM"; case SUBLANG_FRENCH_COTEDIVOIRE: return "fr_CI"; case SUBLANG_FRENCH_MALI: return "fr_ML"; case SUBLANG_FRENCH_MOROCCO: return "fr_MA"; case SUBLANG_FRENCH_HAITI: return "fr_HT"; } return "fr"; case LANG_FRISIAN: return "fy_NL"; case LANG_FULFULDE: /* Spoken in Nigeria, Guinea, Senegal, Mali, Niger, Cameroon, Benin. */ return "ff_NG"; case LANG_GAELIC: switch (sub) { case 0x01: /* SCOTTISH */ return "gd_GB"; case 0x02: /* IRISH */ return "ga_IE"; } return "C"; case LANG_GALICIAN: return "gl_ES"; case LANG_GEORGIAN: return "ka_GE"; case LANG_GERMAN: switch (sub) { case SUBLANG_GERMAN: return "de_DE"; case SUBLANG_GERMAN_SWISS: return "de_CH"; case SUBLANG_GERMAN_AUSTRIAN: return "de_AT"; case SUBLANG_GERMAN_LUXEMBOURG: return "de_LU"; case SUBLANG_GERMAN_LIECHTENSTEIN: return "de_LI"; } return "de"; case LANG_GREEK: return "el_GR"; case LANG_GUARANI: return "gn_PY"; case LANG_GUJARATI: return "gu_IN"; case LANG_HAUSA: return "ha_NG"; case LANG_HAWAIIAN: /* FIXME: Do they mean Hawaiian ("haw_US", 1000 speakers) or Hawaii Creole English ("cpe_US", 600000 speakers)? */ return "cpe_US"; case LANG_HEBREW: return "he_IL"; case LANG_HINDI: return "hi_IN"; case LANG_HUNGARIAN: return "hu_HU"; case LANG_IBIBIO: return "nic_NG"; case LANG_ICELANDIC: return "is_IS"; case LANG_IGBO: return "ig_NG"; case LANG_INDONESIAN: return "id_ID"; case LANG_INUKTITUT: return "iu_CA"; case LANG_ITALIAN: switch (sub) { case SUBLANG_ITALIAN: return "it_IT"; case SUBLANG_ITALIAN_SWISS: return "it_CH"; } return "it"; case LANG_JAPANESE: return "ja_JP"; case LANG_KANNADA: return "kn_IN"; case LANG_KANURI: return "kr_NG"; case LANG_KASHMIRI: switch (sub) { case SUBLANG_DEFAULT: return "ks_PK"; case SUBLANG_KASHMIRI_INDIA: return "ks_IN"; } return "ks"; case LANG_KAZAK: return "kk_KZ"; case LANG_KONKANI: /* FIXME: Adjust this when such locales appear on Unix. */ return "kok_IN"; case LANG_KOREAN: return "ko_KR"; case LANG_KYRGYZ: return "ky_KG"; case LANG_LAO: return "lo_LA"; case LANG_LATIN: return "la_VA"; case LANG_LATVIAN: return "lv_LV"; case LANG_LITHUANIAN: return "lt_LT"; case LANG_MACEDONIAN: return "mk_MK"; case LANG_MALAY: switch (sub) { case SUBLANG_MALAY_MALAYSIA: return "ms_MY"; case SUBLANG_MALAY_BRUNEI_DARUSSALAM: return "ms_BN"; } return "ms"; case LANG_MALAYALAM: return "ml_IN"; case LANG_MALTESE: return "mt_MT"; case LANG_MANIPURI: /* FIXME: Adjust this when such locales appear on Unix. */ return "mni_IN"; case LANG_MARATHI: return "mr_IN"; case LANG_MONGOLIAN: switch (sub) { case SUBLANG_DEFAULT: return "mn_MN"; } return "mn"; /* Ambiguous: could be "mn_CN" or "mn_MN". */ case LANG_NEPALI: switch (sub) { case SUBLANG_DEFAULT: return "ne_NP"; case SUBLANG_NEPALI_INDIA: return "ne_IN"; } return "ne"; case LANG_NORWEGIAN: switch (sub) { case SUBLANG_NORWEGIAN_BOKMAL: return "nb_NO"; case SUBLANG_NORWEGIAN_NYNORSK: return "nn_NO"; } return "no"; case LANG_ORIYA: return "or_IN"; case LANG_OROMO: return "om_ET"; case LANG_PAPIAMENTU: return "pap_AN"; case LANG_PASHTO: return "ps"; /* Ambiguous: could be "ps_PK" or "ps_AF". */ case LANG_POLISH: return "pl_PL"; case LANG_PORTUGUESE: switch (sub) { case SUBLANG_PORTUGUESE: return "pt_PT"; /* Hmm. SUBLANG_PORTUGUESE_BRAZILIAN == SUBLANG_DEFAULT. Same phenomenon as SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. */ case SUBLANG_PORTUGUESE_BRAZILIAN: return "pt_BR"; } return "pt"; case LANG_PUNJABI: switch (sub) { case SUBLANG_PUNJABI_INDIA: return "pa_IN"; /* Gurmukhi script */ case SUBLANG_PUNJABI_PAKISTAN: return "pa_PK"; /* Arabic script */ } return "pa"; case LANG_RHAETO_ROMANCE: return "rm_CH"; case LANG_ROMANIAN: switch (sub) { case SUBLANG_ROMANIAN_ROMANIA: return "ro_RO"; case SUBLANG_ROMANIAN_MOLDOVA: return "ro_MD"; } return "ro"; case LANG_RUSSIAN: switch (sub) { case SUBLANG_DEFAULT: return "ru_RU"; } return "ru"; /* Ambiguous: could be "ru_RU" or "ru_UA" or "ru_MD". */ case LANG_SAAMI: /* actually Northern Sami */ return "se_NO"; case LANG_SANSKRIT: return "sa_IN"; case LANG_SINDHI: switch (sub) { case SUBLANG_SINDHI_INDIA: return "sd_IN"; case SUBLANG_SINDHI_PAKISTAN: return "sd_PK"; } return "sd"; case LANG_SINHALESE: return "si_LK"; case LANG_SLOVAK: return "sk_SK"; case LANG_SLOVENIAN: return "sl_SI"; case LANG_SOMALI: return "so_SO"; case LANG_SORBIAN: /* FIXME: Adjust this when such locales appear on Unix. */ return "wen_DE"; case LANG_SPANISH: switch (sub) { case SUBLANG_SPANISH: return "es_ES"; case SUBLANG_SPANISH_MEXICAN: return "es_MX"; case SUBLANG_SPANISH_MODERN: return "es_ES@modern"; /* not seen on Unix */ case SUBLANG_SPANISH_GUATEMALA: return "es_GT"; case SUBLANG_SPANISH_COSTA_RICA: return "es_CR"; case SUBLANG_SPANISH_PANAMA: return "es_PA"; case SUBLANG_SPANISH_DOMINICAN_REPUBLIC: return "es_DO"; case SUBLANG_SPANISH_VENEZUELA: return "es_VE"; case SUBLANG_SPANISH_COLOMBIA: return "es_CO"; case SUBLANG_SPANISH_PERU: return "es_PE"; case SUBLANG_SPANISH_ARGENTINA: return "es_AR"; case SUBLANG_SPANISH_ECUADOR: return "es_EC"; case SUBLANG_SPANISH_CHILE: return "es_CL"; case SUBLANG_SPANISH_URUGUAY: return "es_UY"; case SUBLANG_SPANISH_PARAGUAY: return "es_PY"; case SUBLANG_SPANISH_BOLIVIA: return "es_BO"; case SUBLANG_SPANISH_EL_SALVADOR: return "es_SV"; case SUBLANG_SPANISH_HONDURAS: return "es_HN"; case SUBLANG_SPANISH_NICARAGUA: return "es_NI"; case SUBLANG_SPANISH_PUERTO_RICO: return "es_PR"; } return "es"; case LANG_SUTU: return "bnt_TZ"; /* or "st_LS" or "nso_ZA"? */ case LANG_SWAHILI: return "sw_KE"; case LANG_SWEDISH: switch (sub) { case SUBLANG_DEFAULT: return "sv_SE"; case SUBLANG_SWEDISH_FINLAND: return "sv_FI"; } return "sv"; case LANG_SYRIAC: return "syr_TR"; /* An extinct language. */ case LANG_TAGALOG: return "tl_PH"; case LANG_TAJIK: return "tg_TJ"; case LANG_TAMAZIGHT: switch (sub) { /* FIXME: Adjust this when Tamazight locales appear on Unix. */ case SUBLANG_TAMAZIGHT_ARABIC: return "ber_MA@arabic"; case SUBLANG_TAMAZIGHT_LATIN: return "ber_MA@latin"; } return "ber_MA"; case LANG_TAMIL: switch (sub) { case SUBLANG_DEFAULT: return "ta_IN"; } return "ta"; /* Ambiguous: could be "ta_IN" or "ta_LK" or "ta_SG". */ case LANG_TATAR: return "tt_RU"; case LANG_TELUGU: return "te_IN"; case LANG_THAI: return "th_TH"; case LANG_TIBETAN: return "bo_CN"; case LANG_TIGRINYA: switch (sub) { case SUBLANG_TIGRINYA_ETHIOPIA: return "ti_ET"; case SUBLANG_TIGRINYA_ERITREA: return "ti_ER"; } return "ti"; case LANG_TSONGA: return "ts_ZA"; case LANG_TSWANA: return "tn_BW"; case LANG_TURKISH: return "tr_TR"; case LANG_TURKMEN: return "tk_TM"; case LANG_UKRAINIAN: return "uk_UA"; case LANG_URDU: switch (sub) { case SUBLANG_URDU_PAKISTAN: return "ur_PK"; case SUBLANG_URDU_INDIA: return "ur_IN"; } return "ur"; case LANG_UZBEK: switch (sub) { case SUBLANG_UZBEK_LATIN: return "uz_UZ"; case SUBLANG_UZBEK_CYRILLIC: return "uz_UZ@cyrillic"; } return "uz"; case LANG_VENDA: return "ve_ZA"; case LANG_VIETNAMESE: return "vi_VN"; case LANG_WELSH: return "cy_GB"; case LANG_XHOSA: return "xh_ZA"; case LANG_YI: return "sit_CN"; case LANG_YIDDISH: return "yi_IL"; case LANG_YORUBA: return "yo_NG"; case LANG_ZULU: return "zu_ZA"; default: return "C"; } } # endif #endif } const char * _nl_locale_name (int category, const char *categoryname) { const char *retval; retval = _nl_locale_name_posix (category, categoryname); if (retval != NULL) return retval; return _nl_locale_name_default (); } sweep-0.9.3/intl/loadinfo.h0000644000175000017500000001332610777660165014322 0ustar useruser/* Copyright (C) 1996-1999, 2000-2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LOADINFO_H #define _LOADINFO_H 1 /* Declarations of locale dependent catalog lookup functions. Implemented in localealias.c Possibly replace a locale name by another. explodename.c Split a locale name into its various fields. l10nflist.c Generate a list of filenames of possible message catalogs. finddomain.c Find and open the relevant message catalogs. The main function _nl_find_domain() in finddomain.c is declared in gettextP.h. */ #ifndef internal_function # define internal_function #endif /* Tell the compiler when a conditional or integer expression is almost always true or almost always false. */ #ifndef HAVE_BUILTIN_EXPECT # define __builtin_expect(expr, val) (expr) #endif /* Separator in PATH like lists of pathnames. */ #if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__ /* Win32, OS/2, DOS */ # define PATH_SEPARATOR ';' #else /* Unix */ # define PATH_SEPARATOR ':' #endif /* Encoding of locale name parts. */ #define CEN_REVISION 1 #define CEN_SPONSOR 2 #define CEN_SPECIAL 4 #define XPG_NORM_CODESET 8 #define XPG_CODESET 16 #define TERRITORY 32 #define CEN_AUDIENCE 64 #define XPG_MODIFIER 128 #define CEN_SPECIFIC (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE) #define XPG_SPECIFIC (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER) struct loaded_l10nfile { const char *filename; int decided; const void *data; struct loaded_l10nfile *next; struct loaded_l10nfile *successor[1]; }; /* Normalize codeset name. There is no standard for the codeset names. Normalization allows the user to use any of the common names. The return value is dynamically allocated and has to be freed by the caller. */ extern const char *_nl_normalize_codeset (const char *codeset, size_t name_len); /* Lookup a locale dependent file. *L10NFILE_LIST denotes a pool of lookup results of locale dependent files of the same kind, sorted in decreasing order of ->filename. DIRLIST and DIRLIST_LEN are an argz list of directories in which to look, containing at least one directory (i.e. DIRLIST_LEN > 0). MASK, LANGUAGE, TERRITORY, CODESET, NORMALIZED_CODESET, MODIFIER, SPECIAL, SPONSOR, REVISION are the pieces of the locale name, as produced by _nl_explode_name(). FILENAME is the filename suffix. The return value is the lookup result, either found in *L10NFILE_LIST, or - if DO_ALLOCATE is nonzero - freshly allocated, or possibly NULL. If the return value is non-NULL, it is added to *L10NFILE_LIST, and its ->next field denotes the chaining inside *L10NFILE_LIST, and furthermore its ->successor[] field contains a list of other lookup results from which this lookup result inherits. */ extern struct loaded_l10nfile * _nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list, const char *dirlist, size_t dirlist_len, int mask, const char *language, const char *territory, const char *codeset, const char *normalized_codeset, const char *modifier, const char *special, const char *sponsor, const char *revision, const char *filename, int do_allocate); /* Lookup the real locale name for a locale alias NAME, or NULL if NAME is not a locale alias (but possibly a real locale name). The return value is statically allocated and must not be freed. */ extern const char *_nl_expand_alias (const char *name); /* Split a locale name NAME into its pieces: language, modifier, territory, codeset, special, sponsor, revision. NAME gets destructively modified: NUL bytes are inserted here and there. *LANGUAGE gets assigned NAME. Each of *MODIFIER, *TERRITORY, *CODESET, *SPECIAL, *SPONSOR, *REVISION gets assigned either a pointer into the old NAME string, or NULL. *NORMALIZED_CODESET gets assigned the expanded *CODESET, if it is different from *CODESET; this one is dynamically allocated and has to be freed by the caller. The return value is a bitmask, where each bit corresponds to one filled-in value: XPG_MODIFIER, CEN_AUDIENCE for *MODIFIER, TERRITORY for *TERRITORY, XPG_CODESET for *CODESET, XPG_NORM_CODESET for *NORMALIZED_CODESET, CEN_SPECIAL for *SPECIAL, CEN_SPONSOR for *SPONSOR, CEN_REVISION for *REVISION. */ extern int _nl_explode_name (char *name, const char **language, const char **modifier, const char **territory, const char **codeset, const char **normalized_codeset, const char **special, const char **sponsor, const char **revision); /* Split a locale name NAME into a leading language part and all the rest. Return a pointer to the first character after the language, i.e. to the first byte of the rest. */ extern char *_nl_find_language (const char *name); #endif /* loadinfo.h */ sweep-0.9.3/intl/Makefile.in0000644000175000017500000004025510777660165014424 0ustar useruser# Makefile for directory with message catalog handling library of GNU gettext # Copyright (C) 1995-1998, 2000-2005 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = /bin/sh srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = .. VPATH = $(srcdir) prefix = @prefix@ exec_prefix = @exec_prefix@ transform = @program_transform_name@ libdir = @libdir@ includedir = @includedir@ datadir = @datadir@ localedir = $(datadir)/locale gettextsrcdir = $(datadir)/gettext/intl aliaspath = $(localedir) subdir = intl INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ MKINSTALLDIRS = @MKINSTALLDIRS@ mkinstalldirs = $(SHELL) $(MKINSTALLDIRS) l = @INTL_LIBTOOL_SUFFIX_PREFIX@ AR = ar CC = @CC@ LIBTOOL = @LIBTOOL@ RANLIB = @RANLIB@ YACC = @INTLBISON@ -y -d YFLAGS = --name-prefix=__gettext DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ -DLIBDIR=\"$(libdir)\" -DIN_LIBINTL \ -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \ -Dset_relocation_prefix=libintl_set_relocation_prefix \ -Drelocate=libintl_relocate \ -DDEPENDS_ON_LIBICONV=1 @DEFS@ CPPFLAGS = @CPPFLAGS@ CFLAGS = @CFLAGS@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) HEADERS = \ gmo.h \ gettextP.h \ hash-string.h \ loadinfo.h \ plural-exp.h \ eval-plural.h \ localcharset.h \ relocatable.h \ xsize.h \ printf-args.h printf-args.c \ printf-parse.h wprintf-parse.h printf-parse.c \ vasnprintf.h vasnwprintf.h vasnprintf.c \ os2compat.h \ libgnuintl.h.in SOURCES = \ bindtextdom.c \ dcgettext.c \ dgettext.c \ gettext.c \ finddomain.c \ loadmsgcat.c \ localealias.c \ textdomain.c \ l10nflist.c \ explodename.c \ dcigettext.c \ dcngettext.c \ dngettext.c \ ngettext.c \ plural.y \ plural-exp.c \ localcharset.c \ relocatable.c \ langprefs.c \ localename.c \ log.c \ printf.c \ osdep.c \ os2compat.c \ intl-compat.c OBJECTS = \ bindtextdom.$lo \ dcgettext.$lo \ dgettext.$lo \ gettext.$lo \ finddomain.$lo \ loadmsgcat.$lo \ localealias.$lo \ textdomain.$lo \ l10nflist.$lo \ explodename.$lo \ dcigettext.$lo \ dcngettext.$lo \ dngettext.$lo \ ngettext.$lo \ plural.$lo \ plural-exp.$lo \ localcharset.$lo \ relocatable.$lo \ langprefs.$lo \ localename.$lo \ log.$lo \ printf.$lo \ osdep.$lo \ intl-compat.$lo DISTFILES.common = Makefile.in \ config.charset locale.alias ref-add.sin ref-del.sin $(HEADERS) $(SOURCES) DISTFILES.generated = plural.c DISTFILES.normal = VERSION DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc \ libgnuintl.h_vms Makefile.vms \ libgnuintl.h.msvc-static libgnuintl.h.msvc-shared README.woe32 Makefile.msvc DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \ COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h all: all-@USE_INCLUDED_LIBINTL@ all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed all-no: all-no-@BUILD_INCLUDED_LIBINTL@ all-no-yes: libgnuintl.$la all-no-no: libintl.a libgnuintl.a: $(OBJECTS) rm -f $@ $(AR) cru $@ $(OBJECTS) $(RANLIB) $@ libintl.la libgnuintl.la: $(OBJECTS) $(LIBTOOL) --mode=link \ $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \ $(OBJECTS) @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(LIBS) -lc \ -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ -rpath $(libdir) \ -no-undefined # Libtool's library version information for libintl. # Before making a gettext release, the gettext maintainer must change this # according to the libtool documentation, section "Library interface versions". # Maintainers of other packages that include the intl directory must *not* # change these values. LTV_CURRENT=7 LTV_REVISION=3 LTV_AGE=4 .SUFFIXES: .SUFFIXES: .c .y .o .lo .sin .sed .c.o: $(COMPILE) $< .y.c: $(YACC) $(YFLAGS) --output $@ $< rm -f $*.h bindtextdom.lo: $(srcdir)/bindtextdom.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c dcgettext.lo: $(srcdir)/dcgettext.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcgettext.c dgettext.lo: $(srcdir)/dgettext.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dgettext.c gettext.lo: $(srcdir)/gettext.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/gettext.c finddomain.lo: $(srcdir)/finddomain.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/finddomain.c loadmsgcat.lo: $(srcdir)/loadmsgcat.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c localealias.lo: $(srcdir)/localealias.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localealias.c textdomain.lo: $(srcdir)/textdomain.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/textdomain.c l10nflist.lo: $(srcdir)/l10nflist.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/l10nflist.c explodename.lo: $(srcdir)/explodename.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/explodename.c dcigettext.lo: $(srcdir)/dcigettext.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcigettext.c dcngettext.lo: $(srcdir)/dcngettext.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dcngettext.c dngettext.lo: $(srcdir)/dngettext.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/dngettext.c ngettext.lo: $(srcdir)/ngettext.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/ngettext.c plural.lo: $(srcdir)/plural.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural.c plural-exp.lo: $(srcdir)/plural-exp.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/plural-exp.c localcharset.lo: $(srcdir)/localcharset.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localcharset.c relocatable.lo: $(srcdir)/relocatable.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/relocatable.c langprefs.lo: $(srcdir)/langprefs.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/langprefs.c localename.lo: $(srcdir)/localename.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/localename.c log.lo: $(srcdir)/log.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/log.c printf.lo: $(srcdir)/printf.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/printf.c osdep.lo: $(srcdir)/osdep.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/osdep.c intl-compat.lo: $(srcdir)/intl-compat.c $(LIBTOOL) --mode=compile $(COMPILE) $(srcdir)/intl-compat.c ref-add.sed: $(srcdir)/ref-add.sin sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed mv t-ref-add.sed ref-add.sed ref-del.sed: $(srcdir)/ref-del.sin sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed mv t-ref-del.sed ref-del.sed INCLUDES = -I. -I$(srcdir) -I.. libgnuintl.h: $(srcdir)/libgnuintl.h.in sed -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ < $(srcdir)/libgnuintl.h.in > libgnuintl.h libintl.h: libgnuintl.h cp libgnuintl.h libintl.h charset.alias: $(srcdir)/config.charset $(SHELL) $(srcdir)/config.charset '@host@' > t-$@ mv t-$@ $@ check: all # We must not install the libintl.h/libintl.a files if we are on a # system which has the GNU gettext() function in its C library or in a # separate library. # If you want to use the one which comes with this version of the # package, you have to use `configure --with-included-gettext'. install: install-exec install-data install-exec: all if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ && test '@USE_INCLUDED_LIBINTL@' = yes; then \ $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \ $(LIBTOOL) --mode=install \ $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \ if test "@RELOCATABLE@" = yes; then \ dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \ if test -n "$$dependencies"; then \ rm -f $(DESTDIR)$(libdir)/libintl.la; \ fi; \ fi; \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools" \ && test '@USE_INCLUDED_LIBINTL@' = no \ && test @GLIBC2@ != no; then \ $(mkinstalldirs) $(DESTDIR)$(libdir); \ $(LIBTOOL) --mode=install \ $(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \ rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \ $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \ $(LIBTOOL) --mode=uninstall \ rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \ else \ : ; \ fi if test '@USE_INCLUDED_LIBINTL@' = yes; then \ test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \ temp=$(DESTDIR)$(libdir)/t-charset.alias; \ dest=$(DESTDIR)$(libdir)/charset.alias; \ if test -f $(DESTDIR)$(libdir)/charset.alias; then \ orig=$(DESTDIR)$(libdir)/charset.alias; \ sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ else \ if test @GLIBC21@ = no; then \ orig=charset.alias; \ sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ fi; \ fi; \ $(mkinstalldirs) $(DESTDIR)$(localedir); \ test -f $(DESTDIR)$(localedir)/locale.alias \ && orig=$(DESTDIR)$(localedir)/locale.alias \ || orig=$(srcdir)/locale.alias; \ temp=$(DESTDIR)$(localedir)/t-locale.alias; \ dest=$(DESTDIR)$(localedir)/locale.alias; \ sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ else \ : ; \ fi install-data: all if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \ $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \ dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \ for file in $$dists; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \ dists="$(DISTFILES.generated)"; \ for file in $$dists; do \ if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ $(INSTALL_DATA) $$dir/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ dists="$(DISTFILES.obsolete)"; \ for file in $$dists; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-strip: install installdirs: if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ && test '@USE_INCLUDED_LIBINTL@' = yes; then \ $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools" \ && test '@USE_INCLUDED_LIBINTL@' = no \ && test @GLIBC2@ != no; then \ $(mkinstalldirs) $(DESTDIR)$(libdir); \ else \ : ; \ fi if test '@USE_INCLUDED_LIBINTL@' = yes; then \ test @GLIBC21@ != no || $(mkinstalldirs) $(DESTDIR)$(libdir); \ $(mkinstalldirs) $(DESTDIR)$(localedir); \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi # Define this as empty until I found a useful application. installcheck: uninstall: if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ && test '@USE_INCLUDED_LIBINTL@' = yes; then \ rm -f $(DESTDIR)$(includedir)/libintl.h; \ $(LIBTOOL) --mode=uninstall \ rm -f $(DESTDIR)$(libdir)/libintl.$la; \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools" \ && test '@USE_INCLUDED_LIBINTL@' = no \ && test @GLIBC2@ != no; then \ rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \ else \ : ; \ fi if test '@USE_INCLUDED_LIBINTL@' = yes; then \ if test -f $(DESTDIR)$(libdir)/charset.alias; then \ temp=$(DESTDIR)$(libdir)/t-charset.alias; \ dest=$(DESTDIR)$(libdir)/charset.alias; \ sed -f ref-del.sed $$dest > $$temp; \ if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ rm -f $$dest; \ else \ $(INSTALL_DATA) $$temp $$dest; \ fi; \ rm -f $$temp; \ fi; \ if test -f $(DESTDIR)$(localedir)/locale.alias; then \ temp=$(DESTDIR)$(localedir)/t-locale.alias; \ dest=$(DESTDIR)$(localedir)/locale.alias; \ sed -f ref-del.sed $$dest > $$temp; \ if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ rm -f $$dest; \ else \ $(INSTALL_DATA) $$temp $$dest; \ fi; \ rm -f $$temp; \ fi; \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools"; then \ for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi info dvi ps pdf html: $(OBJECTS): ../config.h libgnuintl.h bindtextdom.$lo dcgettext.$lo dcigettext.$lo dcngettext.$lo dgettext.$lo dngettext.$lo finddomain.$lo gettext.$lo intl-compat.$lo loadmsgcat.$lo localealias.$lo ngettext.$lo textdomain.$lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h dcigettext.$lo: $(srcdir)/eval-plural.h localcharset.$lo: $(srcdir)/localcharset.h localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h printf.$lo: $(srcdir)/printf-args.h $(srcdir)/printf-args.c $(srcdir)/printf-parse.h $(srcdir)/wprintf-parse.h $(srcdir)/xsize.h $(srcdir)/printf-parse.c $(srcdir)/vasnprintf.h $(srcdir)/vasnwprintf.h $(srcdir)/vasnprintf.c tags: TAGS TAGS: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES) ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES) id: ID ID: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES) mostlyclean: rm -f *.a *.la *.o *.obj *.lo core core.* rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed rm -f -r .libs _libs clean: mostlyclean distclean: clean rm -f Makefile ID TAGS if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \ rm -f ChangeLog.inst $(DISTFILES.normal); \ else \ : ; \ fi maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." # GNU gettext needs not contain the file `VERSION' but contains some # other files which should not be distributed in other packages. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: Makefile if test "$(PACKAGE)" = "gettext-tools"; then \ : ; \ else \ if test "$(PACKAGE)" = "gettext-runtime"; then \ additional="$(DISTFILES.gettext)"; \ else \ additional="$(DISTFILES.normal)"; \ fi; \ $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \ for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \ if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ cp -p $$dir/$$file $(distdir) || test $$file = Makefile.in || exit 1; \ done; \ fi Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status # This would be more efficient, but doesn't work any more with autoconf-2.57, # when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used. # cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(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: sweep-0.9.3/intl/os2compat.c0000644000175000017500000000550710777660165014433 0ustar useruser/* OS/2 compatibility functions. Copyright (C) 2001-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #define OS2_AWARE #ifdef HAVE_CONFIG_H #include #endif #include #include #include /* A version of getenv() that works from DLLs */ extern unsigned long DosScanEnv (const unsigned char *pszName, unsigned char **ppszValue); char * _nl_getenv (const char *name) { unsigned char *value; if (DosScanEnv (name, &value)) return NULL; else return value; } /* A fixed size buffer. */ char libintl_nl_default_dirname[MAXPATHLEN+1]; char *_nlos2_libdir = NULL; char *_nlos2_localealiaspath = NULL; char *_nlos2_localedir = NULL; static __attribute__((constructor)) void nlos2_initialize () { char *root = getenv ("UNIXROOT"); char *gnulocaledir = getenv ("GNULOCALEDIR"); _nlos2_libdir = gnulocaledir; if (!_nlos2_libdir) { if (root) { size_t sl = strlen (root); _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); memcpy (_nlos2_libdir, root, sl); memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); } else _nlos2_libdir = LIBDIR; } _nlos2_localealiaspath = gnulocaledir; if (!_nlos2_localealiaspath) { if (root) { size_t sl = strlen (root); _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); memcpy (_nlos2_localealiaspath, root, sl); memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); } else _nlos2_localealiaspath = LOCALE_ALIAS_PATH; } _nlos2_localedir = gnulocaledir; if (!_nlos2_localedir) { if (root) { size_t sl = strlen (root); _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); memcpy (_nlos2_localedir, root, sl); memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); } else _nlos2_localedir = LOCALEDIR; } if (strlen (_nlos2_localedir) <= MAXPATHLEN) strcpy (libintl_nl_default_dirname, _nlos2_localedir); } sweep-0.9.3/intl/gettextP.h0000644000175000017500000001501110777660165014324 0ustar useruser/* Header describing internals of libintl library. Copyright (C) 1995-1999, 2000-2005 Free Software Foundation, Inc. Written by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _GETTEXTP_H #define _GETTEXTP_H #include /* Get size_t. */ #ifdef _LIBC # include "../iconv/gconv_int.h" #else # if HAVE_ICONV # include # endif #endif #include "loadinfo.h" #include "gmo.h" /* Get nls_uint32. */ /* @@ end of prolog @@ */ #ifndef internal_function # define internal_function #endif #ifndef attribute_hidden # define attribute_hidden #endif /* Tell the compiler when a conditional or integer expression is almost always true or almost always false. */ #ifndef HAVE_BUILTIN_EXPECT # define __builtin_expect(expr, val) (expr) #endif #ifndef W # define W(flag, data) ((flag) ? SWAP (data) : (data)) #endif #ifdef _LIBC # include # define SWAP(i) bswap_32 (i) #else static inline nls_uint32 SWAP (i) nls_uint32 i; { return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24); } #endif /* In-memory representation of system dependent string. */ struct sysdep_string_desc { /* Length of addressed string, including the trailing NUL. */ size_t length; /* Pointer to addressed string. */ const char *pointer; }; /* The representation of an opened message catalog. */ struct loaded_domain { /* Pointer to memory containing the .mo file. */ const char *data; /* 1 if the memory is mmap()ed, 0 if the memory is malloc()ed. */ int use_mmap; /* Size of mmap()ed memory. */ size_t mmap_size; /* 1 if the .mo file uses a different endianness than this machine. */ int must_swap; /* Pointer to additional malloc()ed memory. */ void *malloced; /* Number of static strings pairs. */ nls_uint32 nstrings; /* Pointer to descriptors of original strings in the file. */ const struct string_desc *orig_tab; /* Pointer to descriptors of translated strings in the file. */ const struct string_desc *trans_tab; /* Number of system dependent strings pairs. */ nls_uint32 n_sysdep_strings; /* Pointer to descriptors of original sysdep strings. */ const struct sysdep_string_desc *orig_sysdep_tab; /* Pointer to descriptors of translated sysdep strings. */ const struct sysdep_string_desc *trans_sysdep_tab; /* Size of hash table. */ nls_uint32 hash_size; /* Pointer to hash table. */ const nls_uint32 *hash_tab; /* 1 if the hash table uses a different endianness than this machine. */ int must_swap_hash_tab; int codeset_cntr; #ifdef _LIBC __gconv_t conv; #else # if HAVE_ICONV iconv_t conv; # endif #endif char **conv_tab; struct expression *plural; unsigned long int nplurals; }; /* We want to allocate a string at the end of the struct. But ISO C doesn't allow zero sized arrays. */ #ifdef __GNUC__ # define ZERO 0 #else # define ZERO 1 #endif /* A set of settings bound to a message domain. Used to store settings from bindtextdomain() and bind_textdomain_codeset(). */ struct binding { struct binding *next; char *dirname; int codeset_cntr; /* Incremented each time codeset changes. */ char *codeset; char domainname[ZERO]; }; /* A counter which is incremented each time some previous translations become invalid. This variable is part of the external ABI of the GNU libintl. */ extern int _nl_msg_cat_cntr; #ifndef _LIBC const char *_nl_language_preferences_default (void); const char *_nl_locale_name_posix (int category, const char *categoryname); const char *_nl_locale_name_default (void); const char *_nl_locale_name (int category, const char *categoryname); #endif struct loaded_l10nfile *_nl_find_domain (const char *__dirname, char *__locale, const char *__domainname, struct binding *__domainbinding) internal_function; void _nl_load_domain (struct loaded_l10nfile *__domain, struct binding *__domainbinding) internal_function; void _nl_unload_domain (struct loaded_domain *__domain) internal_function; const char *_nl_init_domain_conv (struct loaded_l10nfile *__domain_file, struct loaded_domain *__domain, struct binding *__domainbinding) internal_function; void _nl_free_domain_conv (struct loaded_domain *__domain) internal_function; char *_nl_find_msg (struct loaded_l10nfile *domain_file, struct binding *domainbinding, const char *msgid, size_t *lengthp) internal_function; #ifdef _LIBC extern char *__gettext (const char *__msgid); extern char *__dgettext (const char *__domainname, const char *__msgid); extern char *__dcgettext (const char *__domainname, const char *__msgid, int __category); extern char *__ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n); extern char *__dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int n); extern char *__dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category); extern char *__dcigettext (const char *__domainname, const char *__msgid1, const char *__msgid2, int __plural, unsigned long int __n, int __category); extern char *__textdomain (const char *__domainname); extern char *__bindtextdomain (const char *__domainname, const char *__dirname); extern char *__bind_textdomain_codeset (const char *__domainname, const char *__codeset); #else /* Declare the exported libintl_* functions, in a way that allows us to call them under their real name. */ # undef _INTL_REDIRECT_INLINE # undef _INTL_REDIRECT_MACROS # define _INTL_REDIRECT_MACROS # include "libgnuintl.h" extern char *libintl_dcigettext (const char *__domainname, const char *__msgid1, const char *__msgid2, int __plural, unsigned long int __n, int __category); #endif /* @@ begin of epilog @@ */ #endif /* gettextP.h */ sweep-0.9.3/intl/printf-args.h0000644000175000017500000000550610777660165014764 0ustar useruser/* Decomposed printf argument list. Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _PRINTF_ARGS_H #define _PRINTF_ARGS_H /* Get size_t. */ #include /* Get wchar_t. */ #ifdef HAVE_WCHAR_T # include #endif /* Get wint_t. */ #ifdef HAVE_WINT_T # include #endif /* Get va_list. */ #include /* Argument types */ typedef enum { TYPE_NONE, TYPE_SCHAR, TYPE_UCHAR, TYPE_SHORT, TYPE_USHORT, TYPE_INT, TYPE_UINT, TYPE_LONGINT, TYPE_ULONGINT, #ifdef HAVE_LONG_LONG TYPE_LONGLONGINT, TYPE_ULONGLONGINT, #endif TYPE_DOUBLE, #ifdef HAVE_LONG_DOUBLE TYPE_LONGDOUBLE, #endif TYPE_CHAR, #ifdef HAVE_WINT_T TYPE_WIDE_CHAR, #endif TYPE_STRING, #ifdef HAVE_WCHAR_T TYPE_WIDE_STRING, #endif TYPE_POINTER, TYPE_COUNT_SCHAR_POINTER, TYPE_COUNT_SHORT_POINTER, TYPE_COUNT_INT_POINTER, TYPE_COUNT_LONGINT_POINTER #ifdef HAVE_LONG_LONG , TYPE_COUNT_LONGLONGINT_POINTER #endif } arg_type; /* Polymorphic argument */ typedef struct { arg_type type; union { signed char a_schar; unsigned char a_uchar; short a_short; unsigned short a_ushort; int a_int; unsigned int a_uint; long int a_longint; unsigned long int a_ulongint; #ifdef HAVE_LONG_LONG long long int a_longlongint; unsigned long long int a_ulonglongint; #endif float a_float; double a_double; #ifdef HAVE_LONG_DOUBLE long double a_longdouble; #endif int a_char; #ifdef HAVE_WINT_T wint_t a_wide_char; #endif const char* a_string; #ifdef HAVE_WCHAR_T const wchar_t* a_wide_string; #endif void* a_pointer; signed char * a_count_schar_pointer; short * a_count_short_pointer; int * a_count_int_pointer; long int * a_count_longint_pointer; #ifdef HAVE_LONG_LONG long long int * a_count_longlongint_pointer; #endif } a; } argument; typedef struct { size_t count; argument *arg; } arguments; /* Fetch the arguments, putting them into a. */ #ifdef STATIC STATIC #else extern #endif int printf_fetchargs (va_list args, arguments *a); #endif /* _PRINTF_ARGS_H */ sweep-0.9.3/intl/plural-exp.c0000644000175000017500000000765510777660165014623 0ustar useruser/* Expression parsing for plural form selection. Copyright (C) 2000-2001, 2003 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "plural-exp.h" #if (defined __GNUC__ && !defined __APPLE_CC__) \ || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) /* These structs are the constant expression for the germanic plural form determination. It represents the expression "n != 1". */ static const struct expression plvar = { .nargs = 0, .operation = var, }; static const struct expression plone = { .nargs = 0, .operation = num, .val = { .num = 1 } }; struct expression GERMANIC_PLURAL = { .nargs = 2, .operation = not_equal, .val = { .args = { [0] = (struct expression *) &plvar, [1] = (struct expression *) &plone } } }; # define INIT_GERMANIC_PLURAL() #else /* For compilers without support for ISO C 99 struct/union initializers: Initialization at run-time. */ static struct expression plvar; static struct expression plone; struct expression GERMANIC_PLURAL; static void init_germanic_plural () { if (plone.val.num == 0) { plvar.nargs = 0; plvar.operation = var; plone.nargs = 0; plone.operation = num; plone.val.num = 1; GERMANIC_PLURAL.nargs = 2; GERMANIC_PLURAL.operation = not_equal; GERMANIC_PLURAL.val.args[0] = &plvar; GERMANIC_PLURAL.val.args[1] = &plone; } } # define INIT_GERMANIC_PLURAL() init_germanic_plural () #endif void internal_function EXTRACT_PLURAL_EXPRESSION (const char *nullentry, struct expression **pluralp, unsigned long int *npluralsp) { if (nullentry != NULL) { const char *plural; const char *nplurals; plural = strstr (nullentry, "plural="); nplurals = strstr (nullentry, "nplurals="); if (plural == NULL || nplurals == NULL) goto no_plural; else { char *endp; unsigned long int n; struct parse_args args; /* First get the number. */ nplurals += 9; while (*nplurals != '\0' && isspace ((unsigned char) *nplurals)) ++nplurals; if (!(*nplurals >= '0' && *nplurals <= '9')) goto no_plural; #if defined HAVE_STRTOUL || defined _LIBC n = strtoul (nplurals, &endp, 10); #else for (endp = nplurals, n = 0; *endp >= '0' && *endp <= '9'; endp++) n = n * 10 + (*endp - '0'); #endif if (nplurals == endp) goto no_plural; *npluralsp = n; /* Due to the restrictions bison imposes onto the interface of the scanner function we have to put the input string and the result passed up from the parser into the same structure which address is passed down to the parser. */ plural += 7; args.cp = plural; if (PLURAL_PARSE (&args) != 0) goto no_plural; *pluralp = args.res; } } else { /* By default we are using the Germanic form: singular form only for `one', the plural form otherwise. Yes, this is also what English is using since English is a Germanic language. */ no_plural: INIT_GERMANIC_PLURAL (); *pluralp = &GERMANIC_PLURAL; *npluralsp = 2; } } sweep-0.9.3/intl/printf-parse.c0000644000175000017500000002733710777660165015143 0ustar useruser/* Formatted output to strings. Copyright (C) 1999-2000, 2002-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif /* Specification. */ #if WIDE_CHAR_VERSION # include "wprintf-parse.h" #else # include "printf-parse.h" #endif /* Get size_t, NULL. */ #include /* Get intmax_t. */ #if HAVE_STDINT_H_WITH_UINTMAX # include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX # include #endif /* malloc(), realloc(), free(). */ #include /* Checked size_t computations. */ #include "xsize.h" #if WIDE_CHAR_VERSION # define PRINTF_PARSE wprintf_parse # define CHAR_T wchar_t # define DIRECTIVE wchar_t_directive # define DIRECTIVES wchar_t_directives #else # define PRINTF_PARSE printf_parse # define CHAR_T char # define DIRECTIVE char_directive # define DIRECTIVES char_directives #endif #ifdef STATIC STATIC #endif int PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a) { const CHAR_T *cp = format; /* pointer into format */ size_t arg_posn = 0; /* number of regular arguments consumed */ size_t d_allocated; /* allocated elements of d->dir */ size_t a_allocated; /* allocated elements of a->arg */ size_t max_width_length = 0; size_t max_precision_length = 0; d->count = 0; d_allocated = 1; d->dir = malloc (d_allocated * sizeof (DIRECTIVE)); if (d->dir == NULL) /* Out of memory. */ return -1; a->count = 0; a_allocated = 0; a->arg = NULL; #define REGISTER_ARG(_index_,_type_) \ { \ size_t n = (_index_); \ if (n >= a_allocated) \ { \ size_t memory_size; \ argument *memory; \ \ a_allocated = xtimes (a_allocated, 2); \ if (a_allocated <= n) \ a_allocated = xsum (n, 1); \ memory_size = xtimes (a_allocated, sizeof (argument)); \ if (size_overflow_p (memory_size)) \ /* Overflow, would lead to out of memory. */ \ goto error; \ memory = (a->arg \ ? realloc (a->arg, memory_size) \ : malloc (memory_size)); \ if (memory == NULL) \ /* Out of memory. */ \ goto error; \ a->arg = memory; \ } \ while (a->count <= n) \ a->arg[a->count++].type = TYPE_NONE; \ if (a->arg[n].type == TYPE_NONE) \ a->arg[n].type = (_type_); \ else if (a->arg[n].type != (_type_)) \ /* Ambiguous type for positional argument. */ \ goto error; \ } while (*cp != '\0') { CHAR_T c = *cp++; if (c == '%') { size_t arg_index = ARG_NONE; DIRECTIVE *dp = &d->dir[d->count];/* pointer to next directive */ /* Initialize the next directive. */ dp->dir_start = cp - 1; dp->flags = 0; dp->width_start = NULL; dp->width_end = NULL; dp->width_arg_index = ARG_NONE; dp->precision_start = NULL; dp->precision_end = NULL; dp->precision_arg_index = ARG_NONE; dp->arg_index = ARG_NONE; /* Test for positional argument. */ if (*cp >= '0' && *cp <= '9') { const CHAR_T *np; for (np = cp; *np >= '0' && *np <= '9'; np++) ; if (*np == '$') { size_t n = 0; for (np = cp; *np >= '0' && *np <= '9'; np++) n = xsum (xtimes (n, 10), *np - '0'); if (n == 0) /* Positional argument 0. */ goto error; if (size_overflow_p (n)) /* n too large, would lead to out of memory later. */ goto error; arg_index = n - 1; cp = np + 1; } } /* Read the flags. */ for (;;) { if (*cp == '\'') { dp->flags |= FLAG_GROUP; cp++; } else if (*cp == '-') { dp->flags |= FLAG_LEFT; cp++; } else if (*cp == '+') { dp->flags |= FLAG_SHOWSIGN; cp++; } else if (*cp == ' ') { dp->flags |= FLAG_SPACE; cp++; } else if (*cp == '#') { dp->flags |= FLAG_ALT; cp++; } else if (*cp == '0') { dp->flags |= FLAG_ZERO; cp++; } else break; } /* Parse the field width. */ if (*cp == '*') { dp->width_start = cp; cp++; dp->width_end = cp; if (max_width_length < 1) max_width_length = 1; /* Test for positional argument. */ if (*cp >= '0' && *cp <= '9') { const CHAR_T *np; for (np = cp; *np >= '0' && *np <= '9'; np++) ; if (*np == '$') { size_t n = 0; for (np = cp; *np >= '0' && *np <= '9'; np++) n = xsum (xtimes (n, 10), *np - '0'); if (n == 0) /* Positional argument 0. */ goto error; if (size_overflow_p (n)) /* n too large, would lead to out of memory later. */ goto error; dp->width_arg_index = n - 1; cp = np + 1; } } if (dp->width_arg_index == ARG_NONE) { dp->width_arg_index = arg_posn++; if (dp->width_arg_index == ARG_NONE) /* arg_posn wrapped around. */ goto error; } REGISTER_ARG (dp->width_arg_index, TYPE_INT); } else if (*cp >= '0' && *cp <= '9') { size_t width_length; dp->width_start = cp; for (; *cp >= '0' && *cp <= '9'; cp++) ; dp->width_end = cp; width_length = dp->width_end - dp->width_start; if (max_width_length < width_length) max_width_length = width_length; } /* Parse the precision. */ if (*cp == '.') { cp++; if (*cp == '*') { dp->precision_start = cp - 1; cp++; dp->precision_end = cp; if (max_precision_length < 2) max_precision_length = 2; /* Test for positional argument. */ if (*cp >= '0' && *cp <= '9') { const CHAR_T *np; for (np = cp; *np >= '0' && *np <= '9'; np++) ; if (*np == '$') { size_t n = 0; for (np = cp; *np >= '0' && *np <= '9'; np++) n = xsum (xtimes (n, 10), *np - '0'); if (n == 0) /* Positional argument 0. */ goto error; if (size_overflow_p (n)) /* n too large, would lead to out of memory later. */ goto error; dp->precision_arg_index = n - 1; cp = np + 1; } } if (dp->precision_arg_index == ARG_NONE) { dp->precision_arg_index = arg_posn++; if (dp->precision_arg_index == ARG_NONE) /* arg_posn wrapped around. */ goto error; } REGISTER_ARG (dp->precision_arg_index, TYPE_INT); } else { size_t precision_length; dp->precision_start = cp - 1; for (; *cp >= '0' && *cp <= '9'; cp++) ; dp->precision_end = cp; precision_length = dp->precision_end - dp->precision_start; if (max_precision_length < precision_length) max_precision_length = precision_length; } } { arg_type type; /* Parse argument type/size specifiers. */ { int flags = 0; for (;;) { if (*cp == 'h') { flags |= (1 << (flags & 1)); cp++; } else if (*cp == 'L') { flags |= 4; cp++; } else if (*cp == 'l') { flags += 8; cp++; } #ifdef HAVE_INTMAX_T else if (*cp == 'j') { if (sizeof (intmax_t) > sizeof (long)) { /* intmax_t = long long */ flags += 16; } else if (sizeof (intmax_t) > sizeof (int)) { /* intmax_t = long */ flags += 8; } cp++; } #endif else if (*cp == 'z' || *cp == 'Z') { /* 'z' is standardized in ISO C 99, but glibc uses 'Z' because the warning facility in gcc-2.95.2 understands only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ if (sizeof (size_t) > sizeof (long)) { /* size_t = long long */ flags += 16; } else if (sizeof (size_t) > sizeof (int)) { /* size_t = long */ flags += 8; } cp++; } else if (*cp == 't') { if (sizeof (ptrdiff_t) > sizeof (long)) { /* ptrdiff_t = long long */ flags += 16; } else if (sizeof (ptrdiff_t) > sizeof (int)) { /* ptrdiff_t = long */ flags += 8; } cp++; } else break; } /* Read the conversion character. */ c = *cp++; switch (c) { case 'd': case 'i': #ifdef HAVE_LONG_LONG if (flags >= 16 || (flags & 4)) type = TYPE_LONGLONGINT; else #endif if (flags >= 8) type = TYPE_LONGINT; else if (flags & 2) type = TYPE_SCHAR; else if (flags & 1) type = TYPE_SHORT; else type = TYPE_INT; break; case 'o': case 'u': case 'x': case 'X': #ifdef HAVE_LONG_LONG if (flags >= 16 || (flags & 4)) type = TYPE_ULONGLONGINT; else #endif if (flags >= 8) type = TYPE_ULONGINT; else if (flags & 2) type = TYPE_UCHAR; else if (flags & 1) type = TYPE_USHORT; else type = TYPE_UINT; break; case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': case 'a': case 'A': #ifdef HAVE_LONG_DOUBLE if (flags >= 16 || (flags & 4)) type = TYPE_LONGDOUBLE; else #endif type = TYPE_DOUBLE; break; case 'c': if (flags >= 8) #ifdef HAVE_WINT_T type = TYPE_WIDE_CHAR; #else goto error; #endif else type = TYPE_CHAR; break; #ifdef HAVE_WINT_T case 'C': type = TYPE_WIDE_CHAR; c = 'c'; break; #endif case 's': if (flags >= 8) #ifdef HAVE_WCHAR_T type = TYPE_WIDE_STRING; #else goto error; #endif else type = TYPE_STRING; break; #ifdef HAVE_WCHAR_T case 'S': type = TYPE_WIDE_STRING; c = 's'; break; #endif case 'p': type = TYPE_POINTER; break; case 'n': #ifdef HAVE_LONG_LONG if (flags >= 16 || (flags & 4)) type = TYPE_COUNT_LONGLONGINT_POINTER; else #endif if (flags >= 8) type = TYPE_COUNT_LONGINT_POINTER; else if (flags & 2) type = TYPE_COUNT_SCHAR_POINTER; else if (flags & 1) type = TYPE_COUNT_SHORT_POINTER; else type = TYPE_COUNT_INT_POINTER; break; case '%': type = TYPE_NONE; break; default: /* Unknown conversion character. */ goto error; } } if (type != TYPE_NONE) { dp->arg_index = arg_index; if (dp->arg_index == ARG_NONE) { dp->arg_index = arg_posn++; if (dp->arg_index == ARG_NONE) /* arg_posn wrapped around. */ goto error; } REGISTER_ARG (dp->arg_index, type); } dp->conversion = c; dp->dir_end = cp; } d->count++; if (d->count >= d_allocated) { size_t memory_size; DIRECTIVE *memory; d_allocated = xtimes (d_allocated, 2); memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); if (size_overflow_p (memory_size)) /* Overflow, would lead to out of memory. */ goto error; memory = realloc (d->dir, memory_size); if (memory == NULL) /* Out of memory. */ goto error; d->dir = memory; } } } d->dir[d->count].dir_start = cp; d->max_width_length = max_width_length; d->max_precision_length = max_precision_length; return 0; error: if (a->arg) free (a->arg); if (d->dir) free (d->dir); return -1; } #undef DIRECTIVES #undef DIRECTIVE #undef CHAR_T #undef PRINTF_PARSE sweep-0.9.3/intl/locale.alias0000644000175000017500000000512610777660165014627 0ustar useruser# Locale name alias data base. # Copyright (C) 1996-2001,2003 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # The format of this file is the same as for the corresponding file of # the X Window System, which normally can be found in # /usr/lib/X11/locale/locale.alias # A single line contains two fields: an alias and a substitution value. # All entries are case independent. # Note: This file is far from being complete. If you have a value for # your own site which you think might be useful for others too, share # it with the rest of us. Send it using the `glibcbug' script to # bugs@gnu.org. # Packages using this file: bokmal nb_NO.ISO-8859-1 bokmål nb_NO.ISO-8859-1 catalan ca_ES.ISO-8859-1 croatian hr_HR.ISO-8859-2 czech cs_CZ.ISO-8859-2 danish da_DK.ISO-8859-1 dansk da_DK.ISO-8859-1 deutsch de_DE.ISO-8859-1 dutch nl_NL.ISO-8859-1 eesti et_EE.ISO-8859-1 estonian et_EE.ISO-8859-1 finnish fi_FI.ISO-8859-1 français fr_FR.ISO-8859-1 french fr_FR.ISO-8859-1 galego gl_ES.ISO-8859-1 galician gl_ES.ISO-8859-1 german de_DE.ISO-8859-1 greek el_GR.ISO-8859-7 hebrew he_IL.ISO-8859-8 hrvatski hr_HR.ISO-8859-2 hungarian hu_HU.ISO-8859-2 icelandic is_IS.ISO-8859-1 italian it_IT.ISO-8859-1 japanese ja_JP.eucJP japanese.euc ja_JP.eucJP ja_JP ja_JP.eucJP ja_JP.ujis ja_JP.eucJP japanese.sjis ja_JP.SJIS korean ko_KR.eucKR korean.euc ko_KR.eucKR ko_KR ko_KR.eucKR lithuanian lt_LT.ISO-8859-13 no_NO nb_NO.ISO-8859-1 no_NO.ISO-8859-1 nb_NO.ISO-8859-1 norwegian nb_NO.ISO-8859-1 nynorsk nn_NO.ISO-8859-1 polish pl_PL.ISO-8859-2 portuguese pt_PT.ISO-8859-1 romanian ro_RO.ISO-8859-2 russian ru_RU.ISO-8859-5 slovak sk_SK.ISO-8859-2 slovene sl_SI.ISO-8859-2 slovenian sl_SI.ISO-8859-2 spanish es_ES.ISO-8859-1 swedish sv_SE.ISO-8859-1 thai th_TH.TIS-620 turkish tr_TR.ISO-8859-9 sweep-0.9.3/intl/langprefs.c0000644000175000017500000000730110777660165014477 0ustar useruser/* Determine the user's language preferences. Copyright (C) 2004-2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible . */ #ifdef HAVE_CONFIG_H # include #endif #include #if HAVE_CFPREFERENCESCOPYAPPVALUE # include # include # include # include # include extern void _nl_locale_name_canonicalize (char *name); #endif /* Determine the user's language preferences, as a colon separated list of locale names in XPG syntax language[_territory[.codeset]][@modifier] The result must not be freed; it is statically allocated. The LANGUAGE environment variable does not need to be considered; it is already taken into account by the caller. */ const char * _nl_language_preferences_default (void) { #if HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ { /* Cache the preferences list, since CoreFoundation calls are expensive. */ static const char *cached_languages; static int cache_initialized; if (!cache_initialized) { CFTypeRef preferences = CFPreferencesCopyAppValue (CFSTR ("AppleLanguages"), kCFPreferencesCurrentApplication); if (preferences != NULL && CFGetTypeID (preferences) == CFArrayGetTypeID ()) { CFArrayRef prefArray = (CFArrayRef)preferences; int n = CFArrayGetCount (prefArray); char buf[256]; size_t size = 0; int i; for (i = 0; i < n; i++) { CFTypeRef element = CFArrayGetValueAtIndex (prefArray, i); if (element != NULL && CFGetTypeID (element) == CFStringGetTypeID () && CFStringGetCString ((CFStringRef)element, buf, sizeof (buf), kCFStringEncodingASCII)) { _nl_locale_name_canonicalize (buf); size += strlen (buf) + 1; /* Most GNU programs use msgids in English and don't ship an en.mo message catalog. Therefore when we see "en" in the preferences list, arrange for gettext() to return the msgid, and ignore all further elements of the preferences list. */ if (strcmp (buf, "en") == 0) break; } else break; } if (size > 0) { char *languages = (char *) malloc (size); if (languages != NULL) { char *p = languages; for (i = 0; i < n; i++) { CFTypeRef element = CFArrayGetValueAtIndex (prefArray, i); if (element != NULL && CFGetTypeID (element) == CFStringGetTypeID () && CFStringGetCString ((CFStringRef)element, buf, sizeof (buf), kCFStringEncodingASCII)) { _nl_locale_name_canonicalize (buf); strcpy (p, buf); p += strlen (buf); *p++ = ':'; if (strcmp (buf, "en") == 0) break; } else break; } *--p = '\0'; cached_languages = languages; } } } cache_initialized = 1; } if (cached_languages != NULL) return cached_languages; } #endif return NULL; } sweep-0.9.3/intl/libgnuintl.h.in0000644000175000017500000003117210777660165015302 0ustar useruser/* Message catalogs for internationalization. Copyright (C) 1995-1997, 2000-2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LIBINTL_H #define _LIBINTL_H 1 #include /* The LC_MESSAGES locale category is the category used by the functions gettext() and dgettext(). It is specified in POSIX, but not in ANSI C. On systems that don't define it, use an arbitrary value instead. On Solaris, defines __LOCALE_H (or _LOCALE_H in Solaris 2.5) then includes (i.e. this file!) and then only defines LC_MESSAGES. To avoid a redefinition warning, don't define LC_MESSAGES in this case. */ #if !defined LC_MESSAGES && !(defined __LOCALE_H || (defined _LOCALE_H && defined __sun)) # define LC_MESSAGES 1729 #endif /* We define an additional symbol to signal that we use the GNU implementation of gettext. */ #define __USE_GNU_GETTEXT 1 /* Provide information about the supported file formats. Returns the maximum minor revision number supported for a given major revision. */ #define __GNU_GETTEXT_SUPPORTED_REVISION(major) \ ((major) == 0 || (major) == 1 ? 1 : -1) /* Resolve a platform specific conflict on DJGPP. GNU gettext takes precedence over _conio_gettext. */ #ifdef __DJGPP__ # undef gettext #endif #ifdef __cplusplus extern "C" { #endif /* We redirect the functions to those prefixed with "libintl_". This is necessary, because some systems define gettext/textdomain/... in the C library (namely, Solaris 2.4 and newer, and GNU libc 2.0 and newer). If we used the unprefixed names, there would be cases where the definition in the C library would override the one in the libintl.so shared library. Recall that on ELF systems, the symbols are looked up in the following order: 1. in the executable, 2. in the shared libraries specified on the link command line, in order, 3. in the dependencies of the shared libraries specified on the link command line, 4. in the dlopen()ed shared libraries, in the order in which they were dlopen()ed. The definition in the C library would override the one in libintl.so if either * -lc is given on the link command line and -lintl isn't, or * -lc is given on the link command line before -lintl, or * libintl.so is a dependency of a dlopen()ed shared library but not linked to the executable at link time. Since Solaris gettext() behaves differently than GNU gettext(), this would be unacceptable. The redirection happens by default through macros in C, so that &gettext is independent of the compilation unit, but through inline functions in C++, in order not to interfere with the name mangling of class fields or class methods called 'gettext'. */ /* The user can define _INTL_REDIRECT_INLINE or _INTL_REDIRECT_MACROS. If he doesn't, we choose the method. A third possible method is _INTL_REDIRECT_ASM, supported only by GCC. */ #if !(defined _INTL_REDIRECT_INLINE || defined _INTL_REDIRECT_MACROS) # if __GNUC__ >= 2 && !defined __APPLE_CC__ && !defined __MINGW32__ && !(__GNUC__ == 2 && defined _AIX) && (defined __STDC__ || defined __cplusplus) # define _INTL_REDIRECT_ASM # else # ifdef __cplusplus # define _INTL_REDIRECT_INLINE # else # define _INTL_REDIRECT_MACROS # endif # endif #endif /* Auxiliary macros. */ #ifdef _INTL_REDIRECT_ASM # define _INTL_ASM(cname) __asm__ (_INTL_ASMNAME (__USER_LABEL_PREFIX__, #cname)) # define _INTL_ASMNAME(prefix,cnamestring) _INTL_STRINGIFY (prefix) cnamestring # define _INTL_STRINGIFY(prefix) #prefix #else # define _INTL_ASM(cname) #endif /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_gettext (const char *__msgid); static inline char *gettext (const char *__msgid) { return libintl_gettext (__msgid); } #else #ifdef _INTL_REDIRECT_MACROS # define gettext libintl_gettext #endif extern char *gettext (const char *__msgid) _INTL_ASM (libintl_gettext); #endif /* Look up MSGID in the DOMAINNAME message catalog for the current LC_MESSAGES locale. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dgettext (const char *__domainname, const char *__msgid); static inline char *dgettext (const char *__domainname, const char *__msgid) { return libintl_dgettext (__domainname, __msgid); } #else #ifdef _INTL_REDIRECT_MACROS # define dgettext libintl_dgettext #endif extern char *dgettext (const char *__domainname, const char *__msgid) _INTL_ASM (libintl_dgettext); #endif /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dcgettext (const char *__domainname, const char *__msgid, int __category); static inline char *dcgettext (const char *__domainname, const char *__msgid, int __category) { return libintl_dcgettext (__domainname, __msgid, __category); } #else #ifdef _INTL_REDIRECT_MACROS # define dcgettext libintl_dcgettext #endif extern char *dcgettext (const char *__domainname, const char *__msgid, int __category) _INTL_ASM (libintl_dcgettext); #endif /* Similar to `gettext' but select the plural form corresponding to the number N. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n); static inline char *ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n) { return libintl_ngettext (__msgid1, __msgid2, __n); } #else #ifdef _INTL_REDIRECT_MACROS # define ngettext libintl_ngettext #endif extern char *ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_ASM (libintl_ngettext); #endif /* Similar to `dgettext' but select the plural form corresponding to the number N. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n); static inline char *dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n) { return libintl_dngettext (__domainname, __msgid1, __msgid2, __n); } #else #ifdef _INTL_REDIRECT_MACROS # define dngettext libintl_dngettext #endif extern char *dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_ASM (libintl_dngettext); #endif /* Similar to `dcgettext' but select the plural form corresponding to the number N. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category); static inline char *dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category) { return libintl_dcngettext (__domainname, __msgid1, __msgid2, __n, __category); } #else #ifdef _INTL_REDIRECT_MACROS # define dcngettext libintl_dcngettext #endif extern char *dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category) _INTL_ASM (libintl_dcngettext); #endif /* Set the current default message catalog to DOMAINNAME. If DOMAINNAME is null, return the current default. If DOMAINNAME is "", reset to the default of "messages". */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_textdomain (const char *__domainname); static inline char *textdomain (const char *__domainname) { return libintl_textdomain (__domainname); } #else #ifdef _INTL_REDIRECT_MACROS # define textdomain libintl_textdomain #endif extern char *textdomain (const char *__domainname) _INTL_ASM (libintl_textdomain); #endif /* Specify that the DOMAINNAME message catalog will be found in DIRNAME rather than in the system locale data base. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_bindtextdomain (const char *__domainname, const char *__dirname); static inline char *bindtextdomain (const char *__domainname, const char *__dirname) { return libintl_bindtextdomain (__domainname, __dirname); } #else #ifdef _INTL_REDIRECT_MACROS # define bindtextdomain libintl_bindtextdomain #endif extern char *bindtextdomain (const char *__domainname, const char *__dirname) _INTL_ASM (libintl_bindtextdomain); #endif /* Specify the character encoding in which the messages from the DOMAINNAME message catalog will be returned. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_bind_textdomain_codeset (const char *__domainname, const char *__codeset); static inline char *bind_textdomain_codeset (const char *__domainname, const char *__codeset) { return libintl_bind_textdomain_codeset (__domainname, __codeset); } #else #ifdef _INTL_REDIRECT_MACROS # define bind_textdomain_codeset libintl_bind_textdomain_codeset #endif extern char *bind_textdomain_codeset (const char *__domainname, const char *__codeset) _INTL_ASM (libintl_bind_textdomain_codeset); #endif /* Support for format strings with positions in *printf(), following the POSIX/XSI specification. Note: These replacements for the *printf() functions are visible only in source files that #include or #include "gettext.h". Packages that use *printf() in source files that don't refer to _() or gettext() but for which the format string could be the return value of _() or gettext() need to add this #include. Oh well. */ #if !@HAVE_POSIX_PRINTF@ #include #include /* Get va_list. */ #if __STDC__ || defined __cplusplus || defined _MSC_VER # include #else # include #endif #undef fprintf #define fprintf libintl_fprintf extern int fprintf (FILE *, const char *, ...); #undef vfprintf #define vfprintf libintl_vfprintf extern int vfprintf (FILE *, const char *, va_list); #undef printf #define printf libintl_printf extern int printf (const char *, ...); #undef vprintf #define vprintf libintl_vprintf extern int vprintf (const char *, va_list); #undef sprintf #define sprintf libintl_sprintf extern int sprintf (char *, const char *, ...); #undef vsprintf #define vsprintf libintl_vsprintf extern int vsprintf (char *, const char *, va_list); #if @HAVE_SNPRINTF@ #undef snprintf #define snprintf libintl_snprintf extern int snprintf (char *, size_t, const char *, ...); #undef vsnprintf #define vsnprintf libintl_vsnprintf extern int vsnprintf (char *, size_t, const char *, va_list); #endif #if @HAVE_ASPRINTF@ #undef asprintf #define asprintf libintl_asprintf extern int asprintf (char **, const char *, ...); #undef vasprintf #define vasprintf libintl_vasprintf extern int vasprintf (char **, const char *, va_list); #endif #if @HAVE_WPRINTF@ #undef fwprintf #define fwprintf libintl_fwprintf extern int fwprintf (FILE *, const wchar_t *, ...); #undef vfwprintf #define vfwprintf libintl_vfwprintf extern int vfwprintf (FILE *, const wchar_t *, va_list); #undef wprintf #define wprintf libintl_wprintf extern int wprintf (const wchar_t *, ...); #undef vwprintf #define vwprintf libintl_vwprintf extern int vwprintf (const wchar_t *, va_list); #undef swprintf #define swprintf libintl_swprintf extern int swprintf (wchar_t *, size_t, const wchar_t *, ...); #undef vswprintf #define vswprintf libintl_vswprintf extern int vswprintf (wchar_t *, size_t, const wchar_t *, va_list); #endif #endif /* Support for relocatable packages. */ /* Sets the original and the current installation prefix of the package. Relocation simply replaces a pathname starting with the original prefix by the corresponding pathname with the current prefix instead. Both prefixes should be directory names without trailing slash (i.e. use "" instead of "/"). */ #define libintl_set_relocation_prefix libintl_set_relocation_prefix extern void libintl_set_relocation_prefix (const char *orig_prefix, const char *curr_prefix); #ifdef __cplusplus } #endif #endif /* libintl.h */ sweep-0.9.3/intl/plural.c0000644000175000017500000011075710777660165014027 0ustar useruser/* A Bison parser, made from plural.y by GNU bison 1.35. */ #define YYBISON 1 /* Identify Bison output. */ #define yyparse __gettextparse #define yylex __gettextlex #define yyerror __gettexterror #define yylval __gettextlval #define yychar __gettextchar #define yydebug __gettextdebug #define yynerrs __gettextnerrs # define EQUOP2 257 # define CMPOP2 258 # define ADDOP2 259 # define MULOP2 260 # define NUMBER 261 #line 1 "plural.y" /* Expression parsing for plural form selection. Copyright (C) 2000-2001, 2003 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* The bison generated parser uses alloca. AIX 3 forces us to put this declaration at the beginning of the file. The declaration in bison's skeleton file comes too late. This must come before because may include arbitrary system headers. */ #if defined _AIX && !defined __GNUC__ #pragma alloca #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #include "plural-exp.h" /* The main function generated by the parser is called __gettextparse, but we want it to be called PLURAL_PARSE. */ #ifndef _LIBC # define __gettextparse PLURAL_PARSE #endif #define YYLEX_PARAM &((struct parse_args *) arg)->cp #define YYPARSE_PARAM arg #line 49 "plural.y" #ifndef YYSTYPE typedef union { unsigned long int num; enum operator op; struct expression *exp; } yystype; # define YYSTYPE yystype # define YYSTYPE_IS_TRIVIAL 1 #endif #line 55 "plural.y" /* Prototypes for local functions. */ static int yylex (YYSTYPE *lval, const char **pexp); static void yyerror (const char *str); /* Allocation of expressions. */ static struct expression * new_exp (int nargs, enum operator op, struct expression * const *args) { int i; struct expression *newp; /* If any of the argument could not be malloc'ed, just return NULL. */ for (i = nargs - 1; i >= 0; i--) if (args[i] == NULL) goto fail; /* Allocate a new expression. */ newp = (struct expression *) malloc (sizeof (*newp)); if (newp != NULL) { newp->nargs = nargs; newp->operation = op; for (i = nargs - 1; i >= 0; i--) newp->val.args[i] = args[i]; return newp; } fail: for (i = nargs - 1; i >= 0; i--) FREE_EXPRESSION (args[i]); return NULL; } static inline struct expression * new_exp_0 (enum operator op) { return new_exp (0, op, NULL); } static inline struct expression * new_exp_1 (enum operator op, struct expression *right) { struct expression *args[1]; args[0] = right; return new_exp (1, op, args); } static struct expression * new_exp_2 (enum operator op, struct expression *left, struct expression *right) { struct expression *args[2]; args[0] = left; args[1] = right; return new_exp (2, op, args); } static inline struct expression * new_exp_3 (enum operator op, struct expression *bexp, struct expression *tbranch, struct expression *fbranch) { struct expression *args[3]; args[0] = bexp; args[1] = tbranch; args[2] = fbranch; return new_exp (3, op, args); } #ifndef YYDEBUG # define YYDEBUG 0 #endif #define YYFINAL 27 #define YYFLAG -32768 #define YYNTBASE 16 /* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */ #define YYTRANSLATE(x) ((unsigned)(x) <= 261 ? yytranslate[x] : 18) /* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */ static const char yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 2, 2, 2, 2, 5, 2, 14, 15, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 12, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 13, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 6, 7, 8, 9, 11 }; #if YYDEBUG static const short yyprhs[] = { 0, 0, 2, 8, 12, 16, 20, 24, 28, 32, 35, 37, 39 }; static const short yyrhs[] = { 17, 0, 17, 3, 17, 12, 17, 0, 17, 4, 17, 0, 17, 5, 17, 0, 17, 6, 17, 0, 17, 7, 17, 0, 17, 8, 17, 0, 17, 9, 17, 0, 10, 17, 0, 13, 0, 11, 0, 14, 17, 15, 0 }; #endif #if YYDEBUG /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const short yyrline[] = { 0, 150, 158, 162, 166, 170, 174, 178, 182, 186, 190, 194, 199 }; #endif #if (YYDEBUG) || defined YYERROR_VERBOSE /* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */ static const char *const yytname[] = { "$", "error", "$undefined.", "'?'", "'|'", "'&'", "EQUOP2", "CMPOP2", "ADDOP2", "MULOP2", "'!'", "NUMBER", "':'", "'n'", "'('", "')'", "start", "exp", 0 }; #endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const short yyr1[] = { 0, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const short yyr2[] = { 0, 1, 5, 3, 3, 3, 3, 3, 3, 2, 1, 1, 3 }; /* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const short yydefact[] = { 0, 0, 11, 10, 0, 1, 9, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 3, 4, 5, 6, 7, 8, 0, 2, 0, 0, 0 }; static const short yydefgoto[] = { 25, 5 }; static const short yypact[] = { -9, -9,-32768,-32768, -9, 34,-32768, 11, -9, -9, -9, -9, -9, -9, -9,-32768, 24, 39, 43, 16, 26, -3,-32768, -9, 34, 21, 53,-32768 }; static const short yypgoto[] = { -32768, -1 }; #define YYLAST 53 static const short yytable[] = { 6, 1, 2, 7, 3, 4, 14, 16, 17, 18, 19, 20, 21, 22, 8, 9, 10, 11, 12, 13, 14, 26, 24, 12, 13, 14, 15, 8, 9, 10, 11, 12, 13, 14, 13, 14, 23, 8, 9, 10, 11, 12, 13, 14, 10, 11, 12, 13, 14, 11, 12, 13, 14, 27 }; static const short yycheck[] = { 1, 10, 11, 4, 13, 14, 9, 8, 9, 10, 11, 12, 13, 14, 3, 4, 5, 6, 7, 8, 9, 0, 23, 7, 8, 9, 15, 3, 4, 5, 6, 7, 8, 9, 8, 9, 12, 3, 4, 5, 6, 7, 8, 9, 5, 6, 7, 8, 9, 6, 7, 8, 9, 0 }; #define YYPURE 1 /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ #line 3 "/home/haible/gnu/arch/linuxlibc6/share/bison/bison.simple" /* Skeleton output parser for bison, Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* As a special exception, when this file is copied by Bison into a Bison output file, you may use that output file without restriction. This special exception was added by the Free Software Foundation in version 1.24 of Bison. */ /* This is the parser code that is written into each bison parser when the %semantic_parser declaration is not specified in the grammar. It was written by Richard Stallman by simplifying the hairy parser used when %semantic_parser is specified. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ #if ! defined (yyoverflow) || defined (YYERROR_VERBOSE) /* The parser invokes alloca or malloc; define the necessary symbols. */ # if YYSTACK_USE_ALLOCA # define YYSTACK_ALLOC alloca # else # ifndef YYSTACK_USE_ALLOCA # if defined (alloca) || defined (_ALLOCA_H) # define YYSTACK_ALLOC alloca # else # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) # else # if defined (__STDC__) || defined (__cplusplus) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # endif # define YYSTACK_ALLOC malloc # define YYSTACK_FREE free # endif #endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */ #if (! defined (yyoverflow) \ && (! defined (__cplusplus) \ || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { short yyss; YYSTYPE yyvs; # if YYLSP_NEEDED YYLTYPE yyls; # endif }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # if YYLSP_NEEDED # define YYSTACK_BYTES(N) \ ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ + 2 * YYSTACK_GAP_MAX) # else # define YYSTACK_BYTES(N) \ ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAX) # endif /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ register YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (0) # endif # endif /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack, Stack, yysize); \ Stack = &yyptr->Stack; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (0) #endif #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) # define YYSIZE_T __SIZE_TYPE__ #endif #if ! defined (YYSIZE_T) && defined (size_t) # define YYSIZE_T size_t #endif #if ! defined (YYSIZE_T) # if defined (__STDC__) || defined (__cplusplus) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # endif #endif #if ! defined (YYSIZE_T) # define YYSIZE_T unsigned int #endif #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY -2 #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrlab1 /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yychar1 = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ { \ yyerror ("syntax error: cannot back up"); \ YYERROR; \ } \ while (0) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Compute the default location (before the actions are run). When YYLLOC_DEFAULT is run, CURRENT is set the location of the first token. By default, to implement support for ranges, extend its range to the last symbol. */ #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ Current.last_line = Rhs[N].last_line; \ Current.last_column = Rhs[N].last_column; #endif /* YYLEX -- calling `yylex' with the right arguments. */ #if YYPURE # if YYLSP_NEEDED # ifdef YYLEX_PARAM # define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM) # else # define YYLEX yylex (&yylval, &yylloc) # endif # else /* !YYLSP_NEEDED */ # ifdef YYLEX_PARAM # define YYLEX yylex (&yylval, YYLEX_PARAM) # else # define YYLEX yylex (&yylval) # endif # endif /* !YYLSP_NEEDED */ #else /* !YYPURE */ # define YYLEX yylex () #endif /* !YYPURE */ /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #if YYMAXDEPTH == 0 # undef YYMAXDEPTH #endif #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #ifdef YYERROR_VERBOSE # ifndef yystrlen # if defined (__GLIBC__) && defined (_STRING_H) # define yystrlen strlen # else /* Return the length of YYSTR. */ static YYSIZE_T # if defined (__STDC__) || defined (__cplusplus) yystrlen (const char *yystr) # else yystrlen (yystr) const char *yystr; # endif { register const char *yys = yystr; while (*yys++ != '\0') continue; return yys - yystr - 1; } # endif # endif # ifndef yystpcpy # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE) # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ static char * # if defined (__STDC__) || defined (__cplusplus) yystpcpy (char *yydest, const char *yysrc) # else yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; # endif { register char *yyd = yydest; register const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif #endif #line 315 "/home/haible/gnu/arch/linuxlibc6/share/bison/bison.simple" /* The user can define YYPARSE_PARAM as the name of an argument to be passed into yyparse. The argument should have type void *. It should actually point to an object. Grammar actions can access the variable by casting it to the proper pointer type. */ #ifdef YYPARSE_PARAM # if defined (__STDC__) || defined (__cplusplus) # define YYPARSE_PARAM_ARG void *YYPARSE_PARAM # define YYPARSE_PARAM_DECL # else # define YYPARSE_PARAM_ARG YYPARSE_PARAM # define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; # endif #else /* !YYPARSE_PARAM */ # define YYPARSE_PARAM_ARG # define YYPARSE_PARAM_DECL #endif /* !YYPARSE_PARAM */ /* Prevent warning if -Wstrict-prototypes. */ #ifdef __GNUC__ # ifdef YYPARSE_PARAM int yyparse (void *); # else int yyparse (void); # endif #endif /* YY_DECL_VARIABLES -- depending whether we use a pure parser, variables are global, or local to YYPARSE. */ #define YY_DECL_NON_LSP_VARIABLES \ /* The lookahead symbol. */ \ int yychar; \ \ /* The semantic value of the lookahead symbol. */ \ YYSTYPE yylval; \ \ /* Number of parse errors so far. */ \ int yynerrs; #if YYLSP_NEEDED # define YY_DECL_VARIABLES \ YY_DECL_NON_LSP_VARIABLES \ \ /* Location data for the lookahead symbol. */ \ YYLTYPE yylloc; #else # define YY_DECL_VARIABLES \ YY_DECL_NON_LSP_VARIABLES #endif /* If nonreentrant, generate the variables here. */ #if !YYPURE YY_DECL_VARIABLES #endif /* !YYPURE */ int yyparse (YYPARSE_PARAM_ARG) YYPARSE_PARAM_DECL { /* If reentrant, generate the variables here. */ #if YYPURE YY_DECL_VARIABLES #endif /* !YYPURE */ register int yystate; register int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* Lookahead token as an internal (translated) token number. */ int yychar1 = 0; /* Three stacks and their tools: `yyss': related to states, `yyvs': related to semantic values, `yyls': related to locations. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ short yyssa[YYINITDEPTH]; short *yyss = yyssa; register short *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; register YYSTYPE *yyvsp; #if YYLSP_NEEDED /* The location stack. */ YYLTYPE yylsa[YYINITDEPTH]; YYLTYPE *yyls = yylsa; YYLTYPE *yylsp; #endif #if YYLSP_NEEDED # define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) #else # define YYPOPSTACK (yyvsp--, yyssp--) #endif YYSIZE_T yystacksize = YYINITDEPTH; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; #if YYLSP_NEEDED YYLTYPE yyloc; #endif /* When reducing, the number of symbols on the RHS of the reduced rule. */ int yylen; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; #if YYLSP_NEEDED yylsp = yyls; #endif goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. so pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyssp >= yyss + yystacksize - 1) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; short *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. */ # if YYLSP_NEEDED YYLTYPE *yyls1 = yyls; /* This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow ("parser stack overflow", &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yyls1, yysize * sizeof (*yylsp), &yystacksize); yyls = yyls1; # else yyoverflow ("parser stack overflow", &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); # endif yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyoverflowlab; # else /* Extend the stack our own way. */ if (yystacksize >= YYMAXDEPTH) goto yyoverflowlab; yystacksize *= 2; if (yystacksize > YYMAXDEPTH) yystacksize = YYMAXDEPTH; { short *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyoverflowlab; YYSTACK_RELOCATE (yyss); YYSTACK_RELOCATE (yyvs); # if YYLSP_NEEDED YYSTACK_RELOCATE (yyls); # endif # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; #if YYLSP_NEEDED yylsp = yyls + yysize - 1; #endif YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyssp >= yyss + yystacksize - 1) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. */ /* Read a lookahead token if we need one and don't already have one. */ /* yyresume: */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yyn == YYFLAG) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* yychar is either YYEMPTY or YYEOF or a valid token in external form. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } /* Convert token to internal form (in yychar1) for indexing tables with */ if (yychar <= 0) /* This means end of input. */ { yychar1 = 0; yychar = YYEOF; /* Don't call YYLEX any more */ YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yychar1 = YYTRANSLATE (yychar); #if YYDEBUG /* We have to keep this `#if YYDEBUG', since we use variables which are defined only if `YYDEBUG' is set. */ if (yydebug) { YYFPRINTF (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); /* Give the individual parser a way to print the precise meaning of a token, for further debugging info. */ # ifdef YYPRINT YYPRINT (stderr, yychar, yylval); # endif YYFPRINTF (stderr, ")\n"); } #endif } yyn += yychar1; if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) goto yydefault; yyn = yytable[yyn]; /* yyn is what to do for this token type in this state. Negative => reduce, -yyn is rule number. Positive => shift, yyn is new state. New state is final state => don't bother to shift, just return success. 0, or most negative number => error. */ if (yyn < 0) { if (yyn == YYFLAG) goto yyerrlab; yyn = -yyn; goto yyreduce; } else if (yyn == 0) goto yyerrlab; if (yyn == YYFINAL) YYACCEPT; /* Shift the lookahead token. */ YYDPRINTF ((stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1])); /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval; #if YYLSP_NEEDED *++yylsp = yylloc; #endif /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; yystate = yyn; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. Otherwise, the following line sets YYVAL to the semantic value of the lookahead token. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; #if YYLSP_NEEDED /* Similarly for the default location. Let the user run additional commands if for instance locations are ranges. */ yyloc = yylsp[1-yylen]; YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); #endif #if YYDEBUG /* We have to keep this `#if YYDEBUG', since we use variables which are defined only if `YYDEBUG' is set. */ if (yydebug) { int yyi; YYFPRINTF (stderr, "Reducing via rule %d (line %d), ", yyn, yyrline[yyn]); /* Print the symbols being reduced, and their result. */ for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++) YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]); } #endif switch (yyn) { case 1: #line 151 "plural.y" { if (yyvsp[0].exp == NULL) YYABORT; ((struct parse_args *) arg)->res = yyvsp[0].exp; } break; case 2: #line 159 "plural.y" { yyval.exp = new_exp_3 (qmop, yyvsp[-4].exp, yyvsp[-2].exp, yyvsp[0].exp); } break; case 3: #line 163 "plural.y" { yyval.exp = new_exp_2 (lor, yyvsp[-2].exp, yyvsp[0].exp); } break; case 4: #line 167 "plural.y" { yyval.exp = new_exp_2 (land, yyvsp[-2].exp, yyvsp[0].exp); } break; case 5: #line 171 "plural.y" { yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp); } break; case 6: #line 175 "plural.y" { yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp); } break; case 7: #line 179 "plural.y" { yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp); } break; case 8: #line 183 "plural.y" { yyval.exp = new_exp_2 (yyvsp[-1].op, yyvsp[-2].exp, yyvsp[0].exp); } break; case 9: #line 187 "plural.y" { yyval.exp = new_exp_1 (lnot, yyvsp[0].exp); } break; case 10: #line 191 "plural.y" { yyval.exp = new_exp_0 (var); } break; case 11: #line 195 "plural.y" { if ((yyval.exp = new_exp_0 (num)) != NULL) yyval.exp->val.num = yyvsp[0].num; } break; case 12: #line 200 "plural.y" { yyval.exp = yyvsp[-1].exp; } break; } #line 705 "/home/haible/gnu/arch/linuxlibc6/share/bison/bison.simple" yyvsp -= yylen; yyssp -= yylen; #if YYLSP_NEEDED yylsp -= yylen; #endif #if YYDEBUG if (yydebug) { short *yyssp1 = yyss - 1; YYFPRINTF (stderr, "state stack now"); while (yyssp1 != yyssp) YYFPRINTF (stderr, " %d", *++yyssp1); YYFPRINTF (stderr, "\n"); } #endif *++yyvsp = yyval; #if YYLSP_NEEDED *++yylsp = yyloc; #endif /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTBASE] + *yyssp; if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTBASE]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #ifdef YYERROR_VERBOSE yyn = yypact[yystate]; if (yyn > YYFLAG && yyn < YYLAST) { YYSIZE_T yysize = 0; char *yymsg; int yyx, yycount; yycount = 0; /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. */ for (yyx = yyn < 0 ? -yyn : 0; yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++) if (yycheck[yyx + yyn] == yyx) yysize += yystrlen (yytname[yyx]) + 15, yycount++; yysize += yystrlen ("parse error, unexpected ") + 1; yysize += yystrlen (yytname[YYTRANSLATE (yychar)]); yymsg = (char *) YYSTACK_ALLOC (yysize); if (yymsg != 0) { char *yyp = yystpcpy (yymsg, "parse error, unexpected "); yyp = yystpcpy (yyp, yytname[YYTRANSLATE (yychar)]); if (yycount < 5) { yycount = 0; for (yyx = yyn < 0 ? -yyn : 0; yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++) if (yycheck[yyx + yyn] == yyx) { const char *yyq = ! yycount ? ", expecting " : " or "; yyp = yystpcpy (yyp, yyq); yyp = yystpcpy (yyp, yytname[yyx]); yycount++; } } yyerror (yymsg); YYSTACK_FREE (yymsg); } else yyerror ("parse error; also virtual memory exhausted"); } else #endif /* defined (YYERROR_VERBOSE) */ yyerror ("parse error"); } goto yyerrlab1; /*--------------------------------------------------. | yyerrlab1 -- error raised explicitly by an action | `--------------------------------------------------*/ yyerrlab1: if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ /* return failure if at end of input */ if (yychar == YYEOF) YYABORT; YYDPRINTF ((stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1])); yychar = YYEMPTY; } /* Else will try to reuse lookahead token after shifting the error token. */ yyerrstatus = 3; /* Each real token shifted decrements this */ goto yyerrhandle; /*-------------------------------------------------------------------. | yyerrdefault -- current state does not do anything special for the | | error token. | `-------------------------------------------------------------------*/ yyerrdefault: #if 0 /* This is wrong; only states that explicitly want error tokens should shift them. */ /* If its default is to accept any token, ok. Otherwise pop it. */ yyn = yydefact[yystate]; if (yyn) goto yydefault; #endif /*---------------------------------------------------------------. | yyerrpop -- pop the current state because it cannot handle the | | error token | `---------------------------------------------------------------*/ yyerrpop: if (yyssp == yyss) YYABORT; yyvsp--; yystate = *--yyssp; #if YYLSP_NEEDED yylsp--; #endif #if YYDEBUG if (yydebug) { short *yyssp1 = yyss - 1; YYFPRINTF (stderr, "Error: state stack now"); while (yyssp1 != yyssp) YYFPRINTF (stderr, " %d", *++yyssp1); YYFPRINTF (stderr, "\n"); } #endif /*--------------. | yyerrhandle. | `--------------*/ yyerrhandle: yyn = yypact[yystate]; if (yyn == YYFLAG) goto yyerrdefault; yyn += YYTERROR; if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR) goto yyerrdefault; yyn = yytable[yyn]; if (yyn < 0) { if (yyn == YYFLAG) goto yyerrpop; yyn = -yyn; goto yyreduce; } else if (yyn == 0) goto yyerrpop; if (yyn == YYFINAL) YYACCEPT; YYDPRINTF ((stderr, "Shifting error token, ")); *++yyvsp = yylval; #if YYLSP_NEEDED *++yylsp = yylloc; #endif yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; /*---------------------------------------------. | yyoverflowab -- parser overflow comes here. | `---------------------------------------------*/ yyoverflowlab: yyerror ("parser stack overflow"); yyresult = 2; /* Fall through. */ yyreturn: #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif return yyresult; } #line 205 "plural.y" void internal_function FREE_EXPRESSION (struct expression *exp) { if (exp == NULL) return; /* Handle the recursive case. */ switch (exp->nargs) { case 3: FREE_EXPRESSION (exp->val.args[2]); /* FALLTHROUGH */ case 2: FREE_EXPRESSION (exp->val.args[1]); /* FALLTHROUGH */ case 1: FREE_EXPRESSION (exp->val.args[0]); /* FALLTHROUGH */ default: break; } free (exp); } static int yylex (YYSTYPE *lval, const char **pexp) { const char *exp = *pexp; int result; while (1) { if (exp[0] == '\0') { *pexp = exp; return YYEOF; } if (exp[0] != ' ' && exp[0] != '\t') break; ++exp; } result = *exp++; switch (result) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { unsigned long int n = result - '0'; while (exp[0] >= '0' && exp[0] <= '9') { n *= 10; n += exp[0] - '0'; ++exp; } lval->num = n; result = NUMBER; } break; case '=': if (exp[0] == '=') { ++exp; lval->op = equal; result = EQUOP2; } else result = YYERRCODE; break; case '!': if (exp[0] == '=') { ++exp; lval->op = not_equal; result = EQUOP2; } break; case '&': case '|': if (exp[0] == result) ++exp; else result = YYERRCODE; break; case '<': if (exp[0] == '=') { ++exp; lval->op = less_or_equal; } else lval->op = less_than; result = CMPOP2; break; case '>': if (exp[0] == '=') { ++exp; lval->op = greater_or_equal; } else lval->op = greater_than; result = CMPOP2; break; case '*': lval->op = mult; result = MULOP2; break; case '/': lval->op = divide; result = MULOP2; break; case '%': lval->op = module; result = MULOP2; break; case '+': lval->op = plus; result = ADDOP2; break; case '-': lval->op = minus; result = ADDOP2; break; case 'n': case '?': case ':': case '(': case ')': /* Nothing, just return the character. */ break; case ';': case '\n': case '\0': /* Be safe and let the user call this function again. */ --exp; result = YYEOF; break; default: result = YYERRCODE; #if YYDEBUG != 0 --exp; #endif break; } *pexp = exp; return result; } static void yyerror (const char *str) { /* Do nothing. We don't print error messages here. */ } sweep-0.9.3/intl/localcharset.h0000644000175000017500000000256310777660165015174 0ustar useruser/* Determine a canonical name for the current locale's character encoding. Copyright (C) 2000-2003 Free Software Foundation, Inc. This file is part of the GNU CHARSET Library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LOCALCHARSET_H #define _LOCALCHARSET_H #ifdef __cplusplus extern "C" { #endif /* Determine the current locale's character encoding, and canonicalize it into one of the canonical names listed in config.charset. The result must not be freed; it is statically allocated. If the canonical name cannot be determined, the result is a non-canonical name. */ extern const char * locale_charset (void); #ifdef __cplusplus } #endif #endif /* _LOCALCHARSET_H */ sweep-0.9.3/intl/dcgettext.c0000644000175000017500000000342110777660165014510 0ustar useruser/* Implementation of the dcgettext(3) function. Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCGETTEXT __dcgettext # define DCIGETTEXT __dcigettext #else # define DCGETTEXT libintl_dcgettext # define DCIGETTEXT libintl_dcigettext #endif /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ char * DCGETTEXT (const char *domainname, const char *msgid, int category) { return DCIGETTEXT (domainname, msgid, NULL, 0, 0, category); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ INTDEF(__dcgettext) weak_alias (__dcgettext, dcgettext); #endif sweep-0.9.3/intl/eval-plural.h0000644000175000017500000000532610777660165014754 0ustar useruser/* Plural expression evaluation. Copyright (C) 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef STATIC #define STATIC static #endif /* Evaluate the plural expression and return an index value. */ STATIC unsigned long int internal_function plural_eval (struct expression *pexp, unsigned long int n) { switch (pexp->nargs) { case 0: switch (pexp->operation) { case var: return n; case num: return pexp->val.num; default: break; } /* NOTREACHED */ break; case 1: { /* pexp->operation must be lnot. */ unsigned long int arg = plural_eval (pexp->val.args[0], n); return ! arg; } case 2: { unsigned long int leftarg = plural_eval (pexp->val.args[0], n); if (pexp->operation == lor) return leftarg || plural_eval (pexp->val.args[1], n); else if (pexp->operation == land) return leftarg && plural_eval (pexp->val.args[1], n); else { unsigned long int rightarg = plural_eval (pexp->val.args[1], n); switch (pexp->operation) { case mult: return leftarg * rightarg; case divide: #if !INTDIV0_RAISES_SIGFPE if (rightarg == 0) raise (SIGFPE); #endif return leftarg / rightarg; case module: #if !INTDIV0_RAISES_SIGFPE if (rightarg == 0) raise (SIGFPE); #endif return leftarg % rightarg; case plus: return leftarg + rightarg; case minus: return leftarg - rightarg; case less_than: return leftarg < rightarg; case greater_than: return leftarg > rightarg; case less_or_equal: return leftarg <= rightarg; case greater_or_equal: return leftarg >= rightarg; case equal: return leftarg == rightarg; case not_equal: return leftarg != rightarg; default: break; } } /* NOTREACHED */ break; } case 3: { /* pexp->operation must be qmop. */ unsigned long int boolarg = plural_eval (pexp->val.args[0], n); return plural_eval (pexp->val.args[boolarg ? 1 : 2], n); } } /* NOTREACHED */ return 0; } sweep-0.9.3/intl/relocatable.c0000644000175000017500000003147110777660165015000 0ustar useruser/* Provide relocatable packages. Copyright (C) 2003-2004 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for getline(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include "config.h" #endif /* Specification. */ #include "relocatable.h" #if ENABLE_RELOCATABLE #include #include #include #include #ifdef NO_XMALLOC # define xmalloc malloc #else # include "xalloc.h" #endif #if defined _WIN32 || defined __WIN32__ # define WIN32_LEAN_AND_MEAN # include #endif #if DEPENDS_ON_LIBCHARSET # include #endif #if DEPENDS_ON_LIBICONV && HAVE_ICONV # include #endif #if DEPENDS_ON_LIBINTL && ENABLE_NLS # include #endif /* Faked cheap 'bool'. */ #undef bool #undef false #undef true #define bool int #define false 0 #define true 1 /* Pathname support. ISSLASH(C) tests whether C is a directory separator character. IS_PATH_WITH_DIR(P) tests whether P contains a directory specification. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') # define HAS_DEVICE(P) \ ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ && (P)[1] == ':') # define IS_PATH_WITH_DIR(P) \ (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P)) # define FILE_SYSTEM_PREFIX_LEN(P) (HAS_DEVICE (P) ? 2 : 0) #else /* Unix */ # define ISSLASH(C) ((C) == '/') # define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL) # define FILE_SYSTEM_PREFIX_LEN(P) 0 #endif /* Original installation prefix. */ static char *orig_prefix; static size_t orig_prefix_len; /* Current installation prefix. */ static char *curr_prefix; static size_t curr_prefix_len; /* These prefixes do not end in a slash. Anything that will be concatenated to them must start with a slash. */ /* Sets the original and the current installation prefix of this module. Relocation simply replaces a pathname starting with the original prefix by the corresponding pathname with the current prefix instead. Both prefixes should be directory names without trailing slash (i.e. use "" instead of "/"). */ static void set_this_relocation_prefix (const char *orig_prefix_arg, const char *curr_prefix_arg) { if (orig_prefix_arg != NULL && curr_prefix_arg != NULL /* Optimization: if orig_prefix and curr_prefix are equal, the relocation is a nop. */ && strcmp (orig_prefix_arg, curr_prefix_arg) != 0) { /* Duplicate the argument strings. */ char *memory; orig_prefix_len = strlen (orig_prefix_arg); curr_prefix_len = strlen (curr_prefix_arg); memory = (char *) xmalloc (orig_prefix_len + 1 + curr_prefix_len + 1); #ifdef NO_XMALLOC if (memory != NULL) #endif { memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); orig_prefix = memory; memory += orig_prefix_len + 1; memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); curr_prefix = memory; return; } } orig_prefix = NULL; curr_prefix = NULL; /* Don't worry about wasted memory here - this function is usually only called once. */ } /* Sets the original and the current installation prefix of the package. Relocation simply replaces a pathname starting with the original prefix by the corresponding pathname with the current prefix instead. Both prefixes should be directory names without trailing slash (i.e. use "" instead of "/"). */ void set_relocation_prefix (const char *orig_prefix_arg, const char *curr_prefix_arg) { set_this_relocation_prefix (orig_prefix_arg, curr_prefix_arg); /* Now notify all dependent libraries. */ #if DEPENDS_ON_LIBCHARSET libcharset_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg); #endif #if DEPENDS_ON_LIBICONV && HAVE_ICONV && _LIBICONV_VERSION >= 0x0109 libiconv_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg); #endif #if DEPENDS_ON_LIBINTL && ENABLE_NLS && defined libintl_set_relocation_prefix libintl_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg); #endif } #if !defined IN_LIBRARY || (defined PIC && defined INSTALLDIR) /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular file, and the current pathname of this file. Returns NULL upon failure. */ #ifdef IN_LIBRARY #define compute_curr_prefix local_compute_curr_prefix static #endif const char * compute_curr_prefix (const char *orig_installprefix, const char *orig_installdir, const char *curr_pathname) { const char *curr_installdir; const char *rel_installdir; if (curr_pathname == NULL) return NULL; /* Determine the relative installation directory, relative to the prefix. This is simply the difference between orig_installprefix and orig_installdir. */ if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix)) != 0) /* Shouldn't happen - nothing should be installed outside $(prefix). */ return NULL; rel_installdir = orig_installdir + strlen (orig_installprefix); /* Determine the current installation directory. */ { const char *p_base = curr_pathname + FILE_SYSTEM_PREFIX_LEN (curr_pathname); const char *p = curr_pathname + strlen (curr_pathname); char *q; while (p > p_base) { p--; if (ISSLASH (*p)) break; } q = (char *) xmalloc (p - curr_pathname + 1); #ifdef NO_XMALLOC if (q == NULL) return NULL; #endif memcpy (q, curr_pathname, p - curr_pathname); q[p - curr_pathname] = '\0'; curr_installdir = q; } /* Compute the current installation prefix by removing the trailing rel_installdir from it. */ { const char *rp = rel_installdir + strlen (rel_installdir); const char *cp = curr_installdir + strlen (curr_installdir); const char *cp_base = curr_installdir + FILE_SYSTEM_PREFIX_LEN (curr_installdir); while (rp > rel_installdir && cp > cp_base) { bool same = false; const char *rpi = rp; const char *cpi = cp; while (rpi > rel_installdir && cpi > cp_base) { rpi--; cpi--; if (ISSLASH (*rpi) || ISSLASH (*cpi)) { if (ISSLASH (*rpi) && ISSLASH (*cpi)) same = true; break; } #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS - case insignificant filesystem */ if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi) != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi)) break; #else if (*rpi != *cpi) break; #endif } if (!same) break; /* The last pathname component was the same. opi and cpi now point to the slash before it. */ rp = rpi; cp = cpi; } if (rp > rel_installdir) /* Unexpected: The curr_installdir does not end with rel_installdir. */ return NULL; { size_t curr_prefix_len = cp - curr_installdir; char *curr_prefix; curr_prefix = (char *) xmalloc (curr_prefix_len + 1); #ifdef NO_XMALLOC if (curr_prefix == NULL) return NULL; #endif memcpy (curr_prefix, curr_installdir, curr_prefix_len); curr_prefix[curr_prefix_len] = '\0'; return curr_prefix; } } } #endif /* !IN_LIBRARY || PIC */ #if defined PIC && defined INSTALLDIR /* Full pathname of shared library, or NULL. */ static char *shared_library_fullname; #if defined _WIN32 || defined __WIN32__ /* Determine the full pathname of the shared library when it is loaded. */ BOOL WINAPI DllMain (HINSTANCE module_handle, DWORD event, LPVOID reserved) { (void) reserved; if (event == DLL_PROCESS_ATTACH) { /* The DLL is being loaded into an application's address range. */ static char location[MAX_PATH]; if (!GetModuleFileName (module_handle, location, sizeof (location))) /* Shouldn't happen. */ return FALSE; if (!IS_PATH_WITH_DIR (location)) /* Shouldn't happen. */ return FALSE; shared_library_fullname = strdup (location); } return TRUE; } #else /* Unix */ static void find_shared_library_fullname () { #if defined __linux__ && __GLIBC__ >= 2 /* Linux has /proc/self/maps. glibc 2 has the getline() function. */ FILE *fp; /* Open the current process' maps file. It describes one VMA per line. */ fp = fopen ("/proc/self/maps", "r"); if (fp) { unsigned long address = (unsigned long) &find_shared_library_fullname; for (;;) { unsigned long start, end; int c; if (fscanf (fp, "%lx-%lx", &start, &end) != 2) break; if (address >= start && address <= end - 1) { /* Found it. Now see if this line contains a filename. */ while (c = getc (fp), c != EOF && c != '\n' && c != '/') continue; if (c == '/') { size_t size; int len; ungetc (c, fp); shared_library_fullname = NULL; size = 0; len = getline (&shared_library_fullname, &size, fp); if (len >= 0) { /* Success: filled shared_library_fullname. */ if (len > 0 && shared_library_fullname[len - 1] == '\n') shared_library_fullname[len - 1] = '\0'; } } break; } while (c = getc (fp), c != EOF && c != '\n') continue; } fclose (fp); } #endif } #endif /* WIN32 / Unix */ /* Return the full pathname of the current shared library. Return NULL if unknown. Guaranteed to work only on Linux and Woe32. */ static char * get_shared_library_fullname () { #if !(defined _WIN32 || defined __WIN32__) static bool tried_find_shared_library_fullname; if (!tried_find_shared_library_fullname) { find_shared_library_fullname (); tried_find_shared_library_fullname = true; } #endif return shared_library_fullname; } #endif /* PIC */ /* Returns the pathname, relocated according to the current installation directory. */ const char * relocate (const char *pathname) { #if defined PIC && defined INSTALLDIR static int initialized; /* Initialization code for a shared library. */ if (!initialized) { /* At this point, orig_prefix and curr_prefix likely have already been set through the main program's set_program_name_and_installdir function. This is sufficient in the case that the library has initially been installed in the same orig_prefix. But we can do better, to also cover the cases that 1. it has been installed in a different prefix before being moved to orig_prefix and (later) to curr_prefix, 2. unlike the program, it has not moved away from orig_prefix. */ const char *orig_installprefix = INSTALLPREFIX; const char *orig_installdir = INSTALLDIR; const char *curr_prefix_better; curr_prefix_better = compute_curr_prefix (orig_installprefix, orig_installdir, get_shared_library_fullname ()); if (curr_prefix_better == NULL) curr_prefix_better = curr_prefix; set_relocation_prefix (orig_installprefix, curr_prefix_better); initialized = 1; } #endif /* Note: It is not necessary to perform case insensitive comparison here, even for DOS-like filesystems, because the pathname argument was typically created from the same Makefile variable as orig_prefix came from. */ if (orig_prefix != NULL && curr_prefix != NULL && strncmp (pathname, orig_prefix, orig_prefix_len) == 0) { if (pathname[orig_prefix_len] == '\0') /* pathname equals orig_prefix. */ return curr_prefix; if (ISSLASH (pathname[orig_prefix_len])) { /* pathname starts with orig_prefix. */ const char *pathname_tail = &pathname[orig_prefix_len]; char *result = (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); #ifdef NO_XMALLOC if (result != NULL) #endif { memcpy (result, curr_prefix, curr_prefix_len); strcpy (result + curr_prefix_len, pathname_tail); return result; } } } /* Nothing to relocate. */ return pathname; } #endif sweep-0.9.3/intl/l10nflist.c0000644000175000017500000002737210777660165014344 0ustar useruser/* Copyright (C) 1995-1999, 2000-2004 Free Software Foundation, Inc. Contributed by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for stpcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #if defined _LIBC || defined HAVE_ARGZ_H # include #endif #include #include #include #include "loadinfo.h" /* On some strange systems still no definition of NULL is found. Sigh! */ #ifndef NULL # if defined __STDC__ && __STDC__ # define NULL ((void *) 0) # else # define NULL 0 # endif #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object file and the name space must not be polluted. */ # ifndef stpcpy # define stpcpy(dest, src) __stpcpy(dest, src) # endif #else # ifndef HAVE_STPCPY static char *stpcpy (char *dest, const char *src); # endif #endif /* Pathname support. ISSLASH(C) tests whether C is a directory separator character. IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not, it may be concatenated to a directory pathname. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') # define HAS_DEVICE(P) \ ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ && (P)[1] == ':') # define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P)) #else /* Unix */ # define ISSLASH(C) ((C) == '/') # define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0]) #endif /* Define function which are usually not available. */ #if !defined _LIBC && !defined HAVE___ARGZ_COUNT /* Returns the number of strings in ARGZ. */ static size_t argz_count__ (const char *argz, size_t len) { size_t count = 0; while (len > 0) { size_t part_len = strlen (argz); argz += part_len + 1; len -= part_len + 1; count++; } return count; } # undef __argz_count # define __argz_count(argz, len) argz_count__ (argz, len) #else # ifdef _LIBC # define __argz_count(argz, len) INTUSE(__argz_count) (argz, len) # endif #endif /* !_LIBC && !HAVE___ARGZ_COUNT */ #if !defined _LIBC && !defined HAVE___ARGZ_STRINGIFY /* Make '\0' separated arg vector ARGZ printable by converting all the '\0's except the last into the character SEP. */ static void argz_stringify__ (char *argz, size_t len, int sep) { while (len > 0) { size_t part_len = strlen (argz); argz += part_len; len -= part_len + 1; if (len > 0) *argz++ = sep; } } # undef __argz_stringify # define __argz_stringify(argz, len, sep) argz_stringify__ (argz, len, sep) #else # ifdef _LIBC # define __argz_stringify(argz, len, sep) \ INTUSE(__argz_stringify) (argz, len, sep) # endif #endif /* !_LIBC && !HAVE___ARGZ_STRINGIFY */ #if !defined _LIBC && !defined HAVE___ARGZ_NEXT static char * argz_next__ (char *argz, size_t argz_len, const char *entry) { if (entry) { if (entry < argz + argz_len) entry = strchr (entry, '\0') + 1; return entry >= argz + argz_len ? NULL : (char *) entry; } else if (argz_len > 0) return argz; else return 0; } # undef __argz_next # define __argz_next(argz, len, entry) argz_next__ (argz, len, entry) #endif /* !_LIBC && !HAVE___ARGZ_NEXT */ /* Return number of bits set in X. */ static inline int pop (int x) { /* We assume that no more than 16 bits are used. */ x = ((x & ~0x5555) >> 1) + (x & 0x5555); x = ((x & ~0x3333) >> 2) + (x & 0x3333); x = ((x >> 4) + x) & 0x0f0f; x = ((x >> 8) + x) & 0xff; return x; } struct loaded_l10nfile * _nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list, const char *dirlist, size_t dirlist_len, int mask, const char *language, const char *territory, const char *codeset, const char *normalized_codeset, const char *modifier, const char *special, const char *sponsor, const char *revision, const char *filename, int do_allocate) { char *abs_filename; struct loaded_l10nfile **lastp; struct loaded_l10nfile *retval; char *cp; size_t dirlist_count; size_t entries; int cnt; /* If LANGUAGE contains an absolute directory specification, we ignore DIRLIST. */ if (IS_ABSOLUTE_PATH (language)) dirlist_len = 0; /* Allocate room for the full file name. */ abs_filename = (char *) malloc (dirlist_len + strlen (language) + ((mask & TERRITORY) != 0 ? strlen (territory) + 1 : 0) + ((mask & XPG_CODESET) != 0 ? strlen (codeset) + 1 : 0) + ((mask & XPG_NORM_CODESET) != 0 ? strlen (normalized_codeset) + 1 : 0) + (((mask & XPG_MODIFIER) != 0 || (mask & CEN_AUDIENCE) != 0) ? strlen (modifier) + 1 : 0) + ((mask & CEN_SPECIAL) != 0 ? strlen (special) + 1 : 0) + (((mask & CEN_SPONSOR) != 0 || (mask & CEN_REVISION) != 0) ? (1 + ((mask & CEN_SPONSOR) != 0 ? strlen (sponsor) : 0) + ((mask & CEN_REVISION) != 0 ? strlen (revision) + 1 : 0)) : 0) + 1 + strlen (filename) + 1); if (abs_filename == NULL) return NULL; /* Construct file name. */ cp = abs_filename; if (dirlist_len > 0) { memcpy (cp, dirlist, dirlist_len); __argz_stringify (cp, dirlist_len, PATH_SEPARATOR); cp += dirlist_len; cp[-1] = '/'; } cp = stpcpy (cp, language); if ((mask & TERRITORY) != 0) { *cp++ = '_'; cp = stpcpy (cp, territory); } if ((mask & XPG_CODESET) != 0) { *cp++ = '.'; cp = stpcpy (cp, codeset); } if ((mask & XPG_NORM_CODESET) != 0) { *cp++ = '.'; cp = stpcpy (cp, normalized_codeset); } if ((mask & (XPG_MODIFIER | CEN_AUDIENCE)) != 0) { /* This component can be part of both syntaces but has different leading characters. For CEN we use `+', else `@'. */ *cp++ = (mask & CEN_AUDIENCE) != 0 ? '+' : '@'; cp = stpcpy (cp, modifier); } if ((mask & CEN_SPECIAL) != 0) { *cp++ = '+'; cp = stpcpy (cp, special); } if ((mask & (CEN_SPONSOR | CEN_REVISION)) != 0) { *cp++ = ','; if ((mask & CEN_SPONSOR) != 0) cp = stpcpy (cp, sponsor); if ((mask & CEN_REVISION) != 0) { *cp++ = '_'; cp = stpcpy (cp, revision); } } *cp++ = '/'; stpcpy (cp, filename); /* Look in list of already loaded domains whether it is already available. */ lastp = l10nfile_list; for (retval = *l10nfile_list; retval != NULL; retval = retval->next) if (retval->filename != NULL) { int compare = strcmp (retval->filename, abs_filename); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It's not in the list. */ retval = NULL; break; } lastp = &retval->next; } if (retval != NULL || do_allocate == 0) { free (abs_filename); return retval; } dirlist_count = (dirlist_len > 0 ? __argz_count (dirlist, dirlist_len) : 1); /* Allocate a new loaded_l10nfile. */ retval = (struct loaded_l10nfile *) malloc (sizeof (*retval) + (((dirlist_count << pop (mask)) + (dirlist_count > 1 ? 1 : 0)) * sizeof (struct loaded_l10nfile *))); if (retval == NULL) return NULL; retval->filename = abs_filename; /* We set retval->data to NULL here; it is filled in later. Setting retval->decided to 1 here means that retval does not correspond to a real file (dirlist_count > 1) or is not worth looking up (if an unnormalized codeset was specified). */ retval->decided = (dirlist_count > 1 || ((mask & XPG_CODESET) != 0 && (mask & XPG_NORM_CODESET) != 0)); retval->data = NULL; retval->next = *lastp; *lastp = retval; entries = 0; /* Recurse to fill the inheritance list of RETVAL. If the DIRLIST is a real list (i.e. DIRLIST_COUNT > 1), the RETVAL entry does not correspond to a real file; retval->filename contains colons. In this case we loop across all elements of DIRLIST and across all bit patterns dominated by MASK. If the DIRLIST is a single directory or entirely redundant (i.e. DIRLIST_COUNT == 1), we loop across all bit patterns dominated by MASK, excluding MASK itself. In either case, we loop down from MASK to 0. This has the effect that the extra bits in the locale name are dropped in this order: first the modifier, then the territory, then the codeset, then the normalized_codeset. */ for (cnt = dirlist_count > 1 ? mask : mask - 1; cnt >= 0; --cnt) if ((cnt & ~mask) == 0 && ((cnt & CEN_SPECIFIC) == 0 || (cnt & XPG_SPECIFIC) == 0) && ((cnt & XPG_CODESET) == 0 || (cnt & XPG_NORM_CODESET) == 0)) { if (dirlist_count > 1) { /* Iterate over all elements of the DIRLIST. */ char *dir = NULL; while ((dir = __argz_next ((char *) dirlist, dirlist_len, dir)) != NULL) retval->successor[entries++] = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, cnt, language, territory, codeset, normalized_codeset, modifier, special, sponsor, revision, filename, 1); } else retval->successor[entries++] = _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, cnt, language, territory, codeset, normalized_codeset, modifier, special, sponsor, revision, filename, 1); } retval->successor[entries] = NULL; return retval; } /* Normalize codeset name. There is no standard for the codeset names. Normalization allows the user to use any of the common names. The return value is dynamically allocated and has to be freed by the caller. */ const char * _nl_normalize_codeset (const char *codeset, size_t name_len) { int len = 0; int only_digit = 1; char *retval; char *wp; size_t cnt; for (cnt = 0; cnt < name_len; ++cnt) if (isalnum ((unsigned char) codeset[cnt])) { ++len; if (isalpha ((unsigned char) codeset[cnt])) only_digit = 0; } retval = (char *) malloc ((only_digit ? 3 : 0) + len + 1); if (retval != NULL) { if (only_digit) wp = stpcpy (retval, "iso"); else wp = retval; for (cnt = 0; cnt < name_len; ++cnt) if (isalpha ((unsigned char) codeset[cnt])) *wp++ = tolower ((unsigned char) codeset[cnt]); else if (isdigit ((unsigned char) codeset[cnt])) *wp++ = codeset[cnt]; *wp = '\0'; } return (const char *) retval; } /* @@ begin of epilog @@ */ /* We don't want libintl.a to depend on any other library. So we avoid the non-standard function stpcpy. In GNU C Library this function is available, though. Also allow the symbol HAVE_STPCPY to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (char *dest, const char *src) { while ((*dest++ = *src++) != '\0') /* Do nothing. */ ; return dest - 1; } #endif sweep-0.9.3/intl/dngettext.c0000644000175000017500000000354610777660165014533 0ustar useruser/* Implementation of the dngettext(3) function. Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #include #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DNGETTEXT __dngettext # define DCNGETTEXT __dcngettext #else # define DNGETTEXT libintl_dngettext # define DCNGETTEXT libintl_dcngettext #endif /* Look up MSGID in the DOMAINNAME message catalog of the current LC_MESSAGES locale and skip message according to the plural form. */ char * DNGETTEXT (const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n) { return DCNGETTEXT (domainname, msgid1, msgid2, n, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dngettext, dngettext); #endif sweep-0.9.3/intl/log.c0000644000175000017500000000530710777660165013303 0ustar useruser/* Log file output. Copyright (C) 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible . */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include /* Print an ASCII string with quotes and escape sequences where needed. */ static void print_escaped (FILE *stream, const char *str) { putc ('"', stream); for (; *str != '\0'; str++) if (*str == '\n') { fputs ("\\n\"", stream); if (str[1] == '\0') return; fputs ("\n\"", stream); } else { if (*str == '"' || *str == '\\') putc ('\\', stream); putc (*str, stream); } putc ('"', stream); } /* Add to the log file an entry denoting a failed translation. */ void _nl_log_untranslated (const char *logfilename, const char *domainname, const char *msgid1, const char *msgid2, int plural) { static char *last_logfilename = NULL; static FILE *last_logfile = NULL; FILE *logfile; /* Can we reuse the last opened logfile? */ if (last_logfilename == NULL || strcmp (logfilename, last_logfilename) != 0) { /* Close the last used logfile. */ if (last_logfilename != NULL) { if (last_logfile != NULL) { fclose (last_logfile); last_logfile = NULL; } free (last_logfilename); last_logfilename = NULL; } /* Open the logfile. */ last_logfilename = (char *) malloc (strlen (logfilename) + 1); if (last_logfilename == NULL) return; strcpy (last_logfilename, logfilename); last_logfile = fopen (logfilename, "a"); if (last_logfile == NULL) return; } logfile = last_logfile; fprintf (logfile, "domain "); print_escaped (logfile, domainname); fprintf (logfile, "\nmsgid "); print_escaped (logfile, msgid1); if (plural) { fprintf (logfile, "\nmsgid_plural "); print_escaped (logfile, msgid2); fprintf (logfile, "\nmsgstr[0] \"\"\n"); } else fprintf (logfile, "\nmsgstr \"\"\n"); putc ('\n', logfile); } sweep-0.9.3/intl/finddomain.c0000644000175000017500000001274710777660165014640 0ustar useruser/* Handle list of needed message catalogs Copyright (C) 1995-1999, 2000-2001, 2003 Free Software Foundation, Inc. Written by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* List of already loaded domains. */ static struct loaded_l10nfile *_nl_loaded_domains; /* Return a data structure describing the message catalog described by the DOMAINNAME and CATEGORY parameters with respect to the currently established bindings. */ struct loaded_l10nfile * internal_function _nl_find_domain (const char *dirname, char *locale, const char *domainname, struct binding *domainbinding) { struct loaded_l10nfile *retval; const char *language; const char *modifier; const char *territory; const char *codeset; const char *normalized_codeset; const char *special; const char *sponsor; const char *revision; const char *alias_value; int mask; /* LOCALE can consist of up to four recognized parts for the XPG syntax: language[_territory[.codeset]][@modifier] and six parts for the CEN syntax: language[_territory][+audience][+special][,[sponsor][_revision]] Beside the first part all of them are allowed to be missing. If the full specified locale is not found, the less specific one are looked for. The various parts will be stripped off according to the following order: (1) revision (2) sponsor (3) special (4) codeset (5) normalized codeset (6) territory (7) audience/modifier */ /* If we have already tested for this locale entry there has to be one data set in the list of loaded domains. */ retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, strlen (dirname) + 1, 0, locale, NULL, NULL, NULL, NULL, NULL, NULL, NULL, domainname, 0); if (retval != NULL) { /* We know something about this locale. */ int cnt; if (retval->decided == 0) _nl_load_domain (retval, domainbinding); if (retval->data != NULL) return retval; for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) { if (retval->successor[cnt]->decided == 0) _nl_load_domain (retval->successor[cnt], domainbinding); if (retval->successor[cnt]->data != NULL) break; } return cnt >= 0 ? retval : NULL; /* NOTREACHED */ } /* See whether the locale value is an alias. If yes its value *overwrites* the alias name. No test for the original value is done. */ alias_value = _nl_expand_alias (locale); if (alias_value != NULL) { #if defined _LIBC || defined HAVE_STRDUP locale = strdup (alias_value); if (locale == NULL) return NULL; #else size_t len = strlen (alias_value) + 1; locale = (char *) malloc (len); if (locale == NULL) return NULL; memcpy (locale, alias_value, len); #endif } /* Now we determine the single parts of the locale name. First look for the language. Termination symbols are `_' and `@' if we use XPG4 style, and `_', `+', and `,' if we use CEN syntax. */ mask = _nl_explode_name (locale, &language, &modifier, &territory, &codeset, &normalized_codeset, &special, &sponsor, &revision); /* Create all possible locale entries which might be interested in generalization. */ retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, strlen (dirname) + 1, mask, language, territory, codeset, normalized_codeset, modifier, special, sponsor, revision, domainname, 1); if (retval == NULL) /* This means we are out of core. */ return NULL; if (retval->decided == 0) _nl_load_domain (retval, domainbinding); if (retval->data == NULL) { int cnt; for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) { if (retval->successor[cnt]->decided == 0) _nl_load_domain (retval->successor[cnt], domainbinding); if (retval->successor[cnt]->data != NULL) break; } } /* The room for an alias was dynamically allocated. Free it now. */ if (alias_value != NULL) free (locale); /* The space for normalized_codeset is dynamically allocated. Free it. */ if (mask & XPG_NORM_CODESET) free ((void *) normalized_codeset); return retval; } #ifdef _LIBC libc_freeres_fn (free_mem) { struct loaded_l10nfile *runp = _nl_loaded_domains; while (runp != NULL) { struct loaded_l10nfile *here = runp; if (runp->data != NULL) _nl_unload_domain ((struct loaded_domain *) runp->data); runp = runp->next; free ((char *) here->filename); free (here); } } #endif sweep-0.9.3/intl/xsize.h0000644000175000017500000000672610777660165013677 0ustar useruser/* xsize.h -- Checked size_t computations. Copyright (C) 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _XSIZE_H #define _XSIZE_H /* Get size_t. */ #include /* Get SIZE_MAX. */ #include #if HAVE_STDINT_H # include #endif /* The size of memory objects is often computed through expressions of type size_t. Example: void* p = malloc (header_size + n * element_size). These computations can lead to overflow. When this happens, malloc() returns a piece of memory that is way too small, and the program then crashes while attempting to fill the memory. To avoid this, the functions and macros in this file check for overflow. The convention is that SIZE_MAX represents overflow. malloc (SIZE_MAX) is not guaranteed to fail -- think of a malloc implementation that uses mmap --, it's recommended to use size_overflow_p() or size_in_bounds_p() before invoking malloc(). The example thus becomes: size_t size = xsum (header_size, xtimes (n, element_size)); void *p = (size_in_bounds_p (size) ? malloc (size) : NULL); */ /* Convert an arbitrary value >= 0 to type size_t. */ #define xcast_size_t(N) \ ((N) <= SIZE_MAX ? (size_t) (N) : SIZE_MAX) /* Sum of two sizes, with overflow check. */ static inline size_t #if __GNUC__ >= 3 __attribute__ ((__pure__)) #endif xsum (size_t size1, size_t size2) { size_t sum = size1 + size2; return (sum >= size1 ? sum : SIZE_MAX); } /* Sum of three sizes, with overflow check. */ static inline size_t #if __GNUC__ >= 3 __attribute__ ((__pure__)) #endif xsum3 (size_t size1, size_t size2, size_t size3) { return xsum (xsum (size1, size2), size3); } /* Sum of four sizes, with overflow check. */ static inline size_t #if __GNUC__ >= 3 __attribute__ ((__pure__)) #endif xsum4 (size_t size1, size_t size2, size_t size3, size_t size4) { return xsum (xsum (xsum (size1, size2), size3), size4); } /* Maximum of two sizes, with overflow check. */ static inline size_t #if __GNUC__ >= 3 __attribute__ ((__pure__)) #endif xmax (size_t size1, size_t size2) { /* No explicit check is needed here, because for any n: max (SIZE_MAX, n) == SIZE_MAX and max (n, SIZE_MAX) == SIZE_MAX. */ return (size1 >= size2 ? size1 : size2); } /* Multiplication of a count with an element size, with overflow check. The count must be >= 0 and the element size must be > 0. This is a macro, not an inline function, so that it works correctly even when N is of a wider tupe and N > SIZE_MAX. */ #define xtimes(N, ELSIZE) \ ((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX) /* Check for overflow. */ #define size_overflow_p(SIZE) \ ((SIZE) == SIZE_MAX) /* Check against overflow. */ #define size_in_bounds_p(SIZE) \ ((SIZE) != SIZE_MAX) #endif /* _XSIZE_H */ sweep-0.9.3/intl/vasnprintf.h0000644000175000017500000000544310777660165014722 0ustar useruser/* vsprintf with automatic memory allocation. Copyright (C) 2002-2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _VASNPRINTF_H #define _VASNPRINTF_H /* Get va_list. */ #include /* Get size_t. */ #include #ifndef __attribute__ /* This feature is available in gcc versions 2.5 and later. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ # define __attribute__(Spec) /* empty */ # endif /* The __-protected variants of `format' and `printf' attributes are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __format__ format # define __printf__ printf # endif #endif #ifdef __cplusplus extern "C" { #endif /* Write formatted output to a string dynamically allocated with malloc(). You can pass a preallocated buffer for the result in RESULTBUF and its size in *LENGTHP; otherwise you pass RESULTBUF = NULL. If successful, return the address of the string (this may be = RESULTBUF if no dynamic memory allocation was necessary) and set *LENGTHP to the number of resulting bytes, excluding the trailing NUL. Upon error, set errno and return NULL. When dynamic memory allocation occurs, the preallocated buffer is left alone (with possibly modified contents). This makes it possible to use a statically allocated or stack-allocated buffer, like this: char buf[100]; size_t len = sizeof (buf); char *output = vasnprintf (buf, &len, format, args); if (output == NULL) ... error handling ...; else { ... use the output string ...; if (output != buf) free (output); } */ extern char * asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) __attribute__ ((__format__ (__printf__, 3, 4))); extern char * vasnprintf (char *resultbuf, size_t *lengthp, const char *format, va_list args) __attribute__ ((__format__ (__printf__, 3, 0))); #ifdef __cplusplus } #endif #endif /* _VASNPRINTF_H */ sweep-0.9.3/intl/bindtextdom.c0000644000175000017500000002312410777660165015040 0ustar useruser/* Implementation of the bindtextdomain(3) function Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #ifdef _LIBC # include #else # include "libgnuintl.h" #endif #include "gettextP.h" #ifdef _LIBC /* We have to handle multi-threaded applications. */ # include #else /* Provide dummy implementation if this is outside glibc. */ # define __libc_rwlock_define(CLASS, NAME) # define __libc_rwlock_wrlock(NAME) # define __libc_rwlock_unlock(NAME) #endif /* The internal variables in the standalone libintl.a must have different names than the internal variables in GNU libc, otherwise programs using libintl.a cannot be linked statically. */ #if !defined _LIBC # define _nl_default_dirname libintl_nl_default_dirname # define _nl_domain_bindings libintl_nl_domain_bindings #endif /* Some compilers, like SunOS4 cc, don't have offsetof in . */ #ifndef offsetof # define offsetof(type,ident) ((size_t)&(((type*)0)->ident)) #endif /* @@ end of prolog @@ */ /* Contains the default location of the message catalogs. */ extern const char _nl_default_dirname[]; #ifdef _LIBC extern const char _nl_default_dirname_internal[] attribute_hidden; #else # define INTUSE(name) name #endif /* List with bindings of specific domains. */ extern struct binding *_nl_domain_bindings; /* Lock variable to protect the global data in the gettext implementation. */ __libc_rwlock_define (extern, _nl_state_lock attribute_hidden) /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define BINDTEXTDOMAIN __bindtextdomain # define BIND_TEXTDOMAIN_CODESET __bind_textdomain_codeset # ifndef strdup # define strdup(str) __strdup (str) # endif #else # define BINDTEXTDOMAIN libintl_bindtextdomain # define BIND_TEXTDOMAIN_CODESET libintl_bind_textdomain_codeset #endif /* Specifies the directory name *DIRNAMEP and the output codeset *CODESETP to be used for the DOMAINNAME message catalog. If *DIRNAMEP or *CODESETP is NULL, the corresponding attribute is not modified, only the current value is returned. If DIRNAMEP or CODESETP is NULL, the corresponding attribute is neither modified nor returned. */ static void set_binding_values (const char *domainname, const char **dirnamep, const char **codesetp) { struct binding *binding; int modified; /* Some sanity checks. */ if (domainname == NULL || domainname[0] == '\0') { if (dirnamep) *dirnamep = NULL; if (codesetp) *codesetp = NULL; return; } __libc_rwlock_wrlock (_nl_state_lock); modified = 0; for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) { int compare = strcmp (domainname, binding->domainname); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It is not in the list. */ binding = NULL; break; } } if (binding != NULL) { if (dirnamep) { const char *dirname = *dirnamep; if (dirname == NULL) /* The current binding has be to returned. */ *dirnamep = binding->dirname; else { /* The domain is already bound. If the new value and the old one are equal we simply do nothing. Otherwise replace the old binding. */ char *result = binding->dirname; if (strcmp (dirname, result) != 0) { if (strcmp (dirname, INTUSE(_nl_default_dirname)) == 0) result = (char *) INTUSE(_nl_default_dirname); else { #if defined _LIBC || defined HAVE_STRDUP result = strdup (dirname); #else size_t len = strlen (dirname) + 1; result = (char *) malloc (len); if (__builtin_expect (result != NULL, 1)) memcpy (result, dirname, len); #endif } if (__builtin_expect (result != NULL, 1)) { if (binding->dirname != INTUSE(_nl_default_dirname)) free (binding->dirname); binding->dirname = result; modified = 1; } } *dirnamep = result; } } if (codesetp) { const char *codeset = *codesetp; if (codeset == NULL) /* The current binding has be to returned. */ *codesetp = binding->codeset; else { /* The domain is already bound. If the new value and the old one are equal we simply do nothing. Otherwise replace the old binding. */ char *result = binding->codeset; if (result == NULL || strcmp (codeset, result) != 0) { #if defined _LIBC || defined HAVE_STRDUP result = strdup (codeset); #else size_t len = strlen (codeset) + 1; result = (char *) malloc (len); if (__builtin_expect (result != NULL, 1)) memcpy (result, codeset, len); #endif if (__builtin_expect (result != NULL, 1)) { if (binding->codeset != NULL) free (binding->codeset); binding->codeset = result; binding->codeset_cntr++; modified = 1; } } *codesetp = result; } } } else if ((dirnamep == NULL || *dirnamep == NULL) && (codesetp == NULL || *codesetp == NULL)) { /* Simply return the default values. */ if (dirnamep) *dirnamep = INTUSE(_nl_default_dirname); if (codesetp) *codesetp = NULL; } else { /* We have to create a new binding. */ size_t len = strlen (domainname) + 1; struct binding *new_binding = (struct binding *) malloc (offsetof (struct binding, domainname) + len); if (__builtin_expect (new_binding == NULL, 0)) goto failed; memcpy (new_binding->domainname, domainname, len); if (dirnamep) { const char *dirname = *dirnamep; if (dirname == NULL) /* The default value. */ dirname = INTUSE(_nl_default_dirname); else { if (strcmp (dirname, INTUSE(_nl_default_dirname)) == 0) dirname = INTUSE(_nl_default_dirname); else { char *result; #if defined _LIBC || defined HAVE_STRDUP result = strdup (dirname); if (__builtin_expect (result == NULL, 0)) goto failed_dirname; #else size_t len = strlen (dirname) + 1; result = (char *) malloc (len); if (__builtin_expect (result == NULL, 0)) goto failed_dirname; memcpy (result, dirname, len); #endif dirname = result; } } *dirnamep = dirname; new_binding->dirname = (char *) dirname; } else /* The default value. */ new_binding->dirname = (char *) INTUSE(_nl_default_dirname); new_binding->codeset_cntr = 0; if (codesetp) { const char *codeset = *codesetp; if (codeset != NULL) { char *result; #if defined _LIBC || defined HAVE_STRDUP result = strdup (codeset); if (__builtin_expect (result == NULL, 0)) goto failed_codeset; #else size_t len = strlen (codeset) + 1; result = (char *) malloc (len); if (__builtin_expect (result == NULL, 0)) goto failed_codeset; memcpy (result, codeset, len); #endif codeset = result; new_binding->codeset_cntr++; } *codesetp = codeset; new_binding->codeset = (char *) codeset; } else new_binding->codeset = NULL; /* Now enqueue it. */ if (_nl_domain_bindings == NULL || strcmp (domainname, _nl_domain_bindings->domainname) < 0) { new_binding->next = _nl_domain_bindings; _nl_domain_bindings = new_binding; } else { binding = _nl_domain_bindings; while (binding->next != NULL && strcmp (domainname, binding->next->domainname) > 0) binding = binding->next; new_binding->next = binding->next; binding->next = new_binding; } modified = 1; /* Here we deal with memory allocation failures. */ if (0) { failed_codeset: if (new_binding->dirname != INTUSE(_nl_default_dirname)) free (new_binding->dirname); failed_dirname: free (new_binding); failed: if (dirnamep) *dirnamep = NULL; if (codesetp) *codesetp = NULL; } } /* If we modified any binding, we flush the caches. */ if (modified) ++_nl_msg_cat_cntr; __libc_rwlock_unlock (_nl_state_lock); } /* Specify that the DOMAINNAME message catalog will be found in DIRNAME rather than in the system locale data base. */ char * BINDTEXTDOMAIN (const char *domainname, const char *dirname) { set_binding_values (domainname, &dirname, NULL); return (char *) dirname; } /* Specify the character encoding in which the messages from the DOMAINNAME message catalog will be returned. */ char * BIND_TEXTDOMAIN_CODESET (const char *domainname, const char *codeset) { set_binding_values (domainname, NULL, &codeset); return (char *) codeset; } #ifdef _LIBC /* Aliases for function names in GNU C Library. */ weak_alias (__bindtextdomain, bindtextdomain); weak_alias (__bind_textdomain_codeset, bind_textdomain_codeset); #endif sweep-0.9.3/intl/textdomain.c0000644000175000017500000001066410777660165014700 0ustar useruser/* Implementation of the textdomain(3) function. Copyright (C) 1995-1998, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #ifdef _LIBC # include #else # include "libgnuintl.h" #endif #include "gettextP.h" #ifdef _LIBC /* We have to handle multi-threaded applications. */ # include #else /* Provide dummy implementation if this is outside glibc. */ # define __libc_rwlock_define(CLASS, NAME) # define __libc_rwlock_wrlock(NAME) # define __libc_rwlock_unlock(NAME) #endif /* The internal variables in the standalone libintl.a must have different names than the internal variables in GNU libc, otherwise programs using libintl.a cannot be linked statically. */ #if !defined _LIBC # define _nl_default_default_domain libintl_nl_default_default_domain # define _nl_current_default_domain libintl_nl_current_default_domain #endif /* @@ end of prolog @@ */ /* Name of the default text domain. */ extern const char _nl_default_default_domain[] attribute_hidden; /* Default text domain in which entries for gettext(3) are to be found. */ extern const char *_nl_current_default_domain attribute_hidden; /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define TEXTDOMAIN __textdomain # ifndef strdup # define strdup(str) __strdup (str) # endif #else # define TEXTDOMAIN libintl_textdomain #endif /* Lock variable to protect the global data in the gettext implementation. */ __libc_rwlock_define (extern, _nl_state_lock attribute_hidden) /* Set the current default message catalog to DOMAINNAME. If DOMAINNAME is null, return the current default. If DOMAINNAME is "", reset to the default of "messages". */ char * TEXTDOMAIN (const char *domainname) { char *new_domain; char *old_domain; /* A NULL pointer requests the current setting. */ if (domainname == NULL) return (char *) _nl_current_default_domain; __libc_rwlock_wrlock (_nl_state_lock); old_domain = (char *) _nl_current_default_domain; /* If domain name is the null string set to default domain "messages". */ if (domainname[0] == '\0' || strcmp (domainname, _nl_default_default_domain) == 0) { _nl_current_default_domain = _nl_default_default_domain; new_domain = (char *) _nl_current_default_domain; } else if (strcmp (domainname, old_domain) == 0) /* This can happen and people will use it to signal that some environment variable changed. */ new_domain = old_domain; else { /* If the following malloc fails `_nl_current_default_domain' will be NULL. This value will be returned and so signals we are out of core. */ #if defined _LIBC || defined HAVE_STRDUP new_domain = strdup (domainname); #else size_t len = strlen (domainname) + 1; new_domain = (char *) malloc (len); if (new_domain != NULL) memcpy (new_domain, domainname, len); #endif if (new_domain != NULL) _nl_current_default_domain = new_domain; } /* We use this possibility to signal a change of the loaded catalogs since this is most likely the case and there is no other easy we to do it. Do it only when the call was successful. */ if (new_domain != NULL) { ++_nl_msg_cat_cntr; if (old_domain != new_domain && old_domain != _nl_default_default_domain) free (old_domain); } __libc_rwlock_unlock (_nl_state_lock); return new_domain; } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__textdomain, textdomain); #endif sweep-0.9.3/intl/localcharset.c0000644000175000017500000002522310777660165015165 0ustar useruser/* Determine a canonical name for the current locale's character encoding. Copyright (C) 2000-2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible . */ #ifdef HAVE_CONFIG_H # include #endif /* Specification. */ #include "localcharset.h" #if HAVE_STDDEF_H # include #endif #include #if HAVE_STRING_H # include #else # include #endif #if HAVE_STDLIB_H # include #endif #if defined _WIN32 || defined __WIN32__ # undef WIN32 /* avoid warning on mingw32 */ # define WIN32 #endif #if defined __EMX__ /* Assume EMX program runs on OS/2, even if compiled under DOS. */ # define OS2 #endif #if !defined WIN32 # if HAVE_LANGINFO_CODESET # include # else # if HAVE_SETLOCALE # include # endif # endif #elif defined WIN32 # define WIN32_LEAN_AND_MEAN # include #endif #if defined OS2 # define INCL_DOS # include #endif #if ENABLE_RELOCATABLE # include "relocatable.h" #else # define relocate(pathname) (pathname) #endif #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') #endif #ifndef DIRECTORY_SEPARATOR # define DIRECTORY_SEPARATOR '/' #endif #ifndef ISSLASH # define ISSLASH(C) ((C) == DIRECTORY_SEPARATOR) #endif #if HAVE_DECL_GETC_UNLOCKED # undef getc # define getc getc_unlocked #endif /* The following static variable is declared 'volatile' to avoid a possible multithread problem in the function get_charset_aliases. If we are running in a threaded environment, and if two threads initialize 'charset_aliases' simultaneously, both will produce the same value, and everything will be ok if the two assignments to 'charset_aliases' are atomic. But I don't know what will happen if the two assignments mix. */ #if __STDC__ != 1 # define volatile /* empty */ #endif /* Pointer to the contents of the charset.alias file, if it has already been read, else NULL. Its format is: ALIAS_1 '\0' CANONICAL_1 '\0' ... ALIAS_n '\0' CANONICAL_n '\0' '\0' */ static const char * volatile charset_aliases; /* Return a pointer to the contents of the charset.alias file. */ static const char * get_charset_aliases () { const char *cp; cp = charset_aliases; if (cp == NULL) { #if !(defined VMS || defined WIN32) FILE *fp; const char *dir; const char *base = "charset.alias"; char *file_name; /* Make it possible to override the charset.alias location. This is necessary for running the testsuite before "make install". */ dir = getenv ("CHARSETALIASDIR"); if (dir == NULL || dir[0] == '\0') dir = relocate (LIBDIR); /* Concatenate dir and base into freshly allocated file_name. */ { size_t dir_len = strlen (dir); size_t base_len = strlen (base); int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); file_name = (char *) malloc (dir_len + add_slash + base_len + 1); if (file_name != NULL) { memcpy (file_name, dir, dir_len); if (add_slash) file_name[dir_len] = DIRECTORY_SEPARATOR; memcpy (file_name + dir_len + add_slash, base, base_len + 1); } } if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL) /* Out of memory or file not found, treat it as empty. */ cp = ""; else { /* Parse the file's contents. */ char *res_ptr = NULL; size_t res_size = 0; for (;;) { int c; char buf1[50+1]; char buf2[50+1]; size_t l1, l2; char *old_res_ptr; c = getc (fp); if (c == EOF) break; if (c == '\n' || c == ' ' || c == '\t') continue; if (c == '#') { /* Skip comment, to end of line. */ do c = getc (fp); while (!(c == EOF || c == '\n')); if (c == EOF) break; continue; } ungetc (c, fp); if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) break; l1 = strlen (buf1); l2 = strlen (buf2); old_res_ptr = res_ptr; if (res_size == 0) { res_size = l1 + 1 + l2 + 1; res_ptr = (char *) malloc (res_size + 1); } else { res_size += l1 + 1 + l2 + 1; res_ptr = (char *) realloc (res_ptr, res_size + 1); } if (res_ptr == NULL) { /* Out of memory. */ res_size = 0; if (old_res_ptr != NULL) free (old_res_ptr); break; } strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); strcpy (res_ptr + res_size - (l2 + 1), buf2); } fclose (fp); if (res_size == 0) cp = ""; else { *(res_ptr + res_size) = '\0'; cp = res_ptr; } } if (file_name != NULL) free (file_name); #else # if defined VMS /* To avoid the troubles of an extra file charset.alias_vms in the sources of many GNU packages, simply inline the aliases here. */ /* The list of encodings is taken from the OpenVMS 7.3-1 documentation "Compaq C Run-Time Library Reference Manual for OpenVMS systems" section 10.7 "Handling Different Character Sets". */ cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" "ISO8859-2" "\0" "ISO-8859-2" "\0" "ISO8859-5" "\0" "ISO-8859-5" "\0" "ISO8859-7" "\0" "ISO-8859-7" "\0" "ISO8859-8" "\0" "ISO-8859-8" "\0" "ISO8859-9" "\0" "ISO-8859-9" "\0" /* Japanese */ "eucJP" "\0" "EUC-JP" "\0" "SJIS" "\0" "SHIFT_JIS" "\0" "DECKANJI" "\0" "DEC-KANJI" "\0" "SDECKANJI" "\0" "EUC-JP" "\0" /* Chinese */ "eucTW" "\0" "EUC-TW" "\0" "DECHANYU" "\0" "DEC-HANYU" "\0" "DECHANZI" "\0" "GB2312" "\0" /* Korean */ "DECKOREAN" "\0" "EUC-KR" "\0"; # endif # if defined WIN32 /* To avoid the troubles of installing a separate file in the same directory as the DLL and of retrieving the DLL's directory at runtime, simply inline the aliases here. */ cp = "CP936" "\0" "GBK" "\0" "CP1361" "\0" "JOHAB" "\0" "CP20127" "\0" "ASCII" "\0" "CP20866" "\0" "KOI8-R" "\0" "CP21866" "\0" "KOI8-RU" "\0" "CP28591" "\0" "ISO-8859-1" "\0" "CP28592" "\0" "ISO-8859-2" "\0" "CP28593" "\0" "ISO-8859-3" "\0" "CP28594" "\0" "ISO-8859-4" "\0" "CP28595" "\0" "ISO-8859-5" "\0" "CP28596" "\0" "ISO-8859-6" "\0" "CP28597" "\0" "ISO-8859-7" "\0" "CP28598" "\0" "ISO-8859-8" "\0" "CP28599" "\0" "ISO-8859-9" "\0" "CP28605" "\0" "ISO-8859-15" "\0"; # endif #endif charset_aliases = cp; } return cp; } /* Determine the current locale's character encoding, and canonicalize it into one of the canonical names listed in config.charset. The result must not be freed; it is statically allocated. If the canonical name cannot be determined, the result is a non-canonical name. */ #ifdef STATIC STATIC #endif const char * locale_charset () { const char *codeset; const char *aliases; #if !(defined WIN32 || defined OS2) # if HAVE_LANGINFO_CODESET /* Most systems support nl_langinfo (CODESET) nowadays. */ codeset = nl_langinfo (CODESET); # else /* On old systems which lack it, use setlocale or getenv. */ const char *locale = NULL; /* But most old systems don't have a complete set of locales. Some (like SunOS 4 or DJGPP) have only the C locale. Therefore we don't use setlocale here; it would return "C" when it doesn't support the locale name the user has set. */ # if HAVE_SETLOCALE && 0 locale = setlocale (LC_CTYPE, NULL); # endif if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') locale = getenv ("LANG"); } } /* On some old systems, one used to set locale = "iso8859_1". On others, you set it to "language_COUNTRY.charset". In any case, we resolve it through the charset.alias file. */ codeset = locale; # endif #elif defined WIN32 static char buf[2 + 10 + 1]; /* Woe32 has a function returning the locale's codepage as a number. */ snprintf (buf, sizeof (buf), "CP%u", GetACP ()); codeset = buf; #elif defined OS2 const char *locale; static char buf[2 + 10 + 1]; ULONG cp[3]; ULONG cplen; /* Allow user to override the codeset, as set in the operating system, with standard language environment variables. */ locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') locale = getenv ("LANG"); } if (locale != NULL && locale[0] != '\0') { /* If the locale name contains an encoding after the dot, return it. */ const char *dot = strchr (locale, '.'); if (dot != NULL) { const char *modifier; dot++; /* Look for the possible @... trailer and remove it, if any. */ modifier = strchr (dot, '@'); if (modifier == NULL) return dot; if (modifier - dot < sizeof (buf)) { memcpy (buf, dot, modifier - dot); buf [modifier - dot] = '\0'; return buf; } } /* Resolve through the charset.alias file. */ codeset = locale; } else { /* OS/2 has a function returning the locale's codepage as a number. */ if (DosQueryCp (sizeof (cp), cp, &cplen)) codeset = ""; else { snprintf (buf, sizeof (buf), "CP%u", cp[0]); codeset = buf; } } #endif if (codeset == NULL) /* The canonical name cannot be determined. */ codeset = ""; /* Resolve alias. */ for (aliases = get_charset_aliases (); *aliases != '\0'; aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) if (strcmp (codeset, aliases) == 0 || (aliases[0] == '*' && aliases[1] == '\0')) { codeset = aliases + strlen (aliases) + 1; break; } /* Don't return an empty string. GNU libc and GNU libiconv interpret the empty string as denoting "the locale's character encoding", thus GNU libiconv would call this function a second time. */ if (codeset[0] == '\0') codeset = "ASCII"; return codeset; } sweep-0.9.3/intl/printf-args.c0000644000175000017500000000625710777660165014763 0ustar useruser/* Decomposed printf argument list. Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif /* Specification. */ #include "printf-args.h" #ifdef STATIC STATIC #endif int printf_fetchargs (va_list args, arguments *a) { size_t i; argument *ap; for (i = 0, ap = &a->arg[0]; i < a->count; i++, ap++) switch (ap->type) { case TYPE_SCHAR: ap->a.a_schar = va_arg (args, /*signed char*/ int); break; case TYPE_UCHAR: ap->a.a_uchar = va_arg (args, /*unsigned char*/ int); break; case TYPE_SHORT: ap->a.a_short = va_arg (args, /*short*/ int); break; case TYPE_USHORT: ap->a.a_ushort = va_arg (args, /*unsigned short*/ int); break; case TYPE_INT: ap->a.a_int = va_arg (args, int); break; case TYPE_UINT: ap->a.a_uint = va_arg (args, unsigned int); break; case TYPE_LONGINT: ap->a.a_longint = va_arg (args, long int); break; case TYPE_ULONGINT: ap->a.a_ulongint = va_arg (args, unsigned long int); break; #ifdef HAVE_LONG_LONG case TYPE_LONGLONGINT: ap->a.a_longlongint = va_arg (args, long long int); break; case TYPE_ULONGLONGINT: ap->a.a_ulonglongint = va_arg (args, unsigned long long int); break; #endif case TYPE_DOUBLE: ap->a.a_double = va_arg (args, double); break; #ifdef HAVE_LONG_DOUBLE case TYPE_LONGDOUBLE: ap->a.a_longdouble = va_arg (args, long double); break; #endif case TYPE_CHAR: ap->a.a_char = va_arg (args, int); break; #ifdef HAVE_WINT_T case TYPE_WIDE_CHAR: ap->a.a_wide_char = va_arg (args, wint_t); break; #endif case TYPE_STRING: ap->a.a_string = va_arg (args, const char *); break; #ifdef HAVE_WCHAR_T case TYPE_WIDE_STRING: ap->a.a_wide_string = va_arg (args, const wchar_t *); break; #endif case TYPE_POINTER: ap->a.a_pointer = va_arg (args, void *); break; case TYPE_COUNT_SCHAR_POINTER: ap->a.a_count_schar_pointer = va_arg (args, signed char *); break; case TYPE_COUNT_SHORT_POINTER: ap->a.a_count_short_pointer = va_arg (args, short *); break; case TYPE_COUNT_INT_POINTER: ap->a.a_count_int_pointer = va_arg (args, int *); break; case TYPE_COUNT_LONGINT_POINTER: ap->a.a_count_longint_pointer = va_arg (args, long int *); break; #ifdef HAVE_LONG_LONG case TYPE_COUNT_LONGLONGINT_POINTER: ap->a.a_count_longlongint_pointer = va_arg (args, long long int *); break; #endif default: /* Unknown type. */ return -1; } return 0; } sweep-0.9.3/intl/ref-del.sin0000644000175000017500000000203010777660165014375 0ustar useruser# Remove this package from a list of references stored in a text file. # # Copyright (C) 2000 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # # Written by Bruno Haible . # /^# Packages using this file: / { s/# Packages using this file:// s/ @PACKAGE@ / / s/^/# Packages using this file:/ } sweep-0.9.3/intl/plural.y0000644000175000017500000001627510777660165014055 0ustar useruser%{ /* Expression parsing for plural form selection. Copyright (C) 2000-2001, 2003 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* The bison generated parser uses alloca. AIX 3 forces us to put this declaration at the beginning of the file. The declaration in bison's skeleton file comes too late. This must come before because may include arbitrary system headers. */ #if defined _AIX && !defined __GNUC__ #pragma alloca #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #include "plural-exp.h" /* The main function generated by the parser is called __gettextparse, but we want it to be called PLURAL_PARSE. */ #ifndef _LIBC # define __gettextparse PLURAL_PARSE #endif #define YYLEX_PARAM &((struct parse_args *) arg)->cp #define YYPARSE_PARAM arg %} %pure_parser %expect 7 %union { unsigned long int num; enum operator op; struct expression *exp; } %{ /* Prototypes for local functions. */ static int yylex (YYSTYPE *lval, const char **pexp); static void yyerror (const char *str); /* Allocation of expressions. */ static struct expression * new_exp (int nargs, enum operator op, struct expression * const *args) { int i; struct expression *newp; /* If any of the argument could not be malloc'ed, just return NULL. */ for (i = nargs - 1; i >= 0; i--) if (args[i] == NULL) goto fail; /* Allocate a new expression. */ newp = (struct expression *) malloc (sizeof (*newp)); if (newp != NULL) { newp->nargs = nargs; newp->operation = op; for (i = nargs - 1; i >= 0; i--) newp->val.args[i] = args[i]; return newp; } fail: for (i = nargs - 1; i >= 0; i--) FREE_EXPRESSION (args[i]); return NULL; } static inline struct expression * new_exp_0 (enum operator op) { return new_exp (0, op, NULL); } static inline struct expression * new_exp_1 (enum operator op, struct expression *right) { struct expression *args[1]; args[0] = right; return new_exp (1, op, args); } static struct expression * new_exp_2 (enum operator op, struct expression *left, struct expression *right) { struct expression *args[2]; args[0] = left; args[1] = right; return new_exp (2, op, args); } static inline struct expression * new_exp_3 (enum operator op, struct expression *bexp, struct expression *tbranch, struct expression *fbranch) { struct expression *args[3]; args[0] = bexp; args[1] = tbranch; args[2] = fbranch; return new_exp (3, op, args); } %} /* This declares that all operators have the same associativity and the precedence order as in C. See [Harbison, Steele: C, A Reference Manual]. There is no unary minus and no bitwise operators. Operators with the same syntactic behaviour have been merged into a single token, to save space in the array generated by bison. */ %right '?' /* ? */ %left '|' /* || */ %left '&' /* && */ %left EQUOP2 /* == != */ %left CMPOP2 /* < > <= >= */ %left ADDOP2 /* + - */ %left MULOP2 /* * / % */ %right '!' /* ! */ %token EQUOP2 CMPOP2 ADDOP2 MULOP2 %token NUMBER %type exp %% start: exp { if ($1 == NULL) YYABORT; ((struct parse_args *) arg)->res = $1; } ; exp: exp '?' exp ':' exp { $$ = new_exp_3 (qmop, $1, $3, $5); } | exp '|' exp { $$ = new_exp_2 (lor, $1, $3); } | exp '&' exp { $$ = new_exp_2 (land, $1, $3); } | exp EQUOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | exp CMPOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | exp ADDOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | exp MULOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | '!' exp { $$ = new_exp_1 (lnot, $2); } | 'n' { $$ = new_exp_0 (var); } | NUMBER { if (($$ = new_exp_0 (num)) != NULL) $$->val.num = $1; } | '(' exp ')' { $$ = $2; } ; %% void internal_function FREE_EXPRESSION (struct expression *exp) { if (exp == NULL) return; /* Handle the recursive case. */ switch (exp->nargs) { case 3: FREE_EXPRESSION (exp->val.args[2]); /* FALLTHROUGH */ case 2: FREE_EXPRESSION (exp->val.args[1]); /* FALLTHROUGH */ case 1: FREE_EXPRESSION (exp->val.args[0]); /* FALLTHROUGH */ default: break; } free (exp); } static int yylex (YYSTYPE *lval, const char **pexp) { const char *exp = *pexp; int result; while (1) { if (exp[0] == '\0') { *pexp = exp; return YYEOF; } if (exp[0] != ' ' && exp[0] != '\t') break; ++exp; } result = *exp++; switch (result) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { unsigned long int n = result - '0'; while (exp[0] >= '0' && exp[0] <= '9') { n *= 10; n += exp[0] - '0'; ++exp; } lval->num = n; result = NUMBER; } break; case '=': if (exp[0] == '=') { ++exp; lval->op = equal; result = EQUOP2; } else result = YYERRCODE; break; case '!': if (exp[0] == '=') { ++exp; lval->op = not_equal; result = EQUOP2; } break; case '&': case '|': if (exp[0] == result) ++exp; else result = YYERRCODE; break; case '<': if (exp[0] == '=') { ++exp; lval->op = less_or_equal; } else lval->op = less_than; result = CMPOP2; break; case '>': if (exp[0] == '=') { ++exp; lval->op = greater_or_equal; } else lval->op = greater_than; result = CMPOP2; break; case '*': lval->op = mult; result = MULOP2; break; case '/': lval->op = divide; result = MULOP2; break; case '%': lval->op = module; result = MULOP2; break; case '+': lval->op = plus; result = ADDOP2; break; case '-': lval->op = minus; result = ADDOP2; break; case 'n': case '?': case ':': case '(': case ')': /* Nothing, just return the character. */ break; case ';': case '\n': case '\0': /* Be safe and let the user call this function again. */ --exp; result = YYEOF; break; default: result = YYERRCODE; #if YYDEBUG != 0 --exp; #endif break; } *pexp = exp; return result; } static void yyerror (const char *str) { /* Do nothing. We don't print error messages here. */ } sweep-0.9.3/intl/osdep.c0000644000175000017500000000164710777660165013637 0ustar useruser/* OS dependent parts of libintl. Copyright (C) 2001-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #if defined __EMX__ # include "os2compat.c" #else /* Avoid AIX compiler warning. */ typedef int dummy; #endif sweep-0.9.3/intl/loadmsgcat.c0000644000175000017500000010724310777660165014642 0ustar useruser/* Load needed message catalogs. Copyright (C) 1995-1999, 2000-2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for mempcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #ifdef __GNUC__ # undef alloca # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # ifdef _MSC_VER # include # define alloca _alloca # else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif # endif #endif #include #include #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #ifdef _LIBC # include # include #endif #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ || (defined _LIBC && defined _POSIX_MAPPED_FILES) # include # undef HAVE_MMAP # define HAVE_MMAP 1 #else # undef HAVE_MMAP #endif #if defined HAVE_STDINT_H_WITH_UINTMAX || defined _LIBC # include #endif #if defined HAVE_INTTYPES_H || defined _LIBC # include #endif #include "gmo.h" #include "gettextP.h" #include "hash-string.h" #include "plural-exp.h" #ifdef _LIBC # include "../locale/localeinfo.h" #endif /* Provide fallback values for macros that ought to be defined in . Note that our fallback values need not be literal strings, because we don't use them with preprocessor string concatenation. */ #if !defined PRId8 || PRI_MACROS_BROKEN # undef PRId8 # define PRId8 "d" #endif #if !defined PRIi8 || PRI_MACROS_BROKEN # undef PRIi8 # define PRIi8 "i" #endif #if !defined PRIo8 || PRI_MACROS_BROKEN # undef PRIo8 # define PRIo8 "o" #endif #if !defined PRIu8 || PRI_MACROS_BROKEN # undef PRIu8 # define PRIu8 "u" #endif #if !defined PRIx8 || PRI_MACROS_BROKEN # undef PRIx8 # define PRIx8 "x" #endif #if !defined PRIX8 || PRI_MACROS_BROKEN # undef PRIX8 # define PRIX8 "X" #endif #if !defined PRId16 || PRI_MACROS_BROKEN # undef PRId16 # define PRId16 "d" #endif #if !defined PRIi16 || PRI_MACROS_BROKEN # undef PRIi16 # define PRIi16 "i" #endif #if !defined PRIo16 || PRI_MACROS_BROKEN # undef PRIo16 # define PRIo16 "o" #endif #if !defined PRIu16 || PRI_MACROS_BROKEN # undef PRIu16 # define PRIu16 "u" #endif #if !defined PRIx16 || PRI_MACROS_BROKEN # undef PRIx16 # define PRIx16 "x" #endif #if !defined PRIX16 || PRI_MACROS_BROKEN # undef PRIX16 # define PRIX16 "X" #endif #if !defined PRId32 || PRI_MACROS_BROKEN # undef PRId32 # define PRId32 "d" #endif #if !defined PRIi32 || PRI_MACROS_BROKEN # undef PRIi32 # define PRIi32 "i" #endif #if !defined PRIo32 || PRI_MACROS_BROKEN # undef PRIo32 # define PRIo32 "o" #endif #if !defined PRIu32 || PRI_MACROS_BROKEN # undef PRIu32 # define PRIu32 "u" #endif #if !defined PRIx32 || PRI_MACROS_BROKEN # undef PRIx32 # define PRIx32 "x" #endif #if !defined PRIX32 || PRI_MACROS_BROKEN # undef PRIX32 # define PRIX32 "X" #endif #if !defined PRId64 || PRI_MACROS_BROKEN # undef PRId64 # define PRId64 (sizeof (long) == 8 ? "ld" : "lld") #endif #if !defined PRIi64 || PRI_MACROS_BROKEN # undef PRIi64 # define PRIi64 (sizeof (long) == 8 ? "li" : "lli") #endif #if !defined PRIo64 || PRI_MACROS_BROKEN # undef PRIo64 # define PRIo64 (sizeof (long) == 8 ? "lo" : "llo") #endif #if !defined PRIu64 || PRI_MACROS_BROKEN # undef PRIu64 # define PRIu64 (sizeof (long) == 8 ? "lu" : "llu") #endif #if !defined PRIx64 || PRI_MACROS_BROKEN # undef PRIx64 # define PRIx64 (sizeof (long) == 8 ? "lx" : "llx") #endif #if !defined PRIX64 || PRI_MACROS_BROKEN # undef PRIX64 # define PRIX64 (sizeof (long) == 8 ? "lX" : "llX") #endif #if !defined PRIdLEAST8 || PRI_MACROS_BROKEN # undef PRIdLEAST8 # define PRIdLEAST8 "d" #endif #if !defined PRIiLEAST8 || PRI_MACROS_BROKEN # undef PRIiLEAST8 # define PRIiLEAST8 "i" #endif #if !defined PRIoLEAST8 || PRI_MACROS_BROKEN # undef PRIoLEAST8 # define PRIoLEAST8 "o" #endif #if !defined PRIuLEAST8 || PRI_MACROS_BROKEN # undef PRIuLEAST8 # define PRIuLEAST8 "u" #endif #if !defined PRIxLEAST8 || PRI_MACROS_BROKEN # undef PRIxLEAST8 # define PRIxLEAST8 "x" #endif #if !defined PRIXLEAST8 || PRI_MACROS_BROKEN # undef PRIXLEAST8 # define PRIXLEAST8 "X" #endif #if !defined PRIdLEAST16 || PRI_MACROS_BROKEN # undef PRIdLEAST16 # define PRIdLEAST16 "d" #endif #if !defined PRIiLEAST16 || PRI_MACROS_BROKEN # undef PRIiLEAST16 # define PRIiLEAST16 "i" #endif #if !defined PRIoLEAST16 || PRI_MACROS_BROKEN # undef PRIoLEAST16 # define PRIoLEAST16 "o" #endif #if !defined PRIuLEAST16 || PRI_MACROS_BROKEN # undef PRIuLEAST16 # define PRIuLEAST16 "u" #endif #if !defined PRIxLEAST16 || PRI_MACROS_BROKEN # undef PRIxLEAST16 # define PRIxLEAST16 "x" #endif #if !defined PRIXLEAST16 || PRI_MACROS_BROKEN # undef PRIXLEAST16 # define PRIXLEAST16 "X" #endif #if !defined PRIdLEAST32 || PRI_MACROS_BROKEN # undef PRIdLEAST32 # define PRIdLEAST32 "d" #endif #if !defined PRIiLEAST32 || PRI_MACROS_BROKEN # undef PRIiLEAST32 # define PRIiLEAST32 "i" #endif #if !defined PRIoLEAST32 || PRI_MACROS_BROKEN # undef PRIoLEAST32 # define PRIoLEAST32 "o" #endif #if !defined PRIuLEAST32 || PRI_MACROS_BROKEN # undef PRIuLEAST32 # define PRIuLEAST32 "u" #endif #if !defined PRIxLEAST32 || PRI_MACROS_BROKEN # undef PRIxLEAST32 # define PRIxLEAST32 "x" #endif #if !defined PRIXLEAST32 || PRI_MACROS_BROKEN # undef PRIXLEAST32 # define PRIXLEAST32 "X" #endif #if !defined PRIdLEAST64 || PRI_MACROS_BROKEN # undef PRIdLEAST64 # define PRIdLEAST64 PRId64 #endif #if !defined PRIiLEAST64 || PRI_MACROS_BROKEN # undef PRIiLEAST64 # define PRIiLEAST64 PRIi64 #endif #if !defined PRIoLEAST64 || PRI_MACROS_BROKEN # undef PRIoLEAST64 # define PRIoLEAST64 PRIo64 #endif #if !defined PRIuLEAST64 || PRI_MACROS_BROKEN # undef PRIuLEAST64 # define PRIuLEAST64 PRIu64 #endif #if !defined PRIxLEAST64 || PRI_MACROS_BROKEN # undef PRIxLEAST64 # define PRIxLEAST64 PRIx64 #endif #if !defined PRIXLEAST64 || PRI_MACROS_BROKEN # undef PRIXLEAST64 # define PRIXLEAST64 PRIX64 #endif #if !defined PRIdFAST8 || PRI_MACROS_BROKEN # undef PRIdFAST8 # define PRIdFAST8 "d" #endif #if !defined PRIiFAST8 || PRI_MACROS_BROKEN # undef PRIiFAST8 # define PRIiFAST8 "i" #endif #if !defined PRIoFAST8 || PRI_MACROS_BROKEN # undef PRIoFAST8 # define PRIoFAST8 "o" #endif #if !defined PRIuFAST8 || PRI_MACROS_BROKEN # undef PRIuFAST8 # define PRIuFAST8 "u" #endif #if !defined PRIxFAST8 || PRI_MACROS_BROKEN # undef PRIxFAST8 # define PRIxFAST8 "x" #endif #if !defined PRIXFAST8 || PRI_MACROS_BROKEN # undef PRIXFAST8 # define PRIXFAST8 "X" #endif #if !defined PRIdFAST16 || PRI_MACROS_BROKEN # undef PRIdFAST16 # define PRIdFAST16 "d" #endif #if !defined PRIiFAST16 || PRI_MACROS_BROKEN # undef PRIiFAST16 # define PRIiFAST16 "i" #endif #if !defined PRIoFAST16 || PRI_MACROS_BROKEN # undef PRIoFAST16 # define PRIoFAST16 "o" #endif #if !defined PRIuFAST16 || PRI_MACROS_BROKEN # undef PRIuFAST16 # define PRIuFAST16 "u" #endif #if !defined PRIxFAST16 || PRI_MACROS_BROKEN # undef PRIxFAST16 # define PRIxFAST16 "x" #endif #if !defined PRIXFAST16 || PRI_MACROS_BROKEN # undef PRIXFAST16 # define PRIXFAST16 "X" #endif #if !defined PRIdFAST32 || PRI_MACROS_BROKEN # undef PRIdFAST32 # define PRIdFAST32 "d" #endif #if !defined PRIiFAST32 || PRI_MACROS_BROKEN # undef PRIiFAST32 # define PRIiFAST32 "i" #endif #if !defined PRIoFAST32 || PRI_MACROS_BROKEN # undef PRIoFAST32 # define PRIoFAST32 "o" #endif #if !defined PRIuFAST32 || PRI_MACROS_BROKEN # undef PRIuFAST32 # define PRIuFAST32 "u" #endif #if !defined PRIxFAST32 || PRI_MACROS_BROKEN # undef PRIxFAST32 # define PRIxFAST32 "x" #endif #if !defined PRIXFAST32 || PRI_MACROS_BROKEN # undef PRIXFAST32 # define PRIXFAST32 "X" #endif #if !defined PRIdFAST64 || PRI_MACROS_BROKEN # undef PRIdFAST64 # define PRIdFAST64 PRId64 #endif #if !defined PRIiFAST64 || PRI_MACROS_BROKEN # undef PRIiFAST64 # define PRIiFAST64 PRIi64 #endif #if !defined PRIoFAST64 || PRI_MACROS_BROKEN # undef PRIoFAST64 # define PRIoFAST64 PRIo64 #endif #if !defined PRIuFAST64 || PRI_MACROS_BROKEN # undef PRIuFAST64 # define PRIuFAST64 PRIu64 #endif #if !defined PRIxFAST64 || PRI_MACROS_BROKEN # undef PRIxFAST64 # define PRIxFAST64 PRIx64 #endif #if !defined PRIXFAST64 || PRI_MACROS_BROKEN # undef PRIXFAST64 # define PRIXFAST64 PRIX64 #endif #if !defined PRIdMAX || PRI_MACROS_BROKEN # undef PRIdMAX # define PRIdMAX (sizeof (uintmax_t) == sizeof (long) ? "ld" : "lld") #endif #if !defined PRIiMAX || PRI_MACROS_BROKEN # undef PRIiMAX # define PRIiMAX (sizeof (uintmax_t) == sizeof (long) ? "li" : "lli") #endif #if !defined PRIoMAX || PRI_MACROS_BROKEN # undef PRIoMAX # define PRIoMAX (sizeof (uintmax_t) == sizeof (long) ? "lo" : "llo") #endif #if !defined PRIuMAX || PRI_MACROS_BROKEN # undef PRIuMAX # define PRIuMAX (sizeof (uintmax_t) == sizeof (long) ? "lu" : "llu") #endif #if !defined PRIxMAX || PRI_MACROS_BROKEN # undef PRIxMAX # define PRIxMAX (sizeof (uintmax_t) == sizeof (long) ? "lx" : "llx") #endif #if !defined PRIXMAX || PRI_MACROS_BROKEN # undef PRIXMAX # define PRIXMAX (sizeof (uintmax_t) == sizeof (long) ? "lX" : "llX") #endif #if !defined PRIdPTR || PRI_MACROS_BROKEN # undef PRIdPTR # define PRIdPTR \ (sizeof (void *) == sizeof (long) ? "ld" : \ sizeof (void *) == sizeof (int) ? "d" : \ "lld") #endif #if !defined PRIiPTR || PRI_MACROS_BROKEN # undef PRIiPTR # define PRIiPTR \ (sizeof (void *) == sizeof (long) ? "li" : \ sizeof (void *) == sizeof (int) ? "i" : \ "lli") #endif #if !defined PRIoPTR || PRI_MACROS_BROKEN # undef PRIoPTR # define PRIoPTR \ (sizeof (void *) == sizeof (long) ? "lo" : \ sizeof (void *) == sizeof (int) ? "o" : \ "llo") #endif #if !defined PRIuPTR || PRI_MACROS_BROKEN # undef PRIuPTR # define PRIuPTR \ (sizeof (void *) == sizeof (long) ? "lu" : \ sizeof (void *) == sizeof (int) ? "u" : \ "llu") #endif #if !defined PRIxPTR || PRI_MACROS_BROKEN # undef PRIxPTR # define PRIxPTR \ (sizeof (void *) == sizeof (long) ? "lx" : \ sizeof (void *) == sizeof (int) ? "x" : \ "llx") #endif #if !defined PRIXPTR || PRI_MACROS_BROKEN # undef PRIXPTR # define PRIXPTR \ (sizeof (void *) == sizeof (long) ? "lX" : \ sizeof (void *) == sizeof (int) ? "X" : \ "llX") #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ISO C functions. This is required by the standard because some ISO C functions will require linking with this object file and the name space must not be polluted. */ # define open __open # define close __close # define read __read # define mmap __mmap # define munmap __munmap #endif /* For those losing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA # define freea(p) /* nothing */ #else # define alloca(n) malloc (n) # define freea(p) free (p) #endif /* For systems that distinguish between text and binary I/O. O_BINARY is usually declared in . */ #if !defined O_BINARY && defined _O_BINARY /* For MSC-compatible compilers. */ # define O_BINARY _O_BINARY # define O_TEXT _O_TEXT #endif #ifdef __BEOS__ /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */ # undef O_BINARY # undef O_TEXT #endif /* On reasonable systems, binary I/O is the default. */ #ifndef O_BINARY # define O_BINARY 0 #endif /* We need a sign, whether a new catalog was loaded, which can be associated with all translations. This is important if the translations are cached by one of GCC's features. */ int _nl_msg_cat_cntr; /* Expand a system dependent string segment. Return NULL if unsupported. */ static const char * get_sysdep_segment_value (const char *name) { /* Test for an ISO C 99 section 7.8.1 format string directive. Syntax: P R I { d | i | o | u | x | X } { { | LEAST | FAST } { 8 | 16 | 32 | 64 } | MAX | PTR } */ /* We don't use a table of 14 times 6 'const char *' strings here, because data relocations cost startup time. */ if (name[0] == 'P' && name[1] == 'R' && name[2] == 'I') { if (name[3] == 'd' || name[3] == 'i' || name[3] == 'o' || name[3] == 'u' || name[3] == 'x' || name[3] == 'X') { if (name[4] == '8' && name[5] == '\0') { if (name[3] == 'd') return PRId8; if (name[3] == 'i') return PRIi8; if (name[3] == 'o') return PRIo8; if (name[3] == 'u') return PRIu8; if (name[3] == 'x') return PRIx8; if (name[3] == 'X') return PRIX8; abort (); } if (name[4] == '1' && name[5] == '6' && name[6] == '\0') { if (name[3] == 'd') return PRId16; if (name[3] == 'i') return PRIi16; if (name[3] == 'o') return PRIo16; if (name[3] == 'u') return PRIu16; if (name[3] == 'x') return PRIx16; if (name[3] == 'X') return PRIX16; abort (); } if (name[4] == '3' && name[5] == '2' && name[6] == '\0') { if (name[3] == 'd') return PRId32; if (name[3] == 'i') return PRIi32; if (name[3] == 'o') return PRIo32; if (name[3] == 'u') return PRIu32; if (name[3] == 'x') return PRIx32; if (name[3] == 'X') return PRIX32; abort (); } if (name[4] == '6' && name[5] == '4' && name[6] == '\0') { if (name[3] == 'd') return PRId64; if (name[3] == 'i') return PRIi64; if (name[3] == 'o') return PRIo64; if (name[3] == 'u') return PRIu64; if (name[3] == 'x') return PRIx64; if (name[3] == 'X') return PRIX64; abort (); } if (name[4] == 'L' && name[5] == 'E' && name[6] == 'A' && name[7] == 'S' && name[8] == 'T') { if (name[9] == '8' && name[10] == '\0') { if (name[3] == 'd') return PRIdLEAST8; if (name[3] == 'i') return PRIiLEAST8; if (name[3] == 'o') return PRIoLEAST8; if (name[3] == 'u') return PRIuLEAST8; if (name[3] == 'x') return PRIxLEAST8; if (name[3] == 'X') return PRIXLEAST8; abort (); } if (name[9] == '1' && name[10] == '6' && name[11] == '\0') { if (name[3] == 'd') return PRIdLEAST16; if (name[3] == 'i') return PRIiLEAST16; if (name[3] == 'o') return PRIoLEAST16; if (name[3] == 'u') return PRIuLEAST16; if (name[3] == 'x') return PRIxLEAST16; if (name[3] == 'X') return PRIXLEAST16; abort (); } if (name[9] == '3' && name[10] == '2' && name[11] == '\0') { if (name[3] == 'd') return PRIdLEAST32; if (name[3] == 'i') return PRIiLEAST32; if (name[3] == 'o') return PRIoLEAST32; if (name[3] == 'u') return PRIuLEAST32; if (name[3] == 'x') return PRIxLEAST32; if (name[3] == 'X') return PRIXLEAST32; abort (); } if (name[9] == '6' && name[10] == '4' && name[11] == '\0') { if (name[3] == 'd') return PRIdLEAST64; if (name[3] == 'i') return PRIiLEAST64; if (name[3] == 'o') return PRIoLEAST64; if (name[3] == 'u') return PRIuLEAST64; if (name[3] == 'x') return PRIxLEAST64; if (name[3] == 'X') return PRIXLEAST64; abort (); } } if (name[4] == 'F' && name[5] == 'A' && name[6] == 'S' && name[7] == 'T') { if (name[8] == '8' && name[9] == '\0') { if (name[3] == 'd') return PRIdFAST8; if (name[3] == 'i') return PRIiFAST8; if (name[3] == 'o') return PRIoFAST8; if (name[3] == 'u') return PRIuFAST8; if (name[3] == 'x') return PRIxFAST8; if (name[3] == 'X') return PRIXFAST8; abort (); } if (name[8] == '1' && name[9] == '6' && name[10] == '\0') { if (name[3] == 'd') return PRIdFAST16; if (name[3] == 'i') return PRIiFAST16; if (name[3] == 'o') return PRIoFAST16; if (name[3] == 'u') return PRIuFAST16; if (name[3] == 'x') return PRIxFAST16; if (name[3] == 'X') return PRIXFAST16; abort (); } if (name[8] == '3' && name[9] == '2' && name[10] == '\0') { if (name[3] == 'd') return PRIdFAST32; if (name[3] == 'i') return PRIiFAST32; if (name[3] == 'o') return PRIoFAST32; if (name[3] == 'u') return PRIuFAST32; if (name[3] == 'x') return PRIxFAST32; if (name[3] == 'X') return PRIXFAST32; abort (); } if (name[8] == '6' && name[9] == '4' && name[10] == '\0') { if (name[3] == 'd') return PRIdFAST64; if (name[3] == 'i') return PRIiFAST64; if (name[3] == 'o') return PRIoFAST64; if (name[3] == 'u') return PRIuFAST64; if (name[3] == 'x') return PRIxFAST64; if (name[3] == 'X') return PRIXFAST64; abort (); } } if (name[4] == 'M' && name[5] == 'A' && name[6] == 'X' && name[7] == '\0') { if (name[3] == 'd') return PRIdMAX; if (name[3] == 'i') return PRIiMAX; if (name[3] == 'o') return PRIoMAX; if (name[3] == 'u') return PRIuMAX; if (name[3] == 'x') return PRIxMAX; if (name[3] == 'X') return PRIXMAX; abort (); } if (name[4] == 'P' && name[5] == 'T' && name[6] == 'R' && name[7] == '\0') { if (name[3] == 'd') return PRIdPTR; if (name[3] == 'i') return PRIiPTR; if (name[3] == 'o') return PRIoPTR; if (name[3] == 'u') return PRIuPTR; if (name[3] == 'x') return PRIxPTR; if (name[3] == 'X') return PRIXPTR; abort (); } } } /* Test for a glibc specific printf() format directive flag. */ if (name[0] == 'I' && name[1] == '\0') { #if defined _LIBC || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) /* The 'I' flag, in numeric format directives, replaces ASCII digits with the 'outdigits' defined in the LC_CTYPE locale facet. This is used for Farsi (Persian) and maybe Arabic. */ return "I"; #else return ""; #endif } /* Other system dependent strings are not valid. */ return NULL; } /* Initialize the codeset dependent parts of an opened message catalog. Return the header entry. */ const char * internal_function _nl_init_domain_conv (struct loaded_l10nfile *domain_file, struct loaded_domain *domain, struct binding *domainbinding) { /* Find out about the character set the file is encoded with. This can be found (in textual form) in the entry "". If this entry does not exist or if this does not contain the `charset=' information, we will assume the charset matches the one the current locale and we don't have to perform any conversion. */ char *nullentry; size_t nullentrylen; /* Preinitialize fields, to avoid recursion during _nl_find_msg. */ domain->codeset_cntr = (domainbinding != NULL ? domainbinding->codeset_cntr : 0); #ifdef _LIBC domain->conv = (__gconv_t) -1; #else # if HAVE_ICONV domain->conv = (iconv_t) -1; # endif #endif domain->conv_tab = NULL; /* Get the header entry. */ nullentry = _nl_find_msg (domain_file, domainbinding, "", &nullentrylen); if (nullentry != NULL) { #if defined _LIBC || HAVE_ICONV const char *charsetstr; charsetstr = strstr (nullentry, "charset="); if (charsetstr != NULL) { size_t len; char *charset; const char *outcharset; charsetstr += strlen ("charset="); len = strcspn (charsetstr, " \t\n"); charset = (char *) alloca (len + 1); # if defined _LIBC || HAVE_MEMPCPY *((char *) mempcpy (charset, charsetstr, len)) = '\0'; # else memcpy (charset, charsetstr, len); charset[len] = '\0'; # endif /* The output charset should normally be determined by the locale. But sometimes the locale is not used or not correctly set up, so we provide a possibility for the user to override this. Moreover, the value specified through bind_textdomain_codeset overrides both. */ if (domainbinding != NULL && domainbinding->codeset != NULL) outcharset = domainbinding->codeset; else { outcharset = getenv ("OUTPUT_CHARSET"); if (outcharset == NULL || outcharset[0] == '\0') { # ifdef _LIBC outcharset = _NL_CURRENT (LC_CTYPE, CODESET); # else # if HAVE_ICONV extern const char *locale_charset (void); outcharset = locale_charset (); # endif # endif } } # ifdef _LIBC /* We always want to use transliteration. */ outcharset = norm_add_slashes (outcharset, "TRANSLIT"); charset = norm_add_slashes (charset, NULL); if (__gconv_open (outcharset, charset, &domain->conv, GCONV_AVOID_NOCONV) != __GCONV_OK) domain->conv = (__gconv_t) -1; # else # if HAVE_ICONV /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5, we want to use transliteration. */ # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 \ || _LIBICONV_VERSION >= 0x0105 if (strchr (outcharset, '/') == NULL) { char *tmp; len = strlen (outcharset); tmp = (char *) alloca (len + 10 + 1); memcpy (tmp, outcharset, len); memcpy (tmp + len, "//TRANSLIT", 10 + 1); outcharset = tmp; domain->conv = iconv_open (outcharset, charset); freea (outcharset); } else # endif domain->conv = iconv_open (outcharset, charset); # endif # endif freea (charset); } #endif /* _LIBC || HAVE_ICONV */ } return nullentry; } /* Frees the codeset dependent parts of an opened message catalog. */ void internal_function _nl_free_domain_conv (struct loaded_domain *domain) { if (domain->conv_tab != NULL && domain->conv_tab != (char **) -1) free (domain->conv_tab); #ifdef _LIBC if (domain->conv != (__gconv_t) -1) __gconv_close (domain->conv); #else # if HAVE_ICONV if (domain->conv != (iconv_t) -1) iconv_close (domain->conv); # endif #endif } /* Load the message catalogs specified by FILENAME. If it is no valid message catalog do nothing. */ void internal_function _nl_load_domain (struct loaded_l10nfile *domain_file, struct binding *domainbinding) { int fd; size_t size; #ifdef _LIBC struct stat64 st; #else struct stat st; #endif struct mo_file_header *data = (struct mo_file_header *) -1; int use_mmap = 0; struct loaded_domain *domain; int revision; const char *nullentry; domain_file->decided = 1; domain_file->data = NULL; /* Note that it would be useless to store domainbinding in domain_file because domainbinding might be == NULL now but != NULL later (after a call to bind_textdomain_codeset). */ /* If the record does not represent a valid locale the FILENAME might be NULL. This can happen when according to the given specification the locale file name is different for XPG and CEN syntax. */ if (domain_file->filename == NULL) return; /* Try to open the addressed file. */ fd = open (domain_file->filename, O_RDONLY | O_BINARY); if (fd == -1) return; /* We must know about the size of the file. */ if ( #ifdef _LIBC __builtin_expect (fstat64 (fd, &st) != 0, 0) #else __builtin_expect (fstat (fd, &st) != 0, 0) #endif || __builtin_expect ((size = (size_t) st.st_size) != st.st_size, 0) || __builtin_expect (size < sizeof (struct mo_file_header), 0)) { /* Something went wrong. */ close (fd); return; } #ifdef HAVE_MMAP /* Now we are ready to load the file. If mmap() is available we try this first. If not available or it failed we try to load it. */ data = (struct mo_file_header *) mmap (NULL, size, PROT_READ, MAP_PRIVATE, fd, 0); if (__builtin_expect (data != (struct mo_file_header *) -1, 1)) { /* mmap() call was successful. */ close (fd); use_mmap = 1; } #endif /* If the data is not yet available (i.e. mmap'ed) we try to load it manually. */ if (data == (struct mo_file_header *) -1) { size_t to_read; char *read_ptr; data = (struct mo_file_header *) malloc (size); if (data == NULL) return; to_read = size; read_ptr = (char *) data; do { long int nb = (long int) read (fd, read_ptr, to_read); if (nb <= 0) { #ifdef EINTR if (nb == -1 && errno == EINTR) continue; #endif close (fd); return; } read_ptr += nb; to_read -= nb; } while (to_read > 0); close (fd); } /* Using the magic number we can test whether it really is a message catalog file. */ if (__builtin_expect (data->magic != _MAGIC && data->magic != _MAGIC_SWAPPED, 0)) { /* The magic number is wrong: not a message catalog file. */ #ifdef HAVE_MMAP if (use_mmap) munmap ((caddr_t) data, size); else #endif free (data); return; } domain = (struct loaded_domain *) malloc (sizeof (struct loaded_domain)); if (domain == NULL) return; domain_file->data = domain; domain->data = (char *) data; domain->use_mmap = use_mmap; domain->mmap_size = size; domain->must_swap = data->magic != _MAGIC; domain->malloced = NULL; /* Fill in the information about the available tables. */ revision = W (domain->must_swap, data->revision); /* We support only the major revisions 0 and 1. */ switch (revision >> 16) { case 0: case 1: domain->nstrings = W (domain->must_swap, data->nstrings); domain->orig_tab = (const struct string_desc *) ((char *) data + W (domain->must_swap, data->orig_tab_offset)); domain->trans_tab = (const struct string_desc *) ((char *) data + W (domain->must_swap, data->trans_tab_offset)); domain->hash_size = W (domain->must_swap, data->hash_tab_size); domain->hash_tab = (domain->hash_size > 2 ? (const nls_uint32 *) ((char *) data + W (domain->must_swap, data->hash_tab_offset)) : NULL); domain->must_swap_hash_tab = domain->must_swap; /* Now dispatch on the minor revision. */ switch (revision & 0xffff) { case 0: domain->n_sysdep_strings = 0; domain->orig_sysdep_tab = NULL; domain->trans_sysdep_tab = NULL; break; case 1: default: { nls_uint32 n_sysdep_strings; if (domain->hash_tab == NULL) /* This is invalid. These minor revisions need a hash table. */ goto invalid; n_sysdep_strings = W (domain->must_swap, data->n_sysdep_strings); if (n_sysdep_strings > 0) { nls_uint32 n_sysdep_segments; const struct sysdep_segment *sysdep_segments; const char **sysdep_segment_values; const nls_uint32 *orig_sysdep_tab; const nls_uint32 *trans_sysdep_tab; nls_uint32 n_inmem_sysdep_strings; size_t memneed; char *mem; struct sysdep_string_desc *inmem_orig_sysdep_tab; struct sysdep_string_desc *inmem_trans_sysdep_tab; nls_uint32 *inmem_hash_tab; unsigned int i, j; /* Get the values of the system dependent segments. */ n_sysdep_segments = W (domain->must_swap, data->n_sysdep_segments); sysdep_segments = (const struct sysdep_segment *) ((char *) data + W (domain->must_swap, data->sysdep_segments_offset)); sysdep_segment_values = alloca (n_sysdep_segments * sizeof (const char *)); for (i = 0; i < n_sysdep_segments; i++) { const char *name = (char *) data + W (domain->must_swap, sysdep_segments[i].offset); nls_uint32 namelen = W (domain->must_swap, sysdep_segments[i].length); if (!(namelen > 0 && name[namelen - 1] == '\0')) { freea (sysdep_segment_values); goto invalid; } sysdep_segment_values[i] = get_sysdep_segment_value (name); } orig_sysdep_tab = (const nls_uint32 *) ((char *) data + W (domain->must_swap, data->orig_sysdep_tab_offset)); trans_sysdep_tab = (const nls_uint32 *) ((char *) data + W (domain->must_swap, data->trans_sysdep_tab_offset)); /* Compute the amount of additional memory needed for the system dependent strings and the augmented hash table. At the same time, also drop string pairs which refer to an undefined system dependent segment. */ n_inmem_sysdep_strings = 0; memneed = domain->hash_size * sizeof (nls_uint32); for (i = 0; i < n_sysdep_strings; i++) { int valid = 1; size_t needs[2]; for (j = 0; j < 2; j++) { const struct sysdep_string *sysdep_string = (const struct sysdep_string *) ((char *) data + W (domain->must_swap, j == 0 ? orig_sysdep_tab[i] : trans_sysdep_tab[i])); size_t need = 0; const struct segment_pair *p = sysdep_string->segments; if (W (domain->must_swap, p->sysdepref) != SEGMENTS_END) for (p = sysdep_string->segments;; p++) { nls_uint32 sysdepref; need += W (domain->must_swap, p->segsize); sysdepref = W (domain->must_swap, p->sysdepref); if (sysdepref == SEGMENTS_END) break; if (sysdepref >= n_sysdep_segments) { /* Invalid. */ freea (sysdep_segment_values); goto invalid; } if (sysdep_segment_values[sysdepref] == NULL) { /* This particular string pair is invalid. */ valid = 0; break; } need += strlen (sysdep_segment_values[sysdepref]); } needs[j] = need; if (!valid) break; } if (valid) { n_inmem_sysdep_strings++; memneed += needs[0] + needs[1]; } } memneed += 2 * n_inmem_sysdep_strings * sizeof (struct sysdep_string_desc); if (n_inmem_sysdep_strings > 0) { unsigned int k; /* Allocate additional memory. */ mem = (char *) malloc (memneed); if (mem == NULL) goto invalid; domain->malloced = mem; inmem_orig_sysdep_tab = (struct sysdep_string_desc *) mem; mem += n_inmem_sysdep_strings * sizeof (struct sysdep_string_desc); inmem_trans_sysdep_tab = (struct sysdep_string_desc *) mem; mem += n_inmem_sysdep_strings * sizeof (struct sysdep_string_desc); inmem_hash_tab = (nls_uint32 *) mem; mem += domain->hash_size * sizeof (nls_uint32); /* Compute the system dependent strings. */ k = 0; for (i = 0; i < n_sysdep_strings; i++) { int valid = 1; for (j = 0; j < 2; j++) { const struct sysdep_string *sysdep_string = (const struct sysdep_string *) ((char *) data + W (domain->must_swap, j == 0 ? orig_sysdep_tab[i] : trans_sysdep_tab[i])); const struct segment_pair *p = sysdep_string->segments; if (W (domain->must_swap, p->sysdepref) != SEGMENTS_END) for (p = sysdep_string->segments;; p++) { nls_uint32 sysdepref; sysdepref = W (domain->must_swap, p->sysdepref); if (sysdepref == SEGMENTS_END) break; if (sysdep_segment_values[sysdepref] == NULL) { /* This particular string pair is invalid. */ valid = 0; break; } } if (!valid) break; } if (valid) { for (j = 0; j < 2; j++) { const struct sysdep_string *sysdep_string = (const struct sysdep_string *) ((char *) data + W (domain->must_swap, j == 0 ? orig_sysdep_tab[i] : trans_sysdep_tab[i])); const char *static_segments = (char *) data + W (domain->must_swap, sysdep_string->offset); const struct segment_pair *p = sysdep_string->segments; /* Concatenate the segments, and fill inmem_orig_sysdep_tab[k] (for j == 0) and inmem_trans_sysdep_tab[k] (for j == 1). */ struct sysdep_string_desc *inmem_tab_entry = (j == 0 ? inmem_orig_sysdep_tab : inmem_trans_sysdep_tab) + k; if (W (domain->must_swap, p->sysdepref) == SEGMENTS_END) { /* Only one static segment. */ inmem_tab_entry->length = W (domain->must_swap, p->segsize); inmem_tab_entry->pointer = static_segments; } else { inmem_tab_entry->pointer = mem; for (p = sysdep_string->segments;; p++) { nls_uint32 segsize = W (domain->must_swap, p->segsize); nls_uint32 sysdepref = W (domain->must_swap, p->sysdepref); size_t n; if (segsize > 0) { memcpy (mem, static_segments, segsize); mem += segsize; static_segments += segsize; } if (sysdepref == SEGMENTS_END) break; n = strlen (sysdep_segment_values[sysdepref]); memcpy (mem, sysdep_segment_values[sysdepref], n); mem += n; } inmem_tab_entry->length = mem - inmem_tab_entry->pointer; } } k++; } } if (k != n_inmem_sysdep_strings) abort (); /* Compute the augmented hash table. */ for (i = 0; i < domain->hash_size; i++) inmem_hash_tab[i] = W (domain->must_swap_hash_tab, domain->hash_tab[i]); for (i = 0; i < n_inmem_sysdep_strings; i++) { const char *msgid = inmem_orig_sysdep_tab[i].pointer; nls_uint32 hash_val = hash_string (msgid); nls_uint32 idx = hash_val % domain->hash_size; nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2)); for (;;) { if (inmem_hash_tab[idx] == 0) { /* Hash table entry is empty. Use it. */ inmem_hash_tab[idx] = 1 + domain->nstrings + i; break; } if (idx >= domain->hash_size - incr) idx -= domain->hash_size - incr; else idx += incr; } } domain->n_sysdep_strings = n_inmem_sysdep_strings; domain->orig_sysdep_tab = inmem_orig_sysdep_tab; domain->trans_sysdep_tab = inmem_trans_sysdep_tab; domain->hash_tab = inmem_hash_tab; domain->must_swap_hash_tab = 0; } else { domain->n_sysdep_strings = 0; domain->orig_sysdep_tab = NULL; domain->trans_sysdep_tab = NULL; } freea (sysdep_segment_values); } else { domain->n_sysdep_strings = 0; domain->orig_sysdep_tab = NULL; domain->trans_sysdep_tab = NULL; } } break; } break; default: /* This is an invalid revision. */ invalid: /* This is an invalid .mo file. */ if (domain->malloced) free (domain->malloced); #ifdef HAVE_MMAP if (use_mmap) munmap ((caddr_t) data, size); else #endif free (data); free (domain); domain_file->data = NULL; return; } /* Now initialize the character set converter from the character set the file is encoded with (found in the header entry) to the domain's specified character set or the locale's character set. */ nullentry = _nl_init_domain_conv (domain_file, domain, domainbinding); /* Also look for a plural specification. */ EXTRACT_PLURAL_EXPRESSION (nullentry, &domain->plural, &domain->nplurals); } #ifdef _LIBC void internal_function _nl_unload_domain (struct loaded_domain *domain) { if (domain->plural != &__gettext_germanic_plural) __gettext_free_exp (domain->plural); _nl_free_domain_conv (domain); if (domain->malloced) free (domain->malloced); # ifdef _POSIX_MAPPED_FILES if (domain->use_mmap) munmap ((caddr_t) domain->data, domain->mmap_size); else # endif /* _POSIX_MAPPED_FILES */ free ((void *) domain->data); free (domain); } #endif sweep-0.9.3/intl/dcngettext.c0000644000175000017500000000347410777660165014676 0ustar useruser/* Implementation of the dcngettext(3) function. Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCNGETTEXT __dcngettext # define DCIGETTEXT __dcigettext #else # define DCNGETTEXT libintl_dcngettext # define DCIGETTEXT libintl_dcigettext #endif /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ char * DCNGETTEXT (const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n, int category) { return DCIGETTEXT (domainname, msgid1, msgid2, 1, n, category); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dcngettext, dcngettext); #endif sweep-0.9.3/intl/dcigettext.c0000644000175000017500000010415610777660165014670 0ustar useruser/* Implementation of the internal dcigettext function. Copyright (C) 1995-1999, 2000-2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for mempcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # ifdef _MSC_VER # include # define alloca _alloca # else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif # endif #endif #include #ifndef errno extern int errno; #endif #ifndef __set_errno # define __set_errno(val) errno = (val) #endif #include #include #include #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #include #ifdef _LIBC /* Guess whether integer division by zero raises signal SIGFPE. Set to 1 only if you know for sure. In case of doubt, set to 0. */ # if defined __alpha__ || defined __arm__ || defined __i386__ \ || defined __m68k__ || defined __s390__ # define INTDIV0_RAISES_SIGFPE 1 # else # define INTDIV0_RAISES_SIGFPE 0 # endif #endif #if !INTDIV0_RAISES_SIGFPE # include #endif #if defined HAVE_SYS_PARAM_H || defined _LIBC # include #endif #include "gettextP.h" #include "plural-exp.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif #include "hash-string.h" /* Thread safetyness. */ #ifdef _LIBC # include #else /* Provide dummy implementation if this is outside glibc. */ # define __libc_lock_define_initialized(CLASS, NAME) # define __libc_lock_lock(NAME) # define __libc_lock_unlock(NAME) # define __libc_rwlock_define_initialized(CLASS, NAME) # define __libc_rwlock_rdlock(NAME) # define __libc_rwlock_unlock(NAME) #endif /* Alignment of types. */ #if defined __GNUC__ && __GNUC__ >= 2 # define alignof(TYPE) __alignof__ (TYPE) #else # define alignof(TYPE) \ ((int) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2) #endif /* The internal variables in the standalone libintl.a must have different names than the internal variables in GNU libc, otherwise programs using libintl.a cannot be linked statically. */ #if !defined _LIBC # define _nl_default_default_domain libintl_nl_default_default_domain # define _nl_current_default_domain libintl_nl_current_default_domain # define _nl_default_dirname libintl_nl_default_dirname # define _nl_domain_bindings libintl_nl_domain_bindings #endif /* Some compilers, like SunOS4 cc, don't have offsetof in . */ #ifndef offsetof # define offsetof(type,ident) ((size_t)&(((type*)0)->ident)) #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object file and the name space must not be polluted. */ # define getcwd __getcwd # ifndef stpcpy # define stpcpy __stpcpy # endif # define tfind __tfind #else # if !defined HAVE_GETCWD char *getwd (); # define getcwd(buf, max) getwd (buf) # else # if VMS # define getcwd(buf, max) (getcwd) (buf, max, 0) # else char *getcwd (); # endif # endif # ifndef HAVE_STPCPY static char *stpcpy (char *dest, const char *src); # endif # ifndef HAVE_MEMPCPY static void *mempcpy (void *dest, const void *src, size_t n); # endif #endif /* Amount to increase buffer size by in each try. */ #define PATH_INCR 32 /* The following is from pathmax.h. */ /* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define PATH_MAX but might cause redefinition warnings when sys/param.h is later included (as on MORE/BSD 4.3). */ #if defined _POSIX_VERSION || (defined HAVE_LIMITS_H && !defined __GNUC__) # include #endif #ifndef _POSIX_PATH_MAX # define _POSIX_PATH_MAX 255 #endif #if !defined PATH_MAX && defined _PC_PATH_MAX # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX)) #endif /* Don't include sys/param.h if it already has been. */ #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN # include #endif #if !defined PATH_MAX && defined MAXPATHLEN # define PATH_MAX MAXPATHLEN #endif #ifndef PATH_MAX # define PATH_MAX _POSIX_PATH_MAX #endif /* Pathname support. ISSLASH(C) tests whether C is a directory separator character. IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not, it may be concatenated to a directory pathname. IS_PATH_WITH_DIR(P) tests whether P contains a directory specification. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') # define HAS_DEVICE(P) \ ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ && (P)[1] == ':') # define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P)) # define IS_PATH_WITH_DIR(P) \ (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P)) #else /* Unix */ # define ISSLASH(C) ((C) == '/') # define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0]) # define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL) #endif /* This is the type used for the search tree where known translations are stored. */ struct known_translation_t { /* Domain in which to search. */ char *domainname; /* The category. */ int category; /* State of the catalog counter at the point the string was found. */ int counter; /* Catalog where the string was found. */ struct loaded_l10nfile *domain; /* And finally the translation. */ const char *translation; size_t translation_length; /* Pointer to the string in question. */ char msgid[ZERO]; }; /* Root of the search tree with known translations. We can use this only if the system provides the `tsearch' function family. */ #if defined HAVE_TSEARCH || defined _LIBC # include static void *root; # ifdef _LIBC # define tsearch __tsearch # endif /* Function to compare two entries in the table of known translations. */ static int transcmp (const void *p1, const void *p2) { const struct known_translation_t *s1; const struct known_translation_t *s2; int result; s1 = (const struct known_translation_t *) p1; s2 = (const struct known_translation_t *) p2; result = strcmp (s1->msgid, s2->msgid); if (result == 0) { result = strcmp (s1->domainname, s2->domainname); if (result == 0) /* We compare the category last (though this is the cheapest operation) since it is hopefully always the same (namely LC_MESSAGES). */ result = s1->category - s2->category; } return result; } #endif #ifndef INTVARDEF # define INTVARDEF(name) #endif #ifndef INTUSE # define INTUSE(name) name #endif /* Name of the default domain used for gettext(3) prior any call to textdomain(3). The default value for this is "messages". */ const char _nl_default_default_domain[] attribute_hidden = "messages"; /* Value used as the default domain for gettext(3). */ const char *_nl_current_default_domain attribute_hidden = _nl_default_default_domain; /* Contains the default location of the message catalogs. */ #if defined __EMX__ extern const char _nl_default_dirname[]; #else const char _nl_default_dirname[] = LOCALEDIR; INTVARDEF (_nl_default_dirname) #endif /* List with bindings of specific domains created by bindtextdomain() calls. */ struct binding *_nl_domain_bindings; /* Prototypes for local functions. */ static char *plural_lookup (struct loaded_l10nfile *domain, unsigned long int n, const char *translation, size_t translation_len) internal_function; static const char *guess_category_value (int category, const char *categoryname) internal_function; #ifdef _LIBC # include "../locale/localeinfo.h" # define category_to_name(category) _nl_category_names[category] #else static const char *category_to_name (int category) internal_function; #endif /* For those loosing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA /* Nothing has to be done. */ # define freea(p) /* nothing */ # define ADD_BLOCK(list, address) /* nothing */ # define FREE_BLOCKS(list) /* nothing */ #else struct block_list { void *address; struct block_list *next; }; # define ADD_BLOCK(list, addr) \ do { \ struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ /* If we cannot get a free block we cannot add the new element to \ the list. */ \ if (newp != NULL) { \ newp->address = (addr); \ newp->next = (list); \ (list) = newp; \ } \ } while (0) # define FREE_BLOCKS(list) \ do { \ while (list != NULL) { \ struct block_list *old = list; \ list = list->next; \ free (old->address); \ free (old); \ } \ } while (0) # undef alloca # define alloca(size) (malloc (size)) # define freea(p) free (p) #endif /* have alloca */ #ifdef _LIBC /* List of blocks allocated for translations. */ typedef struct transmem_list { struct transmem_list *next; char data[ZERO]; } transmem_block_t; static struct transmem_list *transmem_list; #else typedef unsigned char transmem_block_t; #endif /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCIGETTEXT __dcigettext #else # define DCIGETTEXT libintl_dcigettext #endif /* Lock variable to protect the global data in the gettext implementation. */ #ifdef _LIBC __libc_rwlock_define_initialized (, _nl_state_lock attribute_hidden) #endif /* Checking whether the binaries runs SUID must be done and glibc provides easier methods therefore we make a difference here. */ #ifdef _LIBC # define ENABLE_SECURE __libc_enable_secure # define DETERMINE_SECURE #else # ifndef HAVE_GETUID # define getuid() 0 # endif # ifndef HAVE_GETGID # define getgid() 0 # endif # ifndef HAVE_GETEUID # define geteuid() getuid() # endif # ifndef HAVE_GETEGID # define getegid() getgid() # endif static int enable_secure; # define ENABLE_SECURE (enable_secure == 1) # define DETERMINE_SECURE \ if (enable_secure == 0) \ { \ if (getuid () != geteuid () || getgid () != getegid ()) \ enable_secure = 1; \ else \ enable_secure = -1; \ } #endif /* Get the function to evaluate the plural expression. */ #include "eval-plural.h" /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale and, if PLURAL is nonzero, search over string depending on the plural form determined by N. */ char * DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2, int plural, unsigned long int n, int category) { #ifndef HAVE_ALLOCA struct block_list *block_list = NULL; #endif struct loaded_l10nfile *domain; struct binding *binding; const char *categoryname; const char *categoryvalue; char *dirname, *xdomainname; char *single_locale; char *retval; size_t retlen; int saved_errno; #if defined HAVE_TSEARCH || defined _LIBC struct known_translation_t *search; struct known_translation_t **foundp = NULL; size_t msgid_len; #endif size_t domainname_len; /* If no real MSGID is given return NULL. */ if (msgid1 == NULL) return NULL; #ifdef _LIBC if (category < 0 || category >= __LC_LAST || category == LC_ALL) /* Bogus. */ return (plural == 0 ? (char *) msgid1 /* Use the Germanic plural rule. */ : n == 1 ? (char *) msgid1 : (char *) msgid2); #endif __libc_rwlock_rdlock (_nl_state_lock); /* If DOMAINNAME is NULL, we are interested in the default domain. If CATEGORY is not LC_MESSAGES this might not make much sense but the definition left this undefined. */ if (domainname == NULL) domainname = _nl_current_default_domain; /* OS/2 specific: backward compatibility with older libintl versions */ #ifdef LC_MESSAGES_COMPAT if (category == LC_MESSAGES_COMPAT) category = LC_MESSAGES; #endif #if defined HAVE_TSEARCH || defined _LIBC msgid_len = strlen (msgid1) + 1; /* Try to find the translation among those which we found at some time. */ search = (struct known_translation_t *) alloca (offsetof (struct known_translation_t, msgid) + msgid_len); memcpy (search->msgid, msgid1, msgid_len); search->domainname = (char *) domainname; search->category = category; foundp = (struct known_translation_t **) tfind (search, &root, transcmp); freea (search); if (foundp != NULL && (*foundp)->counter == _nl_msg_cat_cntr) { /* Now deal with plural. */ if (plural) retval = plural_lookup ((*foundp)->domain, n, (*foundp)->translation, (*foundp)->translation_length); else retval = (char *) (*foundp)->translation; __libc_rwlock_unlock (_nl_state_lock); return retval; } #endif /* Preserve the `errno' value. */ saved_errno = errno; /* See whether this is a SUID binary or not. */ DETERMINE_SECURE; /* First find matching binding. */ for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) { int compare = strcmp (domainname, binding->domainname); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It is not in the list. */ binding = NULL; break; } } if (binding == NULL) dirname = (char *) INTUSE(_nl_default_dirname); else if (IS_ABSOLUTE_PATH (binding->dirname)) dirname = binding->dirname; else { /* We have a relative path. Make it absolute now. */ size_t dirname_len = strlen (binding->dirname) + 1; size_t path_max; char *ret; path_max = (unsigned int) PATH_MAX; path_max += 2; /* The getcwd docs say to do this. */ for (;;) { dirname = (char *) alloca (path_max + dirname_len); ADD_BLOCK (block_list, dirname); __set_errno (0); ret = getcwd (dirname, path_max); if (ret != NULL || errno != ERANGE) break; path_max += path_max / 2; path_max += PATH_INCR; } if (ret == NULL) /* We cannot get the current working directory. Don't signal an error but simply return the default string. */ goto return_untranslated; stpcpy (stpcpy (strchr (dirname, '\0'), "/"), binding->dirname); } /* Now determine the symbolic name of CATEGORY and its value. */ categoryname = category_to_name (category); categoryvalue = guess_category_value (category, categoryname); domainname_len = strlen (domainname); xdomainname = (char *) alloca (strlen (categoryname) + domainname_len + 5); ADD_BLOCK (block_list, xdomainname); stpcpy (mempcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"), domainname, domainname_len), ".mo"); /* Creating working area. */ single_locale = (char *) alloca (strlen (categoryvalue) + 1); ADD_BLOCK (block_list, single_locale); /* Search for the given string. This is a loop because we perhaps got an ordered list of languages to consider for the translation. */ while (1) { /* Make CATEGORYVALUE point to the next element of the list. */ while (categoryvalue[0] != '\0' && categoryvalue[0] == ':') ++categoryvalue; if (categoryvalue[0] == '\0') { /* The whole contents of CATEGORYVALUE has been searched but no valid entry has been found. We solve this situation by implicitly appending a "C" entry, i.e. no translation will take place. */ single_locale[0] = 'C'; single_locale[1] = '\0'; } else { char *cp = single_locale; while (categoryvalue[0] != '\0' && categoryvalue[0] != ':') *cp++ = *categoryvalue++; *cp = '\0'; /* When this is a SUID binary we must not allow accessing files outside the dedicated directories. */ if (ENABLE_SECURE && IS_PATH_WITH_DIR (single_locale)) /* Ingore this entry. */ continue; } /* If the current locale value is C (or POSIX) we don't load a domain. Return the MSGID. */ if (strcmp (single_locale, "C") == 0 || strcmp (single_locale, "POSIX") == 0) break; /* Find structure describing the message catalog matching the DOMAINNAME and CATEGORY. */ domain = _nl_find_domain (dirname, single_locale, xdomainname, binding); if (domain != NULL) { retval = _nl_find_msg (domain, binding, msgid1, &retlen); if (retval == NULL) { int cnt; for (cnt = 0; domain->successor[cnt] != NULL; ++cnt) { retval = _nl_find_msg (domain->successor[cnt], binding, msgid1, &retlen); if (retval != NULL) { domain = domain->successor[cnt]; break; } } } if (retval != NULL) { /* Found the translation of MSGID1 in domain DOMAIN: starting at RETVAL, RETLEN bytes. */ FREE_BLOCKS (block_list); #if defined HAVE_TSEARCH || defined _LIBC if (foundp == NULL) { /* Create a new entry and add it to the search tree. */ struct known_translation_t *newp; newp = (struct known_translation_t *) malloc (offsetof (struct known_translation_t, msgid) + msgid_len + domainname_len + 1); if (newp != NULL) { newp->domainname = mempcpy (newp->msgid, msgid1, msgid_len); memcpy (newp->domainname, domainname, domainname_len + 1); newp->category = category; newp->counter = _nl_msg_cat_cntr; newp->domain = domain; newp->translation = retval; newp->translation_length = retlen; /* Insert the entry in the search tree. */ foundp = (struct known_translation_t **) tsearch (newp, &root, transcmp); if (foundp == NULL || __builtin_expect (*foundp != newp, 0)) /* The insert failed. */ free (newp); } } else { /* We can update the existing entry. */ (*foundp)->counter = _nl_msg_cat_cntr; (*foundp)->domain = domain; (*foundp)->translation = retval; (*foundp)->translation_length = retlen; } #endif __set_errno (saved_errno); /* Now deal with plural. */ if (plural) retval = plural_lookup (domain, n, retval, retlen); __libc_rwlock_unlock (_nl_state_lock); return retval; } } } return_untranslated: /* Return the untranslated MSGID. */ FREE_BLOCKS (block_list); __libc_rwlock_unlock (_nl_state_lock); #ifndef _LIBC if (!ENABLE_SECURE) { extern void _nl_log_untranslated (const char *logfilename, const char *domainname, const char *msgid1, const char *msgid2, int plural); const char *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED"); if (logfilename != NULL && logfilename[0] != '\0') _nl_log_untranslated (logfilename, domainname, msgid1, msgid2, plural); } #endif __set_errno (saved_errno); return (plural == 0 ? (char *) msgid1 /* Use the Germanic plural rule. */ : n == 1 ? (char *) msgid1 : (char *) msgid2); } char * internal_function _nl_find_msg (struct loaded_l10nfile *domain_file, struct binding *domainbinding, const char *msgid, size_t *lengthp) { struct loaded_domain *domain; nls_uint32 nstrings; size_t act; char *result; size_t resultlen; if (domain_file->decided == 0) _nl_load_domain (domain_file, domainbinding); if (domain_file->data == NULL) return NULL; domain = (struct loaded_domain *) domain_file->data; nstrings = domain->nstrings; /* Locate the MSGID and its translation. */ if (domain->hash_tab != NULL) { /* Use the hashing table. */ nls_uint32 len = strlen (msgid); nls_uint32 hash_val = hash_string (msgid); nls_uint32 idx = hash_val % domain->hash_size; nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2)); while (1) { nls_uint32 nstr = W (domain->must_swap_hash_tab, domain->hash_tab[idx]); if (nstr == 0) /* Hash table entry is empty. */ return NULL; nstr--; /* Compare msgid with the original string at index nstr. We compare the lengths with >=, not ==, because plural entries are represented by strings with an embedded NUL. */ if (nstr < nstrings ? W (domain->must_swap, domain->orig_tab[nstr].length) >= len && (strcmp (msgid, domain->data + W (domain->must_swap, domain->orig_tab[nstr].offset)) == 0) : domain->orig_sysdep_tab[nstr - nstrings].length > len && (strcmp (msgid, domain->orig_sysdep_tab[nstr - nstrings].pointer) == 0)) { act = nstr; goto found; } if (idx >= domain->hash_size - incr) idx -= domain->hash_size - incr; else idx += incr; } /* NOTREACHED */ } else { /* Try the default method: binary search in the sorted array of messages. */ size_t top, bottom; bottom = 0; top = nstrings; while (bottom < top) { int cmp_val; act = (bottom + top) / 2; cmp_val = strcmp (msgid, (domain->data + W (domain->must_swap, domain->orig_tab[act].offset))); if (cmp_val < 0) top = act; else if (cmp_val > 0) bottom = act + 1; else goto found; } /* No translation was found. */ return NULL; } found: /* The translation was found at index ACT. If we have to convert the string to use a different character set, this is the time. */ if (act < nstrings) { result = (char *) (domain->data + W (domain->must_swap, domain->trans_tab[act].offset)); resultlen = W (domain->must_swap, domain->trans_tab[act].length) + 1; } else { result = (char *) domain->trans_sysdep_tab[act - nstrings].pointer; resultlen = domain->trans_sysdep_tab[act - nstrings].length; } #if defined _LIBC || HAVE_ICONV if (domain->codeset_cntr != (domainbinding != NULL ? domainbinding->codeset_cntr : 0)) { /* The domain's codeset has changed through bind_textdomain_codeset() since the message catalog was initialized or last accessed. We have to reinitialize the converter. */ _nl_free_domain_conv (domain); _nl_init_domain_conv (domain_file, domain, domainbinding); } if ( # ifdef _LIBC domain->conv != (__gconv_t) -1 # else # if HAVE_ICONV domain->conv != (iconv_t) -1 # endif # endif ) { /* We are supposed to do a conversion. First allocate an appropriate table with the same structure as the table of translations in the file, where we can put the pointers to the converted strings in. There is a slight complication with plural entries. They are represented by consecutive NUL terminated strings. We handle this case by converting RESULTLEN bytes, including NULs. */ if (domain->conv_tab == NULL && ((domain->conv_tab = (char **) calloc (nstrings + domain->n_sysdep_strings, sizeof (char *))) == NULL)) /* Mark that we didn't succeed allocating a table. */ domain->conv_tab = (char **) -1; if (__builtin_expect (domain->conv_tab == (char **) -1, 0)) /* Nothing we can do, no more memory. */ goto converted; if (domain->conv_tab[act] == NULL) { /* We haven't used this string so far, so it is not translated yet. Do this now. */ /* We use a bit more efficient memory handling. We allocate always larger blocks which get used over time. This is faster than many small allocations. */ __libc_lock_define_initialized (static, lock) # define INITIAL_BLOCK_SIZE 4080 static unsigned char *freemem; static size_t freemem_size; const unsigned char *inbuf; unsigned char *outbuf; int malloc_count; # ifndef _LIBC transmem_block_t *transmem_list = NULL; # endif __libc_lock_lock (lock); inbuf = (const unsigned char *) result; outbuf = freemem + sizeof (size_t); malloc_count = 0; while (1) { transmem_block_t *newmem; # ifdef _LIBC size_t non_reversible; int res; if (freemem_size < sizeof (size_t)) goto resize_freemem; res = __gconv (domain->conv, &inbuf, inbuf + resultlen, &outbuf, outbuf + freemem_size - sizeof (size_t), &non_reversible); if (res == __GCONV_OK || res == __GCONV_EMPTY_INPUT) break; if (res != __GCONV_FULL_OUTPUT) { __libc_lock_unlock (lock); goto converted; } inbuf = result; # else # if HAVE_ICONV const char *inptr = (const char *) inbuf; size_t inleft = resultlen; char *outptr = (char *) outbuf; size_t outleft; if (freemem_size < sizeof (size_t)) goto resize_freemem; outleft = freemem_size - sizeof (size_t); if (iconv (domain->conv, (ICONV_CONST char **) &inptr, &inleft, &outptr, &outleft) != (size_t) (-1)) { outbuf = (unsigned char *) outptr; break; } if (errno != E2BIG) { __libc_lock_unlock (lock); goto converted; } # endif # endif resize_freemem: /* We must allocate a new buffer or resize the old one. */ if (malloc_count > 0) { ++malloc_count; freemem_size = malloc_count * INITIAL_BLOCK_SIZE; newmem = (transmem_block_t *) realloc (transmem_list, freemem_size); # ifdef _LIBC if (newmem != NULL) transmem_list = transmem_list->next; else { struct transmem_list *old = transmem_list; transmem_list = transmem_list->next; free (old); } # endif } else { malloc_count = 1; freemem_size = INITIAL_BLOCK_SIZE; newmem = (transmem_block_t *) malloc (freemem_size); } if (__builtin_expect (newmem == NULL, 0)) { freemem = NULL; freemem_size = 0; __libc_lock_unlock (lock); goto converted; } # ifdef _LIBC /* Add the block to the list of blocks we have to free at some point. */ newmem->next = transmem_list; transmem_list = newmem; freemem = newmem->data; freemem_size -= offsetof (struct transmem_list, data); # else transmem_list = newmem; freemem = newmem; # endif outbuf = freemem + sizeof (size_t); } /* We have now in our buffer a converted string. Put this into the table of conversions. */ *(size_t *) freemem = outbuf - freemem - sizeof (size_t); domain->conv_tab[act] = (char *) freemem; /* Shrink freemem, but keep it aligned. */ freemem_size -= outbuf - freemem; freemem = outbuf; freemem += freemem_size & (alignof (size_t) - 1); freemem_size = freemem_size & ~ (alignof (size_t) - 1); __libc_lock_unlock (lock); } /* Now domain->conv_tab[act] contains the translation of all the plural variants. */ result = domain->conv_tab[act] + sizeof (size_t); resultlen = *(size_t *) domain->conv_tab[act]; } converted: /* The result string is converted. */ #endif /* _LIBC || HAVE_ICONV */ *lengthp = resultlen; return result; } /* Look up a plural variant. */ static char * internal_function plural_lookup (struct loaded_l10nfile *domain, unsigned long int n, const char *translation, size_t translation_len) { struct loaded_domain *domaindata = (struct loaded_domain *) domain->data; unsigned long int index; const char *p; index = plural_eval (domaindata->plural, n); if (index >= domaindata->nplurals) /* This should never happen. It means the plural expression and the given maximum value do not match. */ index = 0; /* Skip INDEX strings at TRANSLATION. */ p = translation; while (index-- > 0) { #ifdef _LIBC p = __rawmemchr (p, '\0'); #else p = strchr (p, '\0'); #endif /* And skip over the NUL byte. */ p++; if (p >= translation + translation_len) /* This should never happen. It means the plural expression evaluated to a value larger than the number of variants available for MSGID1. */ return (char *) translation; } return (char *) p; } #ifndef _LIBC /* Return string representation of locale CATEGORY. */ static const char * internal_function category_to_name (int category) { const char *retval; switch (category) { #ifdef LC_COLLATE case LC_COLLATE: retval = "LC_COLLATE"; break; #endif #ifdef LC_CTYPE case LC_CTYPE: retval = "LC_CTYPE"; break; #endif #ifdef LC_MONETARY case LC_MONETARY: retval = "LC_MONETARY"; break; #endif #ifdef LC_NUMERIC case LC_NUMERIC: retval = "LC_NUMERIC"; break; #endif #ifdef LC_TIME case LC_TIME: retval = "LC_TIME"; break; #endif #ifdef LC_MESSAGES case LC_MESSAGES: retval = "LC_MESSAGES"; break; #endif #ifdef LC_RESPONSE case LC_RESPONSE: retval = "LC_RESPONSE"; break; #endif #ifdef LC_ALL case LC_ALL: /* This might not make sense but is perhaps better than any other value. */ retval = "LC_ALL"; break; #endif default: /* If you have a better idea for a default value let me know. */ retval = "LC_XXX"; } return retval; } #endif /* Guess value of current locale from value of the environment variables or system-dependent defaults. */ static const char * internal_function guess_category_value (int category, const char *categoryname) { const char *language; const char *locale; #ifndef _LIBC const char *language_default; int locale_defaulted; #endif /* We use the settings in the following order: 1. The value of the environment variable 'LANGUAGE'. This is a GNU extension. Its value can be a colon-separated list of locale names. 2. The value of the environment variable 'LC_ALL', 'LC_xxx', or 'LANG'. More precisely, the first among these that is set to a non-empty value. This is how POSIX specifies it. The value is a single locale name. 3. A system-dependent preference list of languages. Its value can be a colon-separated list of locale names. 4. A system-dependent default locale name. This way: - System-dependent settings can be overridden by environment variables. - If the system provides both a list of languages and a default locale, the former is used. */ /* Fetch the locale name, through the POSIX method of looking to `LC_ALL', `LC_xxx', and `LANG'. On some systems this can be done by the `setlocale' function itself. */ #ifdef _LIBC locale = __current_locale_name (category); #else locale = _nl_locale_name_posix (category, categoryname); locale_defaulted = 0; if (locale == NULL) { locale = _nl_locale_name_default (); locale_defaulted = 1; } #endif /* Ignore LANGUAGE and its system-dependent analogon if the locale is set to "C" because 1. "C" locale usually uses the ASCII encoding, and most international messages use non-ASCII characters. These characters get displayed as question marks (if using glibc's iconv()) or as invalid 8-bit characters (because other iconv()s refuse to convert most non-ASCII characters to ASCII). In any case, the output is ugly. 2. The precise output of some programs in the "C" locale is specified by POSIX and should not depend on environment variables like "LANGUAGE" or system-dependent information. We allow such programs to use gettext(). */ if (strcmp (locale, "C") == 0) return locale; /* The highest priority value is the value of the 'LANGUAGE' environment variable. */ language = getenv ("LANGUAGE"); if (language != NULL && language[0] != '\0') return language; #ifndef _LIBC /* The next priority value is the locale name, if not defaulted. */ if (locale_defaulted) { /* The next priority value is the default language preferences list. */ language_default = _nl_language_preferences_default (); if (language_default != NULL) return language_default; } /* The least priority value is the locale name, if defaulted. */ #endif return locale; } /* @@ begin of epilog @@ */ /* We don't want libintl.a to depend on any other library. So we avoid the non-standard function stpcpy. In GNU C Library this function is available, though. Also allow the symbol HAVE_STPCPY to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (char *dest, const char *src) { while ((*dest++ = *src++) != '\0') /* Do nothing. */ ; return dest - 1; } #endif #if !_LIBC && !HAVE_MEMPCPY static void * mempcpy (void *dest, const void *src, size_t n) { return (void *) ((char *) memcpy (dest, src, n) + n); } #endif #ifdef _LIBC /* If we want to free all resources we have to do some work at program's end. */ libc_freeres_fn (free_mem) { void *old; while (_nl_domain_bindings != NULL) { struct binding *oldp = _nl_domain_bindings; _nl_domain_bindings = _nl_domain_bindings->next; if (oldp->dirname != INTUSE(_nl_default_dirname)) /* Yes, this is a pointer comparison. */ free (oldp->dirname); free (oldp->codeset); free (oldp); } if (_nl_current_default_domain != _nl_default_default_domain) /* Yes, again a pointer comparison. */ free ((char *) _nl_current_default_domain); /* Remove the search tree with the known translations. */ __tdestroy (root, free); root = NULL; while (transmem_list != NULL) { old = transmem_list; transmem_list = transmem_list->next; free (old); } } #endif sweep-0.9.3/intl/printf.c0000644000175000017500000001577110777660165014032 0ustar useruser/* Formatted output to strings, using POSIX/XSI format strings with positions. Copyright (C) 2003 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # ifdef _MSC_VER # include # define alloca _alloca # else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif # endif #endif #include #if !HAVE_POSIX_PRINTF #include #include /* When building a DLL, we must export some functions. Note that because the functions are only defined for binary backward compatibility, we don't need to use __declspec(dllimport) in any case. */ #if defined _MSC_VER && BUILDING_DLL # define DLL_EXPORTED __declspec(dllexport) #else # define DLL_EXPORTED #endif #define STATIC static /* Define auxiliary functions declared in "printf-args.h". */ #include "printf-args.c" /* Define auxiliary functions declared in "printf-parse.h". */ #include "printf-parse.c" /* Define functions declared in "vasnprintf.h". */ #define vasnprintf libintl_vasnprintf #include "vasnprintf.c" #if 0 /* not needed */ #define asnprintf libintl_asnprintf #include "asnprintf.c" #endif DLL_EXPORTED int libintl_vfprintf (FILE *stream, const char *format, va_list args) { if (strchr (format, '$') == NULL) return vfprintf (stream, format, args); else { size_t length; char *result = libintl_vasnprintf (NULL, &length, format, args); int retval = -1; if (result != NULL) { if (fwrite (result, 1, length, stream) == length) retval = length; free (result); } return retval; } } DLL_EXPORTED int libintl_fprintf (FILE *stream, const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vfprintf (stream, format, args); va_end (args); return retval; } DLL_EXPORTED int libintl_vprintf (const char *format, va_list args) { return libintl_vfprintf (stdout, format, args); } DLL_EXPORTED int libintl_printf (const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vprintf (format, args); va_end (args); return retval; } #if HAVE_SNPRINTF # if HAVE_DECL__SNPRINTF /* Windows. */ # define system_vsnprintf _vsnprintf # else /* Unix. */ # define system_vsnprintf vsnprintf # endif DLL_EXPORTED int libintl_vsnprintf (char *resultbuf, size_t length, const char *format, va_list args) { if (strchr (format, '$') == NULL) return system_vsnprintf (resultbuf, length, format, args); else { size_t maxlength = length; char *result = libintl_vasnprintf (resultbuf, &length, format, args); if (result != resultbuf) { if (maxlength > 0) { if (length < maxlength) abort (); memcpy (resultbuf, result, maxlength - 1); resultbuf[maxlength - 1] = '\0'; } free (result); return -1; } else return length; } } DLL_EXPORTED int libintl_snprintf (char *resultbuf, size_t length, const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vsnprintf (resultbuf, length, format, args); va_end (args); return retval; } #endif #if HAVE_ASPRINTF DLL_EXPORTED int libintl_vasprintf (char **resultp, const char *format, va_list args) { size_t length; char *result = libintl_vasnprintf (NULL, &length, format, args); if (result == NULL) return -1; *resultp = result; return length; } DLL_EXPORTED int libintl_asprintf (char **resultp, const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vasprintf (resultp, format, args); va_end (args); return retval; } #endif #if HAVE_FWPRINTF #include #define WIDE_CHAR_VERSION 1 /* Define auxiliary functions declared in "wprintf-parse.h". */ #include "printf-parse.c" /* Define functions declared in "vasnprintf.h". */ #define vasnwprintf libintl_vasnwprintf #include "vasnprintf.c" #if 0 /* not needed */ #define asnwprintf libintl_asnwprintf #include "asnprintf.c" #endif # if HAVE_DECL__SNWPRINTF /* Windows. */ # define system_vswprintf _vsnwprintf # else /* Unix. */ # define system_vswprintf vswprintf # endif DLL_EXPORTED int libintl_vfwprintf (FILE *stream, const wchar_t *format, va_list args) { if (wcschr (format, '$') == NULL) return vfwprintf (stream, format, args); else { size_t length; wchar_t *result = libintl_vasnwprintf (NULL, &length, format, args); int retval = -1; if (result != NULL) { size_t i; for (i = 0; i < length; i++) if (fputwc (result[i], stream) == WEOF) break; if (i == length) retval = length; free (result); } return retval; } } DLL_EXPORTED int libintl_fwprintf (FILE *stream, const wchar_t *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vfwprintf (stream, format, args); va_end (args); return retval; } DLL_EXPORTED int libintl_vwprintf (const wchar_t *format, va_list args) { return libintl_vfwprintf (stdout, format, args); } DLL_EXPORTED int libintl_wprintf (const wchar_t *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vwprintf (format, args); va_end (args); return retval; } DLL_EXPORTED int libintl_vswprintf (wchar_t *resultbuf, size_t length, const wchar_t *format, va_list args) { if (wcschr (format, '$') == NULL) return system_vswprintf (resultbuf, length, format, args); else { size_t maxlength = length; wchar_t *result = libintl_vasnwprintf (resultbuf, &length, format, args); if (result != resultbuf) { if (maxlength > 0) { if (length < maxlength) abort (); memcpy (resultbuf, result, (maxlength - 1) * sizeof (wchar_t)); resultbuf[maxlength - 1] = 0; } free (result); return -1; } else return length; } } DLL_EXPORTED int libintl_swprintf (wchar_t *resultbuf, size_t length, const wchar_t *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vswprintf (resultbuf, length, format, args); va_end (args); return retval; } #endif #endif sweep-0.9.3/intl/gettext.c0000644000175000017500000000355410777660165014210 0ustar useruser/* Implementation of gettext(3) function. Copyright (C) 1995, 1997, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef _LIBC # define __need_NULL # include #else # include /* Just for NULL. */ #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define GETTEXT __gettext # define DCGETTEXT INTUSE(__dcgettext) #else # define GETTEXT libintl_gettext # define DCGETTEXT libintl_dcgettext #endif /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ char * GETTEXT (const char *msgid) { return DCGETTEXT (NULL, msgid, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__gettext, gettext); #endif sweep-0.9.3/intl/dgettext.c0000644000175000017500000000337110777660165014351 0ustar useruser/* Implementation of the dgettext(3) function. Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #include #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DGETTEXT __dgettext # define DCGETTEXT INTUSE(__dcgettext) #else # define DGETTEXT libintl_dgettext # define DCGETTEXT libintl_dcgettext #endif /* Look up MSGID in the DOMAINNAME message catalog of the current LC_MESSAGES locale. */ char * DGETTEXT (const char *domainname, const char *msgid) { return DCGETTEXT (domainname, msgid, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dgettext, dgettext); #endif sweep-0.9.3/intl/localealias.c0000644000175000017500000002334410777660165014774 0ustar useruser/* Handle aliases for locale names. Copyright (C) 1995-1999, 2000-2001, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for mempcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #if defined _LIBC || defined HAVE___FSETLOCKING # include #endif #include #ifdef __GNUC__ # undef alloca # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # ifdef _MSC_VER # include # define alloca _alloca # else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif # endif #endif #include #include #include "gettextP.h" #if ENABLE_RELOCATABLE # include "relocatable.h" #else # define relocate(pathname) (pathname) #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object file and the name space must not be polluted. */ # define strcasecmp __strcasecmp # ifndef mempcpy # define mempcpy __mempcpy # endif # define HAVE_MEMPCPY 1 # define HAVE___FSETLOCKING 1 /* We need locking here since we can be called from different places. */ # include __libc_lock_define_initialized (static, lock); #endif #ifndef internal_function # define internal_function #endif /* Some optimizations for glibc. */ #ifdef _LIBC # define FEOF(fp) feof_unlocked (fp) # define FGETS(buf, n, fp) fgets_unlocked (buf, n, fp) #else # define FEOF(fp) feof (fp) # define FGETS(buf, n, fp) fgets (buf, n, fp) #endif /* For those losing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA # define freea(p) /* nothing */ #else # define alloca(n) malloc (n) # define freea(p) free (p) #endif #if defined _LIBC_REENTRANT || HAVE_DECL_FGETS_UNLOCKED # undef fgets # define fgets(buf, len, s) fgets_unlocked (buf, len, s) #endif #if defined _LIBC_REENTRANT || HAVE_DECL_FEOF_UNLOCKED # undef feof # define feof(s) feof_unlocked (s) #endif struct alias_map { const char *alias; const char *value; }; #ifndef _LIBC # define libc_freeres_ptr(decl) decl #endif libc_freeres_ptr (static char *string_space); static size_t string_space_act; static size_t string_space_max; libc_freeres_ptr (static struct alias_map *map); static size_t nmap; static size_t maxmap; /* Prototypes for local functions. */ static size_t read_alias_file (const char *fname, int fname_len) internal_function; static int extend_alias_table (void); static int alias_compare (const struct alias_map *map1, const struct alias_map *map2); const char * _nl_expand_alias (const char *name) { static const char *locale_alias_path; struct alias_map *retval; const char *result = NULL; size_t added; #ifdef _LIBC __libc_lock_lock (lock); #endif if (locale_alias_path == NULL) locale_alias_path = LOCALE_ALIAS_PATH; do { struct alias_map item; item.alias = name; if (nmap > 0) retval = (struct alias_map *) bsearch (&item, map, nmap, sizeof (struct alias_map), (int (*) (const void *, const void *) ) alias_compare); else retval = NULL; /* We really found an alias. Return the value. */ if (retval != NULL) { result = retval->value; break; } /* Perhaps we can find another alias file. */ added = 0; while (added == 0 && locale_alias_path[0] != '\0') { const char *start; while (locale_alias_path[0] == PATH_SEPARATOR) ++locale_alias_path; start = locale_alias_path; while (locale_alias_path[0] != '\0' && locale_alias_path[0] != PATH_SEPARATOR) ++locale_alias_path; if (start < locale_alias_path) added = read_alias_file (start, locale_alias_path - start); } } while (added != 0); #ifdef _LIBC __libc_lock_unlock (lock); #endif return result; } static size_t internal_function read_alias_file (const char *fname, int fname_len) { FILE *fp; char *full_fname; size_t added; static const char aliasfile[] = "/locale.alias"; full_fname = (char *) alloca (fname_len + sizeof aliasfile); #ifdef HAVE_MEMPCPY mempcpy (mempcpy (full_fname, fname, fname_len), aliasfile, sizeof aliasfile); #else memcpy (full_fname, fname, fname_len); memcpy (&full_fname[fname_len], aliasfile, sizeof aliasfile); #endif fp = fopen (relocate (full_fname), "r"); freea (full_fname); if (fp == NULL) return 0; #ifdef HAVE___FSETLOCKING /* No threads present. */ __fsetlocking (fp, FSETLOCKING_BYCALLER); #endif added = 0; while (!FEOF (fp)) { /* It is a reasonable approach to use a fix buffer here because a) we are only interested in the first two fields b) these fields must be usable as file names and so must not be that long We avoid a multi-kilobyte buffer here since this would use up stack space which we might not have if the program ran out of memory. */ char buf[400]; char *alias; char *value; char *cp; if (FGETS (buf, sizeof buf, fp) == NULL) /* EOF reached. */ break; cp = buf; /* Ignore leading white space. */ while (isspace ((unsigned char) cp[0])) ++cp; /* A leading '#' signals a comment line. */ if (cp[0] != '\0' && cp[0] != '#') { alias = cp++; while (cp[0] != '\0' && !isspace ((unsigned char) cp[0])) ++cp; /* Terminate alias name. */ if (cp[0] != '\0') *cp++ = '\0'; /* Now look for the beginning of the value. */ while (isspace ((unsigned char) cp[0])) ++cp; if (cp[0] != '\0') { size_t alias_len; size_t value_len; value = cp++; while (cp[0] != '\0' && !isspace ((unsigned char) cp[0])) ++cp; /* Terminate value. */ if (cp[0] == '\n') { /* This has to be done to make the following test for the end of line possible. We are looking for the terminating '\n' which do not overwrite here. */ *cp++ = '\0'; *cp = '\n'; } else if (cp[0] != '\0') *cp++ = '\0'; if (nmap >= maxmap) if (__builtin_expect (extend_alias_table (), 0)) return added; alias_len = strlen (alias) + 1; value_len = strlen (value) + 1; if (string_space_act + alias_len + value_len > string_space_max) { /* Increase size of memory pool. */ size_t new_size = (string_space_max + (alias_len + value_len > 1024 ? alias_len + value_len : 1024)); char *new_pool = (char *) realloc (string_space, new_size); if (new_pool == NULL) return added; if (__builtin_expect (string_space != new_pool, 0)) { size_t i; for (i = 0; i < nmap; i++) { map[i].alias += new_pool - string_space; map[i].value += new_pool - string_space; } } string_space = new_pool; string_space_max = new_size; } map[nmap].alias = memcpy (&string_space[string_space_act], alias, alias_len); string_space_act += alias_len; map[nmap].value = memcpy (&string_space[string_space_act], value, value_len); string_space_act += value_len; ++nmap; ++added; } } /* Possibly not the whole line fits into the buffer. Ignore the rest of the line. */ while (strchr (buf, '\n') == NULL) if (FGETS (buf, sizeof buf, fp) == NULL) /* Make sure the inner loop will be left. The outer loop will exit at the `feof' test. */ break; } /* Should we test for ferror()? I think we have to silently ignore errors. --drepper */ fclose (fp); if (added > 0) qsort (map, nmap, sizeof (struct alias_map), (int (*) (const void *, const void *)) alias_compare); return added; } static int extend_alias_table () { size_t new_size; struct alias_map *new_map; new_size = maxmap == 0 ? 100 : 2 * maxmap; new_map = (struct alias_map *) realloc (map, (new_size * sizeof (struct alias_map))); if (new_map == NULL) /* Simply don't extend: we don't have any more core. */ return -1; map = new_map; maxmap = new_size; return 0; } static int alias_compare (const struct alias_map *map1, const struct alias_map *map2) { #if defined _LIBC || defined HAVE_STRCASECMP return strcasecmp (map1->alias, map2->alias); #else const unsigned char *p1 = (const unsigned char *) map1->alias; const unsigned char *p2 = (const unsigned char *) map2->alias; unsigned char c1, c2; if (p1 == p2) return 0; do { /* I know this seems to be odd but the tolower() function in some systems libc cannot handle nonalpha characters. */ c1 = isupper (*p1) ? tolower (*p1) : *p1; c2 = isupper (*p2) ? tolower (*p2) : *p2; if (c1 == '\0') break; ++p1; ++p2; } while (c1 == c2); return c1 - c2; #endif } sweep-0.9.3/intl/ref-add.sin0000644000175000017500000000210510777660165014364 0ustar useruser# Add this package to a list of references stored in a text file. # # Copyright (C) 2000 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # # Written by Bruno Haible . # /^# Packages using this file: / { s/# Packages using this file:// ta :a s/ @PACKAGE@ / @PACKAGE@ / tb s/ $/ @PACKAGE@ / :b s/^/# Packages using this file:/ } sweep-0.9.3/intl/plural-exp.h0000644000175000017500000000773710777660165014631 0ustar useruser/* Expression parsing and evaluation for plural form selection. Copyright (C) 2000-2003 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _PLURAL_EXP_H #define _PLURAL_EXP_H #ifndef internal_function # define internal_function #endif #ifndef attribute_hidden # define attribute_hidden #endif /* This is the representation of the expressions to determine the plural form. */ struct expression { int nargs; /* Number of arguments. */ enum operator { /* Without arguments: */ var, /* The variable "n". */ num, /* Decimal number. */ /* Unary operators: */ lnot, /* Logical NOT. */ /* Binary operators: */ mult, /* Multiplication. */ divide, /* Division. */ module, /* Modulo operation. */ plus, /* Addition. */ minus, /* Subtraction. */ less_than, /* Comparison. */ greater_than, /* Comparison. */ less_or_equal, /* Comparison. */ greater_or_equal, /* Comparison. */ equal, /* Comparison for equality. */ not_equal, /* Comparison for inequality. */ land, /* Logical AND. */ lor, /* Logical OR. */ /* Ternary operators: */ qmop /* Question mark operator. */ } operation; union { unsigned long int num; /* Number value for `num'. */ struct expression *args[3]; /* Up to three arguments. */ } val; }; /* This is the data structure to pass information to the parser and get the result in a thread-safe way. */ struct parse_args { const char *cp; struct expression *res; }; /* Names for the libintl functions are a problem. This source code is used 1. in the GNU C Library library, 2. in the GNU libintl library, 3. in the GNU gettext tools. The function names in each situation must be different, to allow for binary incompatible changes in 'struct expression'. Furthermore, 1. in the GNU C Library library, the names have a __ prefix, 2.+3. in the GNU libintl library and in the GNU gettext tools, the names must follow ANSI C and not start with __. So we have to distinguish the three cases. */ #ifdef _LIBC # define FREE_EXPRESSION __gettext_free_exp # define PLURAL_PARSE __gettextparse # define GERMANIC_PLURAL __gettext_germanic_plural # define EXTRACT_PLURAL_EXPRESSION __gettext_extract_plural #elif defined (IN_LIBINTL) # define FREE_EXPRESSION libintl_gettext_free_exp # define PLURAL_PARSE libintl_gettextparse # define GERMANIC_PLURAL libintl_gettext_germanic_plural # define EXTRACT_PLURAL_EXPRESSION libintl_gettext_extract_plural #else # define FREE_EXPRESSION free_plural_expression # define PLURAL_PARSE parse_plural_expression # define GERMANIC_PLURAL germanic_plural # define EXTRACT_PLURAL_EXPRESSION extract_plural_expression #endif extern void FREE_EXPRESSION (struct expression *exp) internal_function; extern int PLURAL_PARSE (void *arg); extern struct expression GERMANIC_PLURAL attribute_hidden; extern void EXTRACT_PLURAL_EXPRESSION (const char *nullentry, struct expression **pluralp, unsigned long int *npluralsp) internal_function; #if !defined (_LIBC) && !defined (IN_LIBINTL) extern unsigned long int plural_eval (struct expression *pexp, unsigned long int n); #endif #endif /* _PLURAL_EXP_H */ sweep-0.9.3/intl/relocatable.h0000644000175000017500000000524110777660165015001 0ustar useruser/* Provide relocatable packages. Copyright (C) 2003 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _RELOCATABLE_H #define _RELOCATABLE_H #ifdef __cplusplus extern "C" { #endif /* This can be enabled through the configure --enable-relocatable option. */ #if ENABLE_RELOCATABLE /* When building a DLL, we must export some functions. Note that because this is a private .h file, we don't need to use __declspec(dllimport) in any case. */ #if defined _MSC_VER && BUILDING_DLL # define RELOCATABLE_DLL_EXPORTED __declspec(dllexport) #else # define RELOCATABLE_DLL_EXPORTED #endif /* Sets the original and the current installation prefix of the package. Relocation simply replaces a pathname starting with the original prefix by the corresponding pathname with the current prefix instead. Both prefixes should be directory names without trailing slash (i.e. use "" instead of "/"). */ extern RELOCATABLE_DLL_EXPORTED void set_relocation_prefix (const char *orig_prefix, const char *curr_prefix); /* Returns the pathname, relocated according to the current installation directory. */ extern const char * relocate (const char *pathname); /* Memory management: relocate() leaks memory, because it has to construct a fresh pathname. If this is a problem because your program calls relocate() frequently, think about caching the result. */ /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular file, and the current pathname of this file. Returns NULL upon failure. */ extern const char * compute_curr_prefix (const char *orig_installprefix, const char *orig_installdir, const char *curr_pathname); #else /* By default, we use the hardwired pathnames. */ #define relocate(pathname) (pathname) #endif #ifdef __cplusplus } #endif #endif /* _RELOCATABLE_H */ sweep-0.9.3/intl/hash-string.h0000644000175000017500000000314510777660165014754 0ustar useruser/* Description of GNU message catalog format: string hashing function. Copyright (C) 1995, 1997-1998, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* @@ end of prolog @@ */ /* We assume to have `unsigned long int' value with at least 32 bits. */ #define HASHWORDBITS 32 /* Defines the so called `hashpjw' function by P.J. Weinberger [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools, 1986, 1987 Bell Telephone Laboratories, Inc.] */ static inline unsigned long int hash_string (const char *str_param) { unsigned long int hval, g; const char *str = str_param; /* Compute the hash value for the given string. */ hval = 0; while (*str != '\0') { hval <<= 4; hval += (unsigned char) *str++; g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4)); if (g != 0) { hval ^= g >> (HASHWORDBITS - 8); hval ^= g; } } return hval; } sweep-0.9.3/configure.ac0000644000175000017500000004321310777670370013673 0ustar useruserdnl Process this file with autoconf to produce a configure script. dnl Require minimum autoconf version AC_PREREQ(2.50) AC_INIT(configure.ac) AM_INIT_AUTOMAKE(sweep, 0.9.3) AM_CONFIG_HEADER(config.h) AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC AM_PROG_LIBTOOL AC_CHECK_PROG(HAVE_GNOME_MOZ_REMOTE, 'gnome-moz-remote', yes, no) AC_C_BIGENDIAN AC_CHECK_FUNCS(strchr) AC_CHECK_FUNCS(madvise) ALL_LINGUAS="de el es_ES fr hu it ja pl ru en_AU" AM_GNU_GETTEXT dnl Overall configuration success flag sweep_config_ok=yes dnl Default audio handling to build in sweep_config_driver=none dnl dnl Configuration option for building of experimental code. dnl ac_enable_experimental=no AC_ARG_ENABLE(experimental, [ --enable-experimental enable building of experimental code ], [ ac_enable_experimental=yes ]) if test "x${ac_enable_experimental}" = xyes ; then AC_DEFINE([DEVEL_CODE], [], [Whether to build the develpment code.]) fi dnl dnl Detect pthreads libraries dnl PTHREAD_LIBS=error AC_CHECK_LIB(pthread, pthread_attr_init, PTHREAD_LIBS="-lpthread") if test "x$PTHREAD_LIBS" = xerror; then AC_CHECK_LIB(pthreads, pthread_attr_init, PTHREAD_LIBS="-lpthreads") fi if test "x$PTHREAD_LIBS" = xerror; then AC_CHECK_LIB(c_r, pthread_attr_init, PTHREAD_LIBS="-lc_r") fi if test "x$PTHREAD_LIBS" = xerror; then AC_CHECK_FUNC(pthread_attr_init, PTHREAD_LIBS="") fi AC_SUBST(PTHREAD_LIBS) dnl dnl Detect Gthread, GLib and GTK+ libraries dnl PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.4.0, HAVE_GTK="yes", sweep_config_ok="no") AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) if test "x$HAVE_GTK" != xyes ; then AC_CHECK_LIB(gtk-x11-2.0, gtk_init, HAVE_GTK="maybe", sweep_config_ok="no") fi PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.2.0, HAVE_GLIB="yes", sweep_config_ok="no") AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) if test "x$HAVE_GLIB" != xyes ; then AC_CHECK_LIB(glib-2.0, g_list_append, HAVE_GLIB="maybe", sweep_config_ok="no") fi PKG_CHECK_MODULES(GTHREADS, gthread-2.0 >= 2.2.0, HAVE_GTHREADS="yes", sweep_config_ok="no") AC_SUBST(GTHREADS_CFLAGS) AC_SUBST(GTHREADS_LIBS) if test "x$HAVE_GTHREADS" != xyes ; then AC_CHECK_LIB(gthread-2.0, g_thread_init, HAVE_GTHREADS="maybe", sweep_config_ok="no") fi dnl dnl Detect libsndfile 1.0 dnl PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.0, HAVE_LIBSNDFILE1="yes", HAVE_LIBSNDFILE1="no") if test "x$HAVE_LIBSNDFILE1" = xyes ; then AC_DEFINE([HAVE_LIBSNDFILE1], [], [Define if we have libsndfile1.]) AC_SUBST(SNDFILE_LIBS) else sweep_config_ok="no" AC_CHECK_LIB(sndfile, sf_open, HAVE_LIBSNDFILE1="maybe") fi if test "x$HAVE_LIBSNDFILE1" = xmaybe ; then AC_CHECK_HEADERS(sndfile.h, HAVE_LIBSNDFILE1="ouch") if test "x$HAVE_LIBSNDFILE1" = xouch ; then AC_MSG_ERROR([ *** *** libsndfile-1.0.0 or greater seems to exist on your system, however *** the pkg-config tool cannot find its build information. *** *** Please set your PKG_CONFIG_PATH environment variable to include the *** directory in which sndfile.pc was installed. For example, sndfile.pc *** is installed in /usr/local/lib/pkgconfig by default; if that is the *** case do: *** *** export PKG_CONFIG_PATH="\$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" *** *** then run this ./configure again. If you configured libsndfile with a *** different --prefix option, replace /usr/local above with that prefix. *** ]) fi fi AC_CHECK_SIZEOF(off_t,1) dnl dnl Detect Ogg dnl HAVE_OGG=no HAVE_VORBIS=no HAVE_SPEEX=no ac_enable_oggvorbis=yes AC_ARG_ENABLE(oggvorbis, [ --disable-oggvorbis disable Ogg Vorbis support], [ ac_enable_oggvorbis=no ], [ ac_enable_oggvorbis=yes ]) ac_enable_speex=yes AC_ARG_ENABLE(speex, [ --disable-speex disable Speex support], [ ac_enable_speex=no ], [ ac_enable_speex=yes ]) dnl Both Vorbis and Speex require Ogg, so check for it first either way if test "x${ac_enable_oggvorbis}" != xno || test "x${ac_enable_speex}" != xno ; then XIPH_PATH_OGG(HAVE_OGG="yes", HAVE_OGG="no") if test "x$HAVE_OGG" = xno ; then AC_CHECK_LIB(ogg, ogg_stream_init, HAVE_OGG="maybe") fi if test "x$HAVE_OGG" = xmaybe; then AC_CHECK_HEADER([ogg/ogg.h], HAVE_OGG="yes", HAVE_OGG="no") fi AC_SUBST(OGG_LIBS) fi dnl dnl Detect Vorbis dnl dnl LIBS="$LIBS -lm -logg -lvorbis -lvorbisenc -lvorbisfile" if test "x$HAVE_OGG" = xyes && test "x${ac_enable_oggvorbis}" != xno ; then XIPH_PATH_VORBIS(HAVE_VORBIS="yes", HAVE_VORBIS="no") dnl Fall back to explicit checks if this fails if test "x$HAVE_VORBIS" = xno ; then AC_MSG_RESULT([ *** Trying explicit detection of Ogg Vorbis libraries and headers ...]) AC_CHECK_LIB(vorbis, vorbis_info_init, HAVE_VORBIS="maybe", , [-lm -logg]) AC_CHECK_LIB(vorbisenc, vorbis_encode_init, HAVE_VORBISENC="maybe", , [-lm -logg -lvorbis]) AC_CHECK_LIB(vorbisfile, ov_open, HAVE_VORBISFILE="maybe", , [-lm -logg -lvorbis]) AC_CHECK_HEADERS([vorbis/codec.h vorbis/vorbisfile.h vorbis/vorbisenc.h], HAVE_VORBIS_HEADERS="yes", HAVE_VORBIS_HEADERS="no") if test "x$HAVE_VORBIS" = xmaybe && test "x$HAVE_VORBISENC" = xmaybe && test "x$HAVE_VORBISFILE" = xmaybe && test "x$HAVE_VORBIS_HEADERS" = xyes ; then VORBIS_LIBS="-lvorbis -lm" VORBISFILE_LIBS="-lvorbisfile" VORBISENC_LIBS="-lvorbisenc" VORBIS_CFLAGS="" dnl HAVE_VORBIS="maybe" HAVE_VORBIS="yes" else HAVE_VORBIS="no" fi fi AC_SUBST(VORBIS_LIBS) AC_SUBST(VORBISENC_LIBS) AC_SUBST(VORBISFILE_LIBS) if test "x$HAVE_VORBIS" = xyes ; then AC_DEFINE([HAVE_OGGVORBIS], [], [Define if we have Ogg Vorbis.]) dnl Test out ov_read_float AC_MSG_CHECKING([for deprecated ov_read_float() interface]) ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $OGG_CFLAGS $VORBIS_CFLAGS" LIBS="$LIBS $OGG_LIBS $VORBIS_LIBS $VORBISFILE_LIBS" AC_TRY_COMPILE([#include #include ], [OggVorbis_File * vf; float ** pcm; int b; ov_read_float (vf, &pcm, &b);], [ AC_DEFINE([OV_READ_FLOAT_THREE_ARGS], [], [Define if ov_read_float takes 3 arguments.]) AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no) ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" else sweep_config_ok="no" fi else HAVE_VORBIS=disabled fi dnl dnl Detect speex dnl dnl LIBS="$LIBS -lm -logg -lspeex" if test "x$HAVE_OGG" = xyes && test "x${ac_enable_speex}" != xno ; then XIPH_PATH_SPEEX(HAVE_SPEEX="yes", HAVE_SPEEX="no") dnl Fall back to explicit checks if this fails if test "x$HAVE_SPEEX" = xno ; then AC_CHECK_LIB(speex, speex_encoder_init, HAVE_SPEEX="maybe", , [-lm -logg]) if test "x$HAVE_SPEEX" = xmaybe; then AC_CHECK_HEADER(speex.h, HAVE_SPEEX="yes", [AC_CHECK_HEADER([speex/speex.h], HAVE_SPEEX="yes", HAVE_SPEEX="no")] ) fi fi if test "x$HAVE_SPEEX" = xyes ; then AC_CHECK_HEADER([speex/speex.h], AC_DEFINE(HAVE_SPEEX_SUBDIR, [1], [Define to 1 if speex headers are eg. ]) ) AC_DEFINE([HAVE_SPEEX], [], [Define if we have speex.]) SPEEX_LIBS="-lspeex -lm" AC_SUBST(SPEEX_LIBS) fi else HAVE_SPEEX=disabled fi dnl dnl Detect libmad dnl HAVE_MAD=no ac_enable_mad=yes AC_ARG_ENABLE(mad, [ --disable-mad disable libmad (MPEG audio loading) support], [ ac_enable_mad=no ], [ ac_enable_mad=yes ]) if test "x${ac_enable_mad}" != xno ; then AC_CHECK_LIB(mad, mad_decoder_init, HAVE_MAD="maybe") if test "x$HAVE_MAD" = xmaybe ; then AC_CHECK_HEADER(mad.h, HAVE_MAD="yes", HAVE_MAD="no") fi if test "x$HAVE_MAD" = xyes ; then AC_DEFINE([HAVE_MAD], [], [Define if we have mad.]) MAD_LIBS="-lmad" AC_SUBST(MAD_LIBS) fi else HAVE_MAD=disabled fi dnl dnl Detect secret rabbit code dnl HAVE_LIBSAMPLERATE=no ac_enable_src=yes AC_ARG_ENABLE(src, [ --disable-src enable secret rabbit code (libsamplerate)], [ ac_enable_src=no ], [ ac_enable_src=yes]) if test "x${ac_enable_src}" != xno ; then PKG_CHECK_MODULES(SAMPLERATE, samplerate >= 0.0.9, HAVE_LIBSAMPLERATE="yes", HAVE_LIBSAMPLERATE="no") if test "x$HAVE_LIBSAMPLERATE" = xyes ; then AC_DEFINE([HAVE_LIBSAMPLERATE], [], [Define if we have libsamplerate.]) AC_SUBST(SAMPLERATE_LIBS) fi else HAVE_LIBSAMPLERATE=disabled fi dnl dnl Test for ALSA -- requires explicit enabling dnl ac_enable_alsa=yes AC_ARG_ENABLE(alsa, [ --disable-alsa Disable ALSA, and enable use of OSS], [ ac_enable_alsa=no ]) if test "x${ac_enable_alsa}" != xno ; then PKG_CHECK_MODULES(ALSA, alsa >= 1.0.0, HAVE_ALSA="yes", sweep_config_ok="no") AC_SUBST(ALSA_CFLAGS) AC_SUBST(ALSA_LIBS) AC_DEFINE([DRIVER_ALSA], [], [Define if we have and want alsa.]) if test "x$HAVE_ALSA" != xyes ; then AC_CHECK_LIB(asound, snd_seq_open, HAVE_ALSA="maybe", sweep_config_ok="no") fi sweep_config_driver="ALSA" fi dnl Test for OSS AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h) if test "x${ac_cv_header_sys_soundcard_h}" = xyes || \ test "x${ac_cv_header_machine_soundcard_h}" = xyes; then if test "x$ac_enable_alsa" = xno ; then AC_DEFINE([DRIVER_OSS], [], [Define if we have and want OSS.]) dnl Check for NetBSD's OSS compatability layer AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBS="$LIBS -lossaudio") sweep_config_driver="OSS" fi fi dnl Test for Solaris audio case $host in *-*-solaris*) AC_CHECK_HEADERS(sys/audioio.h) if test "x${ac_cv_header_sys_audioio_h}" = xyes; then AC_DEFINE([DRIVER_SOLARIS_AUDIO], [], [Define if we have and want the solaris audio driver.]) sweep_config_driver="Solaris" fi ;; esac dnl Set PACKAGE_LOCALE_DIR in config.h. if test "x${prefix}" = xNONE; then AC_DEFINE_UNQUOTED([PACKAGE_LOCALE_DIR], "${ac_default_prefix}/${DATADIRNAME}/locale", [Define the PACKAGE_LOCALE_DIR.]) else AC_DEFINE_UNQUOTED([PACKAGE_LOCALE_DIR], "${prefix}/${DATADIRNAME}/locale") fi if test "x${datadir}" = 'x${prefix}/share'; then if test "x${prefix}" = xNONE; then PACKAGE_DATA_DIR='"${ac_default_prefix}/share/${PACKAGE}"' else PACKAGE_DATA_DIR='"${prefix}/share/${PACKAGE}"' fi else PACKAGE_DATA_DIR='"${datadir}/${PACKAGE}"' fi AC_SUBST(PACKAGE_DATA_DIR) dnl Set PACKAGE_PLUGIN_DIR in Makefiles and config.h. PACKAGE_PLUGIN_DIR=$libdir/sweep AC_SUBST(PACKAGE_PLUGIN_DIR) if test "x${prefix}" = xNONE; then sweep_plugin_dir="${ac_default_prefix}/lib/${PACKAGE}" else sweep_plugin_dir="${prefix}/lib/${PACKAGE}" fi AC_DEFINE_UNQUOTED([PACKAGE_PLUGIN_DIR], "$sweep_plugin_dir", [Define the PACKAGE_PLUGIN_DIR.]) dnl Set PACKAGE_SOURCE_DIR in config.h. packagesrcdir=`cd $srcdir && pwd` AC_DEFINE_UNQUOTED([PACKAGE_SOURCE_DIR], "${packagesrcdir}", [Define the PACKAGE_SOURCE_DIR.]) AC_ARG_ENABLE(gcc-werror, AC_HELP_STRING([--enable-gcc-werror], [enable -Werror in all Makefiles])) dnl Use -Wall if we have gcc. dnl changequote(,)dnl if test "x$ac_cv_prog_gcc" = xyes ; then CFLAGS="$CFLAGS -Wall" if test x$enable_gcc_werror = "xyes" ; then CFLAGS="$CFLAGS -Werror" fi fi dnl changequote([,])dnl dnl - Modified from www.nagios.org who modified it from www.erlang.org dnl Check how to export functions from the sweep executable, needed dnl when dynamically loaded drivers are loaded (so that they can find dnl sweep functions). dnl OS'es with ELF executables using the GNU linker (Linux and recent *BSD , dnl in rare cases Solaris) typically need '-Wl,-export-dynamic' (i.e. pass dnl -export-dynamic to the linker - also known as -rdynamic and some other dnl variants); some sysVr4 system(s) instead need(s) '-Wl,-Bexport'. dnl AIX 4.x (perhaps only for x>=2) wants -Wl,-bexpall,-brtl and doesn't dnl reliably return an error for others, thus we separate it out. dnl Otherwise we assume that if the linker accepts the flag, it is needed. AC_MSG_CHECKING(for extra flags needed to export symbols) case $host_os in aix4*|aix5*) EXPORT_DYNAMIC_FLAGS="-Wl,-bexpall,-brtl" ;; bsdi*) EXPORT_DYNAMIC_FLAGS="-rdynamic" ;; *) save_ldflags="$LDFLAGS" LDFLAGS=-Wl,-export-dynamic AC_TRY_LINK(,,[EXPORT_DYNAMIC_FLAGS="-Wl,-export-dynamic"], [ LDFLAGS=-Wl,-Bexport AC_TRY_LINK(,,[EXPORT_DYNAMIC_FLAGS="- Wl,-Bexport"], AC_MSG_RESULT(none))]) LDFLAGS="$save_ldflags" ;; esac AC_SUBST(EXPORT_DYNAMIC_FLAGS) test "x$EXPORT_DYNAMIC_FLAGS" != x && AC_MSG_RESULT([$EXPORT_DYNAMIC_FLAGS]) dnl dnl Configuration tests complete -- provide summary of results. dnl if test $sweep_config_ok = no ; then AC_MSG_RESULT([ ************************************************************** *** Sweep $VERSION: Automatic configuration FAILED. *** The file config.log has full details. *** The following required libraries are missing or *** misconfigured on your system: ]) if test "x$HAVE_GLIB" != xyes || test "x$HAVE_GTHREADS" != xyes; then AC_MSG_RESULT([ *** GLib version 2.2.x or greater, available from http://www.gtk.org/ ]) fi if test "x$HAVE_GLIB" = xmaybe || test "x$HAVE_GTHREADS" = xmaybe; then AC_MSG_RESULT([ Development files missing: The libglib-2.0 binary seems to be installed, but the pkg-config tool cannot find its build information. ]) fi if test "x$HAVE_GTK" != xyes ; then AC_MSG_RESULT([ *** GTK+ version 2.2.x or greater, available from http://www.gtk.org/ ]) fi if test "x$HAVE_GTK" = xmaybe ; then AC_MSG_RESULT([ Development files missing: The libgtk binary seems to be installed, but the pkg-config tool cannot find its build information.. ]) fi if test "x$HAVE_LIBSNDFILE1" != xyes ; then AC_MSG_RESULT([ *** libsndfile version 1.0.0 or greater, available from *** http://www.mega-nerd.com/libsndfile/ ]) fi if test "x$HAVE_LIBSNDFILE1" = xmaybe ; then AC_MSG_RESULT([ Development files missing: libsndfile-1.0.0 or greater seems to exist on your system, however the header files are missing and the pkg-config tool cannot find its build information. ]) fi if test "x$HAVE_ALSA" = xmaybe ; then AC_MSG_RESULT([ Development files missing: alsa-lib 1.0.0 or greater seems to exist on your system, however the pkg-config tool cannot find the build information. ]) fi if test "x$HAVE_ALSA" != xyes ; then AC_MSG_RESULT([ *** alsa-lib version 1.0.0 or greater, available from *** http://alsa-project.org/ ]) fi if test "x$HAVE_VORBIS" = xmaybe ; then AC_MSG_RESULT([ Development files missing: The libogg, libvorbis, libvorbisenc and libvorbisfile library binaries seem to be installed, but building of a test program failed. ]) fi if test "x$HAVE_VORBIS" != xyes ; then AC_MSG_RESULT([ *** Ogg Vorbis libraries, available from http://www.xiph.org/ogg/vorbis/ ]) fi if test "x$HAVE_VORBIS" != xyes ; then AC_MSG_RESULT([ *** Or, to build a version of Sweep without Ogg Vorbis support, do: *** *** ./configure --disable-oggvorbis ]) fi if test "x$HAVE_GLIB" = xmaybe || test "x$HAVE_GTK" = xmaybe || test "x$HAVE_LIBSNDFILE1" = xmaybe || test "x$HAVE_TDB" = xmaybe || test "x$HAVE_GTHREADS" = xmaybe || test "x$HAVE_ALSA" = xmaybe || test "x$HAVE_OGG" = xmaybe || test "x$HAVE_VORBIS" = xmaybe ; then AC_MSG_RESULT([ *** HOW TO FIX "development files missing": you have probably *** installed the library package from your distribution. You *** must also install the library's "development" package. ]) fi AC_MSG_RESULT([ *** If you install the required libraries from source, you *** need to inform the dynamic linker of their location. If *** you install them in a system-wide directory such as *** /usr/local (the default), you must ensure that *** /usr/local/lib is listed in /etc/ld.so.conf, then run *** ldconfig to update the dynamic linking system. *** Alternatively, you can set your LD_LIBRARY_PATH environment *** variable to include the library installation directory. ]) AC_MSG_RESULT([ ************************************************************** ]) AC_MSG_ERROR([ *** *** After fixing the above problems, you must run ./configure again. *** ]) else AC_OUTPUT([ Makefile sweep.spec m4/Makefile include/Makefile include/sweep/Makefile src/Makefile src/tdb/Makefile plugins/Makefile plugins/echo/Makefile plugins/normalise/Makefile plugins/fade/Makefile plugins/reverse/Makefile plugins/ladspa/Makefile plugins/byenergy/Makefile plugins/example/Makefile doc/Makefile intl/Makefile po/Makefile.in doc/sweep.1 ]) AC_MSG_RESULT([ ************************************************************ * Sweep $VERSION: Automatic configuration OK. ** ** Configuration summary: ** ** Experimental code: ....... ${ac_enable_experimental} ** Audio device handling: ... $sweep_config_driver ** PCM: libsndfile .......... $HAVE_LIBSNDFILE1 ** Ogg Vorbis support: ...... $HAVE_VORBIS ** MPEG (MP3) loading: ...... $HAVE_MAD ** Speex support: ........... $HAVE_SPEEX ** Secret Rabbit Code: ...... $HAVE_LIBSAMPLERATE ** Translations: ............ $ALL_LINGUAS ** ** Installation directories: ** ** Program: ................. ${prefix}/bin ** Plugins: ................. $sweep_plugin_dir ** ************************************************************** ** ** Type 'make' to compile Sweep. ** ** Type 'make install' to install Sweep. Plugins will not be ** accessible until you have done this. ** ** Have fun with Scrubby! * ************************************************************ ]) fi sweep-0.9.3/sweep.spec.in0000644000175000017500000000515510777660176014017 0ustar useruser%define name sweep %define version @VERSION@ %define release 1 %define prefix /usr Summary: Sound wave editor Name: %{name} Version: %{version} Release: %{release} Copyright: GPL Group: Applications/Sound URL: http://sweep.sourceforge.net/ Source: %{name}-%{version}.tar.gz Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root Docdir: %{prefix}/doc Prefix: %{prefix} Requires: gtk+ >= 2.2.0 %description Sweep is an editor for sound samples. It operates on files of various formats such as .wav, .aiff and .au, and has multiple undo/redo levels and filters. It supports audio filter plugins from the LADSPA project. %package devel Summary: Sweep plugin development kit Group: Applications/Sound Requires: %{name} = %{version} %description devel The sweep-devel package contains header files and documentation for writing plugins for Sweep, a sound wave editor. Install sweep-devel if you're going to create plugins for Sweep. You will also need to install sweep. %prep %setup -q -n %{name}-%{version} if [ -f configure ]; then CFLAGS=$RPM_OPT_FLAGS \ ./configure --prefix=%{prefix}; else CFLAGS=$RPM_OPT_FLAGS \ ./autogen.sh --prefix=%{prefix}; fi %build LINGUAS="fr hu it de pl" CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} gmake %install if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi mkdir -p $RPM_BUILD_ROOT%{prefix} make prefix=$RPM_BUILD_ROOT%{prefix} install-strip %files %defattr (0555, bin, bin) %{prefix}/bin/sweep %defattr (0444, bin, bin, 0555) %{prefix}/lib/sweep/libladspameta* %{prefix}/lib/sweep/libecho* %{prefix}/lib/sweep/libnormalise* %{prefix}/lib/sweep/libreverse* %{prefix}/lib/sweep/libbyenergy* %defattr (0555, bin, man) %{prefix}/man/man1/sweep.1* %doc ABOUT-NLS NEWS README ChangeLog %doc README.Solaris README.ALSA %doc doc/*.txt %defattr (-, root, root) %{prefix}/share/gnome/apps/Multimedia/sweep.desktop %{prefix}/share/locale/*/*/* %files devel %doc doc/plugin_writers_guide.txt %{prefix}/include/sweep/ %clean rm -r $RPM_BUILD_ROOT %changelog * Sun Oct 08 2000 Conrad Parker - updated for sweep version 0.1.0 - added devel package - added packaging of plugins - added documentation * Tue Aug 09 2005 Peter Shorthose - use autoconf to generate the spec via sweep.spec.in - insert the package version via the autoconf macro - remind the reader that the above changes are untested as of now * Thur Aug 25 2005 Peter Shorthose - update Gtk requirements sweep-0.9.3/COPYING0000644000175000017500000004311010777660176012437 0ustar useruser GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. sweep-0.9.3/pixmaps/0000755000175000017500000000000011001133767013044 5ustar userusersweep-0.9.3/pixmaps/eye.xpm0000644000175000017500000000163410777660150014372 0ustar useruser/* XPM */ static char * eye_xpm[] = { "28 25 5 1", " c None", ". c #000000", "+ c #9C999C", "@ c #FFFFFF", "# c #7070E0", " ", " ", " ", " ", " ", " ", " ", " .......... ", " .....++++++..... ", " ...+@@+######+@@+... ", " ..+@@@+#####@##+@@@+.. ", " ..@@@@@+##+.#+@#+@@@@@.. ", " .+@@@@@+#+...###+@@@@@+. ", " .@@@@@+#++..###+@@@@@. ", " ..@@@+##++####+@@@.. ", " ...@@+######+@@... ", " ....++++++.... ", " ........ ", " ", " ", " ", " ", " ", " ", " "}; sweep-0.9.3/pixmaps/needle.xbm0000644000175000017500000000073310777660150015025 0ustar useruser#define needle_width 22 #define needle_height 18 #define needle_x_hot 8 #define needle_y_hot 16 static unsigned char needle_bits[] = { 0x00, 0x00, 0x00, 0xe0, 0x0f, 0x00, 0xa0, 0x0b, 0x00, 0x20, 0x09, 0x00, 0x20, 0x09, 0x00, 0x40, 0x05, 0x00, 0x40, 0x05, 0x00, 0x80, 0x03, 0x00, 0x80, 0x03, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00}; sweep-0.9.3/pixmaps/upleft.xpm0000644000175000017500000000014510777660150015103 0ustar useruser/* XPM */ static char * upleft_xpm[] = { "3 3 2 1", " c None", ". c #dedfde", "...", ". ", ". "}; sweep-0.9.3/pixmaps/copy.xpm0000644000175000017500000000145210777660150014560 0ustar useruser/* XPM */ static char * copy_xpm[] = { "24 25 4 1", " c None", ". c #000000", "+ c #FFFFFF", "@ c #E1E896", " ", " ", " ", " ", " ", " .............. ", " .++++++++++++. ", " .+++.++++++++. ", " .++.@.+++++++. ", " .+.@@@.++++++. ", " .............. ", " .++++++.@@@.+. ", " ...............@.++. ", " .++++++++++++.+.+++. ", " .+++.++++++++.+++++. ", " .++.@.+++++++....... ", " .+.@@@.++++++. ", " .............. ", " .++++++.@@@.+. ", " .+++++++.@.++. ", " .++++++++.+++. ", " .++++++++++++. ", " .............. ", " ", " "}; sweep-0.9.3/pixmaps/horiz_minus.xpm0000644000175000017500000000377010777660150016161 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ static char * horiz_minus_xpm[] = { "32 32 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " +.+ ", " +.+ ", " +.+ ", " + +.+ + ", " +.+ +.+ +.+ ", " +..+++.+++..+ ", " +.....+.+.....+ ", "+...+++.+.+++...+ ", " +.....+.+.....+ ", " +..+++.+++..+ ", " +.+ +.+ +.+ ", " + +.+ + ", " +.+ ", " +.+ +++++++ ", " +.+ +.....+ ", " +++++++ ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "}; sweep-0.9.3/pixmaps/zoom_all.xpm0000644000175000017500000000151410777660150015421 0ustar useruser/* XPM */ static char * zoom_all_xpm[] = { "24 25 6 1", " c None", ". c #FFFFFF", "+ c #000000", "@ c #E1E896", "# c #9C999C", "$ c #FEFEFE", " ", " ", " ............ ", " ...+........ ", " ..+@+....... ", " .+@@@+...... ", " ++++++++++++ ", " ......+@@@+. ", " ++++.....+@+.. ", " +#..#+..$$.+... ", " +# ...#+........ ", " + ....+ ", " + + ", " +# #+ ", " +# #++ ", " +++++++ ", " +++ ", " +++ ", " +++ ", " ++ ", " ", " ", " ", " ", " "}; sweep-0.9.3/pixmaps/loop.xpm0000644000175000017500000000037210777660150014557 0ustar useruser/* XPM */ static char * loop_xpm[] = { "13 10 2 1", " c None", ". c #FFFFFF", " ", " . ", " ...... . ", " . . .. ", " . . ", " . . ", " .. . . ", " . ...... ", " . ", " "}; sweep-0.9.3/pixmaps/upright.xpm0000644000175000017500000000014610777660150015267 0ustar useruser/* XPM */ static char * upright_xpm[] = { "3 3 2 1", " c None", ". c #dedfde", "...", " .", " ."}; sweep-0.9.3/pixmaps/open.xpm0000644000175000017500000000113210777660150014542 0ustar useruser/* XPM */ static char * open_xpm[] = { "20 18 8 1", " c None", ". c #000000", "+ c #080808", "@ c #A4956A", "# c #101010", "$ c #FFFFF6", "% c #FFFFFF", "& c #D5CEAC", " ", " .. ", " +..@@. ", " .. .#.@@@@$$%... ", " .&&..@@@@$$$$..&&. ", " .&&@@@$$$$$..&&&&. ", " .&@$$$$$..&&&&&&. ", " .&@$$$..&&&&&&&&. ", " .@$$.&&&&&&&&&&. ", " .@@$.&&&&&&&&&&. ", " .@$.&&&&&&&&&&. ", " .@@.&&&&&&&&.. ", " .@.&&&&&&.. ", " .@.&&&&&. ", " ..&&&.. ", " ..&.. ", " .. ", " "}; sweep-0.9.3/pixmaps/cursor-closedhand.xbm0000644000175000017500000000060510777660150017206 0ustar useruser#define cursor_closedhand_width 16 #define cursor_closedhand_height 16 #define cursor_closedhand_x_hot 0 #define cursor_closedhand_y_hot 0 static unsigned char cursor_closedhand_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x0d, 0x48, 0x32, 0x08, 0x50, 0x10, 0x40, 0x18, 0x40, 0x04, 0x40, 0x04, 0x20, 0x08, 0x20, 0x10, 0x10, 0x20, 0x10, 0x20, 0x10, 0x00, 0x00, 0x00, 0x00 }; sweep-0.9.3/pixmaps/prevtrk.xpm0000644000175000017500000000040610777660150015301 0ustar useruser/* XPM */ static char * prevtrk_xpm[] = { "16 9 2 1", " c None", ". c #FFFFFF", " ", " .. ", " .. .. .. ", " .. .... .... ", " .............. ", " .. .... .... ", " .. .. .. ", " .. ", " "}; sweep-0.9.3/pixmaps/cut.xpm0000644000175000017500000000100710777660150014375 0ustar useruser/* XPM */ static char * cut_xpm[] = { "21 17 3 1", " c None", ". c #000000", "+ c #9C999C", " ", " . ", " .. ", " .. ", " .. ", " + .. ", " .... .. ... ", " . .. .. .... ", " . ........... ", " .... .... ", " + .. ", " ... ", " . . ", " .+ . ", " . . ", " ... ", " "}; sweep-0.9.3/pixmaps/spraycan.xpm0000644000175000017500000000071010777660150015422 0ustar useruser/* XPM */ static char * spraycan_xpm[] = { "15 18 4 1", " c None", ". c #FFFFFF", "+ c #000000", "@ c #E1E896", " .... ", " ...++. ", " ......+.... ", " ..++++...++. ", " .++++..+.... ", " ..++......++. ", " .+++++++..... ", " .+@@@@@+. ", " .+++@@@+. ", " .+@+@@@+. ", " .+++@@@+. ", " .+@+@@@+. ", " .+++@@@+. ", " .+++@@@+. ", " .+@@@@@+. ", " .+@@@@@+. ", " .+++++++. ", " ......... "}; sweep-0.9.3/pixmaps/headphones.xpm0000644000175000017500000000052210777660150015721 0ustar useruser/* XPM */ static char * headphones_xpm[] = { "14 14 2 1", " c None", ". c #FFFFFF", " ", " ........ ", " ... ... ", " .. .. ", " .. .. ", " . . ", " ", " . . ", " . .. .. . ", " .... .... ", " .... .... ", " ... ... ", " .. .. ", " "}; sweep-0.9.3/pixmaps/pastexfade.xpm0000644000175000017500000000151610777660150015733 0ustar useruser/* XPM */ static char * pastexfade_xpm[] = { "24 25 6 1", " c None", ". c #000000", "+ c #9C999C", "@ c #D5CEAC", "# c #FFFFFF", "$ c #E1E896", " ", " ", " ....... ", " .......+++++...... ", " .@@@@@.+++++.@@@@. ", " .@.....+++++....@. ", " .@.###.......##.@. ", " .@.###.########.@. ", " .@.##.$.#######.@. ", " .@.#.$$$.######.@. ", " .@..............@. ", " .@.######.$$$.#.@. ", " .@.#####.............. ", " .@.#####.############. ", " .@.#####.##..#####..#. ", " .@.......####.###.$$#. ", " .@@@@@@@.#####.#.$$$#. ", " .@@@@@@@.######.$$$$#. ", " .@@@@@@@.#####.$.$$$#. ", " .@@@@@@@.####.$$$.$$#. ", " .@@@@@@@.##..$$$$$..#. ", " .........############. ", " .............. ", " ", " "}; sweep-0.9.3/pixmaps/record.xpm0000644000175000017500000000040110777660150015055 0ustar useruser/* XPM */ static char * record_xpm[] = { "12 10 3 1", " c None", ". c #FFFFFF", "+ c #DE5129", " ...... ", " ..++++.. ", " ..++++++.. ", " .++++++++. ", " .++++++++. ", " .++++++++. ", " .++++++++. ", " ..++++++.. ", " ..++++.. ", " ...... "}; sweep-0.9.3/pixmaps/lowleft.xpm0000644000175000017500000000014610777660150015261 0ustar useruser/* XPM */ static char * lowleft_xpm[] = { "3 3 2 1", " c None", ". c #dedfde", ". ", ". ", "..."}; sweep-0.9.3/pixmaps/saveas.xpm0000644000175000017500000000132210777660150015064 0ustar useruser/* XPM */ static char * saveas_xpm[] = { "21 22 8 1", " c None", ". c #000000", "+ c #E1E896", "@ c #D5CEAC", "# c #FFFFFF", "$ c #000400", "% c #9C999C", "& c #9C9D9C", " ", " .. ", " .++. ", " ..............+++. ", " .@@@@@@@@@@@@.+++. ", " .@@#########.+++.. ", " .@@###.####.+++.@. ", " .@@##.+.##.+++.@@. ", " .@@#.+++..+++.#@@. ", " .@@......+++...@@. ", " .@@#####.++.###@@. ", " .@@####.+..####@@. ", " .@@####$.######@@. ", " .@@@@@@@@@@@@@@@@. ", " .@@...........@@@. ", " .@@.%%%%%%%%%.@@@. ", " .@@.%.@@%%%%%.@@@. ", " .@@.%.@@%%%%%.@@@. ", " .@@.%..@%%%&%.@@@. ", " .@.%%%%%%%%%.@@@. ", " ............... ", " "}; sweep-0.9.3/pixmaps/lowright.xpm0000644000175000017500000000014710777660150015445 0ustar useruser/* XPM */ static char * lowright_xpm[] = { "3 3 2 1", " c None", ". c #737573", " .", " .", "..."}; sweep-0.9.3/pixmaps/ladlogo.xpm0000644000175000017500000016003610777660150015233 0ustar useruser/* XPM */ static char * ladlogo_xpm[] = { "120 121 1737 2", " c None", ". c #010102", "+ c #010103", "@ c #020204", "# c #080809", "$ c #0C0C11", "% c #14141C", "& c #0A0B0F", "* c #060609", "= c #020304", "- c #121218", "; c #22242E", "> c #303341", ", c #3D4153", "' c #484C62", ") c #535770", "! c #535972", "~ c #545A6F", "{ c #545A73", "] c #555A6F", "^ c #545A72", "/ c #51566D", "( c #474B5E", "_ c #3D4152", ": c #2D303D", "< c #1F212C", "[ c #0D0E12", "} c #0E0E10", "| c #262833", "1 c #3C4052", "2 c #4F546C", "3 c #545972", "4 c #565A71", "5 c #565B73", "6 c #585E78", "7 c #5A5F78", "8 c #5C607E", "9 c #5D6280", "0 c #5E6480", "a c #616682", "b c #626884", "c c #626886", "d c #626784", "e c #626686", "f c #616684", "g c #5E6280", "h c #5C627C", "i c #5A5F7A", "j c #585D78", "k c #50556B", "l c #3A3E4D", "m c #22242F", "n c #0A0A0D", "o c #0B0B0E", "p c #292C35", "q c #45495D", "r c #535871", "s c #555973", "t c #565A73", "u c #585C76", "v c #5C627E", "w c #606784", "x c #646988", "y c #686E8E", "z c #6B7192", "A c #6F7494", "B c #717898", "C c #747A99", "D c #747B9C", "E c #767CA0", "F c #787CA0", "G c #767EA0", "H c #777DA1", "I c #757CA0", "J c #747A9A", "K c #727798", "L c #707594", "M c #6C7392", "N c #696F8D", "O c #656A88", "P c #5D6380", "Q c #595F7A", "R c #45485E", "S c #242631", "T c #07070A", "U c #191A22", "V c #555B73", "W c #575D76", "X c #5B607A", "Y c #5F6580", "Z c #646B88", "` c #6B6F8F", " . c #717595", ".. c #747B9D", "+. c #797FA3", "@. c #7D84A6", "#. c #7F87AE", "$. c #828AAE", "%. c #858CB2", "&. c #858CB3", "*. c #868EB7", "=. c #888FB7", "-. c #878FB5", ";. c #878FB7", ">. c #878EB5", ",. c #878EB3", "'. c #848CB4", "). c #838BB1", "!. c #8289AF", "~. c #8087AE", "{. c #7D85A9", "]. c #7A81A5", "^. c #757C9E", "/. c #727896", "(. c #6C7290", "_. c #666C89", ":. c #616782", "<. c #595F79", "[. c #3A3E4C", "}. c #13141A", "|. c #20222A", "1. c #454A5D", "2. c #545872", "3. c #55596F", "4. c #575B74", "5. c #5F6480", "6. c #656B88", "7. c #6C7292", "8. c #74799A", "9. c #7980A4", "0. c #7F87AD", "a. c #878EB7", "b. c #8890B7", "c. c #8991B7", "d. c #8A92BB", "e. c #8C94BB", "f. c #8D95BB", "g. c #8E95BB", "h. c #8C93BB", "i. c #8B93BB", "j. c #8A92B9", "k. c #8990B7", "l. c #878DB6", "m. c #8087AF", "n. c #7C83A6", "o. c #6E7494", "p. c #686C8B", "q. c #606682", "r. c #464A5E", "s. c #1B1C24", "t. c #575C76", "u. c #5B607C", "v. c #696F90", "w. c #727898", "x. c #7A80A4", "y. c #858DB5", "z. c #8D94BB", "A. c #8E96BC", "B. c #898FB7", "C. c #868DB5", "D. c #8189AE", "E. c #7B82A6", "F. c #636986", "G. c #474B60", "H. c #141518", "I. c #0E0F14", "J. c #3E4351", "K. c #575C74", "L. c #757C9C", "M. c #7D84AA", "N. c #8991B9", "O. c #8B92BB", "P. c #8086AC", "Q. c #777EA1", "R. c #707696", "S. c #636988", "T. c #3B4050", "U. c #090A0E", "V. c #030304", "W. c #2B2E3B", "X. c #5A607C", "Y. c #6B718F", "Z. c #767C9E", "`. c #8187AF", " + c #787FA4", ".+ c #6F7493", "++ c #24262E", "@+ c #42475A", "#+ c #595D76", "$+ c #5F6482", "%+ c #747B9E", "&+ c #7E85AA", "*+ c #858DB4", "=+ c #8C93BA", "-+ c #8087AD", ";+ c #777D9E", ">+ c #43485A", ",+ c #0A0A0E", "'+ c #1E2029", ")+ c #52566E", "!+ c #656B8A", "~+ c #717796", "{+ c #7B82A7", "]+ c #727682", "^+ c #60636A", "/+ c #71757F", "(+ c #8289A3", "_+ c #8B92B9", ":+ c #8991B6", "<+ c #80869C", "[+ c #6C717B", "}+ c #60646B", "|+ c #7B8299", "1+ c #868EB4", "2+ c #7F85A9", "3+ c #737A9E", "4+ c #5D637E", "5+ c #17181E", "6+ c #313442", "7+ c #5F6582", "8+ c #6A7190", "9+ c #777D9F", "0+ c #8289B2", "a+ c #656A6E", "b+ c #060604", "c+ c #0B0B05", "d+ c #1C1C10", "e+ c #343431", "f+ c #717685", "g+ c #616469", "h+ c #2F2E2A", "i+ c #18180E", "j+ c #090804", "k+ c #11100A", "l+ c #797F94", "m+ c #848AB1", "n+ c #7B81A6", "o+ c #6B7190", "p+ c #2A2C38", "q+ c #050508", "r+ c #3C3F50", "s+ c #53586D", "t+ c #5A5E78", "u+ c #626984", "v+ c #6F7596", "w+ c #7C83A9", "x+ c #858DB2", "y+ c #3C3D35", "z+ c #8B851E", "A+ c #726C1A", "B+ c #474411", "C+ c #191706", "D+ c #18160C", "E+ c #7F86A3", "F+ c #8B93B9", "G+ c #777B89", "H+ c #23210A", "I+ c #4D4912", "J+ c #7E781B", "K+ c #6F6916", "L+ c #4E514E", "M+ c #7F85AA", "N+ c #72799A", "O+ c #3A3E50", "P+ c #08090C", "Q+ c #42465A", "R+ c #565B74", "S+ c #666B8B", "T+ c #73799E", "U+ c #8086AB", "V+ c #232317", "W+ c #0F0D06", "X+ c #F1E434", "Y+ c #F2E634", "Z+ c #4B4812", "`+ c #0A0A04", " @ c #6C707E", ".@ c #7A80A6", "+@ c #838BB3", "@@ c #6C7078", "#@ c #7B751A", "$@ c #CEC32C", "%@ c #343327", "&@ c #6B7290", "*@ c #8289B0", "=@ c #787EA0", "-@ c #45495E", ";@ c #46495A", ">@ c #555A73", ",@ c #565B75", "'@ c #5D617C", ")@ c #696F8E", "!@ c #767E9E", "~@ c #828AB1", "{@ c #83899D", "]@ c #3D3A0E", "^@ c #22200A", "/@ c #161609", "(@ c #616574", "_@ c #6A708C", ":@ c #7C82A8", "<@ c #7F8493", "[@ c #070704", "}@ c #565214", "|@ c #EFE333", "1@ c #121106", "2@ c #1A190C", "3@ c #5F6477", "4@ c #6F7592", "5@ c #8088AF", "6@ c #848CB3", "7@ c #7B82A4", "8@ c #484D61", "9@ c #07080A", "0@ c #464A5F", "a@ c #575C73", "b@ c #6A6F8E", "c@ c #787FA2", "d@ c #64676B", "e@ c #817A1C", "f@ c #DFD32E", "g@ c #040404", "h@ c #26261A", "i@ c #575C70", "j@ c #757D9C", "k@ c #8991B0", "l@ c #18170D", "m@ c #1E1C08", "n@ c #F2E534", "o@ c #514D12", "p@ c #070604", "q@ c #55585C", "r@ c #686D88", "s@ c #878EB6", "t@ c #7D83A8", "u@ c #3F4356", "v@ c #6B7091", "w@ c #7A81A6", "x@ c #33342D", "y@ c #CBC12C", "z@ c #A29A24", "A@ c #393B32", "B@ c #626782", "C@ c #36372D", "D@ c #D0C52C", "E@ c #999220", "F@ c #3B3B31", "G@ c #626882", "H@ c #777DA0", "I@ c #44485B", "J@ c #383B4B", "K@ c #565B71", "L@ c #5D617E", "M@ c #7981A3", "N@ c #868EB5", "O@ c #7E8395", "P@ c #0B0B06", "Q@ c #312E0C", "R@ c #5E5914", "S@ c #4E504C", "T@ c #656983", "U@ c #797FA1", "V@ c #5C605F", "W@ c #8A811E", "X@ c #E7DB32", "Y@ c #0F0E06", "Z@ c #17170D", "`@ c #5F6475", " # c #717896", ".# c #838AB2", "+# c #8890B6", "@# c #7E84A8", "## c #373948", "$# c #292C39", "%# c #565A74", "&# c #5B617C", "*# c #6A7090", "=# c #868CB5", "-# c #444640", ";# c #989020", "># c #E9DD32", ",# c #19180D", "'# c #54586E", ")# c #585F78", "!# c #686F8B", "~# c #7E85A8", "{# c #808699", "]# c #0C0B05", "^# c #3A350E", "/# c #676116", "(# c #484A41", "_# c #6A708E", ":# c #8890B9", "<# c #7C84A8", "[# c #22242C", "}# c #181920", "|# c #5C607C", "1# c #676D8B", "2# c #777E9E", "3# c #858DB3", "4# c #7D8293", "5# c #0D0C07", "6# c #1F1D0A", "7# c #9D9422", "8# c #36382B", "9# c #54596E", "0# c #6E748D", "a# c #8188AE", "b# c #8D93BA", "c# c #2F2F25", "d# c #040204", "e# c #CBC02C", "f# c #D3C82D", "g# c #090905", "h# c #636879", "i# c #767DA0", "j# c #747A9E", "k# c #12131A", "l# c #4D5165", "m# c #595E7A", "n# c #646A88", "o# c #848BB3", "p# c #8D94B8", "q# c #383731", "r# c #9C9420", "s# c #33300D", "t# c #090906", "u# c #515356", "v# c #626680", "w# c #737A9A", "x# c #64686B", "y# c #030204", "z# c #645C16", "A# c #6D6618", "B# c #3F4038", "C# c #6D7390", "D# c #7F86AC", "E# c #8B92BA", "F# c #868DB3", "G# c #3C4051", "H# c #72789A", "I# c #606465", "J# c #040506", "K# c #3B370E", "L# c #B4A926", "M# c #292A1E", "N# c #676D87", "O# c #7C82A3", "P# c #878FAD", "Q# c #1E1D14", "R# c #0C0A04", "S# c #D9CD2E", "T# c #E3D830", "U# c #1D1C08", "V# c #0A0A05", "W# c #5B5E60", "X# c #767D9E", "Y# c #858CB4", "Z# c #404356", "`# c #1E212B", " $ c #5E637E", ".$ c #6D7494", "+$ c #767A88", "@$ c #0E0E0A", "#$ c #100F06", "$$ c #D1C52E", "%$ c #2F2B0C", "&$ c #080704", "*$ c #4B4D4F", "=$ c #8288AE", "-$ c #5B5E5A", ";$ c #5E5614", ">$ c #B1A827", ",$ c #1B1A10", "'$ c #696D7D", ")$ c #18191F", "!$ c #4E526A", "~$ c #5A5F7C", "{$ c #696E8E", "]$ c #7D839A", "^$ c #18180F", "/$ c #A79E22", "($ c #8F8820", "_$ c #2F2F21", ":$ c #585D76", "<$ c #656A83", "[$ c #73798D", "}$ c #606466", "|$ c #6D717B", "1$ c #8A92B4", "2$ c #686D75", "3$ c #858DAB", "4$ c #222318", "5$ c #050404", "6$ c #C0B528", "7$ c #78721A", "8$ c #252517", "9$ c #6E7389", "0$ c #8189B2", "a$ c #646A87", "b$ c #323544", "c$ c #585E76", "d$ c #646886", "e$ c #757B9E", "f$ c #7C8198", "g$ c #1E1E14", "h$ c #857E1E", "i$ c #D5C92E", "j$ c #0E0D06", "k$ c #111106", "l$ c #515562", "m$ c #676C79", "n$ c #262718", "o$ c #454642", "p$ c #888FAF", "q$ c #37372C", "r$ c #040304", "s$ c #40433B", "t$ c #878FB1", "u$ c #8A91B9", "v$ c #6B6E71", "w$ c #2A260A", "x$ c #ECE032", "y$ c #F0E434", "z$ c #5B5614", "A$ c #28281C", "B$ c #71778D", "C$ c #848BB2", "D$ c #101116", "E$ c #53576C", "F$ c #5D627E", "G$ c #6D7594", "H$ c #6E737D", "I$ c #15150E", "J$ c #7A741C", "K$ c #EEE232", "L$ c #38340E", "M$ c #44443D", "N$ c #606570", "O$ c #24241A", "P$ c #5A5514", "Q$ c #2D2B0C", "R$ c #42443B", "S$ c #7F87A9", "T$ c #8890B0", "U$ c #36372E", "V$ c #433F10", "W$ c #3F4036", "X$ c #878FB2", "Y$ c #868EB3", "Z$ c #434439", "`$ c #EDE132", " % c #524E12", ".% c #212217", "+% c #6D7180", "@% c #08080C", "#% c #383C4B", "$% c #676C8B", "%% c #8991B1", "&% c #515451", "*% c #8E871E", "=% c #6B6516", "-% c #2C2D20", ";% c #54586A", ">% c #5D616C", ",% c #232316", "'% c #605B14", ")% c #DFD430", "!% c #2D2A0C", "~% c #3F4039", "{% c #424011", "]% c #EADF32", "^% c #E2D730", "/% c #2F2E0E", "(% c #3D3D31", "_% c #79819E", ":% c #848BAE", "<% c #7F849A", "[% c #222217", "}% c #656016", "|% c #10100A", "1% c #595D5B", "2% c #838AB0", "3% c #3F4256", "4% c #111216", "5% c #8C94BA", "6% c #6C707B", "7% c #26251C", "8% c #1B1A08", "9% c #B8AE26", "0% c #867F1C", "a% c #1C1B10", "b% c #535765", "c% c #595C67", "d% c #222218", "e% c #2C290C", "f% c #515350", "g% c #7C82A7", "h% c #4D4F4B", "i% c #434010", "j% c #EADE32", "k% c #3C3D31", "l% c #79809B", "m% c #8189AD", "n% c #71747B", "o% c #11110B", "p% c #B2A826", "q% c #999222", "r% c #0D0C06", "s% c #2F3022", "t% c #707382", "u% c #7B83A5", "v% c #343745", "w% c #878EAE", "x% c #666970", "y% c #2A291E", "z% c #050504", "A% c #5D5815", "B% c #E3D730", "C% c #8C841E", "D% c #15150D", "E% c #505358", "F% c #575B67", "G% c #222214", "H% c #F1E534", "I% c #A19920", "J% c #383A2D", "K% c #7C84AA", "L% c #33332D", "M% c #C2B82A", "N% c #322E0C", "O% c #3D3C31", "P% c #7A7F9C", "Q% c #8086AA", "R% c #64686A", "S% c #0B0A04", "T% c #0E0B06", "U% c #D3C72E", "V% c #33342C", "W% c #6C6F78", "X% c #393D4F", "Y% c #525770", "Z% c #606582", "`% c #72799C", " & c #8890B3", ".& c #7C8292", "+& c #63676E", "@& c #3D3F38", "#& c #15150B", "$& c #484512", "%& c #C3BA29", "&& c #7E761A", "*& c #4E5157", "=& c #555966", "-& c #212114", ";& c #B3A924", ">& c #4F5253", ",& c #626682", "'& c #73799A", ")& c #65686B", "!& c #171508", "~& c #CBBE2C", "{& c #312F0C", "]& c #3B3C2F", "^& c #797E9A", "/& c #7E84A6", "(& c #5C5E5A", "_& c #0D0B06", ":& c #A39924", "<& c #ADA426", "[& c #35320E", "}& c #1D1C10", "|& c #434442", "1& c #7F859A", "2& c #8990B6", "3& c #8D93BB", "4& c #292B38", "5& c #64666D", "6& c #16150B", "7& c #060504", "8& c #181707", "9& c #706918", "0& c #CAC02A", "a& c #E8DC32", "b& c #585214", "c& c #17160D", "d& c #4F525B", "e& c #222115", "f& c #B3AA25", "g& c #474A44", "h& c #5C617A", "i& c #6E748F", "j& c #8188AF", "k& c #595B57", "l& c #171407", "m& c #CBBF2C", "n& c #3B3C31", "o& c #777C97", "p& c #5C5F5D", "q& c #0E0E07", "r& c #7D751A", "s& c #F0E334", "t& c #B6AD26", "u& c #111006", "v& c #080804", "w& c #1B1C0F", "x& c #6D7181", "y& c #272934", "z& c #494D62", "A& c #5E6380", "B& c #717798", "C& c #8A91B7", "D& c #1B1A0E", "E& c #5B5516", "F& c #867F1F", "G& c #C6BB2A", "H& c #C2B828", "I& c #2B270C", "J& c #222213", "K& c #505562", "L& c #555963", "M& c #212013", "N& c #615C14", "O& c #484A45", "P& c #606680", "Q& c #838AAF", "R& c #545650", "S& c #E1D630", "T& c #3C3C32", "U& c #767D96", "V& c #7B7FA0", "W& c #63666A", "X& c #453F10", "Y& c #D8CC2E", "Z& c #B8AE28", "`& c #7D761B", " * c #534F12", ".* c #29291D", "+* c #7E86AA", "@* c #5C627B", "#* c #15161E", "$* c #575C75", "%* c #666B8A", "&* c #7980A3", "** c #8A91B2", "=* c #151509", "-* c #E0D530", ";* c #6E6818", ">* c #343529", ",* c #545765", "'* c #565A67", ")* c #222216", "!* c #615B14", "~* c #B4AA24", "{* c #494A46", "]* c #525670", "^* c #7C83A4", "/* c #888FB8", "(* c #8087A8", "_* c #515349", ":* c #3B3C30", "<* c #767D92", "[* c #7981A0", "}* c #6B717D", "|* c #2E2D20", "1* c #877F1E", "2* c #252519", "3* c #6C7391", "4* c #878DB3", "5* c #303342", "6* c #5B617E", "7* c #6D7394", "8* c #8087B0", "9* c #28281D", "0* c #847C1D", "a* c #161407", "b* c #18180D", "c* c #4A4C45", "d* c #212113", "e* c #0A0905", "f* c #484A43", "g* c #53576D", "h* c #5D637C", "i* c #6B708B", "j* c #7980A0", "k* c #7F86A4", "l* c #50524C", "m* c #3B3B30", "n* c #767B93", "o* c #7A80A1", "p* c #727891", "q* c #4E4F4A", "r* c #121006", "s* c #221E08", "t* c #988E20", "u* c #C6BC2A", "v* c #5E627C", "w* c #6C718F", "x* c #7E85AC", "y* c #323442", "z* c #4A4E63", "A* c #757CA1", "B* c #40423B", "C* c #C7BD2A", "D* c #675E18", "E* c #100E06", "F* c #0F0F08", "G* c #535768", "H* c #5B5E6B", "I* c #222113", "J* c #B3A925", "K* c #484A42", "L* c #535771", "M* c #5D627B", "N* c #7A80A0", "O* c #7F85A4", "P* c #181508", "Q* c #3C3D32", "R* c #767C95", "S* c #7B83A2", "T* c #757C98", "U* c #666B79", "V* c #3A3A2D", "W* c #1B1708", "X* c #766E1A", "Y* c #CCC12C", "Z* c #978F20", "`* c #676B87", " = c #676D8A", ".= c #5A5D5D", "+= c #958D1E", "@= c #C5BB2A", "#= c #605916", "$= c #1B1908", "%= c #17170C", "&= c #3C3D30", "*= c #535661", "== c #5A5F76", "-= c #5C616C", ";= c #0C0B06", ">= c #7A80A2", ",= c #8990B5", "'= c #7E85A4", ")= c #50524D", "!= c #181608", "~= c #322F0C", "{= c #3A3B31", "]= c #787E98", "^= c #7E84A7", "/= c #7980A2", "(= c #6F7490", "_= c #61636D", ":= c #38392E", "<= c #2C270A", "[= c #696118", "}= c #A29A22", "|= c #D0C42C", "1= c #696316", "2= c #7B81A4", "3= c #858BB1", "4= c #797D8C", "5= c #2D2E21", "6= c #494C47", "7= c #545869", "8= c #595E76", "9= c #5F647E", "0= c #646775", "a= c #242417", "b= c #6B708C", "c= c #797FA0", "d= c #858CB1", "e= c #3A3B2F", "f= c #8187A8", "g= c #7E85A6", "h= c #767C9A", "i= c #6A708D", "j= c #626574", "k= c #4B4C45", "l= c #2A2A1E", "m= c #111107", "n= c #7E86AC", "o= c #21232D", "p= c #383B49", "q= c #565A75", "r= c #5F635F", "s= c #35362C", "t= c #35352B", "u= c #414339", "v= c #4F5153", "w= c #54586B", "x= c #686E89", "y= c #6A7080", "z= c #797F9E", "A= c #848CAE", "B= c #191608", "C= c #3A3D31", "D= c #78809B", "E= c #828AAC", "F= c #7C84A6", "G= c #757B9A", "H= c #6B718D", "I= c #636882", "J= c #5E616E", "K= c #515352", "L= c #3E3F39", "M= c #2F3024", "N= c #2F2F26", "O= c #4D5052", "P= c #5D627C", "Q= c #404557", "R= c #484D63", "S= c #7B81A2", "T= c #696F89", "U= c #5A5E76", "V= c #595E78", "W= c #5F6680", "X= c #666B87", "Y= c #6D728D", "Z= c #7B82A0", "`= c #313225", " - c #7D85A4", ".- c #171608", "+- c #45463C", "@- c #7B82A1", "#- c #878EB1", "$- c #767D9C", "%- c #6F7492", "&- c #686D87", "*- c #5D6379", "=- c #5A607A", "-- c #646A84", ";- c #606580", ">- c #08080A", ",- c #6A6F8F", "'- c #838AAE", ")- c #767C9D", "!- c #6C728E", "~- c #6A6F8B", "{- c #707493", "]- c #757A9A", "^- c #8086A5", "/- c #848CB1", "(- c #868BA7", "_- c #484944", ":- c #7980A1", "<- c #858DAF", "[- c #8A90B6", "}- c #CFC52C", "|- c #040406", "1- c #212115", "2- c #6C728B", "3- c #7C83A3", "4- c #858DB1", "5- c #8187AB", "6- c #7C81A2", "7- c #757B9C", "8- c #717693", "9- c #6C728C", "0- c #696E8A", "a- c #6B708A", "b- c #737896", "c- c #181820", "d- c #5C617E", "e- c #848BAC", "f- c #7F86A8", "g- c #7E84A5", "h- c #7F87A6", "i- c #8189AC", "j- c #8B91B9", "k- c #3F4037", "l- c #453F0E", "m- c #0B0905", "n- c #79809F", "o- c #7D84A7", "p- c #767D9F", "q- c #7F87AA", "r- c #50524B", "s- c #2C2A0C", "t- c #3E3E33", "u- c #60667F", "v- c #707692", "w- c #8088AB", "x- c #868EB2", "y- c #8389AC", "z- c #8087A9", "A- c #838AAD", "B- c #8A91B8", "C- c #8C92B9", "D- c #878DAB", "E- c #353527", "F- c #8087AB", "G- c #3D4053", "H- c #13151C", "I- c #474C61", "J- c #343527", "K- c #1C1E26", "L- c #2D2F39", "M- c #626888", "N- c #777DA4", "O- c #8086A3", "P- c #333328", "Q- c #37330C", "R- c #6A7089", "S- c #787F9E", "T- c #676B8A", "U- c #0B0B10", "V- c #14161C", "W- c #707697", "X- c #34352A", "Y- c #5D6279", "Z- c #6C738D", "`- c #2F3240", " ; c #363848", ".; c #575B76", "+; c #888FB5", "@; c #7A8095", "#; c #343427", "$; c #100F08", "%; c #5E637C", "&; c #6F7595", "*; c #6E7596", "=; c #8990B3", "-; c #51534D", ";; c #0D0C05", ">; c #36372C", ",; c #5A6078", "'; c #666C86", "); c #767C9C", "!; c #868DB0", "~; c #3B3F50", "{; c #7B83A6", "]; c #868DB2", "^; c #79809E", "/; c #666B6F", "(; c #5E6272", "_; c #585D74", ":; c #575D75", "<; c #5E647E", "[; c #6B708D", "}; c #15181E", "|; c #262834", "1; c #757C9F", "2; c #6D717D", "3; c #5F6367", "4; c #5A5E74", "5; c #5C6079", "6; c #666A85", "7; c #757A99", "8; c #828AAF", "9; c #494D5F", "0; c #43465B", "a; c #868CAE", "b; c #7A81A2", "c; c #656986", "d; c #656981", "e; c #7A809F", "f; c #8890B5", "g; c #7F85A7", "h; c #717794", "i; c #646881", "j; c #696F8C", "k; c #757C9B", "l; c #51566C", "m; c #424659", "n; c #5A5E7C", "o; c #7F87B0", "p; c #777D9C", "q; c #777D9B", "r; c #7D85A7", "s; c #36394C", "t; c #35394A", "u; c #7B82AA", "v; c #8188AB", "w; c #777D9D", "x; c #888EB7", "y; c #232531", "z; c #272A36", "A; c #5E6482", "B; c #72799B", "C; c #878EB0", "D; c #8A91B5", "E; c #5C617B", "F; c #44485D", "G; c #232631", "H; c #272935", "I; c #6C7294", "J; c #44475C", "K; c #8288AF", "L; c #333646", "M; c #686D8A", "N; c #7D85AC", "O; c #5B617B", "P; c #585C78", "Q; c #7D84A9", "R; c #53586E", "S; c #8B92B7", "T; c #7D849A", "U; c #868DAF", "V; c #16171C", "W; c #1B1D26", "X; c #6B6F91", "Y; c #8187A5", "Z; c #4A4E61", "`; c #5B607E", " > c #888FAD", ".> c #3A3B33", "+> c #707688", "@> c #686E8D", "#> c #09090C", "$> c #494D63", "%> c #0D0D08", "&> c #484A46", "*> c #3F4258", "=> c #2C2E3C", "-> c #5B5F7E", ";> c #8990B0", ">> c #312D0C", ",> c #6B6F7C", "'> c #5A5F7B", ")> c #454A5F", "!> c #525871", "~> c #5C5F5C", "{> c #161508", "]> c #2B280C", "^> c #43453C", "/> c #8187AC", "(> c #2F3242", "_> c #7E86B0", ":> c #36382F", "<> c #9F9620", "[> c #666A72", "}> c #8389B2", "|> c #2B2E3A", "1> c #606584", "2> c #5A5E61", "3> c #7C83A7", "4> c #171820", "5> c #696E8C", "6> c #40403C", "7> c #10110B", "8> c #64686F", "9> c #8990B8", "0> c #8188AC", "a> c #50546A", "b> c #45495C", "c> c #4C5166", "d> c #6D7393", "e> c #7C83AA", "f> c #5B5E5C", "g> c #484943", "h> c #070709", "i> c #666B89", "j> c #7A82A4", "k> c #8A90B8", "l> c #8A91AE", "m> c #191807", "n> c #100F0A", "o> c #8087AC", "p> c #8990B9", "q> c #626786", "r> c #606684", "s> c #686D8C", "t> c #D8CD2E", "u> c #202014", "v> c #6D728F", "w> c #4C5167", "x> c #787FA3", "y> c #34352B", "z> c #605A14", "A> c #65686F", "B> c #8188B0", "C> c #7D84A8", "D> c #6F7694", "E> c #7A81A3", "F> c #CAC02C", "G> c #383729", "H> c #60677F", "I> c #8189B0", "J> c #636884", "K> c #3A3D4D", "L> c #757BA0", "M> c #61656C", "N> c #393B3A", "O> c #424442", "P> c #5C6067", "Q> c #787D8F", "R> c #8389A0", "S> c #27271C", "T> c #615A14", "U> c #9E9620", "V> c #636870", "W> c #8187AE", "X> c #848BB1", "Y> c #5B5E5F", "Z> c #CABF2C", "`> c #44400F", " , c #29291A", "., c #545867", "+, c #595F78", "@, c #737882", "#, c #595C63", "$, c #3F403E", "%, c #3C3E3C", "&, c #73778D", "*, c #262733", "=, c #6F7696", "-, c #797E8E", ";, c #080805", ">, c #040606", ",, c #19190D", "', c #3F403C", "), c #6C707A", "!, c #7C8297", "~, c #605914", "{, c #11110A", "], c #646870", "^, c #8E94BB", "/, c #5B5D5A", "(, c #45410F", "_, c #2A2A1C", ":, c #535869", "<, c #5C6078", "[, c #6A718E", "}, c #838AA6", "|, c #666973", "1, c #363730", "2, c #15140A", "3, c #242530", "4, c #111117", "5, c #6C7194", "6, c #5C5E61", "7, c #C3B92A", "8, c #938B20", "9, c #5A5614", "0, c #1C1C11", "a, c #535556", "b, c #8188A5", "c, c #767B8E", "d, c #242416", "e, c #656870", "f, c #5B5D5C", "g, c #C9BF2C", "h, c #44400E", "i, c #292A1D", "j, c #525667", "k, c #595F76", "l, c #646984", "m, c #6A6E78", "n, c #474841", "o, c #16160C", "p, c #232209", "q, c #656017", "r, c #9D9522", "s, c #666116", "t, c #656970", "u, c #41433C", "v, c #C7BC2A", "w, c #B9B028", "x, c #13130B", "y, c #535652", "z, c #838AA3", "A, c #73788A", "B, c #232418", "C, c #5F5A14", "D, c #646871", "E, c #5B5F5D", "F, c #46410E", "G, c #545769", "H, c #606370", "I, c #3D3F33", "J, c #0E0C06", "K, c #151306", "L, c #726B18", "M, c #979021", "N, c #484A44", "O, c #7A82A8", "P, c #5F657F", "Q, c #313443", "R, c #626788", "S, c #777CA4", "T, c #E1D530", "U, c #7D761C", "V, c #1F1F16", "W, c #6C6F71", "X, c #868CB0", "Y, c #8289AD", "Z, c #737888", "`, c #65676E", " ' c #5B5D5E", ".' c #545871", "+' c #5A5F71", "@' c #4C4D46", "#' c #201F09", "$' c #948D1F", "%' c #E8DD32", "&' c #333428", "*' c #60647D", "=' c #353848", "-' c #16171E", ";' c #5C647E", ">' c #302E0C", ",' c #45463D", "'' c #7E85A1", ")' c #8187AA", "!' c #72788A", "~' c #10100B", "{' c #64686E", "]' c #575A67", "^' c #2E2E21", "/' c #847D1E", "(' c #242317", "_' c #5B6178", ":' c #6D7290", "<' c #50546D", "[' c #7F86B0", "}' c #18180B", "|' c #141306", "1' c #5D5516", "2' c #89811E", "3' c #C9BE2A", "4' c #BAB128", "5' c #25240A", "6' c #2B2C1F", "7' c #747989", "8' c #7F85A8", "9' c #727786", "0' c #63686C", "a' c #505353", "b' c #1A190F", "c' c #3E3B10", "d' c #D2C72E", "e' c #BCB128", "f' c #7E771B", "g' c #555014", "h' c #595E74", "i' c #696D88", "j' c #60657F", "k' c #2B2D3C", "l' c #777FA3", "m' c #595C5A", "n' c #131309", "o' c #060404", "p' c #211E08", "q' c #726918", "r' c #CCC12A", "s' c #514D11", "t' c #191910", "u' c #6D7280", "v' c #7C82A4", "w' c #717584", "x' c #252417", "y' c #EADD32", "z' c #4C4E4B", "A' c #77711A", "B' c #BCB227", "C' c #131106", "D' c #4B4E4B", "E' c #656B85", "F' c #0A0B0E", "G' c #5C617D", "H' c #656A6F", "I' c #4A4B44", "J' c #2F2F24", "K' c #4D4612", "L' c #7C771A", "M' c #181810", "N' c #6B7077", "O' c #707585", "P' c #686C77", "Q' c #64686C", "R' c #4A4C44", "S' c #A39B24", "T' c #B1A626", "U' c #39340E", "V' c #313125", "W' c #474945", "X' c #51555A", "Y' c #555968", "Z' c #5B5F7A", "`' c #393E50", " ) c #7D84AC", ".) c #868CAF", "+) c #5F657D", "@) c #5C606F", "#) c #4A4B45", "$) c #222114", "%) c #857F1C", "&) c #6A6E76", "*) c #717585", "=) c #8F871E", "-) c #3D3D34", ";) c #747A9B", ">) c #323330", ",) c #C3B82A", "') c #4E5150", ")) c #0B0B08", "!) c #B9AF26", "~) c #D3C82E", "{) c #474210", "]) c #27271A", "^) c #4A4D4A", "/) c #53586B", "() c #5E637B", "_) c #646B84", ":) c #616786", "<) c #767CA2", "[) c #828AAD", "}) c #7A7FA0", "|) c #727998", "1) c #6D728E", "2) c #676C87", "3) c #61687D", "4) c #4F514E", "5) c #1E1C11", "6) c #201D0A", "7) c #BBB028", "8) c #202116", "9) c #707584", "0) c #2B290C", "a) c #464840", "b) c #666C87", "c) c #787DA0", "d) c #4C4E47", "e) c #443F0E", "f) c #535868", "g) c #54575D", "h) c #ACA425", "i) c #9E9422", "j) c #242517", "k) c #4D5054", "l) c #575B70", "m) c #61657F", "n) c #666B84", "o) c #6B718C", "p) c #717696", "q) c #3D4256", "r) c #7B82A2", "s) c #6E748E", "t) c #656A7A", "u) c #3F3F37", "v) c #090704", "w) c #958C20", "x) c #333529", "y) c #737991", "z) c #242418", "A) c #55596C", "B) c #5D637B", "C) c #888EAD", "D) c #36372B", "E) c #443E0F", "F) c #535668", "G) c #595C6A", "H) c #989022", "I) c #0E0D08", "J) c #44463E", "K) c #575B75", "L) c #626982", "M) c #6B728E", "N) c #737A98", "O) c #8289AC", "P) c #44485A", "Q) c #707691", "R) c #585959", "S) c #13120C", "T) c #060304", "U) c #7D751C", "V) c #38350E", "W) c #515246", "X) c #767C98", "Y) c #7C83A5", "Z) c #717786", "`) c #5B5514", " ! c #2D290C", ".! c #353528", "+! c #6F7594", "@! c #8289A5", "#! c #38382D", "$! c #645E16", "%! c #1C1D10", "&! c #5B5F78", "*! c #373B4D", "=! c #878EB4", "-! c #777D9A", ";! c #62666B", ">! c #1B1910", ",! c #8B821E", "'! c #D4C92E", ")! c #12120B", "!! c #656979", "~! c #7E86A8", "{! c #727787", "]! c #787E9E", "^! c #7C8199", "/! c #323325", "(! c #2B2B1E", "_! c #535554", ":! c #2B280B", "~ c #707695", ",~ c #1E1E26", "'~ c #6E7394", ")~ c #747984", "!~ c #979020", "~~ c #3C3C31", "{~ c #686F8A", "]~ c #7C82A5", "^~ c #888FB3", "/~ c #8A92B7", "(~ c #313229", "_~ c #555B6F", ":~ c #6C708D", "<~ c #15161D", "[~ c #343646", "}~ c #888EB4", "|~ c #414239", "1~ c #988F22", "2~ c #1A190E", "3~ c #616677", "4~ c #737999", "5~ c #818799", "6~ c #0C0C06", "7~ c #37330E", "8~ c #6C6418", "9~ c #414238", "0~ c #2B2E3C", "a~ c #797FA4", "b~ c #797E8D", "c~ c #5C5714", "d~ c #555858", "e~ c #6B718A", "f~ c #7F86AA", "g~ c #5F6162", "h~ c #89811C", "i~ c #E6DB32", "j~ c #17160B", "k~ c #44485C", "l~ c #050608", "m~ c #313026", "n~ c #9F9721", "o~ c #3D3E36", "p~ c #787E9F", "q~ c #363832", "r~ c #D0C62C", "s~ c #38392C", "t~ c #696F8A", "u~ c #7C82A2", "v~ c #565B76", "w~ c #5C617C", "x~ c #616564", "y~ c #81791C", "z~ c #DED32F", "A~ c #272619", "B~ c #5E647D", "C~ c #8990B1", "D~ c #18170C", "E~ c #60657E", "F~ c #717897", "G~ c #7F86A9", "H~ c #808599", "I~ c #413C10", "J~ c #5C6071", "K~ c #7E86AE", "L~ c #7F8594", "M~ c #585314", "N~ c #575D77", "O~ c #7B81A0", "P~ c #636886", "Q~ c #4F4B12", "R~ c #090904", "S~ c #585B66", "T~ c #6D7078", "U~ c #CCC22A", "V~ c #2D2D20", "W~ c #8088AD", "X~ c #535872", "Y~ c #3A3C33", "Z~ c #8B831E", "`~ c #7A711A", " { c #4B4512", ".{ c #565B65", "+{ c #777E9F", "@{ c #767A87", "#{ c #2B270A", "${ c #564F12", "%{ c #7E761B", "&{ c #716B18", "*{ c #3E4039", "={ c #7F87AC", "-{ c #66696E", ";{ c #16160B", ">{ c #616780", ",{ c #5F6161", "'{ c #2B2B20", "){ c #151409", "!{ c #50535C", "~{ c #7981A1", "{{ c #393D4D", "]{ c #2C2F3C", "^{ c #8A92B6", "/{ c #6B6F74", "({ c #525550", "_{ c #535656", ":{ c #565A61", "<{ c #7C83A2", "[{ c #6A6F82", "}{ c #5B5E64", "|{ c #4B4D4C", "1{ c #43453F", "2{ c #525557", "3{ c #21222E", "4{ c #14151A", "5{ c #666B8C", "6{ c #787FA0", "7{ c #686D85", "8{ c #5F637B", "9{ c #838AAC", "0{ c #696F87", "a{ c #636982", "b{ c #5E627B", "c{ c #646A81", "d{ c #0D0D12", "e{ c #3F4355", "f{ c #7F86AE", "g{ c #6F7591", "h{ c #727797", "i{ c #707591", "j{ c #848CB0", "k{ c #363A49", "l{ c #181A22", "m{ c #5F6481", "n{ c #848BB0", "o{ c #828AAB", "p{ c #6A708F", "q{ c #222430", "r{ c #030406", "s{ c #323646", "t{ c #6A718F", "u{ c #636987", "v{ c #1F202A", "w{ c #12141A", "x{ c #42475B", "y{ c #3E4255", "z{ c #0C0C10", "A{ c #3E4254", "B{ c #0F1116", "C{ c #393C50", "D{ c #53576F", "E{ c #7A80A3", "F{ c #8B93BA", "G{ c #777EA0", "H{ c #4E5369", "I{ c #36394A", "J{ c #181922", "K{ c #101015", "L{ c #17181F", "M{ c #20222C", "N{ c #20212C", "O{ c #15151C", "P{ c #0C0D12", " ", " ", " ", " ", " ", " ", " ", " ", " . . . . . . . . . . . ", " . . + @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ + . . ", " . . @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ . ", " + @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ . ", " . @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ # $ % % % % % & * @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ . ", " + @ @ @ @ @ @ @ @ @ @ = - ; > , ' ) ! ~ ~ ~ { { ] { ^ / ( _ : < [ @ @ @ @ @ @ @ @ @ @ @ . ", " + @ @ @ @ @ @ @ @ @ } | 1 2 3 3 4 5 6 7 8 9 0 a b b c d e f 0 g h i j k l m n @ @ @ @ @ @ @ @ @ . ", " . @ @ @ @ @ @ @ @ o p q r s t u 7 v w x y z A B C D E E F G H I J K L M N O d P Q R S T @ @ @ @ @ @ @ @ . ", " @ @ @ @ @ @ @ @ U , r s V W X Y Z ` ...+.@.#.$.%.&.*.=.-.;.>.,.*.'.).!.~.{.].^./.(._.:.<.[.}.@ @ @ @ @ @ @ + ", " + @ @ @ @ @ @ @ |.1.2.3.4.i 5.6.7.8.9.0.$.a.b.c.d.d.e.e.e.f.e.e.e.f.g.e.e.h.i.j.k.l.).m.n.^.o.p.q.r.U @ @ @ @ @ @ @ + ", " @ @ @ @ @ @ @ s.1.2.s t.u.f v.w.x.~.y.b.j.i.z.f.f.A.f.f.f.A.e.f.A.f.f.f.A.A.f.f.A.f.f.z.d.B.C.D.E.D (.F.G.H.@ @ @ @ @ @ + ", " . @ @ @ @ @ @ I.J.3 s K.h b 7.L.M.).b.N.e.e.e.A.f.A.e.e.f.f.f.f.A.e.e.f.A.e.e.e.f.f.f.e.f.A.A.f.z.O.N.&.P.Q.R.S.T.U.@ @ @ @ @ @ ", " + @ @ @ @ @ V.W.) 2.5 X.d Y.Z.P.y.N.d.f.f.f.f.f.e.f.f.A.f.f.f.A.A.f.A.f.f.f.A.A.f.f.A.f.f.f.e.e.A.f.f.e.f.i.;.`. +.+P ++@ @ @ @ @ @ + ", " + @ @ @ @ @ I.@+2.s #+$+v.%+&+*+N.e.f.A.e.A.f.e.A.f.A.e.e.f.f.f.e.f.e.e.f.A.e.e.e.f.f.f.e.f.A.A.f.f.e.f.e.e.e.e.=+;.-+;+(.>+,+@ @ @ @ @ + ", " + @ @ @ @ @ '+)+2.5 u.!+~+{+&.c.f.i.]+^+/+(+_+f.f.e.f.f.A.f.f.f.A.A.A.A.f.f.f.A.A.f.f.A.f.f.f.e.:+<+[+}+|+e.f.f.f.e.e.O.1+2+3+4+5+@ @ @ @ @ + ", " + @ @ @ @ = 6+2.s #+7+8+9+0+b.i.f.f.a+b+@ V.c+d+e+f+i.e.e.e.f.f.f.e.e.A.e.f.A.e.e.e.f.f.f.e.e.g+h+i+j+@ @ k+l+N.e.A.A.A.f.e.j.m+n+o+p+@ @ @ @ @ + ", " + @ @ @ @ q+r+s+s t+u+v+w+x+j.f.f.f.f.y+@ z+A+B+C+@ D+E+;.F+e.f.f.A.A.f.f.f.f.f.A.A.f.f.A.f.f.G+b+V.H+I+J+K+@ L+n.'.j.e.f.e.f.f.F+;.M+N+O+@ @ @ @ @ + ", " + @ @ @ @ P+Q+2.R+X.S+T+U+;.e.e.A.f.f.i.V+W+X+Y+Y+Y+Z+`+ @.@+@i.f.f.e.e.A.A.f.A.e.e.e.f.f.f.e.f.@@@ #@Y+Y+Y+$@@ %@&@ +y.f.f.f.f.A.e.e.N.*@=@-@@ @ @ @ @ + ", " + @ @ @ @ P+;@>@,@'@)@!@~@N.e.f.f.f.f.f.{@c+]@Y+Y+Y+Y+^@/@(@_@:@=.e.A.A.f.e.f.f.f.A.A.f.f.A.f.f.A.<@[@}@Y+Y+Y+|@1@2@3@4@5@j.e.f.f.f.f.A.f.i.6@7@8@@ @ @ @ @ + ", " + @ @ @ @ 9@0@3 a@9 b@c@+@i.f.A.e.A.f.f.z.d@@ e@Y+Y+Y+f@g@h@i@b j@a.e.e.e.A.A.f.A.e.e.e.f.f.f.e.f.e.k@l@m@n@Y+Y+Y+o@p@q@r@n.j.f.f.A.e.f.f.f.f.=+s@t@8@@ @ @ @ @ + ", " @ @ @ @ g@u@2.V 4+v@w@y.F+f.e.f.f.f.f.f.f.x@@ y@Y+Y+Y+z@@ A@t B@L.*.f.A.f.e.f.f.f.A.A.f.f.A.f.f.A.f.z.C@@ D@Y+Y+Y+E@@ F@G@H@C.e.f.f.f.A.f.e.f.f.i.;.M.I@@ @ @ @ @ ", " @ @ @ @ @ J@s K@L@8+M@N@F+f.A.A.f.A.f.f.f.O@P@Q@n@Y+Y+Y+R@g@S@t.T@U@;.e.A.A.A.f.A.f.e.f.f.A.A.e.f.f.A.f.V@@ W@Y+Y+Y+X@Y@Z@`@ #.#i.A.f.f.f.f.f.A.f.f.f.+#@###@ @ @ @ @ ", " + @ @ @ @ $#3.%#&#*#x.=#i.f.e.f.e.A.f.f.f.g.-#@ ;#Y+Y+Y+>#W+,#'#)#!#~#j.f.f.f.A.e.A.f.A.f.f.e.A.f.A.f.e.g.{#]#^#Y+Y+Y+Y+/#@ (#_#~#j.e.A.A.f.e.A.A.A.f.f.e.:#<#[#@ @ @ @ + ", " . @ @ @ @ }#r 3 |#1#2#3#i.f.f.f.A.f.f.f.e.f.4#5#6#|@Y+Y+Y+7#@ 8#9#'@0#a#j.A.e.f.f.f.A.e.f.e.A.f.e.f.f.f.f.A.b#c#d#e#Y+Y+Y+f#g#i+h#i#y.e.e.f.f.f.e.e.e.f.A.f.e.s@j#k#@ @ @ @ . ", " @ @ @ @ ,+l#3 m#n#^.o#F+f.f.e.f.e.A.f.f.f.p#q#@ r#Y+Y+Y+n@s#t#u#>@v#w#3#i.f.f.A.e.f.A.A.f.f.e.A.f.A.f.e.f.f.e.x#y#z#Y+Y+Y+Y+A#@ B#C#D#E#A.f.e.A.A.A.f.f.e.f.f.e.F#a V.@ @ @ @ ", " + @ @ @ @ G#s t.d H#0+N.f.f.f.f.A.f.f.f.e.f.I#J#K#n@Y+Y+Y+L#@ M#r j N#O#c.f.e.f.f.f.f.A.f.e.A.f.e.f.f.f.f.A.f.g.P#Q#R#S#Y+Y+Y+T#U#V#W#X#Y#e.f.f.e.e.e.f.A.f.f.A.f.e.6@Z#@ @ @ @ + ", " . @ @ @ @ `#s >@ $.${.b.f.f.f.e.f.e.A.f.f.f.+$@$#$$$Y+Y+Y+|@%$&$*$9# $4@=$j.f.f.A.e.f.f.f.f.f.e.A.f.A.f.e.f.f.e.f.e.-$y#;$Y+Y+Y+Y+>$@ ,$'$~#+#e.A.A.A.f.f.e.f.f.f.e.f.N.-+)$@ @ @ @ . ", " @ @ @ @ T !$9#~${$w@=.f.f.f.f.f.A.f.f.f.e.]$^$V./$Y+Y+Y+Y+($@ _$'#:$<$[$}$|$j.f.f.f.f.A.A.e.A.f.e.f.f.f.1$2$[+F+f.e.3$4$5$6$Y+Y+Y+Y+7$@ 8$9$0$d.e.e.e.f.A.f.f.A.f.f.A.f.j.a$@ @ @ @ @ ", " . @ @ @ @ b$3 c$d$e$).F+f.f.f.e.f.e.A.f.f.f$g$@ h$Y+Y+Y+Y+i$j$k$l$3.'@m$n$@ 5$o$-.d.e.f.e.A.f.e.A.f.A.f.p$q$V.r$s$t$j.u$v$[@w$x$Y+Y+Y+y$z$@ A$B$C$i.f.f.f.e.f.f.f.e.f.e.e.e.s@6+@ @ @ @ . ", " @ @ @ @ D$E$s F$G$-+N.f.f.f.f.f.A.f.f.f.H$I$@ J$Y+Y+Y+Y+K$L$g@M$r :$N$O$@ P$Q$V.R$S$;.f.f.A.A.f.e.f.f.T$U$@ V$Q@y#W$E+X$Y$Z$y#/#Y+Y+Y+Y+`$ %@ .%+%6@N.e.A.f.f.A.f.f.A.A.A.A.i.X#@%@ @ @ @ ", " . @ @ @ @ #%s i $% +;.f.f.f.f.e.f.e.A.%%&%V#b+*%Y+Y+Y+Y+Y+=%@ -%;%>@>%,%@ '%X+)%!%V.~%7@N@e.f.e.A.f.A.p$q$@ {%]%^%/%= (%_%:%<%[%d#;#Y+Y+Y+Y+y$}%@ |%1%2%N.e.f.f.f.e.f.e.e.e.f.z.j.3%@ @ @ @ . ", " @ @ @ @ 4%2.V 5.B 0+j.f.f.f.f.f.A.5%6%7%V.8%9%Y+Y+Y+Y+Y+0%y#a%b%s c%d%@ '%X+Y+Y+)%e%V.f%g%;.i.f.e.f.f.h%@ i%j%Y+Y+^%Q@V.k%l%m%n%o%p@p%Y+Y+Y+Y+Y+q%r%J#s%t%:#e.A.f.f.A.A.A.A.f.f.i.u%P+@ @ @ @ ", " @ @ @ @ v%2.~${$7@b.f.f.f.f.e.w%x%y%z%V.A%B%Y+Y+Y+Y+Y+C%y#D%E%s+F%G%@ '%H%Y+Y+Y+Y+I%@ J%M K%:#f.f.A.e.L%y#M%Y+Y+Y+Y+^%N%V.O%P%Q%R%S%T%9%Y+Y+Y+Y+Y+U%i%@ [@V%W%,.i.f.e.e.e.f.e.g.A._+X%@ @ @ @ . ", " + @ @ @ ,+Y%V Z%`%).i.f. &.&+&@&#&V.V.$&%&Y+Y+Y+Y+Y+Y+&&@ 1@*&9#=&-&@ '%X+Y+Y+Y+Y+;&S%S%>&,&'&$.i.f.f.A.)&p@!&~&Y+Y+Y+Y+^%{&= ]&^&/&(&S%_&:&Y+Y+Y+Y+Y+Y+<&[&@ J#}&|&2$1&2&f.f.f.f.e.3&^.V.@ @ @ @ ", " @ @ @ @ 4&s Q 1#{+b.f.5&6&7&@ @ 8&9&0&Y+Y+Y+Y+Y+Y+a&b&@ c&d&'#=&e&@ '%X+Y+Y+Y+Y+f&S%V#g&s h&i&j&j.A.e.e.e.k&p@l&m&Y+Y+Y+Y+^%{&V.n&o&7@p&q&d#r&s&Y+Y+Y+Y+Y+H%t&z$u&@ @ v&w&x&d.e.A.A.f.i.y&@ @ @ @ . ", " . @ @ @ @ z&t A&B&2%i.C&D&u&E&F&G&H%Y+Y+Y+Y+Y+Y+Y+H&I&@ J&K&'#L&M&@ N&X+Y+Y+Y+Y+;&S%V#O&'#5 P&~+Q&i.f.A.f.f.X$R&p@l&m&Y+Y+Y+Y+S&{&V.T&U&V&W&^$@ X&Y&Y+Y+Y+Y+Y+Y+Y+x$Z&`& *p@.*+*%.N.e.f.e.@*@ @ @ @ @ ", " + @ @ @ #*s+$*%*&*;.f.**=*{&Y+Y+Y+Y+Y+Y+Y+Y+Y+-*;*p@b+>*,*r '*)*@ !*X+Y+Y+Y+Y+~*S%V#{*]*t $_@^*/*f.e.e.f.e.u$(*_*p@!&~&Y+Y+Y+Y+S&Q@= :*<*[*}*|*r$#$1*`$Y+Y+Y+Y+Y+Y+Y+Y+]%z%2*3*9.6@e.A.e.4*U.@ @ @ @ ", " @ @ @ @ 5*%#6*7*8*i.e.f.9*&$`$Y+Y+Y+Y+Y+Y+-*0*a*y#b*c*s+s F%d*@ '%H%Y+Y+Y+n@~*e*V#f*g*4.h*i*j*3#=+f.A.f.A.A.e.:#k*l*b+!&~&Y+Y+Y+Y+S&N%y#m*n*o*p*q*r*@ s*t*K$Y+Y+Y+Y+Y+Y+u*@ %@v*w*x*c.f.e.i.y*@ @ @ @ . ", " . @ @ @ @ z*t f A*&.e.f.e.B*@ C*Y+Y+Y+n@Z&D*E*@ F*y+G*2.4.H*I*@ '%X+Y+Y+Y+Y+J*R#V#K*L*t M*_@N*%.i.f.e.e.f.e.f.e.e.k.O*l*p@P*~&Y+Y+Y+Y+S&N%V.Q*R*S*T*U*V*P@@ W*X*Y*Y+Y+Y+Y+Z*@ B*c$`*7@b.f.A.e.h*@ @ @ @ @ ", " . @ @ @ I.3 6 =E.u$e.A.g..=y#+=@=;##=$=y#V.%=&=*=9#4 ==-=,%@ '%H%Y+Y+Y+Y+J*;=V#O&L*4.'@_@>=3#i.f.A.A.f.A.A.f.f.e.e.,='=)=b+!=~&Y+Y+Y+Y+S&~=V.{=]=^=/=(=_=:=1@y#y#<=[=}=|=1=V.S@:$N#2=u$e.f.g.3=J#@ @ @ @ ", " @ @ @ @ S s *5@j.f.e.A.4=[@y#d#y#g@#&5=6=7=9#t 8=9=0=a=@ !*H%Y+Y+Y+Y+~*R#V#O&L*s h*b=c=d=i.e.e.A.e.f.e.f.e.A.A.f.e.,='=l*p@!=m&Y+Y+Y+Y+^%~=@ e=]=f=g=h=i=j=k=l=m=V.@ @ @ 1@7=7 _@n=i.A.e.f.e.o=@ @ @ @ . ", " @ @ @ @ p=q=Z%3+&.i.A.f.e.e.r=s=t=u=v=w=2.s :$X q.x=y=2*@ '%H%Y+Y+Y+Y+~*S%V#O&'#t v*_@z=A=i.f.A.f.f.f.A.A.f.f.e.e.A.f.e.,=g=)=p@B=m&Y+Y+Y+Y+^%~=V.C=D=E=E=F=G=H=I=J=K=L=M=N=O=3.P=4@a#i.f.f.f.f.Q=@ @ @ @ @ ", " @ @ @ @ R=$*n#&*b.e.e.A.A.z.b.S=T=v*U=V=h*W=X=Y=J Z=`=@ !*H%Y+Y+Y+Y+~*S%V#{*g*4.h*b=N*F#i.f.e.e.A.A.f.e.f.e.A.A.f.e.A.f.e.,= -)=p@.-m&Y+Y+Y+Y+^%N%y#+-@-%.#-Q&/&$-%-&-I=*-7 t+=---L.3#e.e.f.f.z.;-@ @ @ @ @ ", " . @ @ @ >-2.m#,-&+j.A.f.e.f.z.i.'-)-!-~-_@{-]-j*^-/-(-#&8&>#Y+Y+Y+Y+~*e*V#_-]*%#P=_@:-<-i.e.f.A.f.e.f.A.A.f.f.e.e.A.f.e.A.e.z.[- -l*p@!&~&Y+Y+Y+Y+}-|-1-2-3-s@d.N.4-5-6-7-8-9-0-a-b-Q%j.f.f.f.A.A.2=@ @ @ @ @ . ", " . @ @ @ c-s d-o.*@i.e.A.A.f.f.e.j.e-f-g-h-i-4-k.j-i.=+k-@ l-]%Y+Y+~*m-V#O&L*R+v*b=n-%.i.f.A.e.e.A.f.o-p-q-e.A.A.f.e.A.f.f.A.e.e.,= -r-p@!&~&Y+Y+)%s-V.t-u-v-w-i.e.z.i.b.x-y-z-~#g=A-k.e.e.f.f.e.e.5%@%@ @ @ @ . ", " . @ @ @ ; 3 5.w.6@e.f.e.f.e.A.f.e.i.B-C-_+O.e.f.A.A.A.D-E-y#l-]%~*m-V#O&'#R+P=_@>=/-i.f.e.f.A.F-G-I.@ @ @ H-I-6@e.e.e.A.e.f.A.e.z.+# -r-b+a*m&)%!%V.J-'#X ~-@.B-e.f.A.f.e.e.=+j.d.i.e.A.f.f.A.A.f.e.K-@ @ @ @ . ", " @ @ @ @ L-V M-N-;.e.A.A.f.f.e.A.A.e.f.f.f.f.f.e.e.e.f.i.O-P-y#Q-S%V#g&L*%#v*R-S-&.i.e.f.A.e.T-U-@ @ @ @ @ @ @ V-W-;.F+f.A.e.f.A.e.z.+#'=)=b+!&I&V.X-7=%#Y-Z-+*j.f.f.f.e.e.e.f.e.A.e.e.e.f.f.e.e.A.g.`-@ @ @ @ @ ", " @ @ @ @ ;.;S.9.b.e.e.f.e.A.f.e.f.f.A.f.e.A.f.A.A.A.f.f.+;@;#;b+$;{*3.s %;R->=4-i.e.A.e.f.&;q+@ @ @ @ @ @ @ @ @ I.*;).N.f.A.e.f.A.e.z.=;O*-;;;&$>;G*3 ,;';);!;i.f.A.f.A.A.A.f.f.f.A.A.f.f.A.A.f.e.f._ @ @ @ @ @ ", " @ @ @ @ ~;V=1#{;B-A.A.f.f.e.A.A.e.f.f.f.f.f.e.e.e.f.e.A.f.];^;/;(;_;:;<;[;x.3#F+f.f.f.A.F+};@ @ @ @ @ @ @ @ @ @ @ |;1;0$N.f.A.e.f.A.e.e.k.~#2;3;4;$*5;6;7;8;j.e.f.f.e.e.e.f.e.A.e.e.e.f.f.e.e.A.f.g.9;@ @ @ @ @ ", " @ @ @ @ 0;6 *#D#j.e.f.e.A.f.e.f.f.A.f.e.A.f.A.A.A.f.f.e.f.d.a;b;Y=c;d;Z-e;<-d.f.e.A.e.f.P=@ @ @ @ @ @ @ @ @ @ @ @ @ V=^.).i.f.A.e.f.A.e.i.f;g;h;';i;j;k;Q&u$f.f.A.f.A.A.A.f.f.f.A.A.f.f.A.A.f.e.f.A.l;@ @ @ @ @ ", " @ @ @ @ m;n;*#o;j.A.f.f.e.A.A.e.f.f.f.f.f.e.e.e.f.e.A.A.f.f.i.];/&p;q;r;F#=+A.f.f.f.A.f.s;@ @ @ @ @ @ @ @ @ @ @ @ @ t;v.u;b.e.f.A.e.f.A.f.e.b.v;c=w;O#8;N.A.e.f.f.e.e.e.f.e.A.e.e.e.f.f.e.e.A.f.f.e.P=@ @ @ @ @ . ", " @ @ @ @ -@*j&i.f.e.A.f.e.f.f.A.f.e.A.f.A.A.A.f.f.e.f.e.f.A.f.N.N@x;N.i.e.f.e.A.e.f.e.y;@ @ @ @ @ @ @ @ @ @ @ @ @ z;A;B;).e.e.f.A.e.e.A.f.z.d.C;Y$D;i.f.f.f.A.f.A.A.A.f.f.f.A.A.f.f.A.A.f.e.f.A.f.E;@ @ @ @ @ . ", " @ @ @ @ F;~$7*$.i.f.f.e.A.A.e.f.f.f.f.f.e.e.e.f.e.A.A.f.f.f.e.f.A.e.z.f.e.A.f.f.f.A.f.A.G;@ @ @ @ @ @ @ @ @ @ @ @ @ H;6*I;5@j.A.e.f.A.f.f.e.A.f.f.e.e.e.A.e.f.f.e.e.e.f.e.A.e.e.e.f.f.e.e.A.f.f.e.A.E;@ @ @ @ @ . ", " @ @ @ @ J;6*7*K;i.e.A.f.e.f.f.A.f.e.A.f.A.A.A.f.f.e.f.e.f.A.A.e.f.A.A.f.f.f.e.A.e.f.e.z.L;@ @ @ @ @ @ @ @ @ @ @ @ @ > j M;N;N.f.A.e.e.A.f.f.f.e.f.f.A.f.f.f.A.f.A.A.A.f.f.f.A.A.f.f.A.A.f.e.f.A.f.f.O;@ @ @ @ @ . ", " @ @ @ @ 0;X..$$.i.f.e.A.A.e.f.f.f.f.f.e.e.e.f.e.A.A.f.f.f.e.f.A.e.e.f.e.A.f.f.f.A.f.A.A.P=@ @ @ @ @ @ @ @ @ @ @ @ @ 0@P;1#Q;j.e.f.A.f.f.e.A.f.A.e.f.e.A.e.f.f.e.e.e.f.e.A.e.e.e.f.f.e.e.A.f.f.e.A.f.R;@ @ @ @ @ . ", " @ @ @ @ r+6*7*!.i.A.f.e.f.f.A.f.e.A.f.A.A.A.f.f.e.f.e.f.A.A.S;T;U;A.f.f.f.e.A.e.f.e.e.e.=.V;@ @ @ @ @ @ @ @ @ @ @ W;3 )#X;N;j.A.e.e.A.f.f.f.Y;<+e.A.f.f.f.A.f.A.A.A.f.f.f.A.A.f.f.A.A.f.e.f.A.f.f.z.Z;@ @ @ @ @ . ", " @ @ @ @ ;`;.$!.i.e.A.A.e.f.f.f.f.f.e.e.e.f.e.A.A.f.f.f.e. >.>[@Z@+>d.e.f.f.f.A.f.A.A.f.e.@>z%@ @ @ @ @ @ @ @ @ #>$>s 9 *;$.i.f.A.f.f.e.f.p&%>v&&>=.=+e.f.f.e.e.e.f.e.A.e.e.e.f.f.e.e.A.f.f.e.A.f.A.*>@ @ @ @ @ . ", " @ @ @ @ =>->I;5@i.f.e.f.f.A.f.e.A.f.A.A.A.f.f.e.f.e.f.A.;>U$@ >>g@k+,>6@N.f.e.f.e.e.e.f.f.b.'>@%@ @ @ @ @ @ @ [ )>!>W x X#F#e.e.e.A.f.f.~>p@{>]>V.^>/>;.f.f.A.A.A.f.f.f.A.A.f.f.A.A.f.e.f.A.f.f.e.e.(>@ @ @ @ @ . ", " + @ @ @ ; m#N _>i.A.A.e.f.f.f.f.f.e.e.e.f.e.A.A.f.f.f.P#:>@ i%]%<>g@o%[>}>B-f.f.A.A.f.f.f.i.).y |>@%@ @ @ o $#2 Y%.;1>v+5@j.f.A.f.f.e.2>p@{>m&)%s-V.B*3>N@i.e.e.f.e.A.e.e.e.f.f.e.e.A.f.f.e.A.f.A.g.K-@ @ @ @ @ ", " . @ @ @ 4>6 5>K%N.e.f.f.A.f.e.A.f.A.A.A.f.f.e.f.e.f.f.6>@ i%]%Y+Y+<>g@7>8>0$9>e.e.e.f.f.A.f.9>0>B b a>b>c>3 2.4 7 q.d>e>;.f.e.e.A.e.f>[@{>e#Y+Y+)%!%V.g>t@;.e.A.f.f.f.A.A.f.f.A.A.f.e.f.A.f.f.e.e.f.P+@ @ @ @ @ ", " . @ @ @ h>t.i>j>k>A.e.f.f.f.f.f.e.e.e.f.e.A.A.f.f.f.l>=*m>>#Y+Y+Y+Y+<>5$n>+&o>B-f.f.f.f.f.f.e.p>-+e$v.q>4+F$P r>s>N+&+N@i.f.A.f.e.f>[@!&e#Y+Y+Y+Y+t>&$u>v>:@;.e.e.A.e.e.e.f.f.e.e.A.f.f.e.A.f.A.f.@.@ @ @ @ @ @ ", " @ @ @ @ w>M-x>-.f.f.A.f.e.A.f.A.A.A.f.f.e.f.e.f.f.z.y>@ z>X+Y+Y+Y+Y+<>z%o%A>B>9>e.f.A.f.e.A.e.j.6@C>H #D>~+%+E>~@:#e.A.e.e.f.f>[@.-F>Y+Y+Y+Y+]%V$@ G>H>~+I>j.f.f.A.A.f.f.A.A.f.e.f.A.f.f.e.e.A.J>@ @ @ @ @ @ ", " @ @ @ @ K>r>L>F#e.f.f.f.f.e.M>N>O>P>Q>C&f.f.f.f.f.g.R>S>@ T>X+Y+Y+Y+Y+U>z%n>V>W>N.e.f.f.f.f.f.f.e.N.a.3=$.X>C.b.F+e.f.f.A.f.Y>[@.-Z>Y+Y+Y+Y+j%`>@ ,.,+,~-@#u$f.e.w%@,#,$,%,&,e.f.f.e.A.f.A.f.f.m;@ @ @ @ @ + ", " @ @ @ @ *,v =,).i.A.f.e.A.-,;,@ @ @ >,,,',),+;e.f.f.i.!,2*@ ~,n@Y+Y+Y+Y+<>z%{,],W>B-^,e.A.e.f.f.e.A.f.e.z.e.e.z.g.f.A.e.e./,[@.-e#Y+Y+Y+Y+]%(,@ _,:,>@<,[,{.},|,1,2,g@@ @ @ b*O-;.i.e.f.e.e.A.f.3,@ @ @ @ @ . ", " . @ @ @ 4,~$5,o;i.f.f.f.f.6,@ +=7,8,9,8&@ g@0,a,b,E#e.#-c,d,@ z>n@Y+Y+Y+Y+U>z%|%e,5@N.e.f.f.f.A.f.f.e.f.f.e.A.A.e.f.f.f.f,[@.-g,Y+Y+Y+Y+j%h,@ i,j,'#k,l,m,n,o,V.@ p,q,r,$@s,V.t,w@6@i.f.A.f.f.1+q+@ @ @ @ @ . ", " . @ @ @ @ 2 1#n.b.f.e.A.e.u,@ v,Y+Y+Y+|@w,R@Y@@ x,y,z,N.).A,B,@ C,X+Y+Y+Y+Y+U>z%n>D,a#N.e.f.f.e.A.A.f.A.f.f.e.f.f.A.e.E,[@.-Z>Y+Y+Y+Y+j%F,@ _,G,2.7 H,I,J,@ K,L,G&Y+Y+Y+Y+M,@ N,H=O,=.e.e.A.f.P,@ @ @ @ @ @ ", " @ @ @ @ Q,R,S,;.e.f.f.f.9*[@]%Y+Y+Y+Y+Y+Y+T,U,1@V.V,W,X,Y,Z,d,y#T>X+Y+Y+Y+Y+<>z%o%`,o>N.e.A.f.e.A.f.f.e.A.A.e.f.e. 'p@.-Z>Y+Y+Y+Y+]%h,@ l=G*.'+'@'x,@ #'$'%'Y+Y+Y+Y+Y+Y+u*@ &'*'w.$.i.f.f.f.='@ @ @ @ @ @ ", " + @ @ @ -';'B&2%i.A.e.**=*>'Y+Y+Y+Y+Y+Y+Y+Y+Y+-*q,g@;,,''')'!'B,@ ~,X+Y+Y+Y+Y+<>z%~'{'W>N.h.A.f.f.A.f.f.e.f.f.f.f>[@!&Z>Y+Y+Y+Y+j%h,@ _,G*3.]'^'5$r%/'j%Y+Y+Y+Y+Y+Y+Y+Y+]%b+('_':'5@i.A.f.b.,+@ @ @ @ @ + ", " . @ @ @ @ <'8+['j.f.A.**}'|'1'2'3'n@Y+Y+Y+Y+Y+Y+Y+4'5'@ 6'7'8'9'd,@ ~,X+Y+Y+Y+Y+<>z%k+0'B>N.h.A.f.f.e.A.A.e.f.Y>[@{>F>Y+Y+Y+Y+j%F,@ l=G*2.a'b'@ c'd'Y+Y+Y+Y+Y+Y+Y+K$e'f'g'b+('h'i'@#j.f.f.j'@ @ @ @ @ @ . ", " @ @ @ @ k'x l'=.e.f.z.m'n'o'd#y#p'q'r'Y+Y+Y+Y+Y+Y+a&s'@ t'u'v'w'x'y#~,X+Y+Y+Y+Y+<>5$k++&B>N.h.f.f.f.e.f.f./,[@{>F>Y+Y+Y+Y+y'F,@ _,G*'#z'@$@ A's&Y+Y+Y+Y+Y+Y+B'#=C'@ @ b+%=D':$E'j>c.f.f.4&@ @ @ @ @ @ ", " + @ @ @ F'G'B&.#e.f.f.h.T;H'I'J'1@y#r$K'3'Y+Y+Y+Y+Y+H%L'@ M'N'b;O'B,y#T>X+Y+Y+Y+Y+<>g@k+P'B>j.A.e.A.A.e.Q'[@{>e#Y+Y+Y+Y+j%h,@ l=j,'#R'V#z%S'Y+Y+Y+Y+Y+Y+T'U'd#V.l@V'W'X'Y'3 Z'M;v'b.f.E.V.@ @ @ @ @ + ", " @ @ @ @ `'v. )b.f.e.e..));N#+)@)#)$)5$r$[=a&Y+Y+Y+Y+Y+%)@ M'&):-*)B,@ z>X+Y+Y+Y+Y+=)@ -);)0$j.e.e.f.A.>)@ ,)Y+Y+Y+Y+y'F,@ _,G,2.')));=!)Y+Y+Y+Y+Y+~){)y#p@])^)/)2.] u =-()_)/.D.i.f., @ @ @ @ @ @ . ", " @ @ @ @ 4%:)<)F#f.f.f.N.[)})|)1)2)3)4)5)@ 6)7)Y+Y+Y+Y+Y+0%@ 8)9):-*)B,@ T>X+Y+Y+)%0)V.a)b)c)3#f.A.e.z.d)@ e)]%Y+Y+]%h,@ i,f)3.g)k+z%h)Y+Y+Y+Y+Y+i)_&r$j)k)'#9#l)X m)n)o)p);+Q%=.e.!.#>@ @ @ @ @ @ ", " . @ @ @ @ q)I;n=N.A.f.f.N.-.X>z-r)k;s)t)u);,v)w)Y+Y+Y+Y+Y+}%@ x)y)S=*)z)@ z>n@)%!%V.t=A)B)v+D.j.f.A.A.C)D)y#E)]%j%h,@ _,F)'#G)u>@ H)Y+Y+Y+Y+X+/#y#I)J)G*9#K)F$L)M)N)N*S$O)Y$B-f.f.P)@ @ @ @ @ @ + ", " @ @ @ @ D$:)N-N@e.e.A.f.e.z.i.c.F#)'n-Q)R)S)T)U)Y+Y+Y+Y+|@V)g@W)X)Y)Z)z)@ `) !V..!w=3. $+!$.i.e.e.f.e.@!P-y#E)e)@ l=G*2.k,#!@ $!Y+Y+Y+Y+X+`)@ %!d&9#4.&!I=:');^-/-=.=+h.g.f.f.w-#>@ @ @ @ @ @ ", " . @ @ @ @ *!M _>j.f.e.f.g.e.f.z.e.E#=!F--!;!>!y#,!Y+Y+Y+Y+'!j$)!!!j*~!{!j)@ g@.!Y%3 X &-]!F#f.A.A.e.f.k>^!/!V.@ (!f)9#7 _![@:!]%Y+Y+Y+X+@t+f![%r$g!Y+Y+Y+Y+h!@ -&i!L*$*u-j!k!e-N.h.g.A.f.f.f.f.f.l!= @ @ @ @ @ @ ", " . @ @ @ @ m!n!&+N.e.f.e.f.A.A.f.f.f.e.e.b.F-o!5#p!q!Y+Y+Y+|@r!&$s!t!m%u!]!_@v!w!x!L.0>i.e.A.A.e.A.e.e.i.y!r)z!:.v!A!B!y#C!Y+Y+Y+Y+D!y#E!F!3.h'G!D>@.-.h.f.A.e.f.f.f.f.f.j.H!@ @ @ @ = @ + ", " + @ @ @ @ I!3++@F+f.f.f.e.f.e.f.A.f.f.e.N.u!J!g@K!n@Y+Y+Y+<&@ L!M!O#!;N!v'O!P!})y-d.e.A.e.f.f.f.A.A.e.F+y!Q!R!/.n*Q#j+S!Y+Y+Y+T!U!V#V!s+$*G!W!2+X$e.f.e.f.A.f.f.f.f.f.X!@ @ @ @ V.@ @ ", " @ @ @ @ U-r>Y!;.e.f.A.A.f.f.f.f.f.e.A.f.j.f=Z!@ `!Y+Y+Y+H%Q@e* ~ #O)N..~+~@~=!d.f.f.f.A.e.A.e.e.f.A.e.i.#~N!$~%~V.&~Y+Y+Y+Y+*~@ .>]*u =~-~2+;~f.f.f.A.e.f.f.f.f.f.>~q+@ @ @ @ @ @ + ", " + @ @ @ @ ,~'~n=N.e.e.f.e.f.A.f.f.f.e.f.f.j.)~5#6)K$Y+Y+Y+!~@ ~~{~]~^~e.z.e.e.f.e.A.A.f.f.f.A.A.e.f.A.A.e.e./~(~y#C*Y+Y+Y+S#j+Z@G*_~'@:~Q!;~e.f.f.e.f.A.f.f.f.f.d=<~@ @ @ @ V.@ @ ", " @ @ @ @ @ [~3++@F+A.f.f.f.f.f.e.A.f.f.f.e.}~|~y#1~Y+Y+Y+>#j$2~3~4~).i.e.f.A.f.f.e.f.e.A.e.e.f.A.e.e.f.A.f.5~6~7~Y+Y+Y+Y+8~y#9~L*8=2)]!F#i.A.f.f.A.e.f.f.f.f.e.0~@ @ @ @ @ = @ . ", " @ @ @ @ = b>a~%.i.e.f.A.f.f.f.e.f.f.A.f.i.b~V#Q-Y+Y+Y+Y+c~g@d~e~f~j.A.e.f.e.A.A.A.f.f.A.A.e.f.A.A.e.f.e.g~@ h~Y+Y+Y+i~Y@j~,*t m)~+D.j.e.f.f.e.f.A.f.f.f.f.k~@ @ @ @ @ V.@ + ", " . @ @ @ @ l~! K%:#e.f.f.f.e.A.f.f.f.f.f.g.C&m~y#Y*Y+Y+Y+n~@ o~--p~N@f.A.f.f.e.e.A.A.e.e.f.A.e.e.f.A.f.A.q~y#r~Y+Y+Y+7#@ s~3 +,t~u~b.f.A.f.f.A.e.f.f.f.f.v~@ @ @ @ @ = @ @ ", " + @ @ @ @ U.w~M.b.f.f.f.f.e.f.f.A.f.e.e.e.x~y#y~Y+Y+Y+z~g@A~B~~+).i.f.e.A.A.f.f.f.A.A.e.f.A.A.e.f.e.C~D~m@n@Y+Y+Y+o@p@a't E~F~@~i.e.f.f.e.f.A.f.f.f.<.= @ @ @ @ V.y#@ . ", " + @ @ @ @ F'A&G~b.f.e.A.f.f.f.f.f.A.A.f.H~V#I~Y+Y+Y+Y+^@{>J~o+K~E#f.f.e.e.A.f.e.e.f.A.e.e.f.A.f.A.L~[@M~Y+Y+Y+s&C',,s+N~b)O~p>f.A.f.f.A.e.f.f.f.P~* @ @ @ @ @ = @ + ", " @ @ @ @ @ F'1>5@b.e.e.f.f.A.f.e.e.f.f.S;)*W+n@Y+Y+Y+Q~R~S~`*E>N.e.A.A.f.f.A.A.A.e.f.A.A.e.f.e.z.T~@ r&n@Y+Y+U~@ V~3.Y-C#W~i.e.f.f.e.f.A.f.f.Q = @ @ @ @ @ V.@ + ", " @ @ @ @ @ * X~0$c.e.f.f.f.f.A.A.f.e.f.Y~@ Z~`~ {m@@ 1@.{I=+{C.e.e.e.A.e.A.e.f.A.e.e.f.A.f.A.f.@{b+r$#{${%{&{@ *{>@P&G=&.z.A.f.f.A.e.f.f.2 V.@ @ @ @ @ V.@ @ ", " @ @ @ @ @ V.-@={;.e.A.f.e.e.f.f.f.g.-{b+@ @ j+;{h@{*4.>{L.a.f.A.f.f.f.f.A.e.f.A.A.e.f.e.e.f.f.,{'{){b+@ @ I)!{u 6;~{b.e.f.f.e.f.A.j.{{@ @ @ @ @ @ V.@ @ ", " @ @ @ @ @ @ ]{].;.i.f.A.A.f.e.f.f.^{/{({_{:{A)] %#==--+{;.e.e.A.e.A.A.f.A.e.e.f.A.f.A.f.f.e.c.<{[{}{|{1{2{] =-i*8'j.A.f.f.A.e.F-3{@ @ @ @ @ @ V.@ @ ", " + @ @ @ @ @ 4{5{N@i.e.f.f.f.f.A.f.>.6{7{8{h ()>{2)/.Q%N.A.f.f.f.e.f.e.f.A.A.e.f.e.e.f.A.f.i.9{7-0{a{;-b{v*c{R!2%i.f.f.e.f.b d{@ @ @ @ @ @ V.@ @ ", " + @ @ @ @ @ q+e{f{j.e.e.f.f.z.f.j.[)+{W!g{h{G=/=v;s@e.e.A.e.A.A.A.A.e.e.f.A.f.A.f.f.e.A.z.j.'-v');~+4@i{R!f~b.f.f.f.j{k{@ @ @ @ @ @ @ V.@ @ ", " + @ @ @ @ @ @ l{m{;.i.f.A.f.f.^,N.d=Y,i-n{U;b.i.e.f.f.f.f.e.e.A.f.A.A.e.f.e.e.f.A.f.f.f.A.d.k.+;/-Y,o{d=N.e.f.e.t+I.@ @ @ @ @ @ V.= @ @ ", " @ @ @ @ @ @ @ 0~`%b.i.A.f.f.z.e.e.i.e.e.z.f.A.e.A.e.A.A.f.f.e.e.f.A.f.A.f.f.e.A.e.f.f.f.f.e.z.i.O.e.z.A.p{q{@ @ @ @ @ @ @ V.@ @ + ", " + @ @ @ @ @ @ r{s{B&c.e.f.A.z.f.e.A.f.A.e.f.f.f.f.e.e.A.A.A.A.e.f.e.e.f.A.f.f.f.A.e.g.f.f.f.A.f.f.t{|;@ @ @ @ @ @ @ @ @ @ @ + ", " . @ @ @ @ @ @ @ V.k'u{:#i.f.f.f.f.e.f.A.e.A.e.A.A.f.e.A.e.f.A.f.A.f.f.e.A.e.f.f.f.A.f.e.f.b.h*v{@ @ @ @ @ @ @ @ @ @ @ @ ", " + @ @ @ @ @ @ @ @ w{x{^.i.f.f.A.e.f.f.f.f.e.e.A.f.f.A.e.f.e.e.f.A.f.f.f.A.e.f.f.e.d>y{z{@ @ @ @ @ @ @ @ @ @ @ @ + ", " . @ @ @ @ @ @ @ @ @ @ U A{%*x+f.e.A.e.A.A.f.e.A.A.f.A.f.A.f.f.e.A.e.f.f.).:.O+B{@ @ @ @ @ @ @ @ @ @ @ @ @ @ ", " . @ @ @ @ @ @ @ @ @ @ @ q+H!C{D{N E{i.A.f.e.f.e.f.e.e.f.F{G{i>H{I{J{@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ . ", " . @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ K{L{M{M{M{N{M{O{P{@ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ . ", " . @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ . ", " + @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ + . ", " . + @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ . ", " . @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ . . ", " . . . + @ @ @ @ @ @ @ @ @ @ . . . ", " ", " ", " ", " ", " ", " ", " ", " "}; sweep-0.9.3/pixmaps/playpaus.xpm0000644000175000017500000000051610777660150015444 0ustar useruser/* XPM */ static char * playpaus_xpm[] = { "21 10 2 1", " c None", ". c #FFFFFF", " ", " .. .. .. ", " .... .. .. ", " ...... .. .. ", " ........ .. .. ", " ........ .. .. ", " ...... .. .. ", " .... .. .. ", " .. .. .. ", " "}; sweep-0.9.3/pixmaps/libsndfile.xpm0000644000175000017500000020452010777660150015722 0ustar useruser/* XPM */ static char * libsndfile_xpm[] = { "184 49 3102 2", " c None", ". c #000000", "+ c #010000", "@ c #000002", "# c #000001", "$ c #000003", "% c #000100", "& c #000004", "* c #010006", "= c #010007", "- c #010008", "; c #010108", "> c #010004", ", c #000006", "' c #010107", ") c #000005", "! c #000105", "~ c #010109", "{ c #000107", "] c #000108", "^ c #01010B", "/ c #010110", "( c #010211", "_ c #010213", ": c #010111", "< c #01020F", "[ c #01010C", "} c #010009", "| c #010005", "1 c #010002", "2 c #000007", "3 c #01000C", "4 c #010210", "5 c #01010D", "6 c #01010A", "7 c #01020E", "8 c #010212", "9 c #020214", "0 c #010215", "a c #010315", "b c #01010E", "c c #000212", "d c #010218", "e c #030320", "f c #020425", "g c #030426", "h c #020424", "i c #02031E", "j c #020318", "k c #010112", "l c #010214", "m c #02010E", "n c #02010B", "o c #00010C", "p c #000009", "q c #010114", "r c #010217", "s c #02031D", "t c #030323", "u c #030425", "v c #020321", "w c #02031C", "x c #01010F", "y c #000109", "z c #030216", "A c #030428", "B c #03042A", "C c #03052B", "D c #030429", "E c #020320", "F c #02031B", "G c #02031A", "H c #020423", "I c #03042D", "J c #040636", "K c #05083B", "L c #06093D", "M c #06073B", "N c #050635", "O c #010421", "P c #01031B", "Q c #020219", "R c #02031F", "S c #03052A", "T c #03042B", "U c #020527", "V c #030423", "W c #010216", "X c #000106", "Y c #02021A", "Z c #030321", "` c #030527", " . c #030529", ".. c #02041F", "+. c #010318", "@. c #01000B", "#. c #02010F", "$. c #020115", "%. c #030422", "&. c #020220", "*. c #040633", "=. c #06073A", "-. c #06073D", ";. c #06083D", ">. c #050739", ",. c #030531", "'. c #020319", "). c #020421", "!. c #020526", "~. c #030319", "{. c #020112", "]. c #000008", "^. c #03021B", "/. c #030327", "(. c #050631", "_. c #05083C", ":. c #070843", "<. c #070946", "[. c #050A45", "}. c #060941", "|. c #03062F", "1. c #04042B", "2. c #04052F", "3. c #040639", "4. c #070845", "5. c #08094C", "6. c #06094A", "7. c #070849", "8. c #06084A", "9. c #070A4B", "0. c #050943", "a. c #040737", "b. c #03052D", "c. c #04052E", "d. c #050634", "e. c #05073C", "f. c #060842", "g. c #060946", "h. c #080945", "i. c #070941", "j. c #040630", "k. c #020525", "l. c #04052C", "m. c #050736", "n. c #06083F", "o. c #060944", "p. c #070945", "q. c #070842", "r. c #040634", "s. c #03031D", "t. c #020213", "u. c #020216", "v. c #030528", "w. c #040631", "x. c #050638", "y. c #05083A", "z. c #050738", "A. c #040637", "B. c #040638", "C. c #050945", "D. c #080A4D", "E. c #07084B", "F. c #07084A", "G. c #080948", "H. c #050737", "I. c #06083E", "J. c #070944", "K. c #060737", "L. c #04042C", "M. c #020420", "N. c #00010B", "O. c #010001", "P. c #00010D", "Q. c #060738", "R. c #05073F", "S. c #050849", "T. c #060A52", "U. c #070A55", "V. c #070A54", "W. c #080950", "X. c #060849", "Y. c #060744", "Z. c #060847", "`. c #080A51", " + c #080C5A", ".+ c #121471", "++ c #222599", "@+ c #2A2EAA", "#+ c #202394", "$+ c #0F116B", "%+ c #080B58", "&+ c #060A4E", "*+ c #050744", "=+ c #060742", "-+ c #080844", ";+ c #060843", ">+ c #070951", ",+ c #070950", "'+ c #060840", ")+ c #000216", "!+ c #04062F", "~+ c #06083C", "{+ c #07094D", "]+ c #060A53", "^+ c #060A54", "/+ c #080951", "(+ c #07074C", "_+ c #050742", ":+ c #020111", "<+ c #01031C", "[+ c #030427", "}+ c #040535", "|+ c #060841", "1+ c #080B51", "2+ c #06094D", "3+ c #090B4D", "4+ c #080A53", "5+ c #090C5D", "6+ c #0B0E65", "7+ c #1B1E87", "8+ c #282DA6", "9+ c #262AA1", "0+ c #171B7F", "a+ c #090C5E", "b+ c #080A52", "c+ c #060948", "d+ c #050841", "e+ c #050842", "f+ c #060A44", "g+ c #060745", "h+ c #07084D", "i+ c #080A54", "j+ c #090A54", "k+ c #07084E", "l+ c #06073C", "m+ c #010003", "n+ c #010113", "o+ c #060743", "p+ c #12156E", "q+ c #1D208E", "r+ c #1E208F", "s+ c #1D208F", "t+ c #191C81", "u+ c #0C0F5A", "v+ c #070B52", "w+ c #090C5A", "x+ c #090B5D", "y+ c #080C5E", "z+ c #161B85", "A+ c #4B4FC2", "B+ c #9499E8", "C+ c #A8ABF7", "D+ c #8B91E4", "E+ c #4145BB", "F+ c #131779", "G+ c #090B5C", "H+ c #080B59", "I+ c #080A57", "J+ c #06094E", "K+ c #0D105F", "L+ c #1A1C81", "M+ c #1D208C", "N+ c #1E2090", "O+ c #1C208E", "P+ c #181D82", "Q+ c #0E105B", "R+ c #040732", "S+ c #04052B", "T+ c #07083C", "U+ c #080B4D", "V+ c #161874", "W+ c #1C1F8B", "X+ c #1D2190", "Y+ c #1D2090", "Z+ c #1C1E88", "`+ c #13156D", " @ c #070948", ".@ c #03042C", "+@ c #02021D", "@@ c #030322", "#@ c #05073E", "$@ c #07094E", "%@ c #080B57", "&@ c #070A57", "*@ c #0D1066", "=@ c #181B7F", "-@ c #12166C", ";@ c #070955", ">@ c #0B0F68", ",@ c #0B0F6B", "'@ c #0C1071", ")@ c #2E32A6", "!@ c #767ADC", "~@ c #A4A9F4", "{@ c #9FA3EF", "]@ c #666BD5", "^@ c #232796", "/@ c #090C64", "(@ c #090D5B", "_@ c #070A58", ":@ c #090B54", "<@ c #151872", "[@ c #1C1F8A", "}@ c #161878", "|@ c #0A0B50", "1@ c #03052C", "2@ c #010219", "3@ c #070943", "4@ c #090B4E", "5@ c #3539B6", "6@ c #7B7FDD", "7@ c #8C90E1", "8@ c #9091E3", "9@ c #8F92E3", "0@ c #898DE2", "a@ c #5B60CD", "b@ c #1D208B", "c@ c #080A58", "d@ c #0D0E6B", "e@ c #0A0E6B", "f@ c #0D1068", "g@ c #3B40B7", "h@ c #B6BBFC", "i@ c #9295EE", "j@ c #797BE2", "k@ c #9DA1F0", "l@ c #A8ACF1", "m@ c #2F33A9", "n@ c #0A0C60", "o@ c #0A0E69", "p@ c #090D6A", "q@ c #080A56", "r@ c #202293", "s@ c #5C61D0", "t@ c #888CE1", "u@ c #8F93E3", "v@ c #9093E4", "w@ c #8B8EE2", "x@ c #5F64D0", "y@ c #1F238E", "z@ c #07094B", "A@ c #07083E", "B@ c #010321", "C@ c #050637", "D@ c #080944", "E@ c #121470", "F@ c #4145B7", "G@ c #8185E0", "H@ c #8F93E4", "I@ c #8D91E3", "J@ c #7479DB", "K@ c #3237AF", "L@ c #0D1062", "M@ c #05073B", "N@ c #02052E", "O@ c #040635", "P@ c #070844", "Q@ c #080B55", "R@ c #080B5C", "S@ c #121678", "T@ c #272BA5", "U@ c #4A4EC7", "V@ c #7579DC", "W@ c #7176DA", "X@ c #2B30A3", "Y@ c #090C68", "Z@ c #0F1378", "`@ c #090D6B", " # c #1F2294", ".# c #8385E1", "+# c #B0B3F7", "@# c #7C7EE3", "## c #8588E6", "$# c #B8BCFA", "%# c #6064CE", "&# c #16187D", "*# c #090B61", "=# c #0A0D6C", "-# c #0B0E5E", ";# c #0D106C", "># c #393DB0", ",# c #7E82DF", "'# c #8E92E3", ")# c #8D92E2", "!# c #8083DE", "~# c #494BC3", "{# c #151772", "]# c #070B4F", "^# c #0B0D57", "/# c #5C60D1", "(# c #CFD1FF", "_# c #BEC1FA", ":# c #999BEF", "<# c #9B9EEF", "[# c #D3D4FD", "}# c #A8ACEB", "|# c #26289D", "1# c #090B63", "2# c #0D1077", "3# c #080C69", "4# c #16197E", "5# c #676CD4", "6# c #989CF2", "7# c #383CB4", "8# c #15178B", "9# c #4A4DC1", "0# c #ACAFF5", "a# c #474CC4", "b# c #0E1065", "c# c #0B0F73", "d# c #0C0F79", "e# c #090C61", "f# c #272BA8", "g# c #A7ABF1", "h# c #CCCEFD", "i# c #9FA2EF", "j# c #9EA0F0", "k# c #D0D1FB", "l# c #AFB2EE", "m# c #2C2FA1", "n# c #080A4C", "o# c #050537", "p# c #01021A", "q# c #060945", "r# c #090C4F", "s# c #151881", "t# c #7376D0", "u# c #D8D9FE", "v# c #ADB0F3", "w# c #9B9DEF", "x# c #B9BBF7", "y# c #CACDFC", "z# c #4F54C7", "A# c #101270", "B# c #080B52", "C# c #04073D", "D# c #05083E", "E# c #06094B", "F# c #080B5A", "G# c #0C0F6B", "H# c #21259B", "I# c #474DCB", "J# c #8C91EE", "K# c #B1B4F9", "L# c #CCCEFB", "M# c #CACDF9", "N# c #4347B5", "O# c #0A0C75", "P# c #12157E", "Q# c #090D6F", "R# c #3338A9", "S# c #9FA2F8", "T# c #6D6FD6", "U# c #191C94", "V# c #2628A2", "W# c #8689E5", "X# c #888DF1", "Y# c #21258E", "Z# c #060A65", "`# c #0C0F76", " $ c #0E1069", ".$ c #10127C", "+$ c #6265C7", "@$ c #D8DBFF", "#$ c #B0B3F3", "$$ c #969AEF", "%$ c #A6AAF4", "&$ c #D1D3FF", "*$ c #7478DF", "=$ c #191C82", "-$ c #050741", ";$ c #020114", ">$ c #01000A", ",$ c #00010F", "'$ c #050639", ")$ c #0C0D5A", "!$ c #696CD5", "~$ c #C1C2FD", "{$ c #7174DD", "]$ c #21259C", "^$ c #2C2FA6", "/$ c #8A8DE8", "($ c #ADB1ED", "_$ c #282CA2", ":$ c #090B68", "<$ c #0E1280", "[$ c #0A0D71", "}$ c #16177C", "|$ c #6466D2", "1$ c #A2A5F6", "2$ c #4E51C5", "3$ c #2326A0", "4$ c #5A5ECE", "5$ c #B0B4F8", "6$ c #4348C1", "7$ c #0D1067", "8$ c #0B107A", "9$ c #0C1082", "0$ c #080C67", "a$ c #2B2EAE", "b$ c #A6A8F5", "c$ c #8B8FEA", "d$ c #2B2FA6", "e$ c #8689E3", "f$ c #B0B3F0", "g$ c #2F32A6", "h$ c #080B5F", "i$ c #0A0C5B", "j$ c #050844", "k$ c #000112", "l$ c #01031A", "m$ c #020427", "n$ c #05073A", "o$ c #070B54", "p$ c #0A0D5B", "q$ c #151886", "r$ c #7B7FD3", "s$ c #ACB0F6", "t$ c #494CBA", "u$ c #23259E", "v$ c #6366CF", "w$ c #B0B3FB", "x$ c #565ACE", "y$ c #101375", "z$ c #0A0D5D", "A$ c #070A52", "B$ c #090B5B", "C$ c #0D1070", "D$ c #2A2FAA", "E$ c #6268E3", "F$ c #6E74E8", "G$ c #4C51D4", "H$ c #4548C5", "I$ c #7E81DC", "J$ c #C1C4F8", "K$ c #494DB9", "L$ c #0A0C79", "M$ c #121686", "N$ c #090D73", "O$ c #3135A7", "P$ c #9EA2F5", "Q$ c #7F82E2", "R$ c #2D31A9", "S$ c #393CB3", "T$ c #9296ED", "U$ c #8489EB", "V$ c #20248C", "W$ c #070A6B", "X$ c #0D1180", "Y$ c #0F1171", "Z$ c #101281", "`$ c #6A6ECC", " % c #B5B8F9", ".% c #4F53BE", "+% c #1D219A", "@% c #4447BB", "#% c #A2A6F7", "$% c #7E82E6", "%% c #191D84", "&% c #020217", "*% c #0A0C59", "=% c #0B0D59", "-% c #696BD6", ";% c #B7BAFD", ">% c #464AC7", ",% c #0F127F", "'% c #0F116D", ")% c #6669D7", "!% c #A5A9EC", "~% c #262BA3", "{% c #090C6A", "]% c #0E1286", "^% c #0E1185", "/% c #0B0E6E", "(% c #3337B1", "_% c #ABAFF4", ":% c #A6AAF7", "<% c #9498EF", "[% c #ACB1F6", "}% c #9398EC", "|% c #0D1184", "1% c #090D69", "2% c #2A2EAF", "3% c #9EA1F5", "4% c #6366DC", "5% c #12167D", "6% c #0E106B", "7% c #6265D1", "8% c #A7ABEF", "9% c #2D32A7", "0% c #090B67", "a% c #050740", "b% c #030530", "c% c #030324", "d% c #03021C", "e% c #00010A", "f% c #000110", "g% c #020212", "h% c #020324", "i% c #030424", "j% c #020422", "k% c #04073A", "l% c #090D66", "m% c #0C0F65", "n% c #151888", "o% c #767BD3", "p% c #9396F0", "q% c #26288A", "r% c #0B0D6C", "s% c #383DB4", "t% c #9EA2F9", "u% c #5357CE", "v% c #101278", "w% c #0B0D65", "x% c #090C65", "y% c #090C5F", "z% c #656DE8", "A% c #484FD4", "B% c #2024A4", "C% c #0E1281", "D% c #0D1074", "E% c #4C50B7", "F% c #B1B4F8", "G% c #474BB6", "H% c #0A0D79", "I% c #13178F", "J% c #0B0F7D", "K% c #1B1F92", "L% c #7277D8", "M% c #BCBFFD", "N% c #999CEF", "O% c #9CA0F0", "P% c #5055C4", "Q% c #12157D", "R% c #0B0F74", "S% c #0B1185", "T% c #0E1273", "U% c #0F1281", "V% c #666ACB", "W% c #9EA2F6", "X% c #2C2E94", "Y% c #0D1071", "Z% c #1F239F", "`% c #878BEE", " & c #797DE6", ".& c #010320", "+& c #05063E", "@& c #090C5B", "#& c #0B0D5B", "$& c #686BD6", "%& c #B1B3FB", "&& c #3A3FBF", "*& c #0E1178", "=& c #0C1064", "-& c #5257D0", ";& c #9EA3EA", ">& c #262AA3", ",& c #0A0C6B", "'& c #0E1288", ")& c #0D118D", "!& c #121588", "~& c #3437B5", "{& c #686CDC", "]& c #7F83E3", "^& c #5F64D6", "/& c #2B30AE", "(& c #0E1287", "_& c #0B1086", ":& c #0D1185", "<& c #282CAE", "[& c #979BF4", "}& c #5357D6", "|& c #101476", "1& c #0C0F62", "2& c #5055C9", "3& c #A1A6EE", "4& c #2D31A8", "5& c #0A0D6E", "6& c #0E127C", "7& c #0B0E6D", "8& c #070949", "9& c #06063D", "0& c #040532", "a& c #04052D", "b& c #040531", "c& c #040632", "d& c #030630", "e& c #05073D", "f& c #070840", "g& c #03052F", "h& c #04063A", "i& c #060844", "j& c #0A0D65", "k& c #0D1079", "l& c #101171", "m& c #14188B", "n& c #7378D3", "o& c #858AED", "p& c #1E2181", "q& c #0A0C63", "r& c #2E32AF", "s& c #9297F6", "t& c #4F54CD", "u& c #0F127A", "v& c #0C0F6D", "w& c #0A0D72", "x& c #0A0D6D", "y& c #0A0D63", "z& c #1B1E8F", "A& c #575EDA", "B& c #545BDD", "C& c #1B1F9A", "D& c #0C108F", "E& c #1419AD", "F& c #0C0F80", "G& c #3E41AF", "H& c #4247B4", "I& c #0A0D78", "J& c #12178F", "K& c #0F159C", "L& c #0D1189", "M& c #21259F", "N& c #4E53CC", "O& c #7A7FE1", "P& c #747ADF", "Q& c #4045C2", "R& c #191D93", "S& c #0C1080", "T& c #0D1287", "U& c #0E1274", "V& c #0F1381", "W& c #6266C9", "X& c #9295F4", "Y& c #23258C", "Z& c #0C0F69", "`& c #1A1E9D", " * c #797DE8", ".* c #7478E6", "+* c #1A1D86", "@* c #040530", "#* c #03031F", "$* c #060739", "%* c #030631", "&* c #AFB1FA", "** c #373CBE", "=* c #0E1179", "-* c #4E52CF", ";* c #9CA1EA", ">* c #262AA4", ",* c #0D1389", "'* c #0D128F", ")* c #101493", "!* c #11168E", "~* c #0C1070", "{* c #171A82", "]* c #1D1F8F", "^* c #14177D", "/* c #0B1074", "(* c #11178F", "_* c #0F1290", ":* c #0C1188", "<* c #0D1286", "[* c #282CAF", "}* c #9599F5", "|* c #4F53D4", "1* c #0C0F61", "2* c #4C51C9", "3* c #A3A8F0", "4* c #3034AC", "5* c #080D6A", "6* c #080A5D", "7* c #090A5A", "8* c #0A0B56", "9* c #080A4B", "0* c #050840", "a* c #070947", "b* c #080B4E", "c* c #080A49", "d* c #070942", "e* c #080A50", "f* c #070A51", "g* c #050A50", "h* c #07094F", "i* c #080953", "j* c #090A51", "k* c #02010D", "l* c #020116", "m* c #020322", "n* c #090B56", "o* c #080A5C", "p* c #090B65", "q* c #0A0E70", "r* c #0D0F69", "s* c #16198D", "t* c #787CD7", "u* c #8387ED", "v* c #1C1F82", "w* c #2D30AF", "x* c #8F93F4", "y* c #4E54CE", "z* c #0E137C", "A* c #0C1074", "B* c #0C0F71", "C* c #393DB3", "D* c #7B81F0", "E* c #2E33AD", "F* c #0B0F8C", "G* c #1319AC", "H* c #1319B3", "I* c #484BBF", "J* c #A2A6F6", "K* c #3B3FB0", "L* c #0B0D76", "M* c #11158C", "N* c #0E14A0", "O* c #12179C", "P* c #0E127D", "Q* c #111475", "R* c #1B1F8B", "S* c #1B1E88", "T* c #0E1172", "U* c #0F1384", "V* c #101591", "W* c #0C118B", "X* c #0B1087", "Y* c #0F1275", "Z* c #6164CA", "`* c #8C91F2", " = c #21248B", ".= c #0C0E68", "+= c #191C9C", "@= c #757AE6", "#= c #191D85", "$= c #090B59", "%= c #060740", "&= c #060953", "*= c #070A53", "== c #090C56", "-= c #070A4C", ";= c #373CBF", ">= c #4E52D1", ",= c #9CA0EB", "'= c #0A0C6D", ")= c #0E138B", "!= c #0E138A", "~= c #0A0C5F", "{= c #0D1164", "]= c #0F126C", "^= c #101370", "/= c #10136B", "(= c #0D1064", "_= c #0A0B5A", ":= c #0C0F73", "<= c #0E1289", "[= c #0C1288", "}= c #9498F5", "|= c #4F53D5", "1= c #101477", "2= c #4D51C8", "3= c #A9AEF2", "4= c #3A3FB7", "5= c #10157C", "6= c #181D87", "7= c #1C1F8F", "8= c #161779", "9= c #0D0E61", "0= c #010422", "a= c #030632", "b= c #090B4F", "c= c #090A55", "d= c #0B0D56", "e= c #040738", "f= c #080954", "g= c #141776", "h= c #1C208D", "i= c #141878", "j= c #0B0E60", "k= c #020218", "l= c #050946", "m= c #080B53", "n= c #131673", "o= c #1A1E8C", "p= c #14177C", "q= c #1F239B", "r= c #8287DD", "s= c #8489EC", "t= c #1C1F81", "u= c #2D30B0", "v= c #8F93F5", "w= c #4F53CE", "x= c #10137D", "y= c #0D1179", "z= c #0D1085", "A= c #0B0F6F", "B= c #15198A", "C= c #5E62D0", "D= c #6F75E9", "E= c #1C1F90", "F= c #0D1195", "G= c #1218AF", "H= c #0F1497", "I= c #292DB1", "J= c #777CED", "K= c #7176E0", "L= c #282B9F", "M= c #090B6C", "N= c #101688", "O= c #0D1283", "P= c #080B63", "Q= c #0D1061", "R= c #0F1169", "S= c #10136F", "T= c #10136D", "U= c #0E1167", "V= c #0C0E5F", "W= c #0E127F", "X= c #0D1289", "Y= c #101376", "Z= c #7579E5", "`= c #191D86", " - c #05063F", ".- c #040534", "+- c #070A4E", "@- c #090B55", "#- c #080A55", "$- c #161A7B", "%- c #1A1F8A", "&- c #1C208F", "*- c #1B1E89", "=- c #151879", "-- c #0B0F62", ";- c #07094C", ">- c #AFB1FB", ",- c #373CC1", "'- c #4E52D2", ")- c #9DA0EB", "!- c #0A0C6F", "~- c #0F148D", "{- c #0A0E75", "]- c #111576", "^- c #2F33AE", "/- c #4F54CC", "(- c #6368DA", "_- c #676ADB", ":- c #6165D7", "<- c #4D51C9", "[- c #2A2DA1", "}- c #0B0D5E", "|- c #0E138F", "1- c #090D6D", "2- c #4F54D5", "3- c #4E52C8", "4- c #B2B5F5", "5- c #4A4DC5", "6- c #272CB1", "7- c #646AD7", "8- c #888DE1", "9- c #8489DF", "0- c #6266D8", "a- c #3C40C1", "b- c #23269E", "c- c #111373", "d- c #080B5B", "e- c #070A4F", "f- c #060947", "g- c #181A7F", "h- c #24279E", "i- c #2E33B3", "j- c #3C3FBF", "k- c #373BBB", "l- c #262A9E", "m- c #0D0F5A", "n- c #060A4F", "o- c #06094C", "p- c #0C0E65", "q- c #1C2090", "r- c #3338BA", "s- c #575DD7", "t- c #7378DE", "u- c #7A7EE0", "v- c #767ADF", "w- c #5B5FD8", "x- c #363BBE", "y- c #1F2397", "z- c #070B56", "A- c #060949", "B- c #04073B", "C- c #0D1069", "D- c #1F2192", "E- c #3337B9", "F- c #595ED5", "G- c #7E82DE", "H- c #8B8FE1", "I- c #7B7EDF", "J- c #3D41C1", "K- c #2A2EB3", "L- c #9294E7", "M- c #888BED", "N- c #1D1F81", "O- c #2D31AF", "P- c #4F53CD", "Q- c #10137E", "R- c #0E117F", "S- c #0A0D6B", "T- c #23279D", "U- c #7F85EE", "V- c #565BD7", "W- c #13168A", "X- c #121795", "Y- c #0D1292", "Z- c #262BAB", "`- c #5C63E7", " ; c #4047CE", ".; c #1F23A0", "+; c #0B0F78", "@; c #0F1388", "#; c #080B6B", "$; c #212591", "%; c #4247C1", "&; c #5D61D5", "*; c #656ADA", "=; c #6468D9", "-; c #575CD0", ";; c #393EB7", ">; c #191D7F", ",; c #070A6C", "'; c #0F137A", "); c #0F1282", "!; c #6165CA", "~; c #191D9D", "{; c #191D87", "]; c #090C60", "^; c #080B5E", "/; c #06084C", "(; c #2328A2", "_; c #3E43C2", ":; c #8085E0", "<; c #868AE1", "[; c #8084DF", "}; c #6569DA", "|; c #2328A0", "1; c #111473", "2; c #9CA1EB", "3; c #2829A4", "4; c #0B0D71", "5; c #101490", "6; c #0B0F79", "7; c #1A1D8B", "8; c #7378D8", "9; c #D8DAFF", "0; c #C7CAF9", "a; c #BEC1F4", "b; c #CED0F8", "c; c #5256C8", "d; c #10126B", "e; c #0E128A", "f; c #0F1392", "g; c #090D6E", "h; c #282CB0", "i; c #B5B8F6", "j; c #5255CB", "k; c #3A3EBE", "l; c #AEB1F3", "m; c #D9DAFD", "n; c #9EA1EF", "o; c #9397EC", "p; c #9399F5", "q; c #7D82E9", "r; c #4045C6", "s; c #1B1F8F", "t; c #090B5A", "u; c #14167B", "v; c #2D32AF", "w; c #5F64D8", "x; c #9196EA", "y; c #A9ADFA", "z; c #BFC1FD", "A; c #C7CAFF", "B; c #5B5FCF", "C; c #151771", "D; c #090C66", "E; c #090C69", "F; c #0A0C65", "G; c #0A0D66", "H; c #101277", "I; c #2B30AB", "J; c #656CDD", "K; c #8A90F3", "L; c #7E84E6", "M; c #6C72E0", "N; c #6B70E0", "O; c #6B71E1", "P; c #7D83E5", "Q; c #8990F3", "R; c #6C73E3", "S; c #3337B5", "T; c #13167B", "U; c #02042B", "V; c #040428", "W; c #171A84", "X; c #6D72E1", "Y; c #8F94F4", "Z; c #9093EA", "`; c #9396ED", " > c #C4C6F8", ".> c #D0D2FB", "+> c #3033B6", "@> c #999CEB", "#> c #888BEC", "$> c #0F137E", "%> c #0E1283", "&> c #0E1293", "*> c #2C31A4", "=> c #949AF1", "-> c #454AC1", ";> c #0D0F84", ">> c #121579", ",> c #1A1E96", "'> c #5C62DB", ")> c #555BDF", "!> c #181D98", "~> c #0D1088", "{> c #0F1491", "]> c #0B0E77", "^> c #3B3FAF", "/> c #BCBEFD", "(> c #D5D7FE", "_> c #BFC2F4", ":> c #C3C6F6", "<> c #D9DBFF", "[> c #9C9FF3", "}> c #262A96", "|> c #080C76", "1> c #0E138D", "2> c #10137C", "3> c #0F1283", "4> c #191C87", "5> c #070A5A", "6> c #080A59", "7> c #1E2297", "8> c #4349C9", "9> c #8589EB", "0> c #9499EF", "a> c #9397F2", "b> c #A2A6FB", "c> c #9DA0F6", "d> c #9EA1F3", "e> c #A2A6F8", "f> c #858AEA", "g> c #4348C8", "h> c #1E2194", "i> c #010319", "j> c #4E52D0", "k> c #101594", "l> c #0C0F7E", "m> c #1A1D90", "n> c #8489DD", "o> c #B5B9F6", "p> c #6264CC", "q> c #4548B6", "r> c #6C70D3", "s> c #C8CBF7", "t> c #6369D8", "u> c #11136E", "v> c #0D138E", "w> c #0F1495", "x> c #0A0D6F", "y> c #4F53C9", "z> c #B6B8F6", "A> c #5558CC", "B> c #3F44BD", "C> c #B5B8F2", "D> c #A1A4EF", "E> c #3B3EB1", "F> c #2327A4", "G> c #2B2FB5", "H> c #4247CF", "I> c #686EEB", "J> c #555CDA", "K> c #24289F", "L> c #0B0E67", "M> c #13177D", "N> c #464CC0", "O> c #858BEF", "P> c #6E74E4", "Q> c #5155D5", "R> c #5659D3", "S> c #7C7EDF", "T> c #C9CAFA", "U> c #7578DE", "V> c #0B0E76", "W> c #0B107F", "X> c #0D1175", "Y> c #2F34B0", "Z> c #7075EA", "`> c #5257DB", " , c #2E32B9", "., c #1E219E", "+, c #181B8A", "@, c #171982", "#, c #181A88", "$, c #1C219B", "%, c #2A2FB6", "&, c #474ED5", "*, c #6E76F1", "=, c #3C42BF", "-, c #12157A", ";, c #1B1F8E", ">, c #474ECC", ",, c #6C73EC", "', c #4C51D5", "), c #2F33BA", "!, c #2124A4", "~, c #7578D6", "{, c #C6C7FA", "], c #6F72D7", "^, c #3035B3", "/, c #9A9EEB", "(, c #898CEC", "_, c #1E1F81", ":, c #0F1380", "<, c #0D1385", "[, c #0F1397", "}, c #9A9FF1", "|, c #4246B9", "1, c #0B0D7A", "2, c #0E1169", "3, c #2E33A9", "4, c #858AF0", "5, c #4043BF", "6, c #0C1086", "7, c #141892", "8, c #0F1498", "9, c #0B0F7A", "0, c #4346B4", "a, c #BABCFD", "b, c #8C8EE3", "c, c #484BB9", "d, c #5154C1", "e, c #A3A5EC", "f, c #A5A8F6", "g, c #2A2E9B", "h, c #090C79", "i, c #101492", "j, c #101380", "k, c #0F1284", "l, c #191D88", "m, c #090D6C", "n, c #0B0E6F", "o, c #252AA2", "p, c #5B63DE", "q, c #6C73EB", "r, c #474CD2", "s, c #3438B9", "t, c #2A2EB0", "u, c #2E32BC", "v, c #5054D7", "w, c #3F44C9", "x, c #3438BD", "y, c #3B40C3", "z, c #4E53D7", "A, c #737AEB", "B, c #5A61DE", "C, c #0B0E6A", "D, c #0B0D73", "E, c #111697", "F, c #0B1080", "G, c #1B1E91", "H, c #8084DD", "I, c #8C8FEB", "J, c #222493", "K, c #0B0D6D", "L, c #3236A9", "M, c #ABAEEE", "N, c #6166D6", "O, c #12126E", "P, c #0E1391", "Q, c #0E1498", "R, c #0A0E72", "S, c #282CB1", "T, c #5055C8", "U, c #565ACB", "V, c #4144BD", "W, c #898CE6", "X, c #191C7E", "Y, c #0D1187", "Z, c #0F127E", "`, c #2328A8", " ' c #555CDE", ".' c #5961DF", "+' c #202497", "@' c #080C5F", "#' c #0B0F67", "$' c #3137B2", "%' c #7E84F1", "&' c #4148C8", "*' c #1B1F98", "=' c #0E1177", "-' c #0D0F6F", ";' c #2F32A5", ">' c #A0A3EA", ",' c #7479E0", "'' c #161876", ")' c #0C1185", "!' c #0F138F", "~' c #0C0E72", "{' c #22269F", "]' c #666DE2", "^' c #494FD4", "/' c #181C96", "(' c #0B0F83", "_' c #0E128F", ":' c #0A0D70", "<' c #0C0F7D", "[' c #0F148C", "}' c #0B0E82", "|' c #13178D", "1' c #383DC4", "2' c #6A71EE", "3' c #3035B1", "4' c #0C0F6A", "5' c #0A0C5C", "6' c #181B88", "7' c #494FCF", "8' c #5F67E7", "9' c #2B2FB4", "0' c #131686", "a' c #0C0E7C", "b' c #0E128D", "c' c #0C0F78", "d' c #5659BC", "e' c #BEC0FA", "f' c #6F72D8", "g' c #3136B3", "h' c #9B9FEC", "i' c #1E2081", "j' c #0A0C64", "k' c #4F53CC", "l' c #0D1387", "m' c #0E1399", "n' c #3237A8", "o' c #9BA0F3", "p' c #0A0D74", "q' c #0F116A", "r' c #8288F4", "s' c #4549C4", "t' c #070B6C", "u' c #0F148A", "v' c #0F1492", "w' c #0B107C", "x' c #4247B5", "y' c #A8AAFA", "z' c #5356C0", "A' c #0E1076", "B' c #171985", "C' c #7174D3", "D' c #9B9EF6", "E' c #2A2F9C", "F' c #090D7D", "G' c #111481", "H' c #0B0E72", "I' c #0B1084", "J' c #0C107A", "K' c #616AE4", "L' c #4E58D9", "M' c #2126A9", "N' c #0D107B", "O' c #1E21A0", "P' c #5B5FDB", "Q' c #9195F7", "R' c #7A7DEC", "S' c #3133B1", "T' c #0F1386", "U' c #101486", "V' c #2327AB", "W' c #5056DB", "X' c #6066E7", "Y' c #212497", "Z' c #080B60", "`' c #080A4E", " ) c #040736", ".) c #262AA5", "+) c #0B0D75", "@) c #111698", "#) c #0B1083", "$) c #1A1D92", "%) c #7A7FDD", "&) c #787DE4", "*) c #1A1E87", "=) c #2327A1", "-) c #9C9FE7", ";) c #5C60D5", ">) c #11126F", ",) c #101392", "') c #5559CC", ")) c #4044BE", "!) c #B5B8F3", "~) c #8B8EE5", "{) c #1F2391", "]) c #11159E", "^) c #1419AF", "/) c #1216A5", "() c #0C108A", "_) c #2124A6", ":) c #5C64E4", "<) c #474DD0", "[) c #08094F", "}) c #1B1E8D", "|) c #686DD9", "1) c #5E63E1", "2) c #1A1D8F", "3) c #0D118F", "4) c #1318A6", "5) c #111386", "6) c #1C1F9A", "7) c #8E91E1", "8) c #6D73DF", "9) c #161879", "0) c #0E128E", "a) c #0F138C", "b) c #121586", "c) c #484EC6", "d) c #6D74EA", "e) c #2428A2", "f) c #0C1296", "g) c #151BB2", "h) c #1117A0", "i) c #14188C", "j) c #22259C", "k) c #181B8D", "l) c #101499", "m) c #151AB2", "n) c #10169C", "o) c #171A9A", "p) c #5A5FD5", "q) c #5F65E0", "r) c #1D1F8A", "s) c #0F1276", "t) c #3A3FBC", "u) c #656CEC", "v) c #292EAF", "w) c #0E1188", "x) c #0F1499", "y) c #1218AB", "z) c #1318A7", "A) c #11148D", "B) c #5C60C4", "C) c #C0C2FA", "D) c #3135B3", "E) c #9A9EEC", "F) c #1C2081", "G) c #0D1388", "H) c #0D149A", "I) c #3237A9", "J) c #9A9FF3", "K) c #4045B8", "L) c #101478", "M) c #1D219C", "N) c #5E64DD", "O) c #7076EE", "P) c #3E43C5", "Q) c #2B2FAE", "R) c #1A1C86", "S) c #090B71", "T) c #12168E", "U) c #0B0F7F", "V) c #3F43B4", "W) c #9BA0F8", "X) c #3E42B2", "Y) c #121381", "Z) c #5B5FC7", "`) c #282D9C", " ! c #111482", ".! c #0F1285", "+! c #181D9D", "@! c #191C89", "#! c #0C107B", "$! c #0D1293", "%! c #0B1078", "&! c #161B8B", "*! c #4F56D4", "=! c #5C64E5", "-! c #1D23A3", ";! c #0D1398", ">! c #151BA0", ",! c #171C9E", "'! c #575DD5", ")! c #9CA0F8", "!! c #9B9EEB", "~! c #9DA0F1", "{! c #777CEF", "]! c #2529A8", "^! c #121698", "/! c #101595", "(! c #1D21A7", "_! c #5F65E4", ":! c #4F55D0", "~ c #2125A5", ",~ c #6C71DF", "'~ c #B2B5FD", ")~ c #9EA2F1", "!~ c #0B0C76", "~~ c #15188F", "{~ c #0B0F81", "]~ c #3E42B5", "^~ c #959CF8", "/~ c #393FB0", "(~ c #5559C5", "_~ c #8F93F6", ":~ c #282C9D", "<~ c #090D7E", "[~ c #0F1496", "}~ c #0C0F68", "|~ c #191C8B", "1~ c #0C1183", "2~ c #0A0D7C", "3~ c #3135AC", "4~ c #7F85F4", "5~ c #353AB5", "6~ c #0C0F90", "7~ c #161A9C", "8~ c #161A9E", "9~ c #4A50D4", "0~ c #6168ED", "a~ c #373BBD", "b~ c #292BA3", "c~ c #2F34B1", "d~ c #5D63DC", "e~ c #696EEA", "f~ c #2227A6", "g~ c #121693", "h~ c #0D118C", "i~ c #3A3EBB", "j~ c #8389F8", "k~ c #2D32A6", "l~ c #080B64", "m~ c #7075E2", "n~ c #0C0E6E", "o~ c #9398E5", "p~ c #595ED6", "q~ c #0E1392", "r~ c #4D52C8", "s~ c #4C4FC9", "t~ c #2A2EB8", "u~ c #6D71DE", "v~ c #8E91E7", "w~ c #9094F2", "x~ c #4E53D5", "y~ c #181D99", "z~ c #1117A8", "A~ c #1E22A3", "B~ c #787EE4", "C~ c #5056D1", "D~ c #131675", "E~ c #080B65", "F~ c #080C63", "G~ c #090D67", "H~ c #0D116B", "I~ c #4347C2", "J~ c #8D92ED", "K~ c #2D31AC", "L~ c #0B0E81", "M~ c #1117A2", "N~ c #1116A8", "O~ c #10138D", "P~ c #2629AE", "Q~ c #8C90EA", "R~ c #5D62D4", "S~ c #101491", "T~ c #0B0F77", "U~ c #3237B4", "V~ c #9095F0", "W~ c #393EBC", "X~ c #0D1083", "Y~ c #141896", "Z~ c #171B9D", "`~ c #494FCD", " { c #686FE9", ".{ c #4E54DB", "+{ c #5F65E5", "@{ c #5C63DC", "#{ c #1E23A1", "${ c #10159B", "%{ c #101384", "&{ c #2327A9", "*{ c #7F83ED", "={ c #5358D2", "-{ c #111579", ";{ c #0C1181", ">{ c #3E43BA", ",{ c #8187EF", "'{ c #2D31AA", "){ c #0A0E85", "!{ c #1217A0", "~{ c #10159F", "{{ c #111490", "]{ c #3338B9", "^{ c #7C81F1", "/{ c #9194E8", "({ c #8588E5", "_{ c #4448CA", ":{ c #2B30B7", "<{ c #9396E8", "[{ c #868AEC", "}{ c #2C30AE", "|{ c #101280", "1{ c #3337A9", "2{ c #9B9FF3", "3{ c #0A0C7B", "4{ c #131795", "5{ c #1015A0", "6{ c #0E118E", "7{ c #2629A6", "8{ c #8A8CE1", "9{ c #161994", "0{ c #0B0F84", "a{ c #969BF8", "b{ c #3A3EB0", "c{ c #8E93F6", "d{ c #191D9E", "e{ c #757AE5", "f{ c #7378E6", "g{ c #191D8C", "h{ c #0C138A", "i{ c #0F158E", "j{ c #13168B", "k{ c #575BCE", "l{ c #7A7FED", "m{ c #1F2298", "n{ c #111380", "o{ c #101292", "p{ c #4247C2", "q{ c #727AF5", "r{ c #2A2FB1", "s{ c #070A5B", "t{ c #262A9D", "u{ c #7A7FEC", "v{ c #191E90", "w{ c #0A0D67", "x{ c #22279D", "y{ c #8B90F4", "z{ c #5D61D3", "A{ c #13177C", "B{ c #05083F", "C{ c #191E85", "D{ c #9398E6", "E{ c #0E1394", "F{ c #0E1499", "G{ c #272BAF", "H{ c #4E53D4", "I{ c #0C0F60", "J{ c #4C50C7", "K{ c #ABB0F2", "L{ c #3E42BB", "M{ c #181A8E", "N{ c #1C2096", "O{ c #1F229F", "P{ c #292DB6", "Q{ c #5057E2", "R{ c #474ED4", "S{ c #181D97", "T{ c #111495", "U{ c #14188E", "V{ c #6166D4", "W{ c #747AE6", "X{ c #20238F", "Y{ c #080B69", "Z{ c #0A0E6C", "`{ c #5659CB", " ] c #8186EA", ".] c #25289B", "+] c #090F85", "@] c #1217A1", "#] c #0F1394", "$] c #191D9A", "%] c #5358D7", "&] c #7479E8", "*] c #353AB4", "=] c #0F1168", "-] c #0F117B", ";] c #494EC4", ">] c #8D91F0", ",] c #3033AA", "'] c #11147D", ")] c #4549BF", "!] c #7277EE", "~] c #2F33B3", "{] c #12148D", "]] c #2225AA", "^] c #6368E1", "/] c #585EDA", "(] c #181C87", "_] c #0D1073", ":] c #171B96", "<] c #7478D8", "[] c #6D72E2", "}] c #181C81", "|] c #0D1188", "1] c #0F1383", "2] c #141689", "3] c #6266CC", "4] c #757AEB", "5] c #0D1291", "6] c #12169F", "7] c #10148E", "8] c #3236B8", "9] c #5A61EB", "0] c #3439C5", "a] c #2124A5", "b] c #1E229C", "c] c #1C2094", "d] c #878BE1", "e] c #2C30AD", "f] c #4D53CD", "g] c #3F44B4", "h] c #0D139F", "i] c #10159E", "j] c #0D1082", "k] c #494CB5", "l] c #B0B4F7", "m] c #474BB8", "n] c #0B0C80", "o] c #151996", "p] c #0B0F85", "q] c #0B0E75", "r] c #111480", "s] c #8B92F2", "t] c #191D8D", "u] c #0D138F", "v] c #0A0F83", "w] c #212599", "x] c #8185EC", "y] c #585DD4", "z] c #12158E", "A] c #0E1171", "B] c #262BA1", "C] c #8388F0", "D] c #595FD7", "E] c #171B98", "F] c #1D2193", "G] c #393BAC", "H] c #5457C2", "I] c #9D9FEF", "J] c #9BA0F7", "K] c #292C99", "L] c #8587E6", "M] c #9A9DF5", "N] c #23268E", "O] c #070952", "P] c #020528", "Q] c #000214", "R] c #0E1398", "S] c #262CAF", "T] c #9499F5", "U] c #494DC7", "V] c #A4A8F0", "W] c #3236AD", "X] c #070A64", "Y] c #0E118F", "Z] c #0D1087", "`] c #2125AA", " ^ c #5B63E6", ".^ c #464CCE", "+^ c #131785", "@^ c #0F1279", "#^ c #4B4FC9", "$^ c #8F94EB", "%^ c #2A2EA1", "&^ c #080B6A", "*^ c #0D117C", "=^ c #161888", "-^ c #686CD3", ";^ c #7378E8", ">^ c #1E2291", ",^ c #0C118C", "'^ c #0F138B", ")^ c #171A93", "!^ c #494FCE", "~^ c #575EE1", "{^ c #0F1272", "]^ c #0D1078", "^^ c #10158D", "/^ c #10137F", "(^ c #4D51C6", "_^ c #8E92EF", ":^ c #2E32A3", "<^ c #090C62", "[^ c #191A87", "}^ c #7074D3", "|^ c #6E74E7", "1^ c #1A1D88", "2^ c #12169A", "3^ c #121593", "4^ c #5256CD", "5^ c #7F84EE", "6^ c #282B9C", "7^ c #16198C", "8^ c #676BD2", "9^ c #7C80EC", "0^ c #20248E", "a^ c #0A1086", "b^ c #0E127B", "c^ c #1B1E98", "d^ c #787CDF", "e^ c #696DE2", "f^ c #2D32AD", "g^ c #646BED", "h^ c #343AC1", "i^ c #101590", "j^ c #0D128C", "k^ c #0E1189", "l^ c #090B66", "m^ c #181C8D", "n^ c #7A7FD9", "o^ c #8084EB", "p^ c #0A0C61", "q^ c #2D31AE", "r^ c #8E92F4", "s^ c #4D51CC", "t^ c #0E1386", "u^ c #3F44B6", "v^ c #11168F", "w^ c #0D13A0", "x^ c #464AB2", "y^ c #B0B3F8", "z^ c #0B0D80", "A^ c #151A95", "B^ c #3D42B5", "C^ c #3A3EB1", "D^ c #0E138E", "E^ c #0A0E83", "F^ c #2C31A3", "G^ c #969AF7", "H^ c #484CBF", "I^ c #0A0E79", "J^ c #3D40B3", "K^ c #9B9FFC", "L^ c #484CC2", "M^ c #1519A0", "N^ c #5256CB", "O^ c #ABAFF0", "P^ c #C4C6F4", "Q^ c #D2D3F9", "R^ c #DDDDFE", "S^ c #A1A3ED", "T^ c #5356C4", "U^ c #3D3FB0", "V^ c #5052BF", "W^ c #AAACF0", "X^ c #B9BBFD", "Y^ c #373BA0", "Z^ c #060857", "`^ c #02052B", " / c #11126E", "./ c #272CAE", "+/ c #9298F3", "@/ c #101475", "#/ c #4348C4", "$/ c #9BA0ED", "%/ c #2E32AE", "&/ c #0C0F7F", "*/ c #1418AB", "=/ c #1218B4", "-/ c #1217A8", ";/ c #111488", ">/ c #494DD1", ",/ c #7A7FE6", "'/ c #212696", ")/ c #4549C3", "!/ c #989CED", "~/ c #2E30A5", "{/ c #0E1390", "]/ c #6D72DA", "^/ c #676CE3", "// c #1A1D85", "(/ c #0C1184", "_/ c #3237B3", ":/ c #3135B8", "( c #4D50D2", ",( c #767AE6", "'( c #202495", ")( c #0F116F", "!( c #989BEC", "~( c #2D2FA5", "{( c #111699", "]( c #2227AC", "^( c #7077E9", "/( c #4349C7", "(( c #101378", "_( c #111584", ":( c #5055CA", "<( c #26299E", "[( c #090D75", "}( c #0C1282", "|( c #0C1088", "1( c #4F54C5", "2( c #8F93F0", "3( c #090D62", "4( c #7F84DB", "5( c #6F74E2", "6( c #17197C", "7( c #121599", "8( c #4D52C4", "9( c #8F93F1", "0( c #2F33A6", "a( c #0C0E71", "b( c #161988", "c( c #8084EC", "d( c #212594", "e( c #0D108D", "f( c #1D209B", "g( c #7B7FE3", "h( c #666AE1", "i( c #161983", "j( c #0F127B", "k( c #111384", "l( c #5055C2", "m( c #7177EE", "n( c #23259D", "o( c #0E1196", "p( c #1217AF", "q( c #1218B2", "r( c #1B1EA3", "s( c #6D72DF", "t( c #6166DC", "u( c #161A7F", "v( c #3538B1", "w( c #989BF4", "x( c #3E42B6", "y( c #101385", "z( c #0E1294", "A( c #4045B7", "B( c #0A0D7E", "C( c #141A9A", "D( c #0F1395", "E( c #1B1F9D", "F( c #676AD3", "G( c #C6C9FA", "H( c #C1C4F7", "I( c #3B3EAE", "J( c #0B0C78", "K( c #15188E", "L( c #0B0F82", "M( c #191D8E", "N( c #0F148E", "O( c #090E82", "P( c #3034A5", "Q( c #979BF7", "R( c #474ABD", "S( c #0B0E79", "T( c #0D1172", "U( c #3C40B2", "V( c #999DFC", "W( c #4448BF", "X( c #121595", "Y( c #5256CF", "Z( c #6568D6", "`( c #6B6ED7", " _ c #6A6DD7", "._ c #595ED2", "+_ c #565AD0", "@_ c #585CCF", "#_ c #5459CA", "$_ c #3E42BE", "%_ c #21248C", "&_ c #05064A", "*_ c #060839", "=_ c #0E128B", "-_ c #1E2198", ";_ c #8489E0", ">_ c #5B5FDC", ",_ c #121679", "'_ c #1B1F9E", ")_ c #5C62DD", "!_ c #4A50DC", "~_ c #181D96", "{_ c #0D1086", "]_ c #2429AF", "^_ c #6067E7", "/_ c #3E44C6", "(_ c #121583", "__ c #121685", ":_ c #5A5DD0", "<_ c #26299C", "[_ c #0A0E6D", "}_ c #0B0F72", "|_ c #1C1F99", "1_ c #464ED3", "2_ c #545CDA", "3_ c #1C229A", "4_ c #0F1387", "5_ c #151890", "6_ c #7477E8", "7_ c #1E218B", "8_ c #090C70", "9_ c #0B0F7B", "0_ c #0B1079", "a_ c #10137A", "b_ c #8F93EF", "c_ c #2F31A3", "d_ c #1A1D8E", "e_ c #7F84DA", "f_ c #6E73E1", "g_ c #121598", "h_ c #4D51C5", "i_ c #9094F1", "j_ c #3033A6", "k_ c #222594", "l_ c #0C108B", "m_ c #121587", "n_ c #15178F", "o_ c #6A6DD0", "p_ c #7478E9", "q_ c #0F1390", "r_ c #2A2FA8", "s_ c #6870EB", "t_ c #373CC3", "u_ c #11148E", "v_ c #0D118A", "w_ c #3237C0", "x_ c #6B70EE", "y_ c #2E33B1", "z_ c #0E1180", "A_ c #101276", "B_ c #4044BA", "C_ c #9297F3", "D_ c #090C72", "E_ c #0A0C6C", "F_ c #4246B8", "G_ c #0B0E7E", "H_ c #141882", "I_ c #1A1E9A", "J_ c #7A7FF1", "K_ c #5F62DA", "L_ c #4448C3", "M_ c #222593", "N_ c #080A6A", "O_ c #121787", "P_ c #0B0F7E", "Q_ c #969BF7", "R_ c #3A3FAF", "S_ c #0B0E80", "T_ c #25299A", "U_ c #8C90F0", "V_ c #5155CC", "W_ c #0E1271", "X_ c #262AA0", "Y_ c #8185EF", "Z_ c #5156D1", "`_ c #13178A", " : c #0B0E64", ".: c #0D0F64", "+: c #0E1162", "@: c #0D0F68", "#: c #0D0F65", "$: c #0D1063", "%: c #0D1060", "&: c #0E0F5A", "*: c #11126D", "=: c #0C1186", "-: c #0A0F75", ";: c #151984", ">: c #5C60D3", ",: c #7379E7", "': c #1F2398", "): c #101494", "!: c #2125A9", "~: c #575EE5", "{: c #4148D6", "]: c #2328AF", "^: c #1F24A7", "/: c #2A31BD", "(: c #545CE8", "_: c #3F47CE", ":: c #151A96", "<: c #10159D", "[: c #191E98", "}: c #767ADB", "|: c #646AE0", "1: c #191C83", "2: c #0A0D62", "3: c #363ABD", "4: c #5B60DD", "5: c #565EDB", "6: c #0D1290", "7: c #1116A0", "8: c #0E1284", "9: c #7A7DDC", "0: c #161978", "a: c #101379", "b: c #2F32A4", "c: c #191D90", "d: c #8186DC", "e: c #17197B", "f: c #0B0E73", "g: c #212494", "h: c #0B0F88", "i: c #0F1382", "j: c #4B4EC3", "k: c #7E83F1", "l: c #2A2CA2", "m: c #13189D", "n: c #3137B7", "o: c #5B62EB", "p: c #353BC8", "q: c #2126AB", "r: c #2025A8", "s: c #3237C5", "t: c #353ABF", "u: c #111594", "v: c #131791", "w: c #10158F", "x: c #565CCB", "y: c #7A81EF", "z: c #222793", "A: c #080C71", "B: c #0E1181", "C: c #9DA0F3", "D: c #4347B8", "E: c #0A0C6A", "F: c #0F126D", "G: c #4146B9", "H: c #8186F8", "I: c #3D41BD", "J: c #090A59", "K: c #0E148B", "L: c #6165C9", "M: c #181C91", "N: c #656BDD", "O: c #6D72E8", "P: c #1A1D94", "Q: c #111580", "R: c #4044C2", "S: c #6A71F3", "T: c #262AAD", "U: c #12179A", "V: c #11158A", "W: c #0C106A", "X: c #0C1077", "Y: c #141A9F", "Z: c #0E1389", "`: c #0B0E66", " < c #080B54", ".< c #020215", "+< c #B0B1FB", "@< c #797DDD", "#< c #9498E5", "$< c #11126C", "%< c #0D117F", "&< c #0D107A", "*< c #3136B7", "=< c #858BF2", "-< c #3036BA", ";< c #151AAC", ">< c #5C62E5", ",< c #7B82ED", "'< c #7D83EA", ")< c #797FF0", "!< c #4148CD", "~< c #1319AD", "{< c #282EB1", "]< c #7F84EF", "^< c #4145C7", "/< c #363AB3", "(< c #A9AEF9", "_< c #8085E6", ":< c #2228A2", "<< c #0D1393", "[< c #0F16A3", "}< c #8389F2", "|< c #4348C6", "1< c #0E126D", "2< c #080C66", "3< c #101377", "4< c #4F53C7", "5< c #2F31A5", "6< c #191D8F", "7< c #8286DC", "8< c #121597", "9< c #9194F1", "0< c #3133A6", "a< c #151989", "b< c #666AD0", "c< c #7F84EC", "d< c #0A0F85", "e< c #0F1697", "f< c #292DA9", "g< c #7D83EE", "h< c #3E43C3", "i< c #0F1287", "j< c #1117A7", "k< c #3237B9", "l< c #6F76EE", "m< c #7E84EB", "n< c #7077F0", "o< c #0F138E", "p< c #1E22A2", "q< c #6E74E5", "r< c #565BD6", "s< c #14177E", "t< c #0C0F7C", "u< c #090D68", "v< c #9DA2F3", "w< c #4448BA", "x< c #0A0D6A", "y< c #131677", "z< c #5356C3", "A< c #8D92F5", "B< c #2C30A1", "C< c #0A0E7C", "D< c #0F1484", "E< c #0E117E", "F< c #0D1282", "G< c #393EAF", "H< c #101284", "I< c #8C91F1", "J< c #20238B", "K< c #1A1D9D", "L< c #111692", "M< c #3C42B6", "N< c #8187F8", "O< c #2B2FA8", "P< c #0C1091", "Q< c #1419A0", "R< c #161A9D", "S< c #444BD1", "T< c #575EEA", "U< c #2A2FBC", "V< c #2025A9", "W< c #272AB0", "X< c #3A3FC2", "Y< c #2427A0", "Z< c #0F1493", "`< c #676AD7", " [ c #B1B2FB", ".[ c #393EBF", "+[ c #5257D1", "@[ c #252BA4", "#[ c #0B0C74", "$[ c #0B1082", "%[ c #7478E3", "&[ c #20249F", "*[ c #989CE7", "=[ c #5A5FD6", "-[ c #12136C", ";[ c #0A0D76", ">[ c #0A0E6F", ",[ c #090D64", "'[ c #1B1F91", ")[ c #6167DB", "![ c #5057DC", "~[ c #171A8F", "{[ c #1419B2", "][ c #0E1395", "^[ c #2023A4", "/[ c #4045C9", "([ c #4B51D4", "_[ c #3036B9", ":[ c #141993", "<[ c #1318AE", "[[ c #131790", "}[ c #4950D0", "|[ c #20249C", "1[ c #0D106A", "2[ c #4246BE", "3[ c #A8ADF3", "4[ c #4348C0", "5[ c #1218A4", "6[ c #1016AA", "7[ c #10149B", "8[ c #7980EA", "9[ c #272BA0", "0[ c #080B62", "a[ c #0A0C5E", "b[ c #070B5B", "c[ c #090B60", "d[ c #9295F0", "e[ c #3033A5", "f[ c #8589DE", "g[ c #7076E2", "h[ c #111597", "i[ c #4E52C4", "j[ c #9196F1", "k[ c #3134A7", "l[ c #0B0E74", "m[ c #16198A", "n[ c #686BD1", "o[ c #090E7E", "p[ c #0C1079", "q[ c #151889", "r[ c #5157CD", "s[ c #6067E6", "t[ c #1D2298", "u[ c #1318AB", "v[ c #1218A6", "w[ c #272CAD", "x[ c #4A50D2", "y[ c #2A30B1", "z[ c #111595", "A[ c #363CBD", "B[ c #757BEF", "C[ c #2E32A8", "D[ c #0B0F69", "E[ c #0C0F7A", "F[ c #3337A8", "G[ c #9FA4F4", "H[ c #494CBC", "I[ c #5B60C9", "J[ c #8D92F3", "K[ c #282C9A", "L[ c #090C75", "M[ c #0D107D", "N[ c #3E42B4", "O[ c #989CF8", "P[ c #3B3FB1", "Q[ c #0C0F77", "R[ c #565BC6", "S[ c #9095F6", "T[ c #282D9B", "U[ c #080D7C", "V[ c #101285", "W[ c #6265C9", "X[ c #9196F4", "Y[ c #22248B", "Z[ c #1A1D9C", "`[ c #797CE8", " } c #7477E6", ".} c #191C8A", "+} c #0B107E", "@} c #0D1395", "#} c #0A0E76", "$} c #1D2296", "%} c #646CE3", "&} c #4B52D4", "*} c #1419A3", "=} c #1419A6", "-} c #161B9F", ";} c #4A4FD3", ">} c #8A8FF5", ",} c #8A8EE8", "'} c #999CEE", ")} c #979BF9", "!} c #7175E6", "~} c #22269D", "{} c #0C0F75", "]} c #070B5C", "^} c #020110", "/} c #090C59", "(} c #B6B9FD", "_} c #4348C5", ":} c #6064D5", "<} c #A3A7EC", "[} c #262BA4", "}} c #0B0D72", "|} c #1B1C91", "1} c #7E81DD", "2} c #8084E7", "3} c #272BA4", "4} c #A0A5EA", "5} c #5D62D6", "6} c #11126B", "7} c #0B0F71", "8} c #070C61", "9} c #0B0E69", "0} c #2C31AF", "a} c #353AC2", "b} c #0C1190", "c} c #1419A7", "d} c #0E126F", "e} c #121572", "f} c #131798", "g} c #0D1089", "h} c #111487", "i} c #3035BD", "j} c #676EEA", "k} c #13179D", "l} c #4549BE", "m} c #A9ADF1", "n} c #3B3FB4", "o} c #1519A3", "p} c #11159F", "q} c #0C0F84", "r} c #2127A7", "s} c #666DE6", "t} c #4A50D0", "u} c #15177A", "v} c #090A5B", "w} c #5356C6", "x} c #9CA0F3", "y} c #383BAB", "z} c #0A0C68", "A} c #212493", "B} c #9194E2", "C} c #7579E3", "D} c #18197B", "E} c #0F138A", "F} c #9CA0F4", "G} c #181A8C", "H} c #7579D7", "I} c #868BED", "J} c #232691", "K} c #090D77", "L} c #0D1182", "M} c #2629A3", "N} c #6369E5", "O} c #4147CC", "P} c #151A91", "Q} c #101471", "R} c #1519A1", "S} c #0E139A", "T} c #0D1186", "U} c #2328AA", "V} c #5D64E4", "W} c #464ECD", "X} c #14187E", "Y} c #090C63", "Z} c #080C64", "`} c #0B0E71", " | c #3438A7", ".| c #A6AAF5", "+| c #5558C2", "@| c #14187F", "#| c #9296F3", "$| c #282C98", "%| c #080C6E", "&| c #0A0C67", "*| c #0B0E6C", "=| c #4145B5", "-| c #A1A4F9", ";| c #4649B7", ">| c #0B0E78", ",| c #101583", "'| c #6367CC", ")| c #969AF6", "!| c #292E9C", "~| c #080D7B", "{| c #101480", "]| c #6569CA", "^| c #9B9FF5", "/| c #282B90", "(| c #0B106D", "_| c #1C219D", ":| c #8487ED", "<| c #777CE6", "[| c #191C88", "}| c #0B1088", "|| c #3036AF", "1| c #666EEC", "2| c #2E34BA", "3| c #11148C", "4| c #141998", "5| c #181C9B", "6| c #4347CA", "7| c #7377E8", "8| c #6F73E6", "9| c #4F53D0", "0| c #878CF2", "a| c #6B70DA", "b| c #1C2091", "c| c #070B55", "d| c #0C0D59", "e| c #6A6DD6", "f| c #C0C1FD", "g| c #6366D3", "h| c #171A83", "i| c #1E218F", "j| c #ACB0ED", "k| c #272BA3", "l| c #10148F", "m| c #1B1D91", "n| c #8387DD", "o| c #3437A9", "p| c #14167C", "q| c #4346B8", "r| c #B3B6F2", "s| c #6268D7", "t| c #11136B", "u| c #0A0D69", "v| c #080B5D", "w| c #3C41C1", "x| c #656DF1", "y| c #3940CA", "z| c #1F24A2", "A| c #10147D", "B| c #121682", "C| c #3B42CC", "D| c #686FEC", "E| c #3F44C7", "F| c #141786", "G| c #101598", "H| c #0B0F6A", "I| c #474CBD", "J| c #B1B5F5", "K| c #4B4FBD", "L| c #0D1072", "M| c #121581", "N| c #252AAA", "O| c #5C63E1", "P| c #656CE3", "Q| c #222699", "R| c #090B5F", "S| c #060845", "T| c #101374", "U| c #575BC7", "V| c #ABAEF6", "W| c #5457C3", "X| c #A5A8EC", "Y| c #797EE3", "Z| c #181A7B", "`| c #5559C4", " 1 c #ABAEF7", ".1 c #575AC4", "+1 c #2D2FA0", "@1 c #8F92E5", "#1 c #8E92ED", "$1 c #242791", "%1 c #090C6D", "&1 c #0A0E6A", "*1 c #3036B2", "=1 c #656EEC", "-1 c #464DD5", ";1 c #252AAE", ">1 c #141788", ",1 c #0D1075", "'1 c #0D0F72", ")1 c #0D1076", "!1 c #181D93", "~1 c #2D33BA", "{1 c #5A62E5", "]1 c #575DE0", "^1 c #1E2293", "/1 c #363BA7", "(1 c #7174D5", "_1 c #1B1F89", ":1 c #262999", "<1 c #8689E0", "[1 c #9B9EF4", "}1 c #292C98", "|1 c #070B68", "11 c #080A5A", "21 c #080A5B", "31 c #4348B5", "41 c #ADB1FB", "51 c #6568CE", "61 c #171B87", "71 c #222696", "81 c #8184DE", "91 c #9FA3F6", "01 c #2A2F9A", "a1 c #080C77", "b1 c #0F138D", "c1 c #10137B", "d1 c #6B6ECD", "e1 c #AEB1F8", "f1 c #4144AE", "g1 c #131681", "h1 c #373AAA", "i1 c #7E81E6", "j1 c #1A1D87", "k1 c #0A0D77", "l1 c #3A42C0", "m1 c #6871EE", "n1 c #3C43CE", "o1 c #0F1379", "p1 c #12178A", "q1 c #1E22A1", "r1 c #191C95", "s1 c #161995", "t1 c #5154C7", "u1 c #5357C7", "v1 c #080A4F", "w1 c #6467D4", "x1 c #D3D5FF", "y1 c #B9BCF6", "z1 c #898DE6", "A1 c #8C8FE7", "B1 c #CFD1F9", "C1 c #ADAFEC", "D1 c #2729A0", "E1 c #0B0D74", "F1 c #8085DC", "G1 c #D4D6FE", "H1 c #999DEC", "I1 c #898CE5", "J1 c #A6A9EC", "K1 c #DCDDFF", "L1 c #5F63D1", "M1 c #111368", "N1 c #06094F", "O1 c #090B5E", "P1 c #13167D", "Q1 c #343ABA", "R1 c #6D76ED", "S1 c #757BE7", "T1 c #3F43C8", "U1 c #363ABF", "V1 c #3439BD", "W1 c #373BBF", "X1 c #4246CB", "Y1 c #575CD9", "Z1 c #797FEA", "`1 c #6F75EA", " 2 c #353ABB", ".2 c #151885", "+2 c #484CBC", "@2 c #C4C7F9", "#2 c #8387E0", "$2 c #494CC2", "%2 c #4448C9", "&2 c #5358D6", "*2 c #787EED", "=2 c #6269E0", "-2 c #272CA6", ";2 c #0D0F6B", ">2 c #050536", ",2 c #101371", "'2 c #5357C4", ")2 c #CDCFFF", "!2 c #B0B3F2", "~2 c #8D90E6", "{2 c #D9DBFE", "]2 c #787CDE", "^2 c #171979", "/2 c #5255C3", "(2 c #CCCEFF", "_2 c #B2B4F2", ":2 c #8A8CE5", "<2 c #969AE8", "[2 c #D0D2FC", "}2 c #9295EC", "|2 c #22268F", "12 c #070B64", "22 c #070A59", "32 c #2B30AD", "42 c #636AE1", "52 c #7E84EF", "62 c #5B60DB", "72 c #4448CD", "82 c #383CC2", "92 c #3539BE", "02 c #3C40C5", "a2 c #484DD1", "b2 c #676DDF", "c2 c #7A81F2", "d2 c #4D54D0", "e2 c #1F2295", "f2 c #070847", "g2 c #060741", "h2 c #3438A4", "i2 c #BABDF8", "j2 c #C5C7F7", "k2 c #9597E8", "l2 c #A1A4F3", "m2 c #272B96", "n2 c #070A61", "o2 c #090B57", "p2 c #060950", "q2 c #090C58", "r2 c #4044B3", "s2 c #C4C6FF", "t2 c #BCBEF6", "u2 c #8A8DE4", "v2 c #9193E6", "w2 c #CBCDFB", "x2 c #A7AAF6", "y2 c #292D9A", "z2 c #080B71", "A2 c #0F137F", "B2 c #6569C9", "C2 c #DADCFE", "D2 c #A5A7EC", "E2 c #888CE7", "F2 c #9D9FEB", "G2 c #D4D6FF", "H2 c #7B7FE2", "I2 c #1A1D84", "J2 c #080C5C", "K2 c #090D63", "L2 c #121780", "M2 c #3339B8", "N2 c #6F76E9", "O2 c #7E84EC", "P2 c #5C61DB", "Q2 c #4E52D3", "R2 c #464ACB", "S2 c #484CCF", "T2 c #4D50D0", "U2 c #676ADD", "V2 c #9497EE", "W2 c #CACEFE", "X2 c #7D83E4", "Y2 c #1F238A", "Z2 c #05062E", "`2 c #03031E", " 3 c #060A45", ".3 c #0A0C53", "+3 c #4146C1", "@3 c #9EA2EC", "#3 c #B8BBF1", "$3 c #B9BCF2", "%3 c #B3B5F1", "&3 c #797DDB", "*3 c #212391", "=3 c #080A5E", "-3 c #575DCB", ";3 c #ABAFEF", ">3 c #B8BCF1", ",3 c #A6AAEB", "'3 c #4247BE", ")3 c #0F1261", "!3 c #0F1270", "~3 c #242AA4", "{3 c #4C52CF", "]3 c #8D92E9", "^3 c #A5A9FB", "/3 c #ABB0FB", "(3 c #ACB1FA", "_3 c #AAAFFB", ":3 c #A4A8FA", "<3 c #8489E7", "[3 c #494ECE", "}3 c #2528A2", "|3 c #4246B7", "13 c #CCCFFB", "23 c #D9DBFB", "33 c #BDC0FA", "43 c #ADB0FC", "53 c #898DE8", "63 c #4248C7", "73 c #1E2396", "83 c #040528", "93 c #04042A", "03 c #999EEA", "a3 c #B7BAF1", "b3 c #BABCF2", "c3 c #AAAEED", "d3 c #5358C9", "e3 c #141771", "f3 c #3B3FB5", "g3 c #989CEA", "h3 c #B7B9F1", "i3 c #B9BBF1", "j3 c #AEB2EF", "k3 c #656AD7", "l3 c #1C2087", "m3 c #060955", "n3 c #070A4D", "o3 c #0B0E68", "p3 c #3D43C4", "q3 c #7C81E3", "r3 c #A1A6F8", "s3 c #A9AEFC", "t3 c #A8ACFD", "u3 c #9BA0F2", "v3 c #666CDC", "w3 c #3237B8", "x3 c #272C99", "y3 c #858AE1", "z3 c #B5B7F0", "A3 c #BABDF2", "B3 c #B1B4F0", "C3 c #7074DD", "D3 c #21248E", "E3 c #07094A", "F3 c #090D5F", "G3 c #3135A8", "H3 c #8D91E8", "I3 c #B6B8F1", "J3 c #B2B4F0", "K3 c #7479DF", "L3 c #222692", "M3 c #070A66", "N3 c #0C0F66", "O3 c #464CB9", "P3 c #A5AAED", "Q3 c #B7BBF1", "R3 c #A9ADEE", "S3 c #555ACB", "T3 c #171A7A", "U3 c #05094F", "V3 c #070A50", "W3 c #0D116F", "X3 c #23279F", "Y3 c #474DCC", "Z3 c #8B90E8", "`3 c #AAADFB", " 4 c #B5B7FE", ".4 c #B7B9FF", "+4 c #9FA2ED", "@4 c #6063D3", "#4 c #282BA1", "$4 c #0F1368", "%4 c #05052E", "&4 c #191C7F", "*4 c #24289B", "=4 c #2D31A3", "-4 c #3032A5", ";4 c #2C2DA3", ">4 c #202494", ",4 c #0F1265", "'4 c #090A56", ")4 c #0B0C62", "!4 c #0C0D5D", "~4 c #272A9F", "{4 c #2E31A4", "]4 c #26299D", "^4 c #1A1D82", "/4 c #121675", "(4 c #24289D", "_4 c #4347C3", ":4 c #5C61D6", "<4 c #6266D9", "[4 c #595DD4", "}4 c #3E3FBD", "|4 c #111471", "14 c #090B58", "24 c #6F72DB", "34 c #767ADE", "44 c #4B4DC5", "54 c #24279A", "64 c #06073F", "74 c #03052E", "84 c #030420", "94 c #171B7C", "04 c #24289C", "a4 c #2D31A4", "b4 c #3033A4", "c4 c #272B9F", "d4 c #1C1F89", "e4 c #0B0D5C", "f4 c #0C0F6C", "g4 c #181A7D", "h4 c #23279B", "i4 c #2D30A4", "j4 c #282CA1", "k4 c #1E228E", "l4 c #0E115E", "m4 c #070A56", "n4 c #1F2191", "o4 c #373BB7", "p4 c #5458D1", "q4 c #6166D9", "r4 c #6064D8", "s4 c #4D51CB", "t4 c #2E32AB", "u4 c #191C85", "v4 c #0B0E62", "w4 c #080B56", "x4 c #070841", "y4 c #13166B", "z4 c #222695", "A4 c #2C2FA2", "B4 c #3032A4", "C4 c #292EA1", "D4 c #1F2390", "E4 c #101261", "F4 c #161873", "G4 c #232697", "H4 c #2D30A3", "I4 c #2B2EA1", "J4 c #202391", "K4 c #111367", "L4 c #1B1E82", "M4 c #2E32A4", "N4 c #3133A4", "O4 c #262A9F", "P4 c #0B0E56", "Q4 c #040739", "R4 c #222598", "S4 c #3F43BD", "T4 c #5D60D6", "U4 c #6568D9", "V4 c #5F62D6", "W4 c #4548C2", "X4 c #141677", "Y4 c #080952", "Z4 c #070846", "`4 c #080949", " 5 c #060747", ".5 c #0C0D58", "+5 c #0B0B55", "@5 c #080946", "#5 c #0A0A4D", "$5 c #0E1059", "%5 c #0E1058", "&5 c #0B0E57", "*5 c #090A52", "=5 c #06084B", "-5 c #060A51", ";5 c #0A0C5A", ">5 c #010420", ",5 c #04083B", "'5 c #090B53", ")5 c #0A0C56", "!5 c #090A50", "~5 c #060848", "{5 c #090A49", "]5 c #060746", "^5 c #070850", "/5 c #040425", "(5 c #0A0D56", "_5 c #0B0D58", ":5 c #0B0C56", "<5 c #070953", "[5 c #08094B", "}5 c #000211", "|5 c #050735", "15 c #070A4A", "25 c #080947", "35 c #070A49", "45 c #080A4A", "55 c #03042E", "65 c #090B52", "75 c #0A0B52", "85 c #06073E", "95 c #050838", "05 c #070A47", "a5 c #02021B", "b5 c #090B50", "c5 c #010316", "d5 c #050734", "e5 c #08094A", "f5 c #080A47", "g5 c #090A4A", "h5 c #09094A", "i5 c #020113", "j5 c #030533", "k5 c #080C54", "l5 c #020428", "m5 c #02020F", "n5 c #000104", "o5 c #01041E", "p5 c #030635", "q5 c #020426", "r5 c #050530", "s5 c #030421", "t5 c #02021C", "u5 c #00020E", "v5 c #00000A", "w5 c #03041D", "x5 c #01021C", "y5 c #020210", "z5 c #020317", "A5 c #00010E", ". . . . . . . . . + . . . . . . @ . . . . . . . . . . @ . . . . @ . + . . . + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + . . . + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + . # # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . # # . . . . . . . # # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . @ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . $ # @ # @ # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . % . . . # @ # @ # # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . @ # @ # $ # @ # # . @ # $ & * = - ; * > $ # @ # @ # $ # $ # @ # # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . @ # @ # @ @ @ # # . . . . . . . . . . # @ # @ # @ $ & , * ' ' , ) $ $ # @ # @ # @ @ @ @ @ # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . @ @ @ & ! = ; ~ ~ ~ { * > ) , ] ^ / ( _ : < [ } * | | * { ] ] ] ] - | & $ # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . @ $ ) , ; ~ ~ ~ - ) & $ # . . . . . 1 $ & ! * 2 = 2 , ; 3 < : _ ( 4 5 6 = | , ) * ; 6 ~ 6 ~ * ) $ @ @ # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . @ & & { ^ 7 8 9 0 a 0 8 / b 5 7 c d e f g h i j k b ^ 5 / k l l 0 l : m n = $ # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . @ | ~ 3 4 l a 0 l k < o p ) $ @ @ $ & = } [ 4 : : ( ( k q r s t u f v w 0 x [ [ 7 4 l a 0 a _ 4 5 y ) & @ # . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . @ $ & } x z s h A B C D u E F G w H I J K L M N C O P Q F R h A S T U V w W b ; $ # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . @ . . . . . . . . . . $ X [ 8 Y Z ` .T A u ..+./ @.2 ) | = 6 #.$.F R h H %.&.v f C *.=.-.;.>.,.g i G '.w ).!. .B B g ..~.{.^ ! $ # . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . # & ]./ ^./.(._.:.<.[.}.M N |.1.2.3.4.5.6.7.8.9.0.a.b.T c.d.e.f.g.h.i.=.j.k.+.b { $ . . . @ . . . . . . . . . . . . . . @ . . . . . . . . . # . . . . . . . . . . . . . . . . . . . . . % # # . @ ) ^ l Z l.m.n.o.p.q.;.r. .s.t.[ 6 ^ x u.R v.w.x.K y.z.A.B.e.C.D.E.7.F.E.G.-.w.C C j.H.I.J.<.J.I.K.L.M.l N.) O.+ . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". @ . . @ , P.Q v.Q.R.S.T.U.V.W.X.4.<.Y.Z.`. +.+++@+#+$+%+&+*+=+-+;+8.>+V.V.,+Z.'+m.f )+^ | # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . $ } 4 i !+~+*+{+]+^+/+(+_+=.b.R 0 :+l <+[+}+|+9.1+2+Z.*+3+4+%+5+6+7+8+9+0+a+b+c+d+e+f+g+h+4+i+j+k+*+l+j.R k y & # . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . m+~ n+V m.o+p+7+q+r+s+q+t+u+v+w+x+y+z+A+B+C+D+E+F+G+H+I+J+K+L+M+s+N+O+P+Q+|+R+E ( ].$ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . # # @ ) 5 d S+T+U+V+W+X+Y+s+Z+`+ @=..@E +@@@c.#@$@%@&@*@=@7+-@;@>@,@'@)@!@~@{@]@^@/@(@_@:@,+<@[@q+r+s+W+}@|@=.1@'.5 ) # . . . . . . . . . # # . . . . . . . . . . . . . . . . ", ". . + @ $ @.2@.@3@4@5@6@7@8@9@0@a@b@c@d@e@f@g@h@i@j@k@l@m@n@o@p@q@r@s@t@u@v@w@x@y@z@A@1.d [ ) @ # . . . . . . . . . . . . . . . . . . . . . . . . . . . . @ # @ # @ # # . . . . . . . . . . . . + . @ & ] 8 B@C@D@E@F@G@H@H@I@J@K@L@h.M@N@1@O@P@Q@R@S@T@U@V@W@X@Y@Z@`@ #.#+#@###$#%#&#*#=#-#;#>#,#9@'#)#!#~#{#o+x.E / = @ . . . # @ # # . # # # . . . . . . . . . . . . . . . . ", ". . . @ ) 5 w *.]#^#/#(#_#:#<#[#}#|#1#2#3#4#5#6#7#8#9#0#a#b#c#d#e#f#g#h#i#j#k#l#m#I+n#o#&.k 6 ) $ $ # . . . . . . . . . . . # $ $ > > > $ $ # # @ # # @ & , ] } ~ - 2 ) $ $ # . . . . . . . . . # $ | ; x p#1@q#r#s#t#u#v#w#x#y#z#A#B#c+C#D#E#F#G#H#I#J#K#L#M#N#O#P#Q#R#S#T#U#V#W#X#Y#Z#`# $.$+$@$#$$$%$&$*$=$$@-$g ;$>$& $ $ & , = ; ' ' , * | $ # . . . . . . . . . . . . . . ", ". . . @ ) ,$R '$%@)$!$~${$]$^$/$($_$:$<$[$}$|$1$2$3$4$5$6$7$8$9$0$a$b$c$)@d$e$f$g$h$i$j$b.i _ b >$2 $ # . . . . . . . . @ & 2 y y @.@.^ 6 - | & $ $ ) ; ^ x k$n+_ 8 ( b ^ - | $ # . . . . . @ $ * ~ 5 k l$m$n$o$p$q$r$s$t$u$v$w$x$y$z$_@J+A$B$C$D$E$F$G$H$I$J$K$L$M$N$O$P$Q$R$S$T$U$V$W$X$Y$Z$`$ %.%+%@%#%$%%%U.Z.D &%[ { - ~ [ 4 k t._ 8 : x 5 y , @ # . . . . . . . . . . . . ", ". . % @ ) / M.e.*%=%-%;%>%,%'%)%!%~%{%]%^%/%(%_%:%<%[%}%_$`@X$|%1%2%3%4%5%6%7%8%9%0%,@I+a%b%c%d%0 ,$e%| $ # . . . . @ & { N.f%l d G F F r 8 5 6 ~ ~ 5 g%d R h%[+` ` i%R Q t.5 - $ @ @ . . # $ - 5 _ l$j%T k%$@l%m%n%o%p%q%r%s%t%u%v%w%x%y%e#e@8+z%A%B%C%D%E%F%G%H%I%J%K%L%M%N%O%h@P%Q%R%S%T%U%V%W%X%Y%Z%`% &%%%@E#c.Y / 5 / 9 F e f D D A f .&G 0 f%e%, $ # . . . . . . . . . . ", ". . . @ , / j%+&@&#&$&%&&&*&=&-&;&>&,&'&)&'&!&~&{&]&^&/&U%(&_&:&1%<&[&}&|&1&2&3&4&5&6&7&%+8&9&0&[+s l [ * $ # . . @ ) e%f%r R [+a&b&c&d&S H Y l ( _ G V b.A.e&f&q.|+-.C@c.h '.: ^ X $ $ $ * ^ k F h g&h&i&b+j&k&l&m&n&o&p&q&r&s&t&u&v&w&x&y&z&A&B&C&D&E&F&G&:%H&I&J&K&L&M&N&O&P&Q&R&S&T&S%U&V&W&X&Y&Z&`& *.*+*%+k+@*#*r +.i [+w.$*n.:.P@q.'+h&%*[+s l 5 = $ # . . . . . . . . . ", ". . . @ , / j%+&p$#&$&&***=*=&-*;*>*,&,*'*)*!*~*{*]*^*/*(*_*:*<*p@[*}*|*|&1*2*3*4*5*~*{%6*7*8*9*0*w.i%+.x ] & $ $ ) N.0 ..S O@n.a*D.b*c*d*z.b.f v u c.'$4.e*f*,+g*h*i*j*<.M@b.e l [ { = } k*l*m*g&e. @n*H+o*p*q*r*s*t*u*v*q&w*x*y*z*A*J%c#B*C*D*E*F*G*H*)*I*J*K*L*M*N*O*P*Q*R*S*T*U*V*W*X*Y*V&Z*`* =.=+=@=.*#=$=,+J [+c%D O@%=n#:@&=A$*=&=U.==-=%=d.h 2@x - & # . . . . . . . . ", ". . . @ , / j%+&p$#&$&&*;==*=&>=,=>*'=)=!=1%~={=]=^=/=(=_=:=<=[=`@[*}=|=1=1*2=3=4=5=6=7=Z+8=9=q@Q@z@>.D w / 6 = { [ 0 0=a=f.b=W.>+c=8*d=9*j$|+e=r.'$4.j*f=z$g=S*h=S*i=j=U.1+i&*.j%r x 5 :+k=g J l=m=f=z$n=+*q+o=p=q=r=s=t=q&u=v=w=x=y=z=A=B=C=D=E=F=G=H=I=J=K=L=M=N=O=P=Q=R=S=T=U=V=P=W=X=Y=V&Z*`* =.=+=Z=.*`=G+I+ -.-}+%=+-@-#-1&$-%-&-*-=---U.Q@;-M@S l$/ } & @ . . . . . . . ", ". . . @ , / j%+&p$#&$&>-,-k&=&'-)->*!-~-{-]-^-/-(-_-:-<-[-}-|%|-1-[*}*2-1=1*3-4-5-6-7-8-9-0-a-b-c-d-e-e&C s ( 5 b 0 H O@f-m=z$g-h-i-j-k-l-m-f*n-o-4+w+p-q-r-s-t-u-v-w-x-y-f@z-A-O@f w Q i D B-$@c@C-D-E-F-G-H-I-J-K-L-M-N-q&O-x*P-Q-R-)&S-T-U-V-W-X-Y-Z-`- ;.;T%+;@;#;$;%;&;*;=;-;;;>;,;,*';);!;`* =.=~;@=.*{;];^;z@g+/;%@x+]-(;_;*;:;<;[;};a-|;1;G+m=0*1@w / - $ # . . . . . . ", ". . . @ , / j%+&p$#&$&>-;=k&=&>=2;3;4;5;6;7;8;9;0;a;b;9;c;d;e;f;g;h;}*|=1=1&3-i;j;k;l;m;n;o;p;q;r;s;y&4+%=C s r Q %.r.c+t;u;v;w;x;y;z;A;B;C;D;E;F;G;H;I;J;K;L;M;N;O;P;Q;R;S;T;R@6.B.U;V;g&e&`.x+W;r-X;Y;Z;`; >.>)%+>@>#>N-q&w*x*P-$>%>&>,&*>=>->;>>>,>'>)>!>S&~>{>)=]>^>/>(>_>:><>[>}>|>1>2>3>!;`* =.=~;@=.*4>/@E;5>6>y%o@7>8>9>W%0>a>b>c>d>e>f>g>h>l%@-d+C i>5 X # . . . . . . ", ". . . @ , / j%+&p$#&$&>-;=k&=&j>2;>*w&k>l>m>n>o>p>q>r>s>t>u>v>w>x>h;}*|=1=1*y>z>A>B>C>D>E>F>G>H>I>J>K>L>e*e&1@t u %*4.Q@M>N>O>P>Q>R>S>T>U>V+V>W>`#X>Y>Z>`> ,.,+,@,#,$,%,&,*,=,-,t;h+R.e.o+b+y+;,>,,,',),!,>*~,{,],^,/,(,_,q&w*x*P-:,<,[,x&O$},|,1,2,3,4,5,6,7,8,[,|-9,0,a,b,c,d,e,f,g,h,i,j,k,!;`* =.=~;@=.*l,S-{-m,o@n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,K>C,m=e&m$W ^ & # . . . . . ", ". . . @ , / j%+&p$#&$&>-;=k&=&j>2;3;D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,}*|=1=1*T,z>U,V,C>W,X,Y,F&Z,`, '.'+'@'+-e&0&r.d+B##'$'%'&'*'='-';'>',''')'!'~'{']'^'/'('_'3>:'<'['}'|'1'2'3'4'5'&@*=$=5+6'7'8'9'0'a'b'c'd'e'f'g'h'(,i'j'w*x*k':,l'm'g;n'o'|,p'q'K@r's'<$=#t'u'v'w'x'y'z'A'B'C'D'E'F'w>G'k,Z*`* =.=~;@=.*l,H'I'J'[$K>K'L'M'C%N'O'P'Q'R'S'T'U'V'W'X'Y'Z'`' )v c = @ . . . . . ", ". . . @ , / j%+&p$#&$&>-;=k&=&>=2;.)+)@)#)$)%)&)*)/%=)-);)>),)m'w&h;}*2-1=1*y>z>')))!)~){)])^)/)()_):)<)4#d-[)o+Y.e-V.})|)1)2)3)4)5)6)7)8)9)0)a)b)c)d)e)f)g)h)i)j)k)l)m)n)o)p)q)r)Y@e@`@G;s)t)u)v)w)x)y)z)A)B)C)f'D)E)(,F)j'w*x*t&:,G)H)x>I)J)K)H%L)M)N)O)P)Q)R)S)T)U)V)W)X)`#Y)Z)s&`)F'w> !.!Z*`* =.=+!@=.*@!#!$!%!&!*!=!-!;!>!,!'!)!!!~!{!]!^!/!(!_!:!-;=k&=&j>2;>*D,@)#)$)}!|!1!2!3!4!F-5!f;6!R,h;}*|=1=1*3-i;7!8!9!0!a!b!c!d!e!f!g!h!i!y&t;j!f=a+@&k!l!m!n!o!p!q!r!s!t!u!v!w!x!y!z!A!B!C!D!E!F!G!H!I!J!z=K!L!M!A=N!O!P!Q!R!S!W-T!U!V!W!X!Y!Z!`! ~.~#>F)y&+~x*@~#~$~%~:'I)&~*~=~-~;~>~,~'~)~L,!~~~{~]~^~/~V>G'(~_~:~<~[~ !k,Z*`* =}~~;@=.*|~1~[~2~3~4~5~6~7~8~9~0~a~b~c~d~e~f~g~h~i~j~k~l~4@A...,$, # . . . . ", ". . . @ , / j%+&p$#&$&>-;=k&=&j>2;>*D,@)#)$)}!m~#=n~3!o~p~>)q~6!R,h;}*|=|&1*r~4-s~t~u~v~w~x~y~6!z~z=A~B~C~D~x%E~F~G~H~I~J~K~L~M~N~O~P~Q~R~g=S~T~U~V~W~X~Y~Z~`~ {.{+{@{#{${%{&{*{={-{;{T&*&>{,{'{){!{~{{{]{^{/{({_{:{<{[{t=q&}{x*P-|{'&6!x>1{2{*~3{4{5{6{7{8{ >x'=~9{0{]~a{b{V>G'(~c{:~<~[~ !k,!;`* =}~d{e{f{g{h{i{j{k{l{m{n{o{p{q{r{B*s{D;t{u{,~v{w{x{y{z{A{b=B{!.n+- @ @ # . . ", ". . . @ , / j%+&p$#&$&>-;=k&=&j>2;>*D,@)#)$)}!m~C{n~3!D{p~>)E{F{[$G{}*H{|&I{J{K{L{M{N{O{P{Q{R{S{8,T{U{V{W{X{Y{q*R,Z{Q%`{ ].]+]@]#]$]%]&]*]=]f!-];]>],]c''])]!]~]{]]]^]/](]_]:]<][]}]|]1]2]3]4]q+5]6]7]8]9]0]a]b]c]F>d]s=t=q&e]x*f]#~(&m'g;1{2{g]I&!*h]i]j]k]l]m]n]o]p]]~a{b{q]r](~c{:~<~[~ !k,!;s] =}~+!W{f{t]u]v]w]x]y]z]A]B]C]D]E]F]L=G]H]I]J]K]q&7;L]M]N]O]g.P]Q]~ $ # . . . ", ". . . @ , / j%+&p$#&$&>-;=k&=&j>2;>*D,@)#)$)}!m~C{2!3!D{p~>)q~R]:'S]T]H{|&I{U]V]W]X]|%Y]Z]`] ^.^+^5;@^#^$^%^&^*^S&R,=^-^;^>^,^'^)^!^~^]!{^]^^^/^(^_^:^<^[^}^|^1^2^3^4^5^6^x&7^8^9^0^a^b^c^d^e^W;a)9$f^g^h^i^j^k^l^m^n^o^v*p^q^r^s^$>t^x)g;1{2{u^H%v^w^5{l>x^y^c,z^A^I'B^a{C^q]r](~c{:~<~[~ !k,!;`* =}~~;@=.*t]D^E^F^G^H^I^T*J^K^L^M^N^O^P^Q^R^S^T^U^V^W^X^Y^Z^p.`^&%y $ # . . . ", ". . . @ , / j%+&p$#&$&>-;=k&=&j>2;>*D,@)#)$)}!m~C{2!3!D{p~ /P,w>g;./+/x~@/I{#/$/%/&/*/=/-/;/>/,/'/#!2,)/!/~/!-'^{/J'U#]/^///(/c#_/h!:/]8/n,9/0/*{a/b/c/.;d/e/f/Z@g/h/i/j/k/l/m/I%n/o/p/q/p^r&r/s/t/u/v/g;n'2{u^w/x/y/|-z/A/B/c,C/D/#)]~E/b{q]r](~c{:~<~[~ !k,!;`* =}~~;W{f{t]F/G/H/I/|,c'J/K/L/M/N/O/<>P/Q/R/S/_>T/U/V/W/X/Y/Z/v.u.y $ # . . . ", ". . . @ , / j%+&p$#&$&>-;=k&=&j>2;>*D,@)#)$)}!m~C{2!3!D{p~ /`/f;E; (.(+(@(#($(%(&(Y,*(=(-(;(>(,('(n!)(s'!(~(+)x/{(X$](^(/(((U*_(:(9^<([(}(|(9$2>1(2(:^3(2/4(5(6(7(a)8(9(0(a(b(0/c(d(e(P*f(g(h(i(j(k(l(m(n(o(p(q(W!r(s(t(u(o*v(w(x(]>y(z(m,1{o'A(B(C(D(E(F(G(H(I(J(K(L(x(E/b{V>G'(~c{:~<~[~ !k,!;`* =}~~;@=f{M(N(O(P(Q(R(S(T(U(V(W(X(~&Y(Z(`( _V{._+_@_#_$_%_&_*_h n+} @ # . . . ", ". . . @ , / j%+&p$#&$&>-;=k&=&j>2;>*D,@)#)$)}!m~C{2!3!D{p~ /=_0)=#-_;_>_,_Z$'_)_!_~_h~h~{_]_^_/_(_7]__:_f><_c'[_}_|_1_2_3_|]4_5_-^6_7_8_d#9_0_a_1(b_c_q&d_e_f_6(g_a)h_i_j_H'9/0/c(k_l_m_n_o_p_*-q_9$r_s_t_u_v_)&F/w_x_y_z_A_B_C_1{D_1]_'E_1{o'F_G_H_I_p~J_K_L_M_N_O_P_]~Q_R_q]r](~c{:~<~[~ !k,!;`* =}~~;@=.*t]{/S_T_U_V_'&W_X_Y_Z_`_ :.:b#+:{=@:@:#:$:%:&:7.A@2.w 7 , # . . . . ", ". . . @ , / j%+&p$#&$&>-;=k&=&j>2;>*D,@)#)$)}!m~C{2!3!D{p~*:|%=:-:;:>:,:':):{>!:~:{:]:^:/:(:_:::<:~-[:}:|:1:2:h>3:4:5:H!6:7:8:I_9:4%0:=#:'[$H'a:7/b_b:j'c:d:5(e:g_a)h_i_j_f:9/0/c(g:h:i^i:j:k:l:F*m:5;n:o:p:q:r:s:9]t:u:v:w:x:y:z:A:B:L&E;1{C:D:E:F:G:H:I:P#.:J:y=K:9,]~a{b{q]r](~c{:~<~[~ !k,L:`* =}~~;@=.*g{j^<=M:N:O:P:Q:q_R:S:T:['U:V:W:X:Y:n)Z:X:`: <:.c&%..<6 & % . . . . ", "+ . . @ , / ).+&p$#&$&+<;=t/=&j>2;>*D,@)#)$)@<,<'<)t !HM[,['[)[![~[5{{[][^[/[([_[:[5{<[i][[}[]'|[<=1[2[3[4[)=5[6[7[V&|<8[9[0[a[b[c[P!Y=7/d[e[F;z&f[g[e:h['^i[j[k[l[m[n[x]M_o[|-p[q[r[s[t[$!u[v[S~w[<)x[y[z[u[<[v>A[B[C[`@D[q*E[x%F[G[H[x},}'})}!}~}a'{}]}o+2.Z 0 5 2 & # . . . . . ", ". . . @ & ^}e e./})$$&(}_}b^1[:}<}[}}}z[&/|}1}2}r)a(3}4}5}6}7}3#8}j&9}0}I>a}V:b}c}T'd}e}A=f}h)g}h}i}j}]{z_k}/%l}m}n}&/o}p}q}r}s}t}u}v} |,|'|)|!|~|Z<{|.!]|^|/|(|_|:|<|[|l[}|y=Q[||1|2|3|6:4|5|6|7|8|9|0|a|b|u.==d|e|f|g|h|i|Q$j|k|!-l|9_m|n|:#o|p|q|r|s|t|u|v|A$%@5+-,w|x|y|z|A|:=D%D%D%B*B|>~C|D|E|F|Y,G|H|I|J|K|L|7}M|N|O|P|Q|R|`.S|f.h*5+T|U|V|W|i(y}X|Y|Z|5;4_`| 1.1@,+1@1#1$1%17}1-&1X>*1=1-1;1>1R%:=D%,1'1)1!1~1{1]1^1q&$=V.&@l%y+/1y^(1_1:1<1[1}1|1y&1121y&[_3141516171819101a1b1c13>d1e1f1g1h1[1i1j1E;k1x>x$& # . . . . . . . ", ". . . @ ) 5 s J v1^#w1x1y1z1A1B1C1D1E;[/E1d_F1G1H1I1J1K1L1M1y%N1e+;+e-O1P1Q1R1S1+(T1U1V1W1X1Y1Z1`1 2.2Q[S&(&`:+2@2#2$2%2&2*2=2-2;2 <;+>2>2Y. <,2'2)2!2~2>'{2]2^2@;3>/2(2_2:2<2[2}2|212y%22G+e#s)324252627282V19202a2b2c2d2e2w{j+f2g2f-t; +h2i2j2@1k2L#l2m2n2o2J+p2q2o@r2s2t2u2v2w2x2y2z2B:T%A2B2C2D2E2F2G2H2I2R|Z}F#J2K2L2M2N2O2P2Q2R2S2T2U2V2W2X2Y2=+Z2`2/ = @ # . . . . . . . ", ". . . . & ^ i>g& 3.3+3@3#3#3$3%3&3*3=3,1x%{*-3;3#3>3#3,3'3)31+a%,.%*n$E#F#!3~3{3]3^3/3(3_3:3<3[3}3{^,[x%x<7}j=|313233343536373.= 4,4'4)4t;!4W+~4b:b:{4]4^4c*'+b%h j%m$r.<.:@F#/4(4_4:4<4[4}4++|4t;14b+;-N1%+e*b:24A1344454S=%@e-647484F e a&e&9.9404a4b4b:c4d4e4f4R|g4h4i4e[b:j4k4l4i&K a=b%A.4.b+m4 $n4o4p4q4r4s4t4u4v4w4n3e.L.t %.C M@x4y4z4A4-4B4C4D4E4i&;..-J i.a*F4G4H4-4B4I4J4K4U.y+/}%@L4l-M4N4b:O4d4P4|+k%d&d&Q4Z. .f 0 6 & # . . . . . . . . ", ". . . . @ * b w S+~+a%8.$@>+Y4$@6.Z4n#z@z@`4 5k+>+b+,+;-%=f&c&H d 9 d 842.64n#j+O]4+d=.5+5i+&= +E.;5<^i$h+$@O]4+O]N1g+'+*_T >5i V b.,5f-'5f=*=)5^#^#:@Y4i*!5P@}+[+F 0 0 i l.M n.Z.$@>+>+2+S|%=M b.[+A b&A@-$~5h*Y4>+h*Z.S|E3f-8&{5]5h+^5Y4>+2+*+'+C@D e `2/5@*'+{+Q@O]'5(5_5:5j+<5i+[5M@S G m = @ . . . . . . . . . ", ". . . . @ & y }5w S |5'+<.159*25i.y.r.,.c&z.I.p.354535d*>.55j%r b [ 5 8 <+m$*.%=25D.B#6575n#<.85*.B t R @@C C@:.D.65B#`'g.e.@*h i>^}6 ~ 5 l E a&95i.059*z@35J.;+e+;+3@2515-=45p.;.c&g F l : n+a5h ,.e.P@9*j*'5'5b5c*x4C@l.Z c5x ^ 5 8 w D d5n.0515e5h.;.*.v...i>l$%.S+m.n.f5g5h5<.'+>.c&!+w.C@85p.c*9*c*J.M w.h '.i5: 0 s [+j5I.@5D.B#k5'5`' @64r.l5l$m5- & # . . . . . . . . . ", ". . . . . @ n5N.f%2@).A b.2.2.b.v.h o5s i m*m$1@2.@*c. .i%w _ [ { 2 , y x 0 +@g b.c&p5J .-c&C g s r 8 : _ G V 1@c&O@J *.l.u F _ [ = | | X ^ 8 G %.A c.2.@*74S v.` ` B b.|.b%2.T q5i W x >$} ~ b _ F c%B r5N A.J *.g& .E r ( [ - ) * 6 4 +.>5[+b.g&b%l.g #*d }55 < _ G s5[+b.@*r5L.v.j%i F w E g T c.b%g&C f t50 b 6 ; 6 < 0 s u l.w.O@A.J *.b.u +@0 b ] & # . . . . . . . . . . ", ". . . . . . . & ].5 :+l r d j r l : < b u5: l W d '.r l }5b ] | $ $ & $ { v5u5c [!F w w5w F k=_ b ^ y ; ~ b 8 d F s s w d t.k*~ ) $ # @ @ ) ~ 5 ( 0 k='.'.r 0 l _ n+l c5+.'.k=r _ < ^ = & m+$ ) ] [ ( a j a5s s x5p#l 4 ^ ' & $ # @ & ' [ 4 l c5+.2@r _ y53 ~ = X ~ 5 ^}l r '.Q &%l ( x m b 4 _ u.d i>+.0 k m 6 * & $ & X 6 b 8 z5'.w s w w d k b 6 , $ # . . . . . . . . . . . ", ". . . . . . . @ $ ) X ~ 6 6 6 ~ ~ - , * ) = 6 6 6 6 6 ] { , $ # . . @ # @ & , - } ^ 5 b [ ^ 6 - | $ $ $ $ * ; ^ 5 x A5[ e%- | $ # . . . . @ $ | ; y 6 @.6 ~ ~ ~ ; - ; ~ 6 6 e%y ; = & $ # . . @ $ ) { ~ ^ 5 b b [ @.~ = & # . . . # @ $ > * ; ~ ~ ~ 6 } = ) $ $ $ $ | - ~ ~ 6 6 ~ ; ] , | , , - ; 6 6 ~ ~ - | & @ # . # @ & , ; ~ 6 [ m 5 @.v5- | $ # . . . . . . . . . . . . . ", ". . . . . . . . . @ # $ $ $ $ $ $ $ # @ # @ $ $ $ $ $ $ # @ # . . . . . . . # $ m+> ) ) | & $ $ # . . . . @ $ $ ) ) & & $ $ # . . . . . . . . @ $ $ $ $ $ $ & @ . # $ $ $ $ $ $ $ $ # @ # + . . . # # @ $ > > > $ $ $ $ # . . . . . . . . @ $ $ $ $ $ $ # # . . . . @ $ $ & $ $ @ @ # @ # @ # @ $ $ $ $ $ $ # # % . . . . . # @ $ > * * | > $ $ # . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . % % . . . . @ . . . . . . . . . . . . . . . . . . . . . # # # # . . . . . . . . . . # @ # . . . . . . . . . . . . . . . . . . . # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . # # . . . . . . . . . . . . . % . . # # # # . . . . . . . # # # # . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . @ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . @ . . . . . . . @ . . . . . . . . . . . . . . . . @ . . . . . . . . . . . . . . . . . . . . . . % . . . # # . . . . . . . . . + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . # # . . . . . . . . . . . . . . . . ", "% . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . @ . . . + . . . . @ . . . . . . . . . @ . . . . . . . . . . @ @ . . . . . . . . . . . . . . . . . . . . . . # # . . . % . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "}; sweep-0.9.3/pixmaps/zoom_out.xbm0000644000175000017500000000077010777660150015445 0ustar useruser/* Created with The GIMP */ #define zoom_out_width 22 #define zoom_out_height 18 #define zoom_out_x_hot 6 #define zoom_out_y_hot 6 static char zoom_out_bits[] = { 0x00, 0x00, 0x00, 0xf0, 0x01, 0x00, 0x08, 0x02, 0x00, 0x04, 0x04, 0x00, 0x02, 0x08, 0x00, 0x02, 0x08, 0x00, 0x02, 0x08, 0x1f, 0x02, 0x08, 0x00, 0x02, 0x08, 0x00, 0x04, 0x04, 0x00, 0x08, 0x0e, 0x00, 0xf0, 0x1d, 0x00, 0x00, 0x38, 0x00, 0x00, 0x70, 0x00, 0x00, 0xe0, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00 }; sweep-0.9.3/pixmaps/paste.xpm0000644000175000017500000000151110777660150014716 0ustar useruser/* XPM */ static char * paste_xpm[] = { "24 25 6 1", " c None", ". c #000000", "+ c #9C999C", "@ c #D5CEAC", "# c #FFFFFF", "$ c #E1E896", " ", " ", " ....... ", " .......+++++...... ", " .@@@@@.+++++.@@@@. ", " .@.....+++++....@. ", " .@.###.......##.@. ", " .@.###.########.@. ", " .@.##.$.#######.@. ", " .@.#.$$$.######.@. ", " .@..............@. ", " .@.######.$$$.#.@. ", " .@.#####.............. ", " .@.#####.############. ", " .@.#####.#####...####. ", " .@.......#####.$.####. ", " .@@@@@@@.#####.$.####. ", " .@@@@@@@.###...$...##. ", " .@@@@@@@.####..$..###. ", " .@@@@@@@.#####...####. ", " .@@@@@@@.######.#####. ", " .........############. ", " .............. ", " ", " "}; sweep-0.9.3/pixmaps/vol.xpm0000644000175000017500000000040310777660150014401 0ustar useruser/* XPM */ static char * vol_xpm[] = { "14 10 2 1", " c None", ". c #FFFFFF", " ", " . ", " . . ", " .. . . ", " ..... . . ", " ..... . . ", " .. . . ", " . . ", " . ", " "}; sweep-0.9.3/pixmaps/cursor-openhand_mask.xbm0000644000175000017500000000051210777660150017706 0ustar useruser#define cursor_openhand_mask_width 16 #define cursor_openhand_mask_height 16 static unsigned char cursor_openhand_mask_bits[] = { 0x80, 0x01, 0xd8, 0x0f, 0xfc, 0x1f, 0xfc, 0x5f, 0xf8, 0xff, 0xf8, 0xff, 0xf6, 0xff, 0xff, 0xff, 0xff, 0x7f, 0xfe, 0x7f, 0xfc, 0x7f, 0xfc, 0x3f, 0xf8, 0x3f, 0xf0, 0x1f, 0xe0, 0x1f, 0x00, 0x00 }; sweep-0.9.3/pixmaps/crop.xpm0000644000175000017500000000147110777660150014552 0ustar useruser/* XPM */ static char * crop_xpm[] = { "24 25 5 1", " c None", ". c #000000", "+ c #FFFFFF", "@ c #9C999C", "# c #E1E896", " ", " . ", " . . .. ", " . .. ", " . . .. ", " . ", " ", " ................ ", " .++++++++++++++. ", " .+++++@++++++++. ", " .+++@#@++++++++. ", " .+@###@++++++++. ", " .@@@@@@@@@@@@@@. ", " .++++++++@###@+. ", " .++++++++@#@+++. ", " .++++++++@+++++. ", " .++++++++++++++. ", " ................ ", " ", " . ", " .. . . ", " .. . ", " .. . . ", " . ", " "}; sweep-0.9.3/pixmaps/zoom_in.xbm0000644000175000017500000000076310777660150015246 0ustar useruser/* Created with The GIMP */ #define zoom_in_width 22 #define zoom_in_height 18 #define zoom_in_x_hot 6 #define zoom_in_y_hot 6 static char zoom_in_bits[] = { 0x00, 0x00, 0x00, 0xf0, 0x01, 0x00, 0x08, 0x02, 0x00, 0x04, 0x04, 0x00, 0x02, 0x08, 0x04, 0x02, 0x08, 0x04, 0x02, 0x08, 0x1f, 0x02, 0x08, 0x04, 0x02, 0x08, 0x04, 0x04, 0x04, 0x00, 0x08, 0x0e, 0x00, 0xf0, 0x1d, 0x00, 0x00, 0x38, 0x00, 0x00, 0x70, 0x00, 0x00, 0xe0, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00 }; sweep-0.9.3/pixmaps/scrubby.xpm0000644000175000017500000001574710777660150015273 0ustar useruser/* XPM */ static char * scrubby_xpm[] = { "48 48 143 2", " c None", ". c #FFFFFF", "+ c #EBEBEB", "@ c #D7D7D7", "# c #C3C3C3", "$ c #BFBFBF", "% c #CDCDCD", "& c #9B9B9B", "* c #6A6A6A", "= c #606060", "- c #AFAFAF", "; c #101010", "> c #000000", ", c #181818", "' c #363636", ") c #545454", "! c #303030", "~ c #6C6C6C", "{ c #A7A7A7", "] c #404040", "^ c #8F8F8F", "/ c #DFDFDF", "( c #F9F9F9", "_ c #EFEFEF", ": c #E5E5E5", "< c #E3E3E3", "[ c #EDEDED", "} c #F7F7F7", "| c #FEFFFE", "1 c #FAFEFA", "2 c #F6FDF6", "3 c #F2FCF2", "4 c #E7E7E7", "5 c #979797", "6 c #B7B7B7", "7 c #FCFEFC", "8 c #EBFBEB", "9 c #DBF7DB", "0 c #CAF4CA", "a c #D5D5D5", "b c #4A4A4A", "c c #3C3C3C", "d c #818181", "e c #C7C7C7", "f c #F9FEF9", "g c #DDF7DD", "h c #C0F1C0", "i c #A3EBA3", "j c #CFCFCF", "k c #808080", "l c #BDC2BD", "m c #B0CFB0", "n c #A3DBA3", "o c #96E896", "p c #0C0C0C", "q c #2A2A2A", "r c #484848", "s c #636863", "t c #749374", "u c #85BD85", "v c #090E09", "w c #385738", "x c #67A067", "y c #383838", "z c #7E7E7E", "A c #B9BBB9", "B c #797E79", "C c #394139", "D c #101910", "E c #0B100B", "F c #050705", "G c #202020", "H c #707070", "I c #767D76", "J c #657A65", "K c #557655", "L c #426642", "M c #2A412A", "N c #131D13", "O c #080808", "P c #121212", "Q c #1C1C1C", "R c #334033", "S c #527552", "T c #71AB71", "U c #73B273", "V c #4A724A", "W c #213321", "X c #878787", "Y c #4C4C4C", "Z c #1C2C1C", "` c #4B744B", " . c #7ABC7A", ".. c #88D288", "+. c #659C65", "@. c #2D452D", "#. c #507B50", "$. c #E1E1E1", "%. c #A5A5A5", "&. c #787878", "*. c #464646", "=. c #141414", "-. c #8FDD8F", ";. c #7DC27D", ">. c #6CA76C", ",. c #619661", "'. c #84CD84", "). c #121B12", "!. c #2F482F", "~. c #4C764C", "{. c #76B776", "]. c #070B07", "^. c #1E2F1E", "/. c #345034", "(. c #578657", "_. c #1A1A1A", ":. c #060606", "<. c #70AE70", "[. c #686868", "}. c #B5B5B5", "|. c #0E160E", "1. c #314C31", "2. c #548254", "3. c #7FC47F", "4. c #8AD68A", "5. c #192619", "6. c #3E603E", "7. c #5B8D5B", "8. c #79BB79", "9. c #F3F3F3", "0. c #CBCBCB", "a. c #0C0F0C", "b. c #475A47", "c. c #82A582", "d. c #BDF1BD", "e. c #0E100E", "f. c #565D56", "g. c #9DAB9D", "h. c #E5F9E5", "i. c #838383", "j. c #242424", "k. c #424242", "l. c #B9B9B9", " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", " . . + @ # $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ # @ + . . ", " . . % & * = = = = = = = = = = = = = = = = = = = = = = = = = * & % . . ", " . . - = ; > > > > > > > > > > > > > > > > > > > > > > > > > ; = - . . ", " . . - = ; , ' ) = = = = = = = = = = = = = = = = = = = ) ' , ; = - . . ", " . . - = ; ! ~ { $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ { ~ ! ; = - . . ", " . . - = ; ] ^ / ( _ : < [ } | 1 2 3 2 1 | } [ < : _ ( / ^ ] ; = - . . ", " . . - = ; ] ^ / 4 $ 5 ^ 6 / 7 8 9 0 9 8 7 / 6 ^ 5 $ 4 / ^ ] ; = - . . ", " . . - = ; ] ^ / a ^ b c d e f g h i h g f e d c b ^ a / ^ ] ; = - . . ", " . . - = ; ] ^ / j k ! , ) ^ l m n o n m l ^ ) , ! k j / ^ ] ; = - . . ", " . . - = ; ] ^ / j k ! p q r s t u o u t s r q p ! k j / ^ ] ; = - . . ", " . . - = ; ] ^ / j k ! > > > v w x o x w v > > > ! k j / ^ ] ; = - . . ", " . . - = ; ] ^ / j k ! > > > v w x o x w v > > > ! k j / ^ ] ; = - . . ", " . . - = ; ] ^ / j k ! > > > v w x o x w v > > > ! k j / ^ ] ; = - . . ", " . . - = ; y z # A B C D E F v w x o x w v F E D C B A # z y ; = - . . ", " . . - = ; G r H I J K L M N v w x o x w v N M L K J I H r G ; = - . . ", " . . - = ; O P Q R S T U V W v w x o x w v W V U T S R Q P O ; = - . . ", " . . # X Y ! Q O Z ` ...+.L @.#.U o U #.@.L +... .` Z O Q ! Y X # . . ", " . . $.# %.&.*.=.Z ` .-.;.>.,.U '.o '.U ,.>.;.-. .` Z =.*.&.%.# $.. . ", " . . . . . $ H G Z ` .o o o o o o o o o o o o o .` Z G H $ . . . . . ", " . . . . $ H G ).!.~.+.{...o o o o o o o ..{.+.~.!.).G H $ . . . . ", " . . $ H G ].N ^./.(. .o o o o o o o .(./.^.N ].G H $ . . ", " . . e d c _.; :.N L <.o o o o o o o <.L N :.; _.c d e . . ", " . . / 6 ^ [.] , N L <.o o o o o o o <.L N , ] [.^ 6 / . . ", " . . } [ < }.H q N L <.o o o o o o o <.L N q H }.< [ } . . ", " . . . . j k ! |.1.2.U 3.4.o 4.3.U 2.1.|.! k j . . . . ", " . . . j k ! ].5.M 6.7.8.o 8.7.6.M 5.].! k j . . . ", " . . j k ! > > > v w x o x w v > > > ! k j . . ", " . . $.- z ) ' , v w x o x w v , ' ) z - $.. . ", " . . 9./ 0.{ ~ ! v w x o x w v ! ~ { 0./ 9.. . ", " . . . . / ^ ] v w x o x w v ] ^ / . . . . ", " . . . / ^ ] v w x o x w v ] ^ / . . . ", " . . / ^ ] v w x o x w v ] ^ / . . ", " . . / ^ ] v w x o x w v ] ^ / . . ", " . . / ^ ] v w x o x w v ] ^ / . . ", " . . / ^ ] v w x o x w v ] ^ / . . ", " . . / ^ ] a.b.c.d.c.b.a.] ^ / . . ", " . . / ^ ] e.f.g.h.g.f.e.] ^ / . . ", " . . / ^ ] ; = - . - = ; ] ^ / . . ", " . . / ^ ] ; = - . - = ; ] ^ / . . ", " . . / ^ ] ; = - . - = ; ] ^ / . . ", " . . / ^ ] p r i.$ i.r p ] ^ / . . ", " . . / ^ ] :.j.k.= k.j.:.] ^ / . . ", " . . / ^ ] > > > > > > > ] ^ / . . ", " . . + l.X = = = = = = = X l.+ . . ", " . . } < j $ $ $ $ $ $ $ j < } . . ", " . . . . . . . . . . . . . . . . . "}; sweep-0.9.3/pixmaps/mdx.ico0000644000175000017500000000050610777660150014343 0ustar useruser 0( @ÿÿÿÿ”""AA€€à€PP    @@sweep-0.9.3/pixmaps/needle_mask.xbm0000644000175000017500000000067310777660150016043 0ustar useruser#define needle_mask_width 22 #define needle_mask_height 18 static unsigned char needle_mask_bits[] = { 0xf0, 0x1f, 0x00, 0xf0, 0x1f, 0x00, 0xf0, 0x1f, 0x00, 0xf0, 0x1f, 0x00, 0xf0, 0x1f, 0x00, 0xf0, 0x1f, 0x00, 0xe0, 0x0f, 0x00, 0xe0, 0x0f, 0x00, 0xc0, 0x07, 0x00, 0xc0, 0x07, 0x00, 0x80, 0x03, 0x00, 0x80, 0x03, 0x00, 0x80, 0x03, 0x00, 0x80, 0x03, 0x00, 0x80, 0x03, 0x00, 0x80, 0x03, 0x00, 0x80, 0x03, 0x00, 0x80, 0x03, 0x00}; sweep-0.9.3/pixmaps/sweep_app_icon.xpm0000644000175000017500000000415510777660150016604 0ustar useruser/* XPM */ static char * sweep_app_icon_xpm[] = { "16 16 95 2", " c None", ". c #FFFFFF", "+ c #F2F2F2", "@ c #EAEAEA", "# c #EDEDED", "$ c #FDFDFD", "% c #747474", "& c #323232", "* c #404040", "= c #3A3A3A", "- c #434343", "; c #E5E5E5", "> c #606060", ", c #838383", "' c #CFCFCF", ") c #CCCCCC", "! c #E1E8E1", "~ c #DBE6DB", "{ c #DBDBDB", "] c #C3C3C3", "^ c #BABABA", "/ c #393939", "( c #E1E1E1", "_ c #8F8F8F", ": c #858585", "< c #555555", "[ c #ABC8AB", "} c #A3D9A3", "| c #868886", "1 c #4A4A4A", "2 c #C0C0C0", "3 c #3B3B3B", "4 c #808080", "5 c #000000", "6 c #385738", "7 c #67A067", "8 c #030503", "9 c #BFBFBF", "0 c #484848", "a c #657A65", "b c #2A412A", "c c #172417", "d c #547254", "e c #656765", "f c #303030", "g c #464646", "h c #4B744B", "i c #7DC27D", "j c #73B273", "k c #84CD84", "l c #6EAA6E", "m c #71AF71", "n c #272D27", "o c #A0A0A0", "p c #F4F4F4", "q c #767676", "r c #1B271B", "s c #5A8C5A", "t c #96E896", "u c #79BB79", "v c #293D29", "w c #3B3C3B", "x c #E8E8E8", "y c #E0E0E0", "z c #656565", "A c #3C5D3C", "B c #8EDC8E", "C c #92E292", "D c #649C64", "E c #343734", "F c #C6C6C6", "G c #F9F9F9", "H c #909090", "I c #1A1F1A", "J c #446944", "K c #6DA96D", "L c #192219", "M c #535353", "N c #EEEEEE", "O c #F3F3F3", "P c #424442", "Q c #E3E3E3", "R c #484A48", "S c #F1F1F1", "T c #475A47", "U c #82A582", "V c #494A49", "W c #AFAFAF", "X c #242424", "Y c #424242", "Z c #474747", "` c #DEDEDE", " . c #B5B5B5", ".. c #C9C9C9", "+. c #FBFBFB", " . + @ @ @ @ @ @ @ @ # $ ", " . % & * * * * * * = - ; ", " . > , ' ) ! ~ { ] ^ / ( ", " . > _ : < [ } | 1 2 3 ( ", " . > _ 4 5 6 7 8 3 9 3 ( ", " . > 0 a b 6 7 c d e f ( ", " . ] g h i j k l m n o p ", " . q r s t t u v w x . ", " . y z A B C D E F G ", " . H I J K L M N ", " . O , 6 7 P Q $ ", " . _ 6 7 R S ", " . _ T U V S ", " . _ > W 1 S ", " . _ X Y Z S ", " . ` . ...+. "}; sweep-0.9.3/pixmaps/horiz_plus.xpm0000644000175000017500000000376710777660150016017 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ static char * horiz_plus_xpm[] = { "32 32 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " +.+ ", " +.+ ", " +.+ ", " + +.+ + ", " +.+ +.+ +.+ ", " +..+++.+++..+ ", " +.....+.+.....+ ", "+...+++.+.+++...+ ", " +.....+.+.....+ ", " +..+++.+++..+ ", " +.+ +.+ +.+ ", " + +.+ + +++ ", " +.+ +.+ ", " +.+ +++.+++ ", " +.+ +.....+ ", " +++.+++ ", " +.+ ", " +++ ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "}; sweep-0.9.3/pixmaps/xifish.xpm0000644000175000017500000000626010777660150015102 0ustar useruser/* XPM */ static char * xifish_xpm[] = { "50 50 33 1", " c None", ". c #C4D4E0", "+ c #92B1C7", "@ c #4B6E9B", "# c #334E73", "$ c #6F8B9A", "% c #4F5637", "& c #2B332C", "* c #0E1717", "= c #05090A", "- c #0C2B30", "; c #7EA26C", "> c #035253", ", c #037170", "' c #04B0AD", ") c #02CECC", "! c #029090", "~ c #03FCF9", "{ c #6F7123", "] c #8B9396", "^ c #F5F6F5", "/ c #A8B8C6", "( c #CECF04", "_ c #F8F905", ": c #B0B104", "< c #494A0D", "[ c #8F9004", "} c #7E9014", "| c #4DFEAF", "1 c #A6FE59", "2 c #3E6E34", "3 c #429A5C", "4 c #62BE64", " ", " .+ ", " .+@+ ", " .++@@+ ", " .+++@@@+ ", " .++++@@@@+ ", " .+++++@@@@@+ ", " .++++++@@@@@@+ ", " .+++++++@@@@@@@+ ", " .++++++++@@@@@@@@+ ", " .+++++++++@###@@@@@+ ", " .+++++++$%&*===*-#@@@+ ", " .++++++;#=*>,')',-==&@@+ ", " .++++++@**!~~~~~~~~),=*#@+ ", " .$&-&%$&=>)~~~~~~~~~~~'**#@+ ", " .#*{+]&==-,!!'~~~~~~~~~~)-=#@+ ", " .$*.^^^^%=&**==*,)~~~~~~~~)>=#@+ ", " .+&{^^//^.*(___({&*'~~~~~~~~~>=#@+ ", " .+;*+^.==^^&:_____(<*!~~~~~~~~~>=&&$+++ ", " .+]&=]^^%@^^*:___{___{='~~~~~~~!-==*---*% ", " .+;*&<&^^^^^+*_([_[_:(_<*'~~~),-=,)~~~~~'= ", " +$$-*(_&%.^^+*[_({_:_{(__%=-*==-,)~~~~~~~'* ", " &====:__(<*&-*[_____<_(_((_}==>'~~~~~~~~~~,- ", " /*>')!={____(::(________<:}[_(:&=-!~~~~~~~~~--+ ", " ]=)~~~'={___________________:<__:{'~~~~~~~~'=#@+ ", ".@=-)~~~'={_______((((((_<:{{__(*__|~~~~~',-==##@.", " /#*=>'~~!={_____;=====&_(_(_:%_(__|~~~>====-###/ ", " /@#**'~~,=_____~))'-*(_{:[[_((<_1~~~~,!)'-=-#/ ", " /@@-='~)2____1~~~>=[__:(((:{_:_|~~~~~~~~~,=; ", " /#*==)~1____~~~,=:_______(:__1~~~~~~~~~~!= ", " =>''~,;___3>>>=}____________|~~~~~~~~~~,& ", " &-~~~,=[___[<<<{________((((4)~~~~~~~~~~>{ ", " @=---==<:___________:{&**====*>'~~~~~~~~-$ ", " {##*=&[_____([<*=->!'=*&&&===-,!')'>=/ ", " /@@#*==***====>)~~~~-*####&-*==*==&] ", " /@@@###&&##-=*>>>>-=-########+ ", " /@@@@@@@@@@@&*===*&########/ ", " /@@@@@@@@@@@@############/ ", " /@@@@@@@@@@@###########/ ", " /@@@@@@@@@@##########/ ", " /@@@@@@@@@#########/ ", " /@@@@@@@@########/ ", " /@@@@@@@#######/ ", " /@@@@@@######/ ", " /@@@@@#####/ ", " /@@@@####/ ", " /@@@###/ ", " /@@##/ ", " /@#/ ", " // "}; sweep-0.9.3/pixmaps/cursor-closedhand_mask.xbm0000644000175000017500000000052010777660150020215 0ustar useruser#define cursor_closedhand_mask_width 16 #define cursor_closedhand_mask_height 16 static unsigned char cursor_closedhand_mask_bits[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x0d, 0xf8, 0x3f, 0xf8, 0x7f, 0xf0, 0x7f, 0xf8, 0x7f, 0xfc, 0x7f, 0xfc, 0x3f, 0xf8, 0x3f, 0xf0, 0x1f, 0xe0, 0x1f, 0xe0, 0x1f, 0x00, 0x00, 0x00, 0x00 }; sweep-0.9.3/pixmaps/scroll.xpm0000644000175000017500000000126410777660150015105 0ustar useruser/* XPM */ static char * scroll_xpm[] = { "21 22 6 1", " c None", ". c #000000", "+ c #D5CEAC", "@ c #FFFFFF", "# c #9C999C", "$ c #E1E896", " ", " ... ... ", " .+++. .+++. ", " .++.++. .++.++. ", " .+.++. .++.+. ", " .++.............++. ", " .@+++++++++++++++@. ", " .@@+++++++++++++@@. ", " .@#@@@@@@@@@@@@@@@. ", " .#$#@@@@@@@@#@@@@@. ", " .$$$#@@@@@@#$#@@@@. ", " .#$$$#@@@@@#$$#@@#. ", " .@###############$. ", " .@@@@@#$$$#@@@#$$$. ", " .@@@@@@#$#@@@@@#$#. ", " .@@@@@@@#@@@@@@@#@. ", " .+@@@@@@@@@@@@@@@+. ", " .++@@@@@@@@@@@@@++. ", " .+++++++++++++++++. ", " .+++++++++++++++. ", " ............... ", " "}; sweep-0.9.3/pixmaps/noloop.xpm0000644000175000017500000000034110777660150015110 0ustar useruser/* XPM */ static char * noloop_xpm[] = { "12 9 2 1", " c None", ". c #FFFFFF", " ", " .. ", " .. ", " . .. ", " ....... .. ", " . .. ", " .. ", " .. ", " "}; sweep-0.9.3/pixmaps/redo.xpm0000644000175000017500000000100310777660150014527 0ustar useruser/* XPM */ static char * redo_xpm[] = { "17 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " . ", " .. ", " .+. ", " ....++. ", " .+++++++. ", " .+++++++++. ", " .+++++++++++. ", " .++++++++++. ", " .++++++++++. ", " .++++...++. ", " .+++. .+. ", " .++. .. ", " .++. . ", " .++. ", " .+. ", " .++. ", " .++. ", " .. ", " "}; sweep-0.9.3/pixmaps/ff.xpm0000644000175000017500000000031310777660150014174 0ustar useruser/* XPM */ static char * ff_xpm[] = { "14 7 2 1", " c None", ". c #FFFFFF", " ", " .. .. ", " .... .... ", " ............ ", " .... .... ", " .. .. ", " "}; sweep-0.9.3/pixmaps/sweep.ico0000644000175000017500000000052610777660150014700 0ustar useruser@($–è–ÿÿÿ""""" """"" """"" """"" """"" """"" """"" """"" "" "" "" "" """ """ " " "  " ""!"  " ! " " " sweep-0.9.3/pixmaps/ping_kanji.xpm0000644000175000017500000000234510777660150015721 0ustar useruser/* XPM */ static char * ping_kanji_xpm[] = { "32 32 3 1", " c None", ". c #FFFFFF", "+ c #000000", " ", " ", " .... ", " ..................++.. ", " .++++++++++++++++++++. ", " .++++++++++++++++++++. ", " ..........++.......... ", " .+.. .++. .+... ", " ..+.. .++. .+++. ", " .++.. .++. ..++.. ", " ..++. .++. .++.. ", " .++. .++. ..++. ", " .++. .++. .++.. ", " .... .++...+.. .... ", " ............++..+.....++.. ", " .++++++++++++++++++++++++. ", " ............++............ ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .... ", " ", " ", " "}; sweep-0.9.3/pixmaps/pastemix.xpm0000644000175000017500000000151410777660150015437 0ustar useruser/* XPM */ static char * pastemix_xpm[] = { "24 25 6 1", " c None", ". c #000000", "+ c #9C999C", "@ c #D5CEAC", "# c #FFFFFF", "$ c #E1E896", " ", " ", " ....... ", " .......+++++...... ", " .@@@@@.+++++.@@@@. ", " .@.....+++++....@. ", " .@.###.......##.@. ", " .@.###.########.@. ", " .@.##.$.#######.@. ", " .@.#.$$$.######.@. ", " .@..............@. ", " .@.######.$$$.#.@. ", " .@.#####.............. ", " .@.#####.############. ", " .@.#####.#####...####. ", " .@.......#####.$.####. ", " .@@@@@@@.###...$...##. ", " .@@@@@@@.###.$$$$$.##. ", " .@@@@@@@.###...$...##. ", " .@@@@@@@.#####.$.####. ", " .@@@@@@@.#####...####. ", " .........############. ", " .............. ", " ", " "}; sweep-0.9.3/pixmaps/rew.xpm0000644000175000017500000000031410777660150014377 0ustar useruser/* XPM */ static char * rew_xpm[] = { "14 7 2 1", " c None", ". c #FFFFFF", " ", " .. .. ", " .... .... ", " ............ ", " .... .... ", " .. .. ", " "}; sweep-0.9.3/pixmaps/vorbisword2.xpm0000644000175000017500000004016310777660150016072 0ustar useruser/* XPM */ static char * vorbisword2_xpm[] = { "206 77 18 1", " c None", ". c #020204", "+ c #91928F", "@ c #CECFCF", "# c #AEB1AC", "$ c #565654", "% c #EEEEEC", "& c #A8A9A9", "* c #CEDACC", "= c #C6C6C4", "- c #3A3A3C", "; c #7A7A79", "> c #1E1E1C", ", c #626664", "' c #EEFEEC", ") c #E2E2E4", "! c #BABAB4", "~ c #FFFFFF", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=&;+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~!,,,,,,+)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>....$~~~~~~~~~~~~~~~~~~=$;)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~@,,,,,;,,,,+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~........&~~~~~~~.......$~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~)&>..$~~~~~~~~~~~~~~~~~)...-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~!,,,;~~~~&,,,;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&-...>&&)~~~~~~~&&;..-&=~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$..$~~~~~~~~~~~~~~~~~&....~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~!,,,;%~~~~~+,,,;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>..>~~~~~~~~~~~~&.>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$..$~~~~~~~~~~~~~~~~~)...-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~=,,,,=~~~~~~~,,,,+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+...=~~~~~~~~~~~$.+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$..$~~~~~~~~~~~~~~~~~~=$;)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~+,,,;%~~~~~~~&,,,,)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~)...;~~~~~~~~~~~>.)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$..$~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~@,,,,+~~~~~~~~@,,,,+~~~~~~~~~~~~~~~~~~%@%~~~~~~~~~~~~~~~~~~)@%~~~~~~$..>~~~~~~~~~~=.;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$..$~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~+,,,,&~~~~~~~~%,,,,,)~~~~~~~~~~~~~~~%+,,,&)~~~~~~~~~~~~~~%;,,,+~~~~~&...=~~~~~~~~~;.=~~~~~~~~~~&&&&&~~~~~~~~~~~~)&)~~~&&)~~~$..$~~~~&&&=~~~~~~~~~~~~))~~~~~~~~)&&&&)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~,,,,,!~~~~~~~~%;,,,,!~~~~~~@#&+&!*~%+,,,,+@~~~~~*@#+#@*~%;,,,,+~~~~~~>..;~~~~~~~~~.-~~~~~~~~)$.......;)~~~~~~$-...&~=>..>~~~$..$~);.....>&~~~~~);$>..&~~~~~~)-......-=~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~),,,,,@~~~~~~~~%;,,,,+~~~~@;,,,,,,,;;,&,,,+@~~~=;,,,,,,,;;,+,,,+~~~~~~;...~~~~~~~~&.+~~~~~~~&..>+~~~+...&~~~~~&;...;&.....=~~$..$&>>$$-....;~~~~=$-...&~~~~~)>.;)~~+..$~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~!,,,,,%~~~~~~~~~&,,,,+~~~&,,,,;!+,,,,+%&,,&)~~;,,,,+!;,,,,+'+,,+~~~~~~=...&~~~~~~~$.)~~~~~~=...=~~~~~&...=~~~~~~$..>>&+..-~~~$....+~~~~=>...=~~~~~~...&~~~~~-.-~~~~~&.$~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~+,,,,,%~~~~~~~~~&,,,,;~%!,,,,&~~~&,,,,+')%~~~+,,,;&~~~+;,,,!')%~~~~~~~~>..$~~~~~~~.$~~~~~~~>..;~~~~~~~;..>~~~~~~$...=~~)&~~~~$...+~~~~~~=...-~~~~~~...&~~~~)..&~~~~~~-$~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~;,,,,,%~~~~~~~~~&,,,,,~@;,,,;=~~~%,,,,,)~~~~),,,,+@~~~!;,,,;)~~~~~~~~~~+...~~~~~~+.&~~~~~~&...=~~~~~~~=...&~~~~~$..>~~~~~~~~~$...~~~~~~~~$...)~~~~~...&~~~~&..+~~~~~~&$~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~;,,,,,%~~~~~~~~~&,,,,,~=,,,,+@~~~~,,,,,+~~~%!,,,,+%~~~=+,,,,=%~~~~~~~~~)...&~~~~~->~~~~~~~$...~~~~~~~~~...$~~~~~$..$~~~~~~~~~$..$~~~~~~~~&...&~~~~~...&~~~~&..>=~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~;,,,,,%~~~~~~~~~&,,,,,~!,,,,+@~~~~,,,,,+~~~%&,,,,+%~~~=+,,,,=~~~~~~~~~~~-..-~~~~).;~~~~~~~-..-~~~~~~~~~-..-~~~~~$..$~~~~~~~~~$..$~~~~~~~~)...;~~~~~...&~~~~~....$=~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~+,,,,,)~~~~~~~~~&,,,,;~!,,,,+@~~~~,,,,,&~~~%&,,,,+%~~~=+,,,,@~~~~~~~~~~~+...)~~~+.=~~~~~~~...$~~~~~~~~~$...~~~~~$..$~~~~~~~~~$..$~~~~~~~~~...$~~~~~...&~~~~~&.....>;=~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~!,,,,,@~~~~~~~~~+,,,,+~@;,,,,!~~~),,,,,)~~~~@,,,,;=~~~&;,,,;)~~~~~~~~~~~)...+~~~>-~~~~~~~~...$~~~~~~~~~$...~~~~~$..$~~~~~~~~~$..$~~~~~~~~~...$~~~~~...&~~~~~~&>......$)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~%,,,,,=~~~~~~~~%;,,,,&~%!,,,,+@~~+,,,,;~~~~~~;,,,,+~~%+,,,,&~~~~~~~~~~~~~$..-~~=.+~~~~~~~~...$~~~~~~~~~$...~~~~~$..$~~~~~~~~~$..$~~~~~~~~~...$~~~~~...&~~~~~~~~+-.....>)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~;,,,,+~~~~~~~~%,,,,,=~~)+,,,,,+;,,,,;@~~~~~~%,,,,,;+,,,,,;%~~~~~~~~~~~~~&...=~;.)~~~~~~~~...$~~~~~~~~~$...~~~~~$..$~~~~~~~~~$..$~~~~~~~~~...;~~~~~...&~~~~~~~~~~);....;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~!,,,,+~~~~~~~~),,,,;~~~~~!,,,,,,,,,&%~~~~~~~~~&,,,,,,,,,!~~~~~~~~~~~~~~~~...;~>$~~~~~~~~~$..>~~~~~~~~~>..$~~~~~$..$~~~~~~~~~$..$~~~~~~~~&...&~~~~~...&~~~~+=~~~~~~)...>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~);,,,;)~~~~~~~&,,,,!~~~@+,,+!@@@@~~~~~~~~~~~!;,,+=@@@)~~~~~~~~~~~~~~~~~~~$..>=.&~~~~~~~~~+...)~~~~~~~)...+~~~~~$..$~~~~~~~~~$..$~~~~~~~~+...)~~~~~...&~~~~$;~~~~~~~;...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~&,,,,&~~~~~~~,,,,;~~~=,,,,=~~~~~~~~~~~~~~%&,,,;!~~~~~~~~~~~~~~~~~~~~~~~~&...>.~~~~~~~~~~)...+~~~~~~~+...)~~~~~$..$~~~~~~~~~$...~~~~~~~~-..;~~~~~~...&~~~~;>~~~~~~~&..>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~+,,,;%~~~~~+,,,,~~~)+,,,,,;++++++&@~~~~~);,,,,,;++++++!)~~~~~~~~~~~~~~~~>...;~~~~~~~~~~~;..>~~~~~~)>..;~~~~~~$..$~~~~~~~~~$...&~~~~~~&...)~~~~~~...&~~~~&.;~~~~~~+..;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~+,,,;~~~~&,,,,)~~~)+,,,,,,,,,,,,,,,=~~~);,,,,,,,,,,,,,,;)~~~~~~~~~~~~~~;...=~~~~~~~~~~~~$..$)~~~)-..$~~~~~~)-..>=~~~~~~~~$...>=~~~~&...&~~~~~~=...;~~~~&..;~~~~)>.>)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~&,,,,,;,,,,;%~~~~~=,,,,,,,,,,,,,,,,%~~%!,,,,,,,,,,,,,,,;)~~~~~~~~~~~~~=..>~~~~~~~~~~~~~~;...$$$...+~~~~~&.........~~~~~~$.;>..-$$-..-)~~~~~$........~~);..>$$$..$)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~&,,,,,,+@~~~~~~~~=,,,,,,,,,,,,,,,+%~~~&,,,,,,,,,,,,,,,!%~~~~~~~~~~~~~&&=~~~~~~~~~~~~~~~)&$$$$$&~~~~~~~)&&&&&&&&&~~~~~~+&~~&;$$$$+=~~~~~~~=&&&&&&&&~~~~)+$$$$+=~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~)~~~~~~~~~~~~~&,,,,,,,,,,,,,,;%~~~%+,,,,,,,,,,,,,,&)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~%!,,,;!@@@@@@&;,,,;%~%&,,,+!@@@@@@!,,,,&)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~=+,,,)~~~~~~~~!;,,+~~@;,,;@~~~~~~~~!,,,!%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~!;,,,)~~~~~~~%&,,,=~~=;,,;@~~~~~~~%+,,,@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~)+,,,,&)~~~~=+,,,+~~~);,,,;&%~~~%=+,,,=%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~)+,,,,,,,,,,,,,&~~~~~),,,,,,,,,,,,,,@~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~%&;,,,,,,+&@~~~~~~~~~@&;,,,,,,;&)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"}; sweep-0.9.3/pixmaps/zoom_in.xpm0000644000175000017500000000145510777660150015263 0ustar useruser/* XPM */ static char * zoom_in_xpm[] = { "24 25 4 1", " c None", ". c #000000", "+ c #FFFFFF", "@ c #9C999C", " ", " ", " ", " ... ", " .+. ", " .+. ", " ....+.... ", " .+++++++. ", " .... ....+.... ", " .@ @. .+. ", " .@ @. .+. ", " . . ... ", " . . ", " .@ @. ", " .@ @.. ", " ....... ", " ... ", " ... ", " ... ", " .. ", " ", " ", " ", " ", " "}; sweep-0.9.3/pixmaps/save.xpm0000644000175000017500000000123410777660150014542 0ustar useruser/* XPM */ static char * save_xpm[] = { "20 22 6 1", " c None", ". c #000000", "+ c #D5CEAC", "@ c #FFFFFF", "# c #E1E896", "$ c #9C999C", " ", " ", " ", " .................. ", " .++++++++++++++++. ", " .++@@@@@@@@@@@@++. ", " .++@@@.@@@@@@@@++. ", " .++@@.#.@@@@@@@++. ", " .++@.###.@@@@@@++. ", " .++............++. ", " .++@@@@@@.###.@++. ", " .++@@@@@@@.#.@@++. ", " .++@@@@@@@@.@@@++. ", " .++++++++++++++++. ", " .++..........++++. ", " .++.$$$$$$$$.++++. ", " .++.$.++$$$$.++++. ", " .++.$.++$$$$.++++. ", " .++.$..+$$$$.++++. ", " .+.$$$$$$$$.++++. ", " ............... ", " "}; sweep-0.9.3/pixmaps/recpause.xpm0000644000175000017500000000056110777660150015415 0ustar useruser/* XPM */ static char * recpause_xpm[] = { "23 10 3 1", " c None", ". c #FFFFFF", "+ c #DE5129", " ...... ", " ..++++.. .. .. ", " ..++++++.. .. .. ", " .++++++++. .. .. ", " .++++++++. .. .. ", " .++++++++. .. .. ", " .++++++++. .. .. ", " ..++++++.. .. .. ", " ..++++.. .. .. ", " ...... "}; sweep-0.9.3/pixmaps/white-xifish.xpm0000644000175000017500000000630510777660150016220 0ustar useruser/* XPM */ static char * white_xifish_xpm[] = { "50 50 34 1", " c None", ". c #05090A", "+ c #029090", "@ c #035253", "# c #8F9004", "$ c #0C2B30", "% c #CECF04", "& c #494A0D", "* c #02CECC", "= c #2B332C", "- c #A6FE59", "; c #0E1717", "> c #B0B104", ", c #4B6E9B", "' c #037170", ") c #92B1C7", "! c #7E9014", "~ c #334E73", "{ c #F8F905", "] c #03FCF9", "^ c #7EA26C", "/ c #04B0AD", "( c #F5F6F5", "_ c #4DFEAF", ": c #C4D4E0", "< c #429A5C", "[ c #6F7123", "} c #3E6E34", "| c #A8B8C6", "1 c #8B9396", "2 c #6F8B9A", "3 c #62BE64", "4 c #4F5637", "5 c #FFFFFF", "55555555555555555555555555555555555555555555555555", "555555555555555555555555:)555555555555555555555555", "55555555555555555555555:),)55555555555555555555555", "5555555555555555555555:)),,)5555555555555555555555", "555555555555555555555:))),,,)555555555555555555555", "55555555555555555555:)))),,,,)55555555555555555555", "5555555555555555555:))))),,,,,)5555555555555555555", "555555555555555555:)))))),,,,,,)555555555555555555", "55555555555555555:))))))),,,,,,,)55555555555555555", "5555555555555555:)))))))),,,,,,,,)5555555555555555", "555555555555555:))))))))),~~~,,,,,)555555555555555", "55555555555555:)))))))24=;...;$~,,,)55555555555555", "5555555555555:))))))^~.;@'/*/'$..=,,)5555555555555", "555555555555:)))))),;;+]]]]]]]]*'.;~,)555555555555", "55555555555:2=$=42=.@*]]]]]]]]]]]/;;~,)55555555555", "5555555555:~;[)1=..$'++/]]]]]]]]]]*$.~,)5555555555", "555555555:2;:((((4.=;;..;'*]]]]]]]]*@.~,)555555555", "55555555:)=[((||(:;%{{{%[=;/]]]]]]]]]@.~,)55555555", "5555555:)^;)(:..((=>{{{{{%&;+]]]]]]]]]@.==2)))5555", "555555:)1=.1((4,((;>{{{[{{{[./]]]]]]]+$..;$$$;4555", "55555:)^;=&=((((();{%#{#{>%{&;/]]]*'$.'*]]]]]/.555", "5555)22$;%{=4:(();#{%[{>{[%{{4.$;..$'*]]]]]]]/;555", "555=....>{{%&;=$;#{{{{{&{%{%%{!..@/]]]]]]]]]]'$555", "5|;@/*+.[{{{{%>>%{{{{{{{{&>!#{%>=.$+]]]]]]]]]$$)55", "51.*]]]/.[{{{{{{{{{{{{{{{{{{{>&{{>[/]]]]]]]]/.~,)5", ":,.$*]]]/.[{{{{{{{%%%%%%{&>[[{{%;{{_]]]]]/'$..~~,:", "5|~;.@/]]+.[{{{{{^.....={%{%{>4{%{{_]]]@....$~~~|5", "55|,~;;/]]'.{{{{{]**/$;%{[>##{%%&{-]]]]'+*/$.$~|55", "555|,,$./]*}{{{{-]]]@.#{{>%%%>[{>{_]]]]]]]]]'.^555", "5555|~;..*]-{{{{]]]'.>{{{{{{{%>{{-]]]]]]]]]]+.5555", "55555.@//]'^{{{<@@@.!{{{{{{{{{{{{_]]]]]]]]]]'=5555", "5555=$]]]'.#{{{#&&&[{{{{{{{{%%%%3*]]]]]]]]]]@[5555", "5555,.$$$..&>{{{{{{{{{{{>[=;;....;@/]]]]]]]]$25555", "55555555[~~;.=#{{{{{%#&;.$@+/.;===...$'+/*/@.|5555", "555555555|,,~;..;;;....@*]]]]$;~~~~=$;..;..=155555", "5555555555|,,,~~~==~~$.;@@@@$.$~~~~~~~~)5555555555", "55555555555|,,,,,,,,,,,=;...;=~~~~~~~~|55555555555", "555555555555|,,,,,,,,,,,,~~~~~~~~~~~~|555555555555", "5555555555555|,,,,,,,,,,,~~~~~~~~~~~|5555555555555", "55555555555555|,,,,,,,,,,~~~~~~~~~~|55555555555555", "555555555555555|,,,,,,,,,~~~~~~~~~|555555555555555", "5555555555555555|,,,,,,,,~~~~~~~~|5555555555555555", "55555555555555555|,,,,,,,~~~~~~~|55555555555555555", "555555555555555555|,,,,,,~~~~~~|555555555555555555", "5555555555555555555|,,,,,~~~~~|5555555555555555555", "55555555555555555555|,,,,~~~~|55555555555555555555", "555555555555555555555|,,,~~~|555555555555555555555", "5555555555555555555555|,,~~|5555555555555555555555", "55555555555555555555555|,~|55555555555555555555555", "555555555555555555555555||555555555555555555555555"}; sweep-0.9.3/pixmaps/mic.xpm0000644000175000017500000000040310777660150014351 0ustar useruser/* XPM */ static char * mic_xpm[] = { "14 10 2 1", " c None", ". c #FFFFFF", " ", " . ", " . ", " .. . . ", " .... . . ", " .... . . ", " .. . . ", " .. . ", " .. . ", " "}; sweep-0.9.3/pixmaps/nexttrk.xpm0000644000175000017500000000040610777660150015303 0ustar useruser/* XPM */ static char * nexttrk_xpm[] = { "16 9 2 1", " c None", ". c #FFFFFF", " ", " .. ", " .. .. .. ", " .... .... .. ", " .............. ", " .... .... .. ", " .. .. .. ", " .. ", " "}; sweep-0.9.3/pixmaps/headphones2.xpm0000644000175000017500000000034210777660150016003 0ustar useruser/* XPM */ static char * headphones_xpm[] = { "10 10 2 1", " c None", ". c #FFFFFF", " ", " ...... ", " .. .. ", " . . ", " . . ", " . . . . ", " .. .. ", " .. .. ", " . . ", " "}; sweep-0.9.3/pixmaps/sweep_kanji.xpm0000644000175000017500000000234610777660150016110 0ustar useruser/* XPM */ static char * sweep_kanji_xpm[] = { "32 32 3 1", " c None", ". c #FFFFFF", "+ c #000000", " ", " ..... ", " .+++. ", " .++.. ", " .++. ", " .++. ", " .++. .... ", " .............++.......++.. ", " .++++++++++++++++++++++++. ", " ......+......++.....+..... ", " .+.. .++. ..++. ", " ..+.. .++. .++.. ", " .++. .++. ..++. ", " ..+....++. .++.. ", " .+++..++...++. ", " ..++++++..++.. ", " ..++.++++... ", " ...++... ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .++. ", " .... ", " "}; sweep-0.9.3/pixmaps/select.xpm0000644000175000017500000000071110777660150015062 0ustar useruser/* XPM */ static char * select_xpm[] = { "19 15 4 1", " c None", ". c #000000", "+ c #FFFFFF", "@ c #D5CEAC", " ", " ..++..++..++..+++ ", " ..++..++..++..+++ ", " ..@@@@@@@@@@@@@.. ", " ++@@@@@@@@@@@@@.. ", " ++@@@@@@@@@@@@@++ ", " ..@@@@@@@@@@@@@++ ", " ..@@@@@@@@@@@@@.. ", " ++@@@@@@@@@@@@@.. ", " ++@@@@@@@@@@@@@++ ", " ..@@@@@@@@@@@@@++ ", " ..@@@@@@@@@@@@@.. ", " +++..++..++..++.. ", " +++..++..++..++.. ", " "}; sweep-0.9.3/pixmaps/mouse.xpm0000644000175000017500000000111710777660150014734 0ustar useruser/* XPM */ static char * mouse_xpm[] = { "20 20 4 1", " c None", ". c #000000", "+ c #9C999C", "@ c #FFFFFF", " ", " ", " ... ", " ..+++.. ", " .++@@@++. ", " .++@@+@@@+. ", " .+@@@++++++. ", " .@+@@++@@@@+. ", " .+@++@@@@@@@+. ", " .++@@@@@@@@@+. ", " .++@@@@@@@@+. ", " .++@@@@@@@@+. ", " .+++@@@@@@@+. ", " .++@@@@@@@@. ", " .+++@@@@@@@. ", " .++@@@@@@@. ", " .++@@@@@. ", " .++++@. ", " ..... ", " "}; sweep-0.9.3/pixmaps/zoom_out_mask.xbm0000644000175000017500000000072510777660150016460 0ustar useruser/* Created with The GIMP */ #define zoom_out_mask_width 22 #define zoom_out_mask_height 18 static char zoom_out_mask_bits[] = { 0xf8, 0x03, 0x00, 0xfc, 0x07, 0x00, 0xfe, 0x0f, 0x00, 0x1f, 0x1f, 0x00, 0x0f, 0x1e, 0x00, 0x07, 0x9c, 0x3f, 0x07, 0x9c, 0x3f, 0x07, 0x9c, 0x3f, 0x0f, 0x1e, 0x00, 0x1f, 0x1f, 0x00, 0xfe, 0x3f, 0x00, 0xfc, 0x7f, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0x01, 0x00, 0xf8, 0x03, 0x00, 0xf0, 0x03, 0x00, 0xe0, 0x03, 0x00, 0xc0, 0x01 }; sweep-0.9.3/pixmaps/new.xpm0000644000175000017500000000066710777660150014406 0ustar useruser/* XPM */ static char * new_xpm[] = { "18 15 4 1", " c None", ". c #000000", "+ c #FFFFFF", "@ c #9C999C", " ", " ............. ", " .++++++++++.+. ", " .++++++++++.++. ", " .++++++++++.+++. ", " .++++++++++..... ", " .++++++++++++++. ", " .@@@@@@@@@@@@@@. ", " .++++++++++++++. ", " .++++++++++++++. ", " .++++++++++++++. ", " .++++++++++++++. ", " .++++++++++++++. ", " ................ ", " "}; sweep-0.9.3/pixmaps/playpsel.xpm0000644000175000017500000000111010777660150015426 0ustar useruser/* XPM */ static char * playpsel_xpm[] = { "21 20 2 1", " c None", ". c #FFFFFF", " ", " ", " ", " ", " ", " ", " .. .. .. ", " .... .. .. ", " ...... .. .. ", " ........ .. .. ", " ........ .. .. ", " ...... .. .. ", " .... .. .. ", " .. .. .. ", " ... ... . ", " . . . ", " .. .. . ", " . . . ", " ... ... ... ", " "}; sweep-0.9.3/pixmaps/record_stop.xpm0000644000175000017500000000036210777660150016130 0ustar useruser/* XPM */ static char * record_stop_xpm[] = { "10 10 3 1", " c None", ". c #DE5129", "+ c #FFFFFF", " ", " ........ ", " .++++++. ", " .++++++. ", " .++++++. ", " .++++++. ", " .++++++. ", " .++++++. ", " ........ ", " "}; sweep-0.9.3/pixmaps/zoom_in_mask.xbm0000644000175000017500000000072210777660150016254 0ustar useruser/* Created with The GIMP */ #define zoom_in_mask_width 22 #define zoom_in_mask_height 18 static char zoom_in_mask_bits[] = { 0xf8, 0x03, 0x00, 0xfc, 0x07, 0x00, 0xfe, 0x0f, 0x00, 0x1f, 0x1f, 0x0e, 0x0f, 0x1e, 0x0e, 0x07, 0x9c, 0x3f, 0x07, 0x9c, 0x3f, 0x07, 0x9c, 0x3f, 0x0f, 0x1e, 0x0e, 0x1f, 0x1f, 0x0e, 0xfe, 0x3f, 0x00, 0xfc, 0x7f, 0x00, 0xf8, 0xff, 0x00, 0x00, 0xfc, 0x01, 0x00, 0xf8, 0x03, 0x00, 0xf0, 0x03, 0x00, 0xe0, 0x03, 0x00, 0xc0, 0x01 }; sweep-0.9.3/pixmaps/playrev.xpm0000644000175000017500000000033710777660150015271 0ustar useruser/* XPM */ static char * playrev_xpm[] = { "10 10 2 1", " c None", ". c #FFFFFF", " ", " .. ", " .... ", " ... . ", " ... . ", " ... . ", " ... . ", " .... ", " .. ", " "}; sweep-0.9.3/pixmaps/mute.xpm0000644000175000017500000000046110777660150014557 0ustar useruser/* XPM */ static char * mute_xpm[] = { "17 10 3 1", " c None", ". c #FFFFFF", "+ c #FF0000", " ", " . . ", " . .+. .+. ", " .. .+..+. ", " ..... .++. ", " ..... .++. ", " .. .+..+. ", " . .+. .+. ", " . . ", " "}; sweep-0.9.3/pixmaps/hand.xbm0000644000175000017500000000050610777660150014501 0ustar useruser#define hand_width 16 #define hand_height 16 #define hand_x_hot 3 #define hand_y_hot 2 static unsigned char hand_bits[] = { 0x60, 0x00, 0x98, 0x06, 0x24, 0x09, 0x24, 0x31, 0x44, 0x52, 0x48, 0x52, 0x48, 0x49, 0x4c, 0x49, 0x12, 0x20, 0x12, 0x30, 0x02, 0x20, 0x02, 0x20, 0x02, 0x20, 0x04, 0x20, 0x0c, 0x10, 0x10, 0x08}; sweep-0.9.3/pixmaps/undo.xpm0000644000175000017500000000100310777660150014543 0ustar useruser/* XPM */ static char * undo_xpm[] = { "17 20 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " . ", " .. ", " .+. ", " .++.... ", " .+++++++. ", " .+++++++++. ", " .+++++++++++. ", " .++++++++++. ", " .++++++++++. ", " .++...++++. ", " .+. .+++. ", " .. .++. ", " . .++. ", " .++. ", " .+. ", " .++. ", " .++. ", " .. ", " "}; sweep-0.9.3/pixmaps/SRC.xpm0000644000175000017500000021001510777660150014232 0ustar useruser/* XPM */ static char * SRC_xpm[] = { "380 50 1962 2", " c None", ". c #000100", "+ c #010102", "@ c #020204", "# c #010101", "$ c #000101", "% c #390620", "& c #8A0C44", "* c #410625", "= c #090413", "- c #870C41", "; c #430828", "> c #73082D", ", c #FC1363", "' c #F6115B", ") c #0B0416", "! c #7C0A38", "~ c #FD1364", "{ c #7E0B39", "] c #010202", "^ c #FE1365", "/ c #BB0E4B", "( c #04020A", "_ c #3E0724", ": c #F8125C", "< c #FC1362", "[ c #E80F4F", "} c #FA125F", "| c #5C0A37", "1 c #020206", "2 c #0C0416", "3 c #C30F50", "4 c #FB1360", "5 c #FA1260", "6 c #1B0827", "7 c #BB0E4A", "8 c #400724", "9 c #030208", "0 c #B30D46", "a c #F9125E", "b c #890C3F", "c c #3C0621", "d c #FA125E", "e c #7F0B3A", "f c #0C0519", "g c #F51159", "h c #F01157", "i c #070410", "j c #520930", "k c #FB1261", "l c #870C3E", "m c #0D061D", "n c #F9125D", "o c #7D0A36", "p c #060410", "q c #F41157", "r c #860D42", "s c #020205", "t c #47082A", "u c #B60D46", "v c #21061C", "w c #F5115A", "x c #C31050", "y c #0A0416", "z c #7C0A35", "A c #04030B", "B c #BF0F4D", "C c #BD0F4E", "D c #B10C42", "E c #FC1261", "F c #46082B", "G c #05030D", "H c #400623", "I c #380621", "J c #4C082A", "K c #810C3C", "L c #070411", "M c #0C0414", "N c #DC1158", "O c #F01058", "P c #080310", "Q c #51092F", "R c #860B3B", "S c #7E0B38", "T c #0A0516", "U c #FB1260", "V c #16061C", "W c #470826", "X c #FC1364", "Y c #7A0A36", "Z c #04020C", "` c #DA1054", " . c #C70F50", ".. c #880C40", "+. c #080414", "@. c #210620", "#. c #C00F50", "$. c #F31159", "%. c #080413", "&. c #3D0621", "*. c #4F082C", "=. c #05030E", "-. c #F11055", ";. c #B80E4B", ">. c #020207", ",. c #05020C", "'. c #C80F50", "). c #B70E49", "!. c #440726", "~. c #7E0A38", "{. c #F41159", "]. c #090414", "^. c #1E061F", "/. c #6C092F", "(. c #F7125A", "_. c #0C0417", ":. c #BB0E4C", "<. c #F6125A", "[. c #0B0414", "}. c #810B3A", "|. c #020104", "1. c #7D0A38", "2. c #F6115A", "3. c #0C0517", "4. c #340621", "5. c #FC1361", "6. c #750930", "7. c #3F0623", "8. c #820B3C", "9. c #010103", "0. c #9F0E48", "a. c #0A0414", "b. c #04030C", "c. c #CF1051", "d. c #C60F4D", "e. c #030209", "f. c #06030E", "g. c #F01056", "h. c #B50E4C", "i. c #B90E4A", "j. c #F7115B", "k. c #820B3B", "l. c #16061E", "m. c #020203", "n. c #7C0A34", "o. c #22061D", "p. c #3E0620", "q. c #840C3E", "r. c #020103", "s. c #850C3E", "t. c #3E061F", "u. c #870C40", "v. c #F61159", "w. c #160519", "x. c #860C41", "y. c #010203", "z. c #B60E49", "A. c #070311", "B. c #B20D45", "C. c #090415", "D. c #A00C42", "E. c #8A0C42", "F. c #F4115A", "G. c #080412", "H. c #59082D", "I. c #FB1361", "J. c #55082B", "K. c #720930", "L. c #340620", "M. c #6B0A32", "N. c #21061F", "O. c #420726", "P. c #7F0B38", "Q. c #800B3B", "R. c #EC1056", "S. c #CF1053", "T. c #05030C", "U. c #070412", "V. c #EB1054", "W. c #C20F4F", "X. c #BA0E4B", "Y. c #090412", "Z. c #910E48", "`. c #EF1054", " + c #3A061E", ".+ c #FC1262", "++ c #780A35", "@+ c #470829", "#+ c #010201", "$+ c #3F0723", "%+ c #970C3E", "&+ c #3E0722", "*+ c #120519", "=+ c #F01057", "-+ c #BE0E4C", ";+ c #820B3A", ">+ c #420725", ",+ c #860C40", "'+ c #B80E4A", ")+ c #B60E48", "!+ c #F7125B", "~+ c #070310", "{+ c #F7125C", "]+ c #BE0E4D", "^+ c #040209", "/+ c #B00D48", "(+ c #EF1157", "_+ c #830B3D", ":+ c #E30F51", "<+ c #E81052", "[+ c #B80E4C", "}+ c #920C41", "|+ c #450725", "1+ c #3E0621", "2+ c #830C3C", "3+ c #7B0A36", "4+ c #460828", "5+ c #030207", "6+ c #430827", "7+ c #CE1052", "8+ c #A40F4F", "9+ c #A50F4F", "0+ c #F21058", "a+ c #B80D47", "b+ c #040208", "c+ c #BA0E4A", "d+ c #0C0516", "e+ c #010304", "f+ c #481238", "g+ c #EB0E5F", "h+ c #FA0960", "i+ c #FA0A60", "j+ c #FA0B60", "k+ c #FA0C60", "l+ c #FA0D60", "m+ c #FA0E60", "n+ c #FA0F60", "o+ c #FA1060", "p+ c #BE1A59", "q+ c #380F22", "r+ c #000302", "s+ c #412C2F", "t+ c #F45358", "u+ c #F85658", "v+ c #F85858", "w+ c #C15454", "x+ c #061516", "y+ c #3D2420", "z+ c #F06C58", "A+ c #F86E58", "B+ c #F86F57", "C+ c #F87057", "D+ c #F87156", "E+ c #F87256", "F+ c #F87456", "G+ c #F87556", "H+ c #F87656", "I+ c #F87756", "J+ c #F87956", "K+ c #F87A56", "L+ c #F87B56", "M+ c #F87C56", "N+ c #B86D4E", "O+ c #091C18", "P+ c #000200", "Q+ c #1F2E22", "R+ c #E99153", "S+ c #F79854", "T+ c #F79A54", "U+ c #E89552", "V+ c #222E21", "W+ c #03100C", "X+ c #AF8146", "Y+ c #F6AB52", "Z+ c #F6AC52", "`+ c #F6AD52", " @ c #F6AF52", ".@ c #4F683B", "+@ c #010604", "@@ c #000403", "#@ c #435630", "$@ c #F3B950", "%@ c #A88A44", "&@ c #06261D", "*@ c #36482C", "=@ c #F3BC50", "-@ c #BAA54C", ";@ c #051C13", ">@ c #020906", ",@ c #B6A249", "'@ c #F6C84F", ")@ c #F6CA4F", "!@ c #F4CA50", "~@ c #507B3B", "{@ c #010704", "]@ c #020A06", "^@ c #5B8E3E", "/@ c #F4D74F", "(@ c #F6D94E", "_@ c #F6DA4E", ":@ c #F6DB4E", "<@ c #F6DC4E", "[@ c #F5DC4E", "}@ c #F4DC4E", "|@ c #F4DD4E", "1@ c #F4DE4E", "2@ c #F4DF4E", "3@ c #F4E04E", "4@ c #F0DC4E", "5@ c #528238", "6@ c #010A06", "7@ c #04170E", "8@ c #B1BC43", "9@ c #F4EE4A", "0@ c #BED94A", "a@ c #082C14", "b@ c #CC1053", "c@ c #D41056", "d@ c #BF0F4F", "e@ c #0E0519", "f@ c #7C0A36", "g@ c #F8125D", "h@ c #890D42", "i@ c #720A37", "j@ c #120C24", "k@ c #FA0C64", "l@ c #FE0967", "m@ c #FE0A66", "n@ c #FE0B66", "o@ c #FE0C66", "p@ c #FE0D66", "q@ c #FE0E66", "r@ c #FE1065", "s@ c #FE1165", "t@ c #FE1265", "u@ c #C8185A", "v@ c #040811", "w@ c #020606", "x@ c #82474A", "y@ c #FC5A5E", "z@ c #FC5C5E", "A@ c #FC5D5E", "B@ c #FC5F5E", "C@ c #FC605E", "D@ c #FB605E", "E@ c #243030", "F@ c #7C463E", "G@ c #FB765D", "H@ c #FB775D", "I@ c #FB795C", "J@ c #FB7A5C", "K@ c #FB7B5C", "L@ c #FB7C5B", "M@ c #FB7E5B", "N@ c #FB7F5B", "O@ c #FB805B", "P@ c #FB815B", "Q@ c #FB835B", "R@ c #FB855B", "S@ c #FB865B", "T@ c #FB875B", "U@ c #FB885B", "V@ c #BC7552", "W@ c #000201", "X@ c #775E3E", "Y@ c #FAA259", "Z@ c #FAA459", "`@ c #FAA559", " # c #FAA659", ".# c #FAA759", "+# c #FAA859", "@# c #76603E", "## c #08271C", "$# c #F4AF58", "%# c #FAB857", "&# c #FAB957", "*# c #FABA57", "=# c #FABC57", "-# c #CEA252", ";# c #02100C", "># c #020A08", ",# c #86934A", "'# c #F9CA56", ")# c #746637", "!# c #000402", "~# c #031510", "{# c #EEB650", "]# c #F7CC56", "^# c #12482A", "/# c #05221A", "(# c #F8CE53", "_# c #F9D454", ":# c #F9D554", "<# c #F9D654", "[# c #E1B246", "}# c #020E07", "|# c #04140A", "1# c #ECC648", "2# c #F9E253", "3# c #F9E353", "4# c #F9E453", "5# c #F9E553", "6# c #F8E552", "7# c #F8E652", "8# c #F8E752", "9# c #F8E852", "0# c #F6E652", "a# c #42622B", "b# c #0A3E20", "c# c #F4EE50", "d# c #F8F34F", "e# c #1C632A", "f# c #6B0829", "g# c #7A0A35", "h# c #06030D", "i# c #3C051D", "j# c #F21156", "k# c #72042C", "l# c #FE0867", "m# c #FC0C66", "n# c #860E46", "o# c #7E0E3C", "p# c #F80E62", "q# c #FA0F64", "r# c #7D0E38", "s# c #7A062A", "t# c #7A072A", "u# c #7C0C32", "v# c #C6165C", "w# c #FA1660", "x# c #0A1022", "y# c #F2575A", "z# c #7C3234", "A# c #914244", "B# c #FA5E5D", "C# c #F8755C", "D# c #7E453A", "E# c #7F463B", "F# c #F9795B", "G# c #EE7357", "H# c #7A3C30", "I# c #783026", "J# c #783126", "K# c #783226", "L# c #7C4132", "M# c #EE7A56", "N# c #FB8A5B", "O# c #020806", "P# c #F79D58", "Q# c #7E5C38", "R# c #7F5E39", "S# c #F8A158", "T# c #B68948", "U# c #7A552C", "V# c #C1A050", "W# c #818645", "X# c #766A39", "Y# c #010403", "Z# c #041812", "`# c #EFB951", " $ c #F6C856", ".$ c #0D3C24", "+$ c #F9D354", "@$ c #B6A248", "#$ c #79652C", "$$ c #C0B74D", "%$ c #BCBE4B", "&$ c #786C2A", "*$ c #B9B84A", "=$ c #B3A743", "-$ c #766422", ";$ c #766522", ">$ c #766623", ",$ c #889F3F", "'$ c #F8E853", ")$ c #F8E952", "!$ c #7A893A", "~$ c #8A0C3F", "{$ c #450829", "]$ c #35061D", "^$ c #EA0A58", "/$ c #04060E", "($ c #871651", "_$ c #84184F", ":$ c #000202", "<$ c #701639", "[$ c #FD1365", "}$ c #84484B", "|$ c #7D3E42", "1$ c #010505", "2$ c #031112", "3$ c #EE5556", "4$ c #443030", "5$ c #A26453", "6$ c #9B5D4A", "7$ c #7D4034", "8$ c #7D4637", "9$ c #8B774A", "0$ c #020B09", "a$ c #8D7E4C", "b$ c #78623F", "c$ c #F5AC54", "d$ c #092C1F", "e$ c #4D5031", "f$ c #DAA553", "g$ c #03110C", "h$ c #092215", "i$ c #756235", "j$ c #3E5233", "k$ c #04201B", "l$ c #072F24", "m$ c #746738", "n$ c #46512C", "o$ c #06261C", "p$ c #F6CE54", "q$ c #0B351E", "r$ c #4A4F25", "s$ c #E4B348", "t$ c #031009", "u$ c #194820", "v$ c #164922", "w$ c #F7E254", "x$ c #F4DB50", "y$ c #062519", "z$ c #03160D", "A$ c #EFE055", "B$ c #0B4420", "C$ c #420626", "D$ c #AC0C40", "E$ c #120518", "F$ c #EF1158", "G$ c #BD0E4B", "H$ c #E20854", "I$ c #821950", "J$ c #82164A", "K$ c #681838", "L$ c #FD1465", "M$ c #02060B", "N$ c #0A0717", "O$ c #0C0617", "P$ c #0C0616", "Q$ c #0C0716", "R$ c #0C0816", "S$ c #090A16", "T$ c #020609", "U$ c #010404", "V$ c #070A15", "W$ c #0C0A16", "X$ c #0C0B16", "Y$ c #0B0B16", "Z$ c #040B10", "`$ c #040B0F", " % c #0C0C16", ".% c #0C0D16", "+% c #0C0E16", "@% c #081016", "#% c #010606", "$% c #0A1016", "%% c #0C0F16", "&% c #0C1016", "*% c #0C1116", "=% c #0A1216", "-% c #020B0C", ";% c #061113", ">% c #0C1316", ",% c #3F252A", "'% c #EE555A", ")% c #7B3A3E", "!% c #020E0F", "~% c #EC5254", "{% c #B84E4E", "]% c #0F1A1C", "^% c #0B1415", "/% c #040E0E", "(% c #886151", "_% c #925A47", ":% c #7C3A30", "<% c #7C4032", "[% c #030E0C", "}% c #0B1A14", "|% c #0A1B14", "1% c #0A1C14", "2% c #081C15", "3% c #010605", "4% c #877146", "5% c #887848", "6% c #BF8F51", "7% c #182F20", "8% c #0A1E14", "9% c #0A2014", "0% c #03120E", "a% c #F4AA53", "b% c #08261C", "c% c #30482D", "d% c #FABA56", "e% c #F7B956", "f% c #4A5632", "g% c #0B2314", "h% c #0A2214", "i% c #0A2314", "j% c #061E12", "k% c #020D08", "l% c #092213", "m% c #0A2414", "n% c #061D11", "o% c #020A07", "p% c #092414", "q% c #0A2614", "r% c #7E843F", "s% c #F9D254", "t% c #F5CB54", "u% c #082F1D", "v% c #304720", "w% c #F6D052", "x% c #4A6430", "y% c #0B2A14", "z% c #0A2813", "A% c #082613", "B% c #12401A", "C% c #0A4021", "D% c #F6E054", "E% c #F4D950", "F% c #041E16", "G% c #02140C", "H% c #EADA54", "I% c #010806", "J% c #072B13", "K% c #0A3012", "L% c #0A3212", "M% c #093213", "N% c #041E10", "O% c #04190D", "P% c #093412", "Q% c #0A3412", "R% c #0A3512", "S% c #0A3612", "T% c #0B3C16", "U% c #9EAA3D", "V% c #F8F350", "W% c #010705", "X% c #083613", "Y% c #0A3812", "Z% c #0A3A12", "`% c #093912", " & c #03160C", ".& c #0F051A", "+& c #14061D", "@& c #240620", "#& c #C81054", "$& c #4A092D", "%& c #15061F", "&& c #B40E47", "*& c #920B3A", "=& c #14061E", "-& c #11061B", ";& c #821644", ">& c #FC1865", ",& c #FD1865", "'& c #FD1964", ")& c #FD1A64", "!& c #FD1C64", "~& c #FD1D64", "{& c #FD1E64", "]& c #FD1F64", "^& c #FD2064", "/& c #FD2164", "(& c #FB2464", "_& c #B22350", ":& c #040B12", "<& c #381324", "[& c #F82761", "}& c #FD2664", "|& c #FD2764", "1& c #FD2863", "2& c #FD2962", "3& c #FD2A62", "4& c #FD2B62", "5& c #FD2C62", "6& c #FD2D62", "7& c #FD2E62", "8& c #FC2E62", "9& c #FC3062", "0& c #DE325C", "a& c #381A29", "b& c #020808", "c& c #C03054", "d& c #FC3562", "e& c #FC3662", "f& c #FC3762", "g& c #FC3862", "h& c #FC3861", "i& c #FC3A61", "j& c #FC3A60", "k& c #FC3C60", "l& c #FC3E60", "m& c #FC3F60", "n& c #FA4260", "o& c #8E3346", "p& c #020708", "q& c #672835", "r& c #FB4660", "s& c #FC4560", "t& c #FC4660", "u& c #FC4860", "v& c #FC4960", "w& c #FC4A60", "x& c #FC4B60", "y& c #FC4C60", "z& c #FC4D5F", "A& c #FC4E5F", "B& c #FC4F5F", "C& c #FC505F", "D& c #FC525F", "E& c #BE4B54", "F& c #081619", "G& c #051214", "H& c #F4545B", "I& c #FC575E", "J& c #FC585E", "K& c #FC595E", "L& c #FB615E", "M& c #FB635D", "N& c #FB645D", "O& c #FB665D", "P& c #BE5953", "Q& c #976B4D", "R& c #FB8D5B", "S& c #FB8E5B", "T& c #FB905B", "U& c #FB915B", "V& c #FA925A", "W& c #FA945A", "X& c #FA9559", "Y& c #FA9659", "Z& c #FA9759", "`& c #FA9859", " * c #FA9B59", ".* c #FA9C59", "+* c #F89D5A", "@* c #9A6340", "#* c #FAAA59", "$* c #FAAB58", "%* c #FAAC58", "&* c #FAAE58", "** c #FAB058", "=* c #FAB258", "-* c #C19950", ";* c #1A2A1C", ">* c #FABE57", ",* c #FAC057", "'* c #FABF57", ")* c #FAC157", "!* c #FAC256", "~* c #FAC356", "{* c #FAC556", "]* c #F4BD55", "^* c #4A6135", "/* c #6C723D", "(* c #F8C856", "_* c #F9CB56", ":* c #F9CC56", "<* c #F9CD56", "[* c #F9CE56", "}* c #EEBD52", "|* c #092E1D", "1* c #556E36", "2* c #F8D056", "3* c #F9D256", "4* c #F9D255", "5* c #F9D854", "6* c #F9D954", "7* c #F9DA54", "8* c #F8D855", "9* c #4A602E", "0* c #020C08", "a* c #809F3E", "b* c #F6E852", "c* c #F8EB51", "d* c #F8EC51", "e* c #F8ED51", "f* c #F8EE51", "g* c #F8EE52", "h* c #DBDE4F", "i* c #375224", "j* c #000301", "k* c #020907", "l* c #B4C244", "m* c #F8F050", "n* c #F8F150", "o* c #F8F250", "p* c #F8F24F", "q* c #496E2B", "r* c #F7F450", "s* c #F8F44F", "t* c #F7F44E", "u* c #F7F54E", "v* c #F7F64E", "w* c #F7F64F", "x* c #BBD84A", "y* c #09331A", "z* c #25142A", "A* c #FC1564", "B* c #F2185D", "C* c #060C18", "D* c #02080A", "E* c #941951", "F* c #FD1765", "G* c #FD2264", "H* c #FC2364", "I* c #671834", "J* c #6F1C34", "K* c #FC2663", "L* c #B72C51", "M* c #031012", "N* c #F6325C", "O* c #FC4060", "P* c #FB4260", "Q* c #101C24", "R* c #803646", "S* c #FC4460", "T* c #FC4760", "U* c #FC515F", "V* c #803941", "W* c #010302", "X* c #041011", "Y* c #DC535A", "Z* c #FB655D", "`* c #BA5751", " = c #020A09", ".= c #E6845A", "+= c #FA9E59", "@= c #423A26", "#= c #FAB358", "$= c #A48047", "%= c #FAC156", "&= c #FAC656", "*= c #F3B852", "== c #082315", "-= c #496534", ";= c #F8CF56", ">= c #F7D854", ",= c #44582B", "'= c #020D09", ")= c #B4BF4D", "!= c #F7E852", "~= c #4E7332", "{= c #010402", "]= c #134520", "^= c #F5E54F", "/= c #F8EA51", "(= c #F8EF51", "_= c #B4C646", ":= c #03130C", "<= c #021410", "[= c #EBDE4C", "}= c #7C913C", "|= c #F7F74E", "1= c #80A33B", "2= c #010503", "3= c #470726", "4= c #70082A", "5= c #B70D46", "6= c #900B3A", "7= c #71082B", "8= c #C00F4E", "9= c #DE1056", "0= c #72082C", "a= c #72092C", "b= c #C41052", "c= c #780A33", "d= c #690828", "e= c #090F1E", "f= c #0E1428", "g= c #0D1427", "h= c #C31A5A", "i= c #16162B", "j= c #561D43", "k= c #FD1B64", "l= c #B81E50", "m= c #0F1728", "n= c #0E1627", "o= c #0E1727", "p= c #711D41", "q= c #7C1E40", "r= c #471F38", "s= c #381D30", "t= c #EE2A5F", "u= c #F02A5B", "v= c #411F32", "w= c #0E1A26", "x= c #3F1E2F", "y= c #E22F5C", "z= c #EA3058", "A= c #040D10", "B= c #A02E47", "C= c #060E14", "D= c #892B44", "E= c #FA385F", "F= c #482436", "G= c #05090E", "H= c #04080C", "I= c #060C11", "J= c #B6334C", "K= c #FC4160", "L= c #1A232C", "M= c #F6425A", "N= c #40262F", "O= c #4C2E3A", "P= c #F9475E", "Q= c #BE4153", "R= c #16252B", "S= c #0D2126", "T= c #4A2F37", "U= c #FA4D5D", "V= c #86444C", "W= c #010504", "X= c #030A0B", "Y= c #040B0D", "Z= c #131E22", "`= c #D45358", " - c #B14B4A", ".- c #061112", "+- c #040C0C", "@- c #020908", "#- c #B16748", "$- c #071814", "%- c #52523C", "&- c #F9905A", "*- c #FA955B", "=- c #535239", "-- c #05120E", ";- c #04100C", ">- c #05130E", ",- c #56553A", "'- c #F99958", ")- c #FA9F59", "!- c #7A4628", "~- c #C49251", "{- c #273D2A", "]- c #0C3225", "^- c #0C3224", "/- c #444E33", "(- c #F4A655", "_- c #E8904A", ":- c #F8B956", "<- c #4D6037", "[- c #0C3624", "}- c #0E3B26", "|- c #BB9C4C", "1- c #F8C053", "2- c #102C17", "3- c #BAA24C", "4- c #082617", "5- c #445830", "6- c #F7C955", "7- c #04140C", "8- c #04160C", "9- c #4F743A", "0- c #F8D254", "a- c #F4CE52", "b- c #40522A", "c- c #04170C", "d- c #04160B", "e- c #04150C", "f- c #04180E", "g- c #0C3E24", "h- c #09331E", "i- c #245A2A", "j- c #F6E750", "k- c #4E7C37", "l- c #19522A", "m- c #C7D74E", "n- c #B8C14A", "o- c #3A5C2C", "p- c #0C4124", "q- c #195329", "r- c #B0B446", "s- c #E5D74C", "t- c #041C12", "u- c #A7AE42", "v- c #052311", "w- c #57963A", "x- c #F6EF4F", "y- c #4A8233", "z- c #041E0C", "A- c #041C0A", "B- c #05210E", "C- c #5D9938", "D- c #F3EE4C", "E- c #40652C", "F- c #437431", "G- c #F2EF4D", "H- c #BBD448", "I- c #125628", "J- c #0C4623", "K- c #467930", "L- c #F3F24C", "M- c #86BC44", "N- c #13061C", "O- c #800B3A", "P- c #820C3E", "Q- c #C60F50", "R- c #910E4B", "S- c #850D42", "T- c #E80A57", "U- c #03040C", "V- c #841851", "W- c #83174E", "X- c #761D3E", "Y- c #020408", "Z- c #FC1A63", "`- c #FC1A62", " ; c #340A1F", ".; c #040C14", "+; c #F42661", "@; c #E53061", "#; c #841B42", "$; c #861C42", "%; c #802D4C", "&; c #101F28", "*; c #0F0F1B", "=; c #F63358", "-; c #050A0E", ";; c #3A1D28", ">; c #FA3F60", ",; c #843C4E", "'; c #020608", "); c #D43A4E", "!; c #73202C", "~; c #02090A", "{; c #BD4B57", "]; c #83474B", "^; c #323030", "/; c #7D3E33", "(; c #7C4435", "_; c #FA8C5A", ":; c #503E31", "<; c #092620", "[; c #F78B57", "}; c #F6905A", "|; c #07211B", "1; c #F89154", "2; c #78613E", "3; c #A08045", "4; c #D8A452", "5; c #03120D", "6; c #744A24", "7; c #756738", "8; c #031611", "9; c #EEB750", "0; c #06241A", "a; c #E2B247", "b; c #020F08", "c; c #ECE054", "d; c #020F09", "e; c #7F8D33", "f; c #CAD84D", "g; c #062212", "h; c #04160E", "i; c #BCCC49", "j; c #1C5A2A", "k; c #093112", "l; c #F4EB4B", "m; c #05220D", "n; c #0A4020", "o; c #85B848", "p; c #020B04", "q; c #90CA3E", "r; c #748427", "s; c #020E09", "t; c #8CCB48", "u; c #7C0A32", "v; c #12061C", "w; c #0E0418", "x; c #820C3D", "y; c #850C40", "z; c #900E4B", "A; c #FB0C66", "B; c #7D1343", "C; c #76153A", "D; c #F80D61", "E; c #F81163", "F; c #661437", "G; c #341830", "H; c #341930", "I; c #2F1A30", "J; c #09121E", "K; c #010303", "L; c #741E3E", "M; c #2B091D", "N; c #040C13", "O; c #DE3061", "P; c #841A40", "Q; c #851B40", "R; c #802C4A", "S; c #E82F58", "T; c #040C10", "U; c #0E2028", "V; c #0E0E1A", "W; c #F63258", "X; c #04080E", "Y; c #020607", "Z; c #772938", "`; c #823448", " > c #7C3141", ".> c #823C4E", "+> c #020506", "@> c #CA394E", "#> c #721F2A", "$> c #020809", "%> c #A84B57", "&> c #C67256", "*> c #6A4233", "=> c #343A2E", "-> c #343C2E", ";> c #704635", ">> c #C87856", ",> c #E4835A", "'> c #BE7850", ")> c #6C4531", "!> c #B46C48", "~> c #F5905A", "{> c #06201A", "]> c #0A1B13", "^> c #9A7E44", "/> c #734721", "(> c #E3D954", "_> c #7F8A31", ":> c #85A53A", "<> c #7A923E", "[> c #16572A", "}> c #082E11", "|> c #F4EA4B", "1> c #05200C", "2> c #83B448", "3> c #020A03", "4> c #8EC83D", "5> c #738226", "6> c #8BC948", "7> c #7A0A2E", "8> c #F31158", "9> c #3A061F", "0> c #020102", "a> c #3A0620", "b> c #FE1364", "c> c #800A3B", "d> c #F41057", "e> c #1B0C26", "f> c #FD1464", "g> c #52163E", "h> c #010405", "i> c #A41D46", "j> c #04070F", "k> c #03040A", "l> c #04060C", "m> c #451A35", "n> c #FB2264", "o> c #2F121D", "p> c #863152", "q> c #883556", "r> c #883456", "s> c #452134", "t> c #B53D4C", "u> c #061115", "v> c #030809", "w> c #03080A", "x> c #39242A", "y> c #F74E5D", "z> c #FB825B", "A> c #C07D58", "B> c #020706", "C> c #443E30", "D> c #887452", "E> c #887552", "F> c #887652", "G> c #887752", "H> c #74533C", "I> c #010908", "J> c #FAC456", "K> c #84A43A", "L> c #7A913E", "M> c #B5C543", "N> c #062B14", "O> c #021408", "P> c #031608", "Q> c #1E5223", "R> c #EEED4D", "S> c #7A0A2F", "T> c #440829", "U> c #520829", "V> c #780930", "W> c #840B3B", "X> c #C00E4C", "Y> c #780931", "Z> c #C00E4E", "`> c #77092F", " , c #360620", "., c #970E47", "+, c #F41158", "@, c #010205", "#, c #4E103C", "$, c #F10D5D", "%, c #F60E5F", "&, c #F6105F", "*, c #F6115F", "=, c #F6125F", "-, c #F6125E", ";, c #F6135E", ">, c #F71460", ",, c #F6165E", "', c #070A17", "), c #721936", "!, c #823B43", "~, c #FA7C5B", "{, c #F57457", "], c #F27256", "^, c #F37356", "/, c #F97E5A", "(, c #F68058", "_, c #BB6C4F", ":, c #3A2820", "<, c #82B448", "[, c #81A73C", "}, c #BC0E4B", "|, c #02080C", "1, c #020C12", "2, c #040E16", "3, c #AD154A", "4, c #BA2352", "5, c #060C14", "6, c #FD2862", "7, c #FC5260", "8, c #C74C56", "9, c #0C1A1C", "0, c #B75D4A", "a, c #051918", "b, c #021212", "c, c #031312", "d, c #443C32", "e, c #F8805A", "f, c #745040", "g, c #12291E", "h, c #F89456", "i, c #86944A", "j, c #F6E154", "k, c #EBDE4B", "l, c #C7E44B", "m, c #10411D", "n, c #110518", "o, c #860C3E", "p, c #D21051", "q, c #820C3C", "r, c #4A082B", "s, c #0C0518", "t, c #11061C", "u, c #8C0D43", "v, c #F51158", "w, c #950D46", "x, c #2C061E", "y, c #B61D4E", "z, c #1C0B1E", "A, c #16081A", "B, c #16091A", "C, c #160A1A", "D, c #0F0B1A", "E, c #02070A", "F, c #BD4152", "G, c #371B22", "H, c #14141A", "I, c #141419", "J, c #11151A", "K, c #030C0E", "L, c #92624B", "M, c #8F654A", "N, c #372922", "O, c #7A5A43", "P, c #7A5B43", "Q, c #7A5C43", "R, c #7A5C42", "S, c #7A5E42", "T, c #7A5F42", "U, c #7C6242", "V, c #C08452", "W, c #BCD647", "X, c #1E5A1E", "Y, c #0E4814", "Z, c #0E4914", "`, c #0D4816", " ' c #041A0E", ".' c #0B0517", "+' c #0B0518", "@' c #33061E", "#' c #9E0D43", "$' c #37061F", "%' c #490728", "&' c #8C0C42", "*' c #F11157", "=' c #590A36", "-' c #02050A", ";' c #4A0E2F", ">' c #77133B", ",' c #77133A", "'' c #77143A", ")' c #751236", "!' c #040810", "~' c #3A0B20", "{' c #73212D", "]' c #49382E", "^' c #FA835B", "/' c #F2815A", "(' c #061513", "_' c #BD7C56", ":' c #FA9959", "<' c #1F3A1B", "[' c #717034", "}' c #59652E", "|' c #041B0F", "1' c #748428", "2' c #8C0C41", "3' c #AD0E4B", "4' c #8F0E48", "5' c #8E0E47", "6' c #790A33", "7' c #600723", "8' c #5E0723", "9' c #70082C", "0' c #EE1056", "a' c #CB1053", "b' c #180622", "c' c #0D0416", "d' c #620829", "e' c #860A3A", "f' c #BC0F4D", "g' c #CA1052", "h' c #750A32", "i' c #43082A", "j' c #FC0A66", "k' c #7E1442", "l' c #27081C", "m' c #030B10", "n' c #0A1623", "o' c #07141E", "p' c #081720", "q' c #0A1A23", "r' c #091922", "s' c #030B0E", "t' c #721E2A", "u' c #020A0B", "v' c #091F22", "w' c #0A2022", "x' c #081E21", "y' c #071B19", "z' c #F37756", "A' c #403A2E", "B' c #F88C5B", "C' c #917651", "D' c #F38C5A", "E' c #F29059", "F' c #89744D", "G' c #88724C", "H' c #88734C", "I' c #8A774D", "J' c #F39257", "K' c #FABC56", "L' c #02100A", "M' c #BCCB50", "N' c #747E35", "O' c #020E0A", "P' c #093A1F", "Q' c #093A20", "R' c #440826", "S' c #7A0A31", "T' c #7A0A32", "U' c #FD1363", "V' c #840B3E", "W' c #75082E", "X' c #7A0931", "Y' c #78092F", "Z' c #890C41", "`' c #F21056", " ) c #F01055", ".) c #AD0D45", "+) c #7B0A32", "@) c #430726", "#) c #F81166", "$) c #F41465", "%) c #BC2255", "&) c #FA2463", "*) c #F92562", "=) c #471832", "-) c #582339", ";) c #FA3061", ">) c #FA3162", ",) c #FA3262", "') c #B32C4E", ")) c #020709", "!) c #883D48", "~) c #FA505F", "{) c #FA525F", "]) c #F9535E", "^) c #7C383F", "/) c #8F614B", "() c #865E44", "_) c #6A4E3B", ":) c #3A362A", "<) c #F88E59", "[) c #F8925A", "}) c #3A3024", "|) c #010706", "1) c #383426", "2) c #010805", "3) c #7BA53B", "4) c #F5F34E", "5) c #F5F44F", "6) c #7D9F3A", "7) c #020208", "8) c #470722", "9) c #B10C41", "0) c #C51052", "a) c #8C0E49", "b) c #8E0E4A", "c) c #F41059", "d) c #B60D47", "e) c #1E0622", "f) c #F9115C", "g) c #FB125F", "h) c #03020A", "i) c #440728", "j) c #8B0E47", "k) c #8B0E48", "l) c #780A32", "m) c #510722", "n) c #4E0722", "o) c #710931", "p) c #810B3C", "q) c #030309", "r) c #F50D61", "s) c #0C0D20", "t) c #02070C", "u) c #BD1258", "v) c #802D4B", "w) c #FC2F62", "x) c #A14B56", "y) c #503B30", "z) c #FA855B", "A) c #F3855A", "B) c #04100D", "C) c #30382E", "D) c #08221D", "E) c #F68A57", "F) c #8DB240", "G) c #809E3D", "H) c #8AC848", "I) c #69082B", "J) c #5E0A31", "K) c #05030F", "L) c #0A051A", "M) c #0C0620", "N) c #070414", "O) c #9F0D45", "P) c #240726", "Q) c #B00E46", "R) c #0C051A", "S) c #3B0725", "T) c #04030D", "U) c #0A0517", "V) c #F20C5D", "W) c #060A17", "X) c #010507", "Y) c #AB1654", "Z) c #881752", "`) c #75163D", " ! c #7C1B43", ".! c #060D16", "+! c #FC1B63", "@! c #501029", "#! c #070D18", "$! c #F72562", "%! c #F02E64", "&! c #8C224C", "*! c #8E2048", "=! c #8B2C4E", "-! c #43202E", ";! c #2F1826", ">! c #A03E50", ",! c #040E12", "'! c #E33F54", ")! c #772834", "!! c #040C0E", "~! c #D44C5A", "{! c #804245", "]! c #020707", "^! c #041416", "/! c #F05757", "(! c #FA605E", "_! c #BA6654", ":! c #020605", "~ c #FD0E66", ",~ c #8C124F", "'~ c #82093E", ")~ c #820A3D", "!~ c #861047", "~~ c #F91663", "{~ c #F91560", "]~ c #0A0F20", "^~ c #FA1C65", "/~ c #861648", "(~ c #C3205D", "_~ c #F22060", ":~ c #841542", "<~ c #82123C", "[~ c #82153F", "}~ c #C2235B", "|~ c #7B1D3E", "1~ c #BD2957", "2~ c #92244D", "3~ c #FC2A64", "4~ c #FB2B62", "5~ c #94264D", "6~ c #821A3B", "7~ c #90284C", "8~ c #E72F57", "9~ c #030C10", "0~ c #CE385E", "a~ c #822541", "b~ c #CB365C", "c~ c #FA4660", "d~ c #943A4D", "e~ c #BB4052", "f~ c #FB4860", "g~ c #F74B5F", "h~ c #853645", "i~ c #822E3A", "j~ c #822F3A", "k~ c #BB4552", "l~ c #86424A", "m~ c #F95A5C", "n~ c #864143", "o~ c #BB4E4F", "p~ c #FA765D", "q~ c #8C5A49", "r~ c #975A48", "s~ c #FA7B5D", "t~ c #95634B", "u~ c #866246", "v~ c #F18457", "w~ c #825C3E", "x~ c #C27D52", "y~ c #C08252", "z~ c #805938", "A~ c #805736", "B~ c #805836", "C~ c #805B38", "D~ c #C28652", "E~ c #FAA059", "F~ c #F9A259", "G~ c #AD7E4A", "H~ c #B07F4B", "I~ c #FAA959", "J~ c #F7A659", "K~ c #867443", "L~ c #806235", "M~ c #806335", "N~ c #806435", "O~ c #B4884B", "P~ c #F9B058", "Q~ c #DF8F4A", "R~ c #C4A252", "S~ c #847D42", "T~ c #F4B255", "U~ c #FABD57", "V~ c #BB9C4E", "W~ c #807036", "X~ c #806E34", "Y~ c #806F34", "Z~ c #827C3C", "`~ c #F5BE57", " { c #F7BF53", ".{ c #0F2B17", "+{ c #F5C354", "@{ c #82833D", "#{ c #BAA44A", "${ c #C0B94E", "%{ c #82863A", "&{ c #EDC852", "*{ c #EFD853", "={ c #82943D", "-{ c #DDD652", ";{ c #C0C84E", ">{ c #808834", ",{ c #7F8632", "'{ c #7F8833", "){ c #BCC64C", "!{ c #798638", "~{ c #205729", "{{ c #BECE4E", "]{ c #87A841", "^{ c #F7EB53", "/{ c #F7EB52", "({ c #8EB446", "_{ c #808C33", ":{ c #86AA42", "<{ c #F6EB52", "[{ c #E3D64A", "}{ c #041B11", "|{ c #D6E250", "1{ c #809336", "2{ c #C2DA4C", "3{ c #BDD249", "4{ c #7F9032", "5{ c #7F8E30", "6{ c #809233", "7{ c #C0D94B", "8{ c #F6F350", "9{ c #98BB43", "0{ c #B4C545", "a{ c #F7F550", "b{ c #F4F250", "c{ c #83A83B", "d{ c #7E912F", "e{ c #7E9230", "f{ c #B3C744", "g{ c #F6F54E", "h{ c #85B843", "i{ c #900D46", "j{ c #B40E48", "k{ c #840C40", "l{ c #7A0A37", "m{ c #CE0E50", "n{ c #F41056", "o{ c #8C0B3B", "p{ c #49082E", "q{ c #F7115A", "r{ c #0A0C1E", "s{ c #F40E60", "t{ c #FE1465", "u{ c #BD1956", "v{ c #04070E", "w{ c #91184F", "x{ c #391427", "y{ c #6C1A32", "z{ c #832846", "A{ c #020E10", "B{ c #F43458", "C{ c #04090E", "D{ c #803344", "E{ c #FC4C5F", "F{ c #FB535F", "G{ c #492E34", "H{ c #814549", "I{ c #FA5F5E", "J{ c #1C2E2E", "K{ c #7C433C", "L{ c #FB785D", "M{ c #7A3B30", "N{ c #784134", "O{ c #F5885C", "P{ c #D28159", "Q{ c #784629", "R{ c #745A3C", "S{ c #FAAF58", "T{ c #76653C", "U{ c #07251B", "V{ c #F3AD57", "W{ c #C0A54E", "X{ c #03150F", "Y{ c #849048", "Z{ c #F7CA56", "`{ c #104328", " ] c #041E17", ".] c #F7CD53", "+] c #CBB047", "@] c #03140A", "#] c #E8C549", "$] c #F4E452", "%] c #385426", "&] c #072815", "*] c #EADA4E", "=] c #81A540", "-] c #02120E", ";] c #EADC4A", ">] c #185E28", ",] c #7C8D38", "'] c #F7F44F", ")] c #F7F74F", "!] c #4B7E31", "~] c #130518", "{] c #74092E", "]] c #6D082A", "^] c #4E0A31", "/] c #B60E47", "(] c #4D082E", "_] c #72082D", ":] c #10051B", "<] c #060411", "[] c #11061E", "}] c #B00C42", "|] c #C30F4F", "1] c #15061D", "2] c #330620", "3] c #2E051A", "4] c #390F28", "5] c #880D4B", "6] c #92074D", "7] c #92084D", "8] c #92094D", "9] c #920A4D", "0] c #920B4D", "a] c #920C4C", "b] c #920D4C", "c] c #920E4C", "d] c #910F4C", "e] c #811646", "f] c #080C18", "g] c #3F122B", "h] c #8C144C", "i] c #90124C", "j] c #90134C", "k] c #90144C", "l] c #90154C", "m] c #90164C", "n] c #90174C", "o] c #90184C", "p] c #90194C", "q] c #8A1D4B", "r] c #40162C", "s] c #060A12", "t] c #841F47", "u] c #901D4C", "v] c #901D4B", "w] c #901E4A", "x] c #90204A", "y] c #90214A", "z] c #90224A", "A] c #90234A", "B] c #8E244A", "C] c #78243E", "D] c #040A0E", "E] c #4C2439", "F] c #8F284A", "G] c #90284A", "H] c #90294A", "I] c #8E2A4A", "J] c #492538", "K] c #35171D", "L] c #8A3549", "M] c #8F3448", "N] c #8F3548", "O] c #8F3648", "P] c #8E3848", "Q] c #8E3948", "R] c #8E3A48", "S] c #8C3D48", "T] c #4A2E34", "U] c #272022", "V] c #8A4146", "W] c #8E4347", "X] c #8E4447", "Y] c #8E4547", "Z] c #834142", "`] c #030E0E", " ^ c #0F1918", ".^ c #885346", "+^ c #8E5446", "@^ c #8E5546", "#^ c #8D5646", "$^ c #8D5846", "%^ c #865544", "&^ c #081A17", "*^ c #071B18", "=^ c #845A43", "-^ c #8D6044", ";^ c #8D6144", ">^ c #4C4B39", ",^ c #423D30", "'^ c #8D6444", ")^ c #8D6644", "!^ c #8C6644", "~^ c #8C6744", "{^ c #8C6844", "]^ c #8C6943", "^^ c #8C6A43", "/^ c #8C6C43", "(^ c #8C6D43", "_^ c #8C6E43", ":^ c #8C6F43", "<^ c #866D44", "[^ c #051610", "}^ c #081E18", "|^ c #866D42", "1^ c #8C7343", "2^ c #8C7443", "3^ c #8C7543", "4^ c #8C7643", "5^ c #8C7743", "6^ c #8C7843", "7^ c #8C7942", "8^ c #8C7A42", "9^ c #8C7B42", "0^ c #8C7C42", "a^ c #8C7D42", "b^ c #4F5835", "c^ c #020D0A", "d^ c #020B08", "e^ c #4F5E37", "f^ c #8C8142", "g^ c #8C8242", "h^ c #8C8442", "i^ c #8C8542", "j^ c #8C8642", "k^ c #8C8742", "l^ c #8C8841", "m^ c #8C8941", "n^ c #8C8A41", "o^ c #807D3F", "p^ c #0A2619", "q^ c #353D24", "r^ c #888B40", "s^ c #8B8F41", "t^ c #8B9041", "u^ c #8B9241", "v^ c #7C7A3C", "w^ c #707639", "x^ c #8A9640", "y^ c #8A9740", "z^ c #8A9840", "A^ c #899840", "B^ c #41582D", "C^ c #44662F", "D^ c #89A33F", "E^ c #8AA43E", "F^ c #8AA63E", "G^ c #8AA73E", "H^ c #8AA83E", "I^ c #8AAA3E", "J^ c #86A63F", "K^ c #3E5A2A", "L^ c #274420", "M^ c #84A540", "N^ c #89AE3D", "O^ c #89AF3D", "P^ c #89B03D", "Q^ c #89B23D", "R^ c #88B23E", "S^ c #728C38", "T^ c #457430", "U^ c #88B43D", "V^ c #89B63C", "W^ c #89B83C", "X^ c #89BA3C", "Y^ c #80A73C", "Z^ c #041C0E", "`^ c #103417", " / c #86B83E", "./ c #88BC3C", "+/ c #88BC3B", "@/ c #88BD3B", "#/ c #88BE3B", "$/ c #88BF3B", "%/ c #88C03B", "&/ c #87C03C", "*/ c #4C7F30", "=/ c #020E08", "-/ c #4A092F", ";/ c #8C0D45", ">/ c #64082C", ",/ c #1B061E", "'/ c #390621", ")/ c #ED1053", "!/ c #EA1052", "~/ c #BE0F4C", "{/ c #E91052", "]/ c #EB1052", "^/ c #CF0F50", "// c #25061D", "(/ c #04020B", "_/ c #18061D", ":/ c #8D0E48", " , ' ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . @ ! ~ { ] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . > , ^ / ( . . . . . . . . . . . . . . . . . . . . . . . . . . # _ : ^ { ] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . > < [ } | 1 . . . . . . . . . . . . . . . . . . . . . . . . . 2 3 4 ~ { ] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . > 5 6 7 } 8 # . . . . . . . . . . . . . . . . . . . . . . . 9 0 a b } { ] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . c d e f g h i . . . . . . . . . . . . . . . . . . . . . . + j k l m n o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . p q r s t k u s . . . . . . . . . . . . . . . . . . . . . v w x i y n z . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . A B C 9 9 D E F + . . . . . . . . . . . . . . . . . . . G 7 a H + I n J . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . ] K } L . M N O P . . . . . . . . . . . . . . . . . . + Q k R @ + S d T . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . ] S U V . . W X Y + . . . . . . . . . . . . . . . . . Z ` .G . s ..n +.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . @.5 z # . 9 #.$.%.. . . . . . . . . . . . . . . . . &.} *.+ . =.-.;.>.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . ,.'.).>.. . !.< ~.+ . . . . . . . . . . . . . . . >.).{.].. . ^.: /.# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . + ~.(._.. . 9 :.<.[.. . . . . . . . . . . . . . $ 8 } }.@ . |.1.2.3.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . 4.5.6.+ . . 7.U 8.9.. . . . . . . . . . . . . s 0.2.a.. . b.c.d.e.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . f.g.h.>.. . 9 i.2.2 . . . . . . . . . . . . . 2 j.k.+ . . l.d Y m.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . $ n.d o.. . . p.U q.@ . . . . . . . . . . . r.s.} t.. . @ u.v.].. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . w.: x.y.. . 1 z.<.].. . . . . . . . . . . A.d B.1 . . C.: D.>.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . @ E.F.G.. . $ H.I.J.$ . . . . . . . . . $ K.I.L.. . 9.M.a N.. . . . . . . . . . . . . # + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . O.E P.+ . . ].2.Q.m.. . . . . . . . . >.R.S.T.. . U.V.W.Z . . . . . . . . . . . . . ] @ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . e.X.: Y.. . 1 Z.`.G . . . . . . . . . +.+Q.+ . m.++4 @+$ . . . . . . . . . . . . . #+y.. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . $+U %+>.. 9.Y U &+. . . . . . . . 9.k.: a.. . *+=+-+( . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . @ ;+k >+$ . V a ,+@ @ @ @ @ @ @ @ ].' '+@ . >.)+!+V $ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . ~+{+]+^+. 9 /+(+_+:+<+<+<+<+<+[+}+< |+. . 1+U 2+@ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . # 3+, 4+5+6+w ~ } 7+8+8+8+8+9+0+< ^ a+].b+c+w d+. . . . . . . . . . . . . . . . . . . . e+f+g+h+i+i+j+k+k+l+m+m+n+o+o+5 5 p+q+. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . r+s+t+u+u+v+v+w+x+. . . . . . . . . . . . . . . . y+z+A+A+B+C+D+E+E+F+G+H+I+J+K+L+M+N+O+. . . . . . . . . . . . . . . . . . . . P+Q+R+S+S+T+T+U+V+. . . . . . . . . . . W+X+Y+Z+`+ @ @.@+@. . . . . . . . . . @@#@$@%@&@*@=@-@;@. . . . >@,@'@'@)@)@!@~@{@. . . . . . . . . . . . . . . ]@^@/@(@_@:@:@<@[@}@|@|@1@1@2@2@3@4@5@6@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7@8@9@9@0@a@. . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . i b@c@u k d@!.y >.@ @ @ @ @ f.e@f@g@w h@5 i@+ . . . . . . . . . . . . . . . . . . . . j@k@l@m@m@n@o@o@p@q@q@r@r@s@t@t@^ ^ u@v@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . w@x@y@z@A@B@C@D@E@. . . . . . . . . . . . . . . . F@G@G@H@I@J@K@L@L@M@N@O@P@Q@R@S@T@U@V@+@. . . . . . . . . . . . . . . . . . . W@X@Y@Z@`@ #.#+#@#. . . . . . . . . . . ##$#%#&#*#=#=#-#;#. . . . . . . . . . >#,#'#)#!#~#{#]#^#. . . . /#(#_#_#:#<#<#[#}#. . . . . . . . . . . . . . . |#1#2#3#4#4#4#5#6#7#7#7#8#9#9#9#9#9#0#a#W@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . b#c#d#d#d#e#W@. . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . # f#^ g@g#h#$ . . . . . . . . . + i#c+~ j#A . . . . . . . . . . . . . . . . . . . . . k#l#m#n#o#p#o@q#r#s#s#t#t#u#v#^ ^ ^ w#x#. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . w@x@y@y#z#A#B#D@E@. . . . . . . . . . . . . . . . F@G@C#D#E#F#K@G#H#I#J#K#K#L#M#S@T@U@N#O#. . . . . . . . . . . . . . . . . . . W@X@Y@P#Q#R#S#+#@#. . . . . . . . . . . ##$#%#T#U#V#=#-#;#. . . . . . . . . . >@W#'#X#Y#Z#`# $.$. . . . /#(#+$@$#$$$<#[#}#. . . . . . . . . . . . . . . |#1#2#%$&$*$4#4#=$-$-$-$;$>$,$'$9#9#)$!$+@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . b#c#d#d#d#e#W@. . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . @ ~$k {$+ . . . . . . . . . . . . . T.a+d ]$. . . . . . . . . . . . . . . . . . . . . k#l#^$/$. ($o@_$:$. . . . . <$[$^ ^ w#x#. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . w@}$y@|$1$2$3$D@4$. . . . . . . . . . . . . . . . F@G@5$] +@6$K@7$W@. . . . :$8$S@T@U@N#O#. . . . . . . . . . . . . . . . . . . W@X@Y@9$0$0$a$+#b$. . . . . . . . . . . ##$#c$d$. e$*#f$g$. . . . . . . . . . P+h$i$j$k$l$m$n$O#. . . . o$(#p$q$W@r$<#s$t$. . . . . . . . . . . . . . . |#1#2#u$P+v$w$x$y$. . . . . z$A$9#9#)$!$+@. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B$c#d#d#d#e#W@. . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . C$a D$s . . . . . . . . . . . . . . . E$F$G$h#. . . . . . . . . . . . . . . . . . . . k#l#H$>.. I$o@J$:$. . . . . K$L$^ ^ w#x#. M$N$O$O$P$P$Q$Q$Q$R$R$R$R$R$R$S$T$. . U$V$W$W$W$W$W$W$W$W$W$W$W$W$X$Y$Z$W@. . `$ % % % % %.%.%.%+%+%+%+%+%+%@%1$. . #%$%%%&%&%&%&%&%&%&%&%&%&%*%*%=%-%. . W@;%>%,%'%y@)%U$!%~%C@{%]%^%^%^%/%P+. . . . . . . . . . F@G@(%:$] _%K@:%. . . . . . <%S@T@U@N#O#. [%}%}%}%}%|%|%|%1%1%1%1%1%1%1%2%3%. W@X@Y@4%>#>#5%+#6%7%8%8%8%8%9%9%9%0%. . ##$#a%b%. c%d%e%f%g%h%h%h%i%i%i%j%!#. . k%l%m%m%m%m%n%r+. o%p%q%r%s%t%u%. v%<#w%x%y%z%z%A%>@. . . . . . . . . . |#1#2#B%. C%D%E%F%. . . . . G%H%9#9#)$!$+@. I%J%K%K%K%K%K%K%K%K%K%L%L%L%M%N%W@. . O%P%Q%Q%Q%Q%Q%Q%R%S%S%T%U%V%d#d#d#e#W@W%X%Y%Y%Y%Y%Y%Y%Z%Z%Z%Z%Z%Z%Z%`% &P+. ", ". . . . . . . . . . . 5+.&+&+&+&@&#&I.$&+&+&+&+&+&+&+&+&+&+&+&+&+&+&+&+&%&&&< *&=&+&+&-&^+. . . . . . . . . . . . . . . k#l#H$>.. I$o@J$:$. . . . . K$L$^ ^ w#x#U$;&>&,&,&'&)&)&!&!&~&{&{&]&^&/&(&_&:&. <&[&}&|&1&1&1&2&3&4&5&5&6&7&8&9&0&a&W@b&c&d&e&e&f&g&h&i&j&k&k&l&l&l&m&n&o&p&P+q&r&s&t&t&u&v&w&x&y&y&z&A&B&C&D&E&F&. G&H&I&J&K&y@)%U$!%~%C@D@L&M&N&O&P&b&. . . . . . . . . . F@G@(%:$] _%K@:%. . . . . . <%S@T@U@N#O##%Q&R&S&T&U&V&W&X&Y&Y&Z&`& *.*.*+*@*3%W@X@Y@4%>#>#5%+##*#*$*%*&*&***=*=*-*;*. ##$#a%b%. c%d%>*>*,*'*)*!*!*~*{*]*^*@@{@/*(*_*:*<*[*}*|*. 1*2*3*4*+$t%u%. v%<#5*5*6*7*7*8*9*W@. . . . . . . . . |#1#2#B%. C%D%E%F%. . . . . G%H%9#9#)$!$+@0*a*b*c*c*d*d*d*d*e*e*e*e*f*f*g*h*i*j*k*l*m*m*m*m*n*n*o*o*o*o*p*p*d#d#d#d#e#W@q*r*s*t*u*u*u*u*v*v*v*v*v*v*v*w*x*y*. ", ". . . . . . . . . . . y v.E E E .+^ ^ .+E E E E E E E E E E E E E E E E E ~ ^ ~ E E E n =&. . . . . . . . . . . . . . . k#l#H$>.. I$o@J$:$. . . . . z*A*^ ^ B*C*D*E*F*,&,&'&)&)&!&!&~&{&{&]&^&/&G*H*I*:$J*K*}&|&1&1&1&2&3&4&5&5&6&7&8&9&9&L*D*M*N*d&e&e&f&g&h&i&j&k&k&l&l&l&m&O*P*Q*W@R*S*s&t&T*u&v&w&x&y&y&z&A&B&C&U*D&V*W*X*Y*I&J&K&y@)%U$!%~%C@D@L&M&N&Z*`*b&. . . . . . . . . . F@G@(%:$] _%K@:%. . . . . . <%S@T@U@N#O# =.=R&S&T&U&V&W&X&Y&Y&Z&`& *.*.*+=+=@=W@X@Y@4%>#>#5%+##*#*$*%*&*&***=*=*#=$=. ##$#a%b%. c%d%>*>*,*'*%=!*!*~*{*&=*===>#,#'#_*:*<*[*]#^#. -=;=3*4*+$t%u%. v%<#5*5*6*7*7*>=,=W@. . . . . . . . . |#1#2#B%. C%D%E%F%. . . . . '=)=9#9#!=~={=]=^=/=c*c*d*d*d*d*e*e*e*e*f*f*f*(=_=:=<=[=m*m*m*m*n*n*o*o*o*o*p*p*d#d#d#d#e#W@}=s*s*t*u*u*u*u*v*v*v*v*v*v*v*v*|=1=2=", ". . . . . . . . . . . ( 3=4=4=4=5=~ 6=7=d@^ ^ ^ ^ ^ ^ 8=o 5 ^ ^ ^ ^ ^ 9=0=a=b=d c=4=4=d=G . . . . . . . . . . . . . . . k#l#H$>.. I$o@J$:$. . . . . y.e=f=g=C*:$D*E*F*h=i=j=)&k=l=m=n=o=o=p=^&/&G*G*q=e+J*K*}&r=s=t=1&u=v=w=w=w=x=y=8&9&9&z=A=M*N*d&B=C=D=g&E=F=G=H=H=I=J=l&m&O*K=L=W@R*S*M=N=O=P=v&Q=R=S=S=S=T=U=C&U*D&V=W=W@X=Y=Z=`=y@)%U$!%~%C@ -.-+-+-+-@-. . . . . . . . . . . F@G@(%:$] _%K@:%. . . . . . <%S@T@U@N#O# =.=R&#-$-%-&-*-=---;-;->-,-'-.*+=)-!-W@X@Y@4%>#>#5%+#~-{-]-^-^-/-(-=*=*#=_-. ##$#a%b%. c%d%:-<-[-[-[-}-|-~*{*&=1-2->#,#'#3-4-5-6-]#^#. +@7-8-9-0-t%u%. v%<#a-b-c-d-d-e-+@. . . . . . . . . . |#1#2#B%. C%D%E%F%. . . . . P+f-g-g-h-0*. i-j-/=k-l-m-d*d*n-o-p-q-r-f*f*f*(=s-t-<=[=m*u-v-w-n*x-y-z-A-A-B-C-V%d#d#d#e#W@}=s*D-E-F-G-u*H-I-J-J-J-K-L-v*v*|=M-O#", ". . . . . . . . . . . . . . . + }.~ N-+ O-^ ^ ^ ^ ^ ^ P-p Q-^ ^ ^ ^ ^ R-@ m.S-: e@# . . . . . . . . . . . . . . . . . . k#l#T-U-. V-o@W-:$. . . . . . . . . . . D*E*F*X-W@Y-Z-`- ;. . . . .;+;/&G*G*q=e+J*K*@;U$W@#;1&$;W@. . . :$%;8&9&9&z=A=M*N*e&&;. *;g&=;-;. . . . ;;>;m&O*K=L=W@R*S*,;P+';);v&!;. . . . ~;{;C&U*D&V=W=. . . w@];y@)%U$!%~%D@^;. . . . . . . . . . . . . . . . F@G@(%:$] _%K@/;W@. . . . W@(;S@T@U@N#O# =.=_;:;. <;[;};|;. . . . 1%1;.*+=)-!-W@X@Y@4%>#>#5%+#2;. . . . W@3;=*=*#=_-. ##$#a%b%. c%d%4;5;. . . . 6;~*{*&=1-2->#,#'#7;{=8;9;]#^#. . . . 0;(#t%u%. v%<#a;b;. . . . . . . . . . . . . . . |#1#2#B%. C%D%E%F%. . . . . . . . . . . . i-j-c;d;P+e;d*f;g;. . . h;i;f*f*(=s-t-<=[=m*j;. k;n*l;m;. . . . n;c#d#d#d#e#W@}=s*o;P+p;q;u*r;P+. . . s;t;v*v*|=M-O#", ". . . . . . . . . . . . . . . . u;X v;. w;g@^ ^ ^ ^ ^ x;s y;^ ^ ^ ^ ^ z;m.] S-v.%.. . . . . . . . . . . . . . . . . . . k#l#A;B;C;D;o@E;F;G;G;G;G;H;H;H;I;J;K;. D*E*F*L;W@s Z-`-M;. . . . N;+;/&G*G*q=e+J*K*O;e+W@P;1&Q;. . . . :$R;8&9&9&S;T;M*N*e&U;. V;g&W;X;. . . . Y;Z;`;`; >D*W@R*S*.>. +>@>v&#>. . . . $>%>C&U*D&V=W=. . . w@x@y@)%U$!%~%D@E@. . . . . . . . . . . . . . . . F@G@(%:$] _%K@&>*>=>->->->;>>>S@T@U@N#O# =,>S&'>)>!>V&~>{>. . . . ]>1;.*+=)-!-W@X@Y@4%>#>#5%+#@#. . . . . ^>=*=*#=_-. ##$#a%b%. c%d%-#;#. . . . />~*{*&=1-2->#,#'#)#!#~#{#]#^#. . . . /#(#t%u%. v%<#[#}#. . . . . . . . . . . . . . . |#1#2#B%. C%D%E%F%. . . . . . . . . . . . i-j-(>0*. _>d*:>. . . . !#<>f*f*(=s-t-<=[=m*[>. }>n*|>1>. . . . b#c#d#d#d#e#W@}=s*2>. 3>4>u*5>. . . . k%6>v*v*|=M-O#", ". . . . . . . . . . . . . . . . 7>X v;$ 1 8.~ ^ ^ ^ 8>9>0>a>$.^ ^ ^ b>c>m.y.S-d>p . . . . . . . . . . . . . . . . . . . e>k@l@m@m@n@o@o@p@q@q@r@r@s@t@t@^ f>g>h>D*E*F*L;W@s Z-k=i>j>k>k>l>m>n>/&G*G*q=e+J*K*O;e+W@P;1&Q;. . . . . o>p>q>r>s>:$M*N*e&U;. V;g&W;X;. . . . . . . . . . W@R*S*.>. +>@>v&t>u>v>v>w>x>y>C&U*D&V=W=. . . w@x@y@)%U$!%~%D@E@. . . . . . . . . . . . . . . . F@G@(%:$] _%K@L@L@M@N@O@z>Q@R@S@T@U@A>B>r+C>D>D>E>F>G>H>I>. . . . ]>1;.*+=)-!-W@X@Y@4%>#>#5%+#@#. . . . . ^>=*=*#=_-. ##$#a%b%. c%d%-#;#. . . . />J>{*&=1-2->#,#'#)#!#~#{#]#^#. . . . /#(#t%u%. v%<#[#}#. . . . . . . . . . . . . . . |#1#2#B%. C%D%E%F%. . . . . . . . . . . . i-j-(>0*. _>d*K>. . . . !#L>f*f*(=s-t-<=[=m*[>. }>n*|>1>. . . . b#c#d#d#d#e#W@}=s*2>. 3>4>u*M>N>O>O>P>Q>R>v*v*|=M-O#", ". . . . . . . . . . . . . . . . S>~ T>U>V>W>} ^ ^ ^ X>Y>V>Y>Z>^ ^ ^ 5 O-`> ,.,+,p . . . . . . . . . . . . . . . . . . . @,#,$,%,%,%,&,&,&,*,=,-,;,>,[$t@^ ^ ,,',D*E*F*L;W@s Z-k=!&!&~&{&{&^&^&/&G*H*),] J*K*O;e+W@P;1&Q;. . . . . . . . . . . M*N*e&U;. V;g&W;X;. . . . . . . . . . W@R*S*.>. +>@>v&w&x&y&y&z&A&B&C&U*D&!,Y#. . . w@x@y@)%U$!%~%D@E@. . . . . . . . . . . . . . . . F@G@(%:$] _%K@~,{,],^,/,z>Q@R@S@(,_,:,. . . . . . . . . . . . . . ]>1;.*+=)-!-W@X@Y@4%>#>#5%+#@#. . . . . ^>=*=*#=_-. ##$#a%b%. c%d%-#;#. . . . />J>{*&=1-2->#,#'#)#!#~#{#]#^#. . . . /#(#t%u%. v%<#[#}#. . . . . . . . . . . . . . . |#1#2#B%. C%D%E%F%. . . . . . . . . . . . i-j-(>0*. _>d*K>. . . . !#L>f*f*(=s-t-<=[=m*[>. }>n*|>1>. . . . b#c#d#d#d#e#W@}=s*<,. 3>4>u*u*v*v*v*v*v*v*v*v*|=[,2=", ". . . . . . . . . . . . . . @ ) },^ d U } } } } } } } } } } } } } } } } 5 } .+5 j ].1 $ . . . . . . . . . . . . . . . . . W@|,1,1,1,1,1,1,1,1,1,1,2,3,^ ^ ^ w#x#D*E*F*L;W@s Z-k=!&!&~&{&{&^&^&/&H*4,5,. J*K*O;e+W@P;6,Q;. . . . . . . . . . . M*N*e&U;. V;g&W;X;. . . . . . . . . . W@R*S*.>. +>@>v&w&x&y&y&z&A&B&C&7,8,9,. . . . w@x@y@)%U$!%~%D@E@. . . . . . . . . . . . . . . . F@G@(%:$] _%K@0,a,b,c,d,e,Q@R@S@f,@-. . . . . . . . . . . . . . . g,h,.*+=)-!-W@X@Y@4%>#>#5%+#@#. . . . . ^>=*=*#=_-. ##$#a%b%. c%d%-#;#. . . . />J>{*&=1-2->#i,'#)#!#~#{#]#^#. . . . /#(#t%u%. v%<#[#}#. . . . . . . . . . . . . . . |#1#2#B%. C%j,E%F%. . . . . . . . . . . . i-j-(>0*. _>d*K>. . . . !#L>f*f*(=s-t-<=k,m*[>. }>n*|>1>. . . . b#c#d#d#d#e#W@}=s*<,. 3>4>u*u*v*v*v*v*v*v*v*w*l,m,. ", ". . . . . . . . . . . . $ n,o,: d p,q,r,f s,s,s,s,s,s,s,s,s,s,s,s,s,s,s,t,f@u,v,} ' w,x,s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K$L$^ ^ w#x#D*E*F*L;W@s Z-k=y,z,A,A,B,B,B,C,D,E,. . J*K*O;e+W@P;6,Q;. . . . . . . . . . . M*N*e&U;. V;g&W;X;. . . . . . . . . . W@R*S*.>. +>@>v&F,G,H,I,I,I,I,I,J,K,. . . . . w@x@y@)%U$!%~%D@E@. . . . . . . . . . . . . . . . F@G@(%:$] _%K@:%. . . =L,Q@R@S@M,@-. . W@N,O,P,P,Q,R,S,S,S,S,T,U,V, *.*+=)-!-W@X@Y@4%>#>#5%+#@#. . . . . ^>=*=*#=_-. ##$#a%b%. c%d%-#;#. . . . />J>{*&=1-2->#i,'#)#!#~#{#]#^#. . . . /#(#t%u%. v%<#[#}#. . . . . . . . . . . . . . . |#1#2#B%. C%j,E%F%. . . . . . . . . . . . i-j-(>0*. _>d*K>. . . . !#L>f*f*(=s-t-<=k,m*[>. }>n*|>1>. . . . b#c#d#d#d#e#W@}=s*<,. 3>4>u*W,X,Y,Y,Y,Z,Z,Z,`, 'P+. ", ". A .'+'].1 @ m.# . . $ @'R.a #'$'b.+ # . . . . . . . . . . . . . . . . . + 1 G.%'&'*'!+='e.@ @ ,..'+'.'( . . . . . . . -';'>',''''')'!'. . . . . . K$L$^ ^ w#x#D*E*F*L;W@s Z-`-~'. . . . . . . . . . . J*K*O;e+W@P;6,Q;. . . . . . . . . . . M*N*e&U;. V;g&W;X;. . . . . . . . . . W@R*S*.>. +>@>v&{'P+. . . . . . . . . . . . . w@x@y@)%U$!%~%D@E@. . . . . . . . . . . . . . . . F@G@(%:$] _%K@:%. . . W@]'^'R@S@/'('. . @-_'R&S&T&V&V&W&X&Y&Y&Z&:' *.*.*+=)-!-W@X@Y@4%>#>#5%+#@#. . . . . ^>=*=*#=_-. ##$#a%b%. c%d%-#;#. . . . />J>{*&=1-2->#i,'#)#!#~#{#]#^#. . . . /#(#t%u%. v%<#[#}#. . . . . . . . . . . . . . . |#1#2#B%. C%j,E%F%. . . . . W@<'['['}'|'. i-j-(>0*. _>d*K>. . . . !#L>f*f*(=s-t-<=k,m*[>. }>n*|>1>. . . . b#c#d#d#d#e#W@}=s*<,. 3>4>u*1'W@. . . . . . . . . . ", "@ 2'} } : 3'4'5'6'7'8'9'0'a'b'9 . . . . . . . . . . . . . . . . . . . . @ 1 1 1 c'd'e'U k f'4'4'g'} } } h'+ . . . . . . i'j'l@m@m@n@o@k'W@. . . . . K$L$^ ^ w#x#D*E*F*L;W@s Z-`-l'. . . . . m'n'n'o'1$. J*K*O;e+W@P;6,Q;. . . . . #%p'q'r's'. M*N*e&U;. V;g&W;X;. . . . . . . . . . W@R*S*.>. +>@>v&t'. . . . . u'v'w'x'b&. . . . w@x@y@)%U$!%~%D@E@. . . . . . . . . . . . . . . . F@G@(%:$] _%K@:%. . . . y'z'R@S@T@A'W@. =.=R&B'C'D'V&W&E'F'G'H'I'J'.*.*+=)-!-W@X@Y@4%>#>#5%+#@#. . . . . ^>=*=*#=_-. ##$#a%b%. c%K'-#;#. . . . />J>{*&=1-2->#i,'#)#!#~#{#]#^#. . . . /#(#t%u%. v%<#[#}#. . . . . . . . . . . . . . . |#1#2#B%. C%j,E%F%. . . . . L'M'9#9#9#N'Y#i-j-(>0*. _>d*K>. . . . !#L>f*f*(=s-t-<=k,m*[>. }>n*|>1>. . . . b#c#d#d#d#e#W@}=s*<,. 3>4>u*5>. . . . . O'P'b#Q'0*. ", "+ R'S'T'o Q-g.g.: , , U'^ 5 -.V'u;u;W'9 . Y.X'u;u;u;u;u;u;u;u;u;u;Y's @ Z'`'`'`'d , U'^ ^ a g. ).)+)T'S'@)+ . . . . . . k#l#l@#)$)n@o@J$:$. . . . . K$L$^ ^ w#x#D*E*F*L;W@s Z-`-l'. . . . |,%)&)&)*)=):$J*K*O;e+W@P;6,Q;. . . . W@-);)>),)')))M*N*e&U;. V;g&W;X;. . . . . . . . . . W@R*S*.>. +>@>v&t'. . . . w@!)~){)])^)r+. . . w@x@y@)%U$!%~%D@E@. . . . . . . . . . . . . . . . F@G@(%:$] _%K@:%. . . . @-/)R@S@T@()+@. =.=_;_)O#:)<)[)})#%3%3%|)1)h,.*+=)-!-W@X@Y@4%>#>#5%+#@#. . . . . ^>=*=*#=_-. ##$#a%b%. c%K'-#;#. . . . />J>{*&=1-2->#i,'#)#!#~#{#]#^#. . . . /#(#t%u%. v%<#[#}#. . . . . . . . . . . . . . . |#1#2#B%. C%j,E%F%. . . . . G%H%9#9#)$!$+@i-j-(>0*. _>d*K>. . . . !#L>f*f*(=s-t-<=k,m*[>. }>n*|>1>. . . . b#c#d#d#d#e#W@}=s*<,. 3>4>u*5>. . . . 2)3)4)5)5)6)Y#", ". . . . # 1 >.7)2 8)9)~ 0)a)b)c)} } d)5+. e)f)< U'g)< b>b>< } 5.U'v.h)+ i)j)a)k)l)m)n)o)U p)q)>.@ . . . . . . . . . . . k#l#r)s)t)u)o@J$:$. . . . . K$L$^ ^ w#x#D*E*F*L;W@s Z-`-l'. . . . N;+;/&G*G*q=e+J*K*O;e+W@P;6,Q;. . . . :$v)w)9&9&z=A=M*N*e&U;. V;g&W;X;. . . . . . . . . . W@R*S*.>. +>@>v&t'. . . . $>x)C&U*D&V=W=. . . w@x@y@)%U$!%~%D@E@. . . . . . . . . . . . . . . . F@G@(%:$] _%K@:%. . . . W@y)z)S@T@A)B). =.=_;C). D)E)};{>. . . . ]>1;.*+=)-!-W@X@Y@4%>#>#5%+#@#. . . . . ^>=*=*#=_-. ##$#a%b%. c%K'-#;#. . . . />J>{*&=1-2->#i,'#)#!#~#{#]#^#. . . . /#(#t%u%. v%<#[#}#. . . . . . . . . . . . . . . |#1#2#B%. C%j,E%F%. . . . . G%H%9#9#)$!$+@i-j-(>0*. _>d*F)W%. . . {=G)f*f*(=s-t-<=k,m*[>. }>n*|>1>. . . . b#c#d#d#d#e#W@}=s*<,. 3>4>u*5>. . . . k%H)v*|=|=M-O#", ". . . . . . . $ $ + I)I.J)=.K)L)M)M)N)$ . >.C.O)!+P)Q)b>^ 8=R)o,U S)+ . 1 =.=.=.T)9 # U)n e y.. . . . . . . . . . . . . k#l#V)W)X)Y)o@Z)h>. . . . ] `)[$^ ^ w#x#D*E*F* !K;.!Z-+!@!W@. . P+#!$!/&G*G*q=e+J*K*%!T$Y;&!6,*!w@. . . h>=!w)9&9&z=A=M*N*e&-!:$;!g&W;X;. . . . . . . . . . W@R*S*>!U$,!'!v&)!U$. . . !!~!C&U*D&V=W=. . . w@x@y@{!]!^!/!(!E@. . . . . . . . . . . . . . . . F@G@_!:!@-{*&=1-2->#i,'#l!+@m!n!]#^#. . . . /#(#o!p!{=q!<#[#}#. . . . . . . . . . . . . . . |#1#2#r!Y#s!t!u!v!P+. . . P+w!x!9#9#)$!$+@i-j-y!z!{@A!d*B!C!+@P+W=D!E!f*f*(=s-t-<=k,m*F!W@G!n*H!I!P+. . P+J!K!d#d#d#e#W@}=s*L!+@M!N!u*O!+@. . . &P!v*|=|=M-O#", "$ G.s,s,s,s,Q!R!q,q,S!< T!U!: : : V!W!s . . ] K } X!Y!^ ^ Z!`! ~a y . @ .~+~: : : @~P-#~< $~%~&~s,s,s,C.+ . . . . . . . *~l#l@=~-~;~o@>~,~'~'~)~)~!~~~t@^ ^ {~]~D*E*F*^~/~(~)&k=_~:~<~<~[~}~^&/&G*G*|~K;J*K*}&1~2~3~6,4~5~6~6~6~7~9&w)9&9&8~9~M*N*d&0~a~b~g&W;X;. . . . . . . . . . W@R*S*c~d~e~f~v&g~h~i~i~j~k~B&C&U*D&l~U$. . . w@x@y@m~n~o~B@(!E@. . . . . . . . . . . . . . . . F@G@p~q~r~s~[!:%. . . . . =t~S@T@1!u~{= =.=R&v~w~x~V&W&y~z~A~B~C~D~.*.*+=E~!-W@X@Y@F~G~H~ #I~J~K~L~M~N~O~P~=*=*#=Q~. ##$#%#R~S~T~U~>*V~W~X~Y~Z~`~J>{*&= {.{>#i,'#+{@{#{[*]#^#. . . . /#(#_#${%{&{<#[#}#. . . . . . . . . . . . . . . |#1#2#*{={-{4#5#;{>{,{,{,{'{){9#9#9#)$!{+@~{j-/={{]{^{d*d*/{({_{:{<{f*f*f*(=[{}{<=k,m*|{1{2{n*n*3{4{5{5{6{7{d#d#d#d#e#W@}=s*8{9{0{a{u*b{c{d{d{e{f{g{v*|=|=h{W%", "@ i{} } } } d : 2.2.2.j..+.+j{k{`!`!l{( . . # O.m{q v,U .++~+,n{o{>.. y.p{`!`!`!k{7+~ b>a q{} } } } } ).@ . . . . . . . r{s{l@m@m@n@o@o@p@q@q@r@r@s@t@t@^ t{u{v{))w{F*,&,&)&)&k=!&!&~&{&]&^&^&/&G**)x{. y{K*}&|&1&1&6,2&3&4&5&5&7&7&w)9&9&z{h>A{N*d&e&e&f&g&B{C{. . . . . . . . . . W@D{s&t&t&T*u&v&w&y&y&E{z&A&B&C&U*F{G{W@. . . w@H{y@z@A@B@C@I{J{. . . . . . . . . . . . . . . . K{G@G@L{I@K@[!M{. . . . . W@N{z)U@1!O{O#>#P{R&S&U&V&V&W&X&Y&Y&Z&:' *.*.*+=E~Q{W@R{Y@Z@`@ #+#I~#*#*$*%*&*S{**=*=*=*T{. U{V{%#&#*#=#U~>*'*,*'*%=!*~*J>{*&=W{X{o%Y{'#_*:*<*[*Z{`{. . . . ].]_#_#:#<#<#+]}#. . . . . . . . . . . . . . . @]#]2#3#4#4#4#5#6#7#7#7#8#9#9#9#9#9#$]%]W@&]*]/=c*c*d*d*d*d*e*e*e*e*f*f*f*g*=]]@-];]m*m*m*m*n*n*o*o*o*o*p*p*d#d#d#d#>]W@,]s*']t*u*u*u*v*v*v*v*v*v*v*v*|=)]!]W@", "$ ~]> {]{]{]]].'p p p U.^]a /](]y 1 m.. . . . + T.p U.@)_]:]<]p 1 . . . ] ] @ T)[]}]} |]1]L 2]> {]{]{]3]. . . . . . . . y.4]5]6]7]7]8]9]9]9]0]a]a]b]c]c]d]e]f]W@W@g]h]i]j]k]k]k]l]m]m]n]o]o]o]p]q]r]U$. s]t]u]v]w]w]w]w]x]x]x]y]z]z]A]B]C]D]. :$E]F]G]H]H]I]J]1$. . . . . . . . . . . K]L]M]M]M]N]O]O]P]P]P]Q]R]R]R]S]T]w@. . . . W@U]V]W]X]Y]Y]Z]`]. . . . . . . . . . . . . . . . ^.^+^@^#^$^%^&^. . . . . . *^=^-^;^>^{=r+,^'^'^)^!^~^{^]^^^^^^^/^(^_^_^:^<^[^. }^|^1^2^3^4^5^6^6^6^7^8^9^0^0^a^b^c^. d^e^f^g^g^h^h^i^j^k^j^l^l^m^n^n^o^p^. r+q^r^s^t^t^u^v^5;. . . . +@w^x^y^z^z^A^B^2=. . . . . . . . . . . . . . . {@C^D^E^F^F^F^F^F^G^H^H^H^I^I^I^I^J^K^2). W@L^M^N^N^O^O^O^O^P^P^P^P^Q^Q^R^S^|'. :$T^U^V^V^V^V^V^W^W^W^W^W^X^X^X^X^Y^Z^. `^ /./+/@/@/#/#/$/$/$/%/%/%/%/&/*/=/. ", ". . $ $ $ $ $ . . . . . @ -/2.5 +~;/>/,/h)7)1 + . . . # + # . . . m.>.7)G.'/{ |]d } -+c'$ . . $ $ $ $ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . r.L J D.g.n k )/!/~/n.V>V>V>V>V>V>V>V>V>o,{/]/w k g ^/~.//(/$ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . $ s (/_/g#:/ c #895E3F", ", c #574D47", "' c #070606", ") c #735031", "! c #443222", "~ c #747654", "{ c #CDF4D0", "] c #A6C97F", "^ c #2EEF26", "/ c #03F505", "( c #579329", "_ c #03D205", ": c #1EB70F", "< c #59F159", "[ c #2DD32B", "} c #50D744", "| c #92EF9B", "1 c #AFF4AE", "2 c #55AF29", "3 c #F56F80", "4 c #F54D8C", "..................................................", "..................................................", "..................................................", "..................................................", "..................................................", "..................................................", "..................................................", "..................................................", "..................................................", "..................................................", "..................+@..............................", ".................+#$$$$$..........................", ".................@@$$$$$#.........................", "...................@%%%%@.........................", "..................+#%%&&@.........................", "..................+#%%&&+.........................", "...................##%&*=#@&%.....................", "...................@#%&&+@-;>>+...................", "....................#%%&..=-;--+..................", ".....................+%&..+-;-**=.................", "....................+......#-;;#=.................", "..................,'''%.....+-)#..................", ".................!!)),'%.....*;>..................", "................&';--;,'+....+=>-.................", "................,,---;!'%.....*->#................", "................';-);)'',.....#=;>................", "...............@';)'!;'''.....+-->$...............", "...............$';-!'-'''......=;>>@..............", "...............~')---=,''+.....#-;>-..............", "...............!'!*=--)''+.....#-;>>+.............", "...............'''**-''''%....*-;;>>#.............", "...............'''-*!''''~.+@=---;>)@.............", "..............+''';*!!)'',---;-->));..............", "..............@''''!'!!'';--->))));...............", "..............&'''''''''!;-=-))))>+...............", "..............~''!!!'''',;;=->)))@................", "..............''-=*->!'!>;==->)>&.................", "............+#;--==*;->;>-*=->);..................", "...........@****=-===;;;;=*-->)+..................", "..........{]****=;;---;>-==-;>)...................", "..........@**]]**=;;--;);*=-;>)...................", "..........***]****=;;;>>-*&-;>)...................", "..........******=**=--;)&^//(>)...................", "..........=*****--*==--(/////()...................", "..........]]]***->=*=-$^////_:).......^/<.........", ".........-*==}////___(......=**%////____^......//___........", "....&..%+1////_2->=**^////_____.....|//___{.......", "...@'#.!$1////__;;=*]/////_____{....///___^.......", "...@'%.'~1////__~;=*^////______<....//____[.......", "....,+.~#(____}.1//__..[__//}...", ".//////__(-*===---;=**=*_~;-_____.|/__}..1____1...", "|/////__2-****=--;;>=***:;>;:____{//__|...___[....", "__//___2-=*****---;>-***2>>;2____^//__....{[[{....", "_____:$-=***=-;;;;>>;***2-;-(_____//__............", "|____;3==******-;;>>-***2;>;&[_____/_}............", ".{}2$43*********---;-***2&&&@|_______.............", "..***43*****=**=--->-***......______[.............", "..***43*****==*=--->-**#......{_____1.............", "..@*=44********=--;>-=*#+.......}__|..............", "...*3=33=-====-;;>>~-***+.........................", "...@=*****====-;--->2=*=+.........................", "...+********=**---;>_2*@..........................", "....*********==---;~__............................", "....#*******=*=-;;>2_}............................", ".....***=****=;>>;>(_.............................", ".....*****=--;;--->2..............................", ".....@********=--->+..............................", "......==***=*==--;#...............................", ".......===**===;;@................................", "........+%-==-;&..................................", "..........+;;-@..................................."}; sweep-0.9.3/pixmaps/hand_mask.xbm0000644000175000017500000000045310777660150015515 0ustar useruser#define hand_mask_width 16 #define hand_mask_height 16 static unsigned char hand_mask_bits[] = { 0x60, 0x00, 0xf8, 0x06, 0xfc, 0x0f, 0xfc, 0x3f, 0xfc, 0x7f, 0xf8, 0x7f, 0xf8, 0x7f, 0xfc, 0x7f, 0xfe, 0x3f, 0xfe, 0x3f, 0xfe, 0x3f, 0xfe, 0x3f, 0xfe, 0x3f, 0xfc, 0x3f, 0xfc, 0x1f, 0xf0, 0x0f}; sweep-0.9.3/pixmaps/stop.xpm0000644000175000017500000000033410777660150014571 0ustar useruser/* XPM */ static char * stop_xpm[] = { "10 10 2 1", " c None", ". c #FFFFFF", " ", " ........ ", " ........ ", " ........ ", " ........ ", " ........ ", " ........ ", " ........ ", " ........ ", " "}; sweep-0.9.3/pixmaps/hand.xpm0000644000175000017500000000122010777660150014511 0ustar useruser/* XPM */ static char * hand_xpm[] = { "16 16 19 1", " c None", ". c #000000", "+ c #FFFFFF", "@ c #313131", "# c #444444", "$ c #767676", "% c #797979", "& c #585858", "* c #DADADA", "= c #131313", "- c #C0C0C0", "; c #DCDCDC", "> c #E3E3E3", ", c #818181", "' c #C9C9C9", ") c #ECECEC", "! c #141414", "~ c #747474", "{ c #939393", " ", " ", " . ", " ..+... ", " .+@+#+.. ", " .+$+%+&*. ", " .=+-+-+-*. ", " .;.++++++*. ", " .>+,+'+'+'*. ", " .++-+*+)')*. ", " .++++++++)*. ", " .)++++++))*. ", " !~'*******{. ", " .......... ", " ", " "}; sweep-0.9.3/pixmaps/scrubby_system.xpm0000644000175000017500000002361610777660150016671 0ustar useruser/* XPM */ static char * scrubby_system_xpm[] = { "50 48 317 2", " c None", ". c #7A7A7A", "+ c #7B7B7B", "@ c #7B7A7A", "# c #757574", "$ c #929290", "% c #9F9E9D", "& c #848482", "* c #777776", "= c #787878", "- c #8B8A8A", "; c #7F7E7C", "> c #B0B0B0", ", c #737373", "' c #9B9A99", ") c #696556", "! c #575D58", "~ c #595D59", "{ c #645E50", "] c #635C4E", "^ c #535550", "/ c #625C50", "( c #68635A", "_ c #40433F", ": c #363730", "< c #4C4D4A", "[ c #444444", "} c #505050", "| c #4A4A4A", "1 c #474746", "2 c #484847", "3 c #888786", "4 c #9C9B9B", "5 c #69685C", "6 c #454A42", "7 c #4A4B48", "8 c #494746", "9 c #494846", "0 c #464643", "a c #434340", "b c #383836", "c c #373737", "d c #3C3C3C", "e c #636059", "f c #919090", "g c #747874", "h c #636864", "i c #373837", "j c #3F3F3F", "k c #333332", "l c #30302F", "m c #2F2F2E", "n c #2E2E2D", "o c #2B2B2A", "p c #434343", "q c #464645", "r c #4D4C4A", "s c #9A9999", "t c #656464", "u c #9B9A9A", "v c #525853", "w c #424242", "x c #4B4B4B", "y c #AAAAAA", "z c #C4C4C4", "A c #D5DAD5", "B c #DBE0DB", "C c #D4D5D4", "D c #D8D8D8", "E c #414141", "F c #404140", "G c #B3B2B2", "H c #969595", "I c #535953", "J c #4A4B4A", "K c #343434", "L c #A8A8A8", "M c #474747", "N c #ABBFAB", "O c #ACDAAC", "P c #828482", "Q c #909090", "R c #757575", "S c #9D9C9B", "T c #8C8B8B", "U c #717571", "V c #535453", "W c #9F9F9F", "X c #3A3A3A", "Y c #202820", "Z c #649864", "` c #111511", " . c #A2A2A2", ".. c #7C7D7A", "+. c #7A7979", "@. c #90918F", "#. c #6C716C", "$. c #3F3F40", "%. c #7C7C7C", "&. c #616C61", "*. c #151F15", "=. c #5D915D", "-. c #2B432B", ";. c #425D42", ">. c #5B615B", ",. c #777574", "'. c #848484", "). c #3C3B3B", "!. c #8E8D8D", "~. c #64695F", "{. c #3E3E3F", "]. c #446344", "^. c #669E66", "/. c #74B474", "(. c #70AD70", "_. c #7DC37D", ":. c #263B26", "<. c #454545", "[. c #5F5E5D", "}. c #AFAEAE", "|. c #858484", "1. c #6D706A", "2. c #4A4B4C", "3. c #1B291B", "4. c #649B64", "5. c #91E091", "6. c #95E795", "7. c #67A067", "8. c #141E14", "9. c #444443", "0. c #595755", "a. c #94908C", "b. c #6B6A6A", "c. c #7E7F7D", "d. c #5E625E", "e. c #172317", "f. c #81C881", "g. c #94E694", "h. c #679F67", "i. c #484848", "j. c #A29F9C", "k. c #3B3B3B", "l. c #5A5F59", "m. c #333434", "n. c #2C442C", "o. c #6DAA6D", "p. c #2C432C", "q. c #807F78", "r. c #A9A8A8", "s. c #818080", "t. c #696965", "u. c #3C3C3B", "v. c #5C8F5C", "w. c #2E462E", "x. c #90867E", "y. c #8F8F8F", "z. c #646464", "A. c #7A7A79", "B. c #464A46", "C. c #497149", "D. c #4A724A", "E. c #4B4B4A", "F. c #6E6C69", "G. c #888888", "H. c #848483", "I. c #4B4D45", "J. c #333F33", "K. c #759875", "L. c #464646", "M. c #6B6969", "N. c #7A7A77", "O. c #5F615D", "P. c #3E3E3E", "Q. c #353535", "R. c #9C9D9C", "S. c #696868", "T. c #929191", "U. c #5E5E5E", "V. c #2B2E2A", "W. c #3D3D3D", "X. c #656362", "Y. c #959291", "Z. c #9E9D9D", "`. c #7F7F7E", " + c #31342C", ".+ c #545554", "++ c #898888", "@+ c #949393", "#+ c #727272", "$+ c #7A776B", "%+ c #606060", "&+ c #888787", "*+ c #878686", "=+ c #929292", "-+ c #979696", ";+ c #A2A1A1", ">+ c #ADADAD", ",+ c #8A8A89", "'+ c #828685", ")+ c #4F5050", "!+ c #5D5D5D", "~+ c #9B9B9B", "{+ c #999999", "]+ c #959595", "^+ c #8B8B8B", "/+ c #898989", "(+ c #8A8A8A", "_+ c #8D8D8D", ":+ c #B3B3B3", "<+ c #C3C3C3", "[+ c #A5A5A5", "}+ c #7E7D7D", "|+ c #807F7F", "1+ c #828181", "2+ c #8D8C8C", "3+ c #949494", "4+ c #979797", "5+ c #868686", "6+ c #838383", "7+ c #858585", "8+ c #919191", "9+ c #989898", "0+ c #C9C9C9", "a+ c #D7D7D7", "b+ c #5F5F5F", "c+ c #8A8989", "d+ c #939393", "e+ c #828282", "f+ c #7D7D7D", "g+ c #7E7E7E", "h+ c #808080", "i+ c #9D9D9D", "j+ c #A1A1A1", "k+ c #B1B1B1", "l+ c #B4B4B4", "m+ c #BBBBBB", "n+ c #C0C0C0", "o+ c #D2D2D2", "p+ c #BCBCBC", "q+ c #6E6E6E", "r+ c #777777", "s+ c #767676", "t+ c #797979", "u+ c #7F7F7F", "v+ c #818181", "w+ c #8E8E8E", "x+ c #A9A9A9", "y+ c #AEAEAE", "z+ c #AFAFAF", "A+ c #B2B2B2", "B+ c #B6B6B6", "C+ c #B7B7B7", "D+ c #C2C2C2", "E+ c #8C8C8C", "F+ c #363636", "G+ c #6F6E6E", "H+ c #9A9A9A", "I+ c #B5B5B5", "J+ c #B8B8B8", "K+ c #656565", "L+ c #0B0B0B", "M+ c #2F2F2F", "N+ c #565555", "O+ c #767575", "P+ c #9C9C9C", "Q+ c #9E9E9E", "R+ c #ACACAC", "S+ c #747474", "T+ c #000000", "U+ c #0C0C0C", "V+ c #2E2D2D", "W+ c #5A5959", "X+ c #757474", "Y+ c #A0A0A0", "Z+ c #A3A3A3", "`+ c #A4A4A4", " @ c #A6A6A6", ".@ c #5B5B5B", "+@ c #080808", "@@ c #2D2D2D", "#@ c #5D5C5C", "$@ c #717070", "%@ c #A7A7A7", "&@ c #ABABAB", "*@ c #727171", "=@ c #3E3D3D", "-@ c #040303", ";@ c #313131", ">@ c #595858", ",@ c #555555", "'@ c #2C2C2C", ")@ c #313030", "!@ c #565656", "~@ c #6C6B6B", "{@ c #A3A2A2", "]@ c #434242", "^@ c #0D0D0D", "/@ c #2B2B2B", "(@ c #515050", "_@ c #6E6D6D", ":@ c #838282", "<@ c #A4A3A3", "[@ c #797878", "}@ c #605F5F", "|@ c #393939", "1@ c #292929", "2@ c #8F8E8E", "3@ c #706F6F", "4@ c #555454", "5@ c #242424", "6@ c #070707", "7@ c #2A2929", "8@ c #5A5A5A", "9@ c #737272", "0@ c #747373", "a@ c #424141", "b@ c #333333", " ", " ", " ", " ", " ", " ", " ", " . + + @ + + @ @ # $ % & * = - ; > ", " , ' ) ! ~ { ] ^ / ( _ : < [ } | 1 2 3 ", " 4 5 6 [ [ [ 7 8 9 0 a b c d [ [ [ e ", " f g h i [ [ j c k l m n o l p [ q r s ", " t u v w [ [ [ x y z A B C D E [ [ F G ", " x H I J [ [ [ K L M N O P Q R [ [ E S ", " T U V [ [ [ [ W X Y Z ` } .[ [ [ .. ", " +.@.#.$.[ [ [ %.&.*.=.-.;.>.[ [ [ ,.'. ", " ).!.~.{.[ [ [ [ ].^./.(._.:.[ [ <.[.}. ", " |.1.2.[ [ [ [ 3.4.5.6.7.8.[ [ 9.0.a. ", " b.c.d.[ [ [ [ [ e.f.g.h.[ [ [ [ i.j. ", " k.T l.m.[ [ [ [ [ n.o.p.[ [ [ [ [ q.r. ", " s.t.u.[ [ [ [ [ [ v.w.[ [ [ [ 1 x.y. ", " z.A.B.[ [ [ [ [ [ C.D.[ [ [ [ E.F.G. ", " | H.I.[ [ [ [ [ [ J.K.[ [ [ [ L.M.N. ", " + O.P.[ [ [ [ [ Q.R.[ [ [ [ [ S.T. ", " U.A.V.[ [ [ [ [ [ i.W.[ [ [ <.X.Y.Z. ", " j `. +[ [ [ p [ [ [ p [ [ k..+T ++@+ ", " #+$+[ p j E <.L.x %+'.&+*+- =+-+;+>+> L ", " U.,+'+)+!+z.&+*+|.++!.@+~+{+]+y.^+/+(+_+]+~+:+<+[+ ", " k.}+|+s.1+*+2+3+-+4+3+^+5+6+6+7+5+G.(+^+_+y.8+8+9+W y 0+a+ ", " b+}+c+f 3+4+d+/+e+f+%.g+h+e+6+'.5+G.(+^+_+y.Q =+=+i+j+> k+l+m+n+o+p+ ", " q+]+4+3+G.r+s+r+t+. %.g+u+v+e+'.5+G.(+^+_+w+]+{+j+x+y+z+> A+:+l+B+C+p+D+p+E+ ", " F+G+y.H+4+E+g+= t+. %.f+u+v+e+'.5+G./+w+]+i+i+3+d+~+y z+> A+:+l+I+B+J+C+y+K+ ", " L+M+N+O+=+~+P+Q e+%.+ f+u+v+e+'.G.y.P+j+ .3+H+d+Q Q+R+z+> k+A+l+I+:+L 8+S+ ", " T+T+U+V+W+X+&+Y+Q+3+G.u+u+e+G.3+P+Z+`+[+ @ @ @j+L R+>+z+> k+A+:+P+v+.@ ", " T+T++@@@#@$@E+j+Z+~+Q 4+Q+Y+j+ .`+[+ @%@L y &@R+>+z+A+`+@+*@=@ ", " T+-@;@>@#+G.4+ @j+W Y+j+ .`+[+ @%@L y &@y+ @4 + ,@'@ ", " T+L+)@!@~@e+s {@[+ . .Z+`+ @%@y .Q+*+$@]@ ", " T+^@/@(@_@:@-+`+%@`+<@ .4+2+[@}@|@ ", " L+1@N+*@f+d+2@++@ 3@4@5@ ", " 6@7@8@9@0@t a@ ", " b@;@ ", " ", " ", " ", " ", " ", " ", " ", " "}; sweep-0.9.3/pixmaps/Makefile.am0000644000175000017500000000061510777660150015114 0ustar useruser#EXTRA_DIST = edit.xpm ff.xpm horiz.xpm horiz_plus.xpm loop.xpm lowleft.xpm \ # lowright.xpm nexttrk.xpm noloop.xpm playpaus.xpm playpsel.xpm \ # prevtrk.xpm rew.xpm save.xpm stop.xpm sweep.png upleft.xpm \ # upright.xpm vol.xpm zoom_in.xbm zoom_in.xpm zoom_in_mask.xbm \ # zoom_out.xbm zoom_out.xpm zoom_out_mask.xbm #pixmapdir = $(datadir)/pixmaps #pixmap_DATA = sweep.png sweep-0.9.3/pixmaps/recpausesel.xpm0000644000175000017500000000127010777660150016117 0ustar useruser/* XPM */ static char * recpausesel_xpm[] = { "23 22 3 1", " c None", ". c #FFFFFF", "+ c #DE5129", " ", " ", " ", " ", " ", " ", " ...... ", " ..++++.. .. .. ", " ..++++++.. .. .. ", " .++++++++. .. .. ", " .++++++++. .. .. ", " .++++++++. .. .. ", " .++++++++. .. .. ", " ..++++++.. .. .. ", " ..++++.. .. .. ", " ...... ", " ... ... . ", " . . . ", " .. .. . ", " . . . ", " ... ... ... ", " "}; sweep-0.9.3/pixmaps/pencil.xpm0000644000175000017500000000070610777660150015061 0ustar useruser/* XPM */ static char * pencil_xpm[] = { "15 18 4 1", " c None", ". c #FFFFFF", "+ c #000000", "@ c #E1E896", " ..... ", " .+++... ", " ..+@@++. ", " .+@@@@+. ", " ..++@@+.. ", " .+@@+++. ", " ..+@@@+.. ", " .+@@@@+. ", " ..+@@@+.. ", " .+@@@@+. ", " .+@@@+.. ", " .++@@+. ", " .++++.. ", " .+++.. ", " .++.. ", " .+.. ", " ... ", " "}; sweep-0.9.3/pixmaps/record_dialog.xpm0000644000175000017500000000060010777660150016375 0ustar useruser/* XPM */ static char * record_dialog_xpm[] = { "24 10 3 1", " c None", ". c #FFFFFF", "+ c #DE5129", " ...... ", " ..++++.. ", " ..++++++.. ", " .++++++++. ", " .++++++++. ", " .++++++++. ", " .++++++++. ", " ..++++++.. .. .. .. ", " ..++++.. .. .. .. ", " ...... "}; sweep-0.9.3/pixmaps/done.xpm0000644000175000017500000000115710777660150014535 0ustar useruser/* XPM */ static char * done_xpm[] = { "20 22 3 1", " c None", ". c #000000", "+ c #14E600", " ", " ", " ", " .. ", " .++. ", " .++. ", " .++. ", " .. .++. ", " .++. .++. ", " .++.. .++. ", " .++..++. ", " .+++.++. ", " .++++. ", " .+++. ", " .++. ", " .+. ", " . ", " ", " ", " ", " ", " "}; sweep-0.9.3/pixmaps/horiz.xpm0000644000175000017500000000376210777660150014747 0ustar useruser/* * Sweep, a sound wave editor. * * Copyright (C) 2000 Conrad Parker * * 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. */ static char * horiz_xpm[] = { "32 32 3 1", " c None", ". c #000000", "+ c #FFFFFF", " ", " +.+ ", " +.+ ", " +.+ ", " + +.+ + ", " +.+ +.+ +.+ ", " +..+++.+++..+ ", " +.....+.+.....+ ", "+...+++.+.+++...+ ", " +.....+.+.....+ ", " +..+++.+++..+ ", " +.+ +.+ +.+ ", " + +.+ + ", " +.+ ", " +.+ ", " +.+ ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "}; sweep-0.9.3/pixmaps/info.xpm0000644000175000017500000000111610777660150014536 0ustar useruser/* XPM */ static char * info_xpm[] = { "20 20 4 1", " c None", ". c #FFFFFF", "+ c #5757D1", "@ c #9F9FCE", " ", " ........ ", " ...++++++... ", " ..++++++++++.. ", " ..+++++.@+++++.. ", " .+++++...@+++++. ", " ..+++++...@+++++.. ", " .+++++++.@+++++++. ", " .++++++++++++++++. ", " .+++++@...@++++++. ", " .++++++@..+++++++. ", " .+++++++..+++++++. ", " .+++++++..+++++++. ", " ..+++++@..@+++++.. ", " .++++......++++. ", " ..++++++++++++.. ", " ..++++++++++.. ", " ...++++++... ", " ........ ", " "}; sweep-0.9.3/pixmaps/cursor-openhand.xbm0000644000175000017500000000060410777660150016675 0ustar useruser#define cursor_openhand_width 16 #define cursor_openhand_height 16 #define cursor_openhand_x_hot 0 #define cursor_openhand_y_hot 0 static unsigned char cursor_openhand_bits[] = { 0x80, 0x01, 0x58, 0x0e, 0x64, 0x12, 0x64, 0x52, 0x48, 0xb2, 0x48, 0x92, 0x16, 0x90, 0x19, 0x80, 0x11, 0x40, 0x02, 0x40, 0x04, 0x40, 0x04, 0x20, 0x08, 0x20, 0x10, 0x10, 0x20, 0x10, 0x00, 0x00 }; sweep-0.9.3/pixmaps/speex_logo.xpm0000644000175000017500000010125310777660150015752 0ustar useruser/* XPM */ static char * speex_logo_xpm[] = { "181 80 257 2", " c None", ". c #D6C938", "+ c #7493B6", "@ c #0F4D97", "# c #FEE909", "$ c #B34827", "% c #DABAB4", "& c #FFF001", "* c #FFFFFF", "= c #E90C0B", "- c #97C388", "; c #B4DB54", "> c #C8938B", ", c #C55C54", "' c #D3E3F0", ") c #AAC2D8", "! c #C6635C", "~ c #9CF565", "{ c #D4ACA6", "] c #009900", "^ c #CA7B73", "/ c #AF1D30", "( c #C56B64", "_ c #FE0102", ": c #8DD262", "< c #FCFAF9", "[ c #FBD718", "} c #9DFA66", "| c #C73933", "1 c #D5AE2C", "2 c #F0E5E3", "3 c #E2BE24", "4 c #CA8A83", "5 c #C74D45", "6 c #9DB54D", "7 c #CB2B26", "8 c #E1C9C5", "9 c #E51412", "0 c #E6CB26", "a c #8FACC9", "b c #F9F6F4", "c c #ECDDDA", "d c #0A50A1", "e c #336974", "f c #D32923", "g c #5A3462", "h c #C88179", "i c #C6433B", "j c #A9E55D", "k c #9AED63", "l c #C7DAC8", "m c #C4554D", "n c #6B6C80", "o c #F6F0EF", "p c #FFFE01", "q c #A3B3CA", "r c #DDC0BB", "s c #2C9523", "t c #D29A94", "u c #9AC955", "v c #FBE212", "w c #FBF9F9", "x c #245796", "y c #D6B2AC", "z c #94E160", "A c #D4221E", "B c #FA0506", "C c #CADAE7", "D c #FCCD4D", "E c #F86C16", "F c #A8C8A6", "G c #E5D2CE", "H c #C5D245", "I c #F60909", "J c #FBCB17", "K c #A0F263", "L c #8B8B4D", "M c #C4766E", "N c #F5F8F5", "O c #9BD85A", "P c #A4CB9A", "Q c #E4CECA", "R c #E40F0D", "S c #AA7333", "T c #D1E2D4", "U c #76B555", "V c #4878AC", "W c #428D29", "X c #FA9019", "Y c #F2E9E7", "Z c #A3944C", "` c #E9CA1A", " . c #AFA044", ".. c #CB251E", "+. c #BD4E45", "@. c #FBF8F6", "#. c #E5EAF1", "$. c #CFA19B", "%. c #E9EFF6", "&. c #69AB26", "*. c #DD1512", "=. c #C8322C", "-. c #EADAD6", ";. c #CC9C94", ">. c #E8D6D3", ",. c #EDE0DE", "'. c #FDFCFB", "). c #F00909", "!. c #F1F5F2", "~. c #8FD861", "{. c #E91211", "]. c #E2ECE4", "^. c #FEFBFA", "/. c #DB1916", "(. c #D41B16", "_. c #94A82D", ":. c #8ACD63", "<. c #F1E7E5", "[. c #EFE3E0", "}. c #8E4351", "|. c #F7F1F0", "1. c #F9F4F2", "2. c #FCD58E", "3. c #499E30", "4. c #86C959", "5. c #BED6BD", "6. c #FEF805", "7. c #842A49", "8. c #3166A2", "9. c #F50607", "0. c #F5EEEC", "a. c #E5ECEA", "b. c #FAB61A", "c. c #9CC491", "d. c #CE1D19", "e. c #FA5713", "f. c #F8F2F1", "g. c #BFA63B", "h. c #FBFCFB", "i. c #ECEB0D", "j. c #ECF3EC", "k. c #DDB310", "l. c #DB1E1B", "m. c #DAE7DC", "n. c #F7F9F8", "o. c #E0D12E", "p. c #FB1A0A", "q. c #E0C6C2", "r. c #7D86A4", "s. c #FDFDFC", "t. c #F5F5F5", "u. c #FEF208", "v. c #DEC6C1", "w. c #D0958E", "x. c #FB0404", "y. c #FBD232", "z. c #CE3C36", "A. c #FC0C09", "B. c #BB7D72", "C. c #94C581", "D. c #FFF801", "E. c #C2311F", "F. c #9CE65F", "G. c #5782B2", "H. c #039A06", "I. c #0B9A13", "J. c #F4F6F9", "K. c #D51E18", "L. c #F4ECEA", "M. c #F10E0D", "N. c #E11816", "O. c #D12F2A", "P. c #E7D5D1", "Q. c #816427", "R. c #F3060A", "S. c #A4843C", "T. c #6D7129", "U. c #D7E5D8", "V. c #2F3F7B", "W. c #FEFDFD", "X. c #DDE9DF", "Y. c #D24641", "Z. c #F9FBF9", "`. c #C01825", " + c #FBDA28", ".+ c #EE0C0B", "++ c #DE1210", "@+ c #DA121A", "#+ c #16981A", "$+ c #F80707", "%+ c #D2A6A0", "&+ c #FD0303", "*+ c #FBF905", "=+ c #F20B0B", "-+ c #1E9921", ";+ c #089A0F", ">+ c #F30808", ",+ c #D71713", "'+ c #2E2929", ")+ c #9CFD68", "!+ c #FDFEFE", "~+ c #FCFDFE", "{+ c #DAD9D9", "]+ c #F3EBE9", "^+ c #349D26", "/+ c #F8F504", "(+ c #D9EED2", "_+ c #EA1E1A", ":+ c #FEF808", "<+ c #DA8D1D", "[+ c #DFE012", "}+ c #74CB47", "|+ c #F19E29", "1+ c #E32823", "2+ c #9AD781", "3+ c #CD5750", "4+ c #CD726C", "5+ c #8FC27B", "6+ c #9B5223", "7+ c #D15A17", "8+ c #E4E410", "9+ c #B55527", "0+ c #D47D17", "a+ c #C1CFDD", "b+ c #F40B0B", "c+ c #FDE1B3", "d+ c #F60405", "e+ c #EC0E0E", "f+ c #FE0303", "g+ c #EDDB04", "h+ c #F1D219", "i+ c #FEDB10", "j+ c #CF0C16", "k+ c #C9130C", "l+ c #B9CD1B", "m+ c #FEEFE3", "n+ c #C3D01C", "o+ c #FCC822", "p+ c #A9DB9A", "q+ c #9F8C3F", "r+ c #85AB20", "s+ c #E01118", "t+ c #E01C1A", "u+ c #C9E8BE", "v+ c #E81B13", "w+ c #CAAD4F", "x+ c #DD857E", "y+ c #D4121B", "z+ c #F83816", "A+ c #FEFC03", "B+ c #DEC3BE", "C+ c #E1B4AD", "D+ c #F3F7F4", "E+ c #9CFF68", "F+ c #FFFF00", "G+ c #FF0000", "H+ c #FFFFFF", " Z.p+j. ", " Z.c.k C.!. ", " w w < Z.c.~ E+} 5+!. ", " |.%+3+1+_+}.r.+ + q !. n.c.~ )+E+E+} C.!. ", " W.% =.>+_ G+`.r.C !.#.) + C h.c.~ E+E+E+E+)+} C.!. ", " !+> = G+G+G+`.a !+* W.* W.t.+ ].P k E+E+E+E+E+E+E+} C.!. ", " W.@.x+R.G+G+G+d+r.* * * * * * W.' e k E+E+E+E+E+E+E+E+E+} 5+D+ ", " m+D v b.e.A.G+G+`.) !+* * {+{+* * * r.L } E+E+E+E+E+E+E+E+E+} C.D+ ", " ^.y.p F+F+p X A.G+/ ' * * t.'+'+t.* W.q j+S } E+E+E+E+E+E+E+E+E+~ C.!. ", " c+6.F+F+F+F+p b.A./ C ~+* h.n r.@.* * a d+x.S.)+E+E+E+E+E+E+E+E+E+~ C.D+ ", " D F+F+F+F+F+F+F+J / a * * s.^.^.* * n.n &+G+= O E+E+E+E+E+E+E+E+E+E+~ - D+ ", " W.y.F+F+F+F+F+F+F+F+J n #.* * * s.* * ) `.G+G+_ $ } E+E+E+E+E+E+E+E+E+E+} C.D+ ", " ^. +F+F+F+F+F+F+F+F+F+1 n ' * * * ~+) 7._ G+G+G+e+O E+E+E+E+E+E+E+E+E+E+)+} - !. ", " ^. +F+F+F+F+F+F+F+F+F+A+<+}.r.a a n `.$+G+G+G+G+&+S.)+E+E+E+E+E+E+E+E+E+E+E+~ C.N ", " ^.y.F+F+F+F+F+F+F+F+F+:+[ e.d+= R.f+G+G+G+G+G+G+G+..~ E+E+E+E+E+E+E+E+E+E+E+E+~ - N ", " * D F+F+F+F+F+F+F+F+F+v # b.A.G+G+G+G+G+G+G+G+G+G+=+u )+)+E+E+E+E+E+E+E+E+E+E+E+~ - N ", " 2.A+F+F+F+F+F+F+F+u.[ u.v p.G+G+G+G+G+G+G+G+G+G+G+$ ^+3.4.} E+E+E+E+E+E+E+E+E+E+~ - N ", " 1.# F+F+F+F+F+F+A+o+& & # e.G+G+G+G+G+G+G+G+G+G+G+&+Q.H.H.3.z )+E+E+E+E+E+E+E+E+E+~ - N ", " W.2.6.F+F+F+F+F+J & & & & E G+G+G+G+G+M.E.$ $ $ 6+Q.W ;+] ] #+U } E+E+E+E+E+E+E+E+E+~ - N @.8 b ", " W.D A+F+F+F+# # & & & & X G+G+G+G+v+-+H.] ] ] ] ] ] ] ] ] ] H.3.z E+E+E+E+E+E+E+E+E+~ - N @.,.P.r B+P.,.f. < 8 5 R 4+* f.-.q.r Q Y W. ^.<.>.B+B+G <.'. W.]+-.q.r Q [.< W. W. W. W. ", " < D 6.F+:+E b.# & & # E G+G+G+&+T.] ] ] ] ] ] ] ] ] ] ] ] ] ] #+U } E+E+E+E+E+E+E+E+~ - n. 1.$.| N.e+=+b+e+9 7 ( [. f.% i {.&+G+! >.M f 9 M.M.e+l.m 8 1.{ i /.e+b+b+{./.m B+* < % m l.e+=+b+e+N.i y w * w.5 , m ! ! ! ! ! , 3+5 ^ !+C+5 , , ! ! ! , 5 ^ W.", " b w+v . $ f+z+X J X A.G+G+G+B s ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] H.3.k E+E+E+E+E+E+E+E+~ - n. c | $+G+G+G+_ &+G+G+G+&++.!+ !+8 h O.=+G+G+G+_ +.! *.&+G+G+G+G+G+G+_ R > W. 8 | >+G+G+G+&+_ G+G+_ {.M w -.5 e+_ G+G+&+&+G+G+G+.+m o E._ G+G+_ _ _ _ _ _ G+G+k+<.m G+G+_ _ G+G+_ f+d.n.", " ~+F k j } 6 $+G+G+&+_ G+G+G+G+&+W ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] ] s O E+E+E+E+E+E+E+E+~ c.N o .._ G+G+_ *.^ t , e+G+G+A o q.*.x.G+G+G+G+G+G+I x.G+_ G+G+G+G+G+G+G+G+>+4 * { ++G+G+G+{., t ^ *._ G+G+$+M !+ >.(._ G+G+.+5 w.4 A _ G+G+x.m < 8 ! A $+G+G+G+G+G+G+$+5 % * G ! I G+G+x.N.Y.^ % * ", " h.F k E+E+E+~ E.G+G+G+G+G+G+G+G+_ T.] ] ] ] ] ] ] ] ] ] ] ] ] ] ] H.H.] #+}+E+E+E+E+E+E+E+E+~ c.n. * 4+_ G+G+G+M.% W.{ e+G+{.c >./.G+G+G+G+G+G+G+&+A , ! z.e+_ G+G+G+G+G+G+.+8 % R G+G+G+l.r 8 .+G+G+G+).Q ,.,+G+G+G+{.{ w >.N.G+G+G+B w. 0.h ).G+G+G+G+G+B 4 r ).G+b+! -.'. ", " s.F k E+E+E+E+E+u ++G+G+G+G+G+G+G+G+E.H.] ] H.I.;+H.] ] ] ] ] ] ] ] I._.&.^+r+; )+E+E+E+E+E+E+E+~ - n. <./.G+G+G+G+N.1. * ( _ =+>. * c O._ G+G+G+G+G+f 2 @.B+.._ G+G+G+G+G+G+=.w 2 ,+G+G+G+).v. w f G+G+G+G+5 W. t.7 G+G+G+B ;. ! _ G+G+G+A f. !+^ x.G+G+G+G+G+++[. 1.A G+>+h '. ", " s.F k )+E+E+E+E+E+E+6 E.d.G+G+G+G+G+G+M.-+] I.r+i.i.n+&.s I.H.] ] ] ] I.i.p A+F+u.. } E+E+E+E+E+E+E+~ - n. B+.+G+G+G+G+=+y G = I q. $.x.G+G+G+G+_ m 2 A G+G+G+G+G+G+=+r !+m _ G+G+G+(.1. ]+O.G+G+G+G+N.,. > x.G+G+G+{.<. '.3+G+G+G+G+=+Q w O.G+G+G+G+G+_ i |.( f+B ( '. ", " h.F k E+E+E+E+E+E+E+E+E+} u =+G+G+G+G+G+G+..e x L p F+F+F+*+i.l+&.-+I.;+3.A+F+F+F+F+:+0 K E+E+E+E+E+E+E+~ c.N % I G+G+G+G+G+*.$.b '.4 ! f. $.I G+G+G+G+&+! y >+G+G+G+G+G+&+( * c 9 G+G+G+G+M.( h M M ^ i $+G+G+G+G+=+% o A G+G+G+G+b+, ^ M M ^ m M.G+G+G+G+x.$. 8 = G+G+G+G+G+R.$ b+_ 5 w ", " !+F k E+E+E+E+E+E+E+E+E+E+E+} $ G+G+G+G+G+G+G+7.d d g.A+F+F+F+F+F+p /+8+[+*+F+F+F+F+F+F+A+h+j E+E+E+E+E+E+E+~ c.n. Q .+G+G+G+G+G+G+=+i B+@. > I G+G+G+G+_ ( b A G+G+G+G+G+G+z.Z. w.f+G+G+G+G+G+G+_ f+f+G+G+G+G+G+G+G+>+v. y I G+G+G+G+G+G+_ f+f+_ G+G+G+G+G+G+x.w. !+4+x.G+G+G+G+G+B G+..o ", " !+F k E+E+E+E+E+E+E+E+E+E+E+E+)+O 9 G+G+G+G+G+G+&+V.d d 1 p F+F+F+F+F+F+F+F+F+F+F+F+F+F+F+F+F+i+; E+E+E+E+E+E+E+~ c.n. 1.f G+G+G+G+G+G+G+_ ).+.,. > I G+G+G+G+&+( * , _ G+G+G+G+G+A 1.^.z.G+G+G+G+G+M.9 {.{.{.{.9 9 9 9 9 9 5 b ( _ G+G+G+G+I 9 {.{.{.9 {.9 9 9 9 9 =.]+ 1.d.G+G+G+G+G+G+).G ", "!+F k E+E+E+E+E+E+E+E+E+E+E+E+E+E+)+q+$+G+G+G+G+G+G+@+d d d 3 F+F+F+F+F+F+F+F+F+F+F+F+F+F+F+F+F+F+v ; E+E+E+E+E+E+E+~ - Z. y >+G+G+G+G+G+G+G+G+&+(.y > I G+G+G+G+_ ( 4 &+G+G+G+G+G+l.|.o (.G+G+G+G+x.h <.]+]+]+]+]+]+]+]+]+<.@. ^.z.G+G+G+G+G+5 Y ]+]+]+]+]+]+]+]+]+2 |. 8 .+G+G+G+G+G+9.% ", "p+k E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+} $ f+G+G+G+G+G+G+7.d d @ 3 p F+F+F+F+F+F+F+F+F+F+F+F+F+F+F+F+F+[ K E+E+E+E+E+E+E+~ 2+!+ W.M >+G+G+G+G+G+G+G+G+G+++Q > I G+G+G+G+&+( t x.G+G+G+G+G+A b [.*.G+G+G+G+x.w. f.f G+G+G+G+G+3+ * ! &+G+G+G+G+G+d.f. ", "(+: E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+k E.&+G+G+G+G+G+B V.d d d Z h+ .Z 0 u.F+F+F+F+F+F+F+F+F+F+F+F+6.; E+E+E+E+E+E+E+z u+* ^.4 9 &+G+G+G+G+G+G+G+G+..1. > I G+G+G+G+_ ( %+x.G+G+G+G+G+| ^.-.9 G+G+G+G+_ ! * o f G+G+G+G+G+O.@. -.= G+G+G+G+G+&+( W. ", " a.:.E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+K $ $+G+G+G+G+G+@+d d d d d d d d x Z # F+F+F+F+F+F+F+F+F+F+6.; E+E+E+E+E+E+~.T 8 5 .+_ G+G+G+G+G+G+B { > I G+G+G+G+&+( w.B G+G+G+G+_ , <.*.G+G+G+G+G+(.0. w O.G+G+G+G+G+{.Y { 9.G+G+G+G+G+G+).% ", " a.: E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+K K.G+G+G+G+G+G+7.d d d d d d d d d x g.u.F+F+F+F+F+F+F+F+v e z E+E+E+E+~.T '.% c < B+=.x.G+G+G+G+G+G+! * > I G+G+G+G+_ ( ^ &+G+G+G+G+$+$. f.f G+G+G+G+G+9.% !+3+G+G+G+G+G+x.4 Y /.G+e+_ G+G+G+G+G+K.]+ ", " ].:.E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+9+G+G+G+G+G+G+_ V.d d d d d d d d d d x g.u.F+F+F+F+F+F+Z d d U )+E+~.U. 8 R f @. 0.m &+G+G+G+G+G+=.b > I G+G+G+G+&+( !+5 G+G+G+G+G+N.]+ * 4+_ G+G+G+G+G+f |. |.> 0. w.x.G+G+G+G+G+*.c h.4 [. n.| G+e+B.9 G+G+G+G+G+x., W. ", " ].:.)+E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+6 $+G+G+G+G+G+G+e+@ d d d d d d d d d d d x .v D.F+F+h+@ d d d e :.U. % B 9.y <./.G+G+G+G+G+Y.w > I G+G+G+G+_ ( |.l.G+G+G+G+&+^ Q ).G+G+G+G+G+&+| ,. f.m 9.^ -.*.G+G+G+G+G+G+A v. < w.d+i h. !+^ B _ ( !+4 B G+G+G+G+G+).% ", " ].: E+E+E+E+E+E+E+E+E+E+E+E+E+E+E+F.*.G+G+G+G+G+G+G+s+g / y+@ d d d d d d d d d @ n .g.x d d d d d @ ) h. 8 =+G+..b w | G+G+G+G+_ h > I G+G+G+G+G+| ^. y I G+G+G+G+K.0. w =.G+G+G+G+G+G+&+(.w.P.Y b Y B+i x.>+r W.( _ G+G+G+G+G+G+++^ G <.1.]+Q , >+x.w.* y ).G+,+Y w 7 G+G+G+G+G+G+(.L. ", " X.: )+E+E+E+E+E+E+E+E+E+E+E+E+E+E+9+G+G+G+G+G+G+G+G+G+G+G+`.@ d d d d d d d d d d d d d d d d d d d d V #. c {.G+&++.1. |...G+G+G+G+.+Q > I G+G+G+G+G+.+8 Y d.G+G+G+G+R 8 Q R G+G+G+G+G+G+G+B e+/.l./..+_ &+( * Y (.G+G+G+G+G+G+G+x..+/.l./.e+&+G+| Z. Q 9 G+B { 8 .+G+G+G+G+G+_ | ]+ ", " X.: E+E+E+E+E+E+E+E+E+E+E+E+E+)+6 B G+G+G+G+G+G+G+G+G+G+G+7.d d d d d d d d d d d d d d d d d d d d d @ ) !+ f.l.G+G+B i Q o 2 4 I G+G+G+x., W. > I G+G+G+G+G+G+/.%+L.0.B+7 &+G+G+G+R % * * $.).G+G+G+G+G+G+G+G+G+G+G+G+&+=.b 8 R G+G+G+G+G+G+G+G+G+G+G+G+G+d.Y * Y 8 B.*.G+G+{.v.@. f.G A G+G+G+G+G+G+&+=.y <.w ", " ].: E+E+E+E+E+E+E+E+E+E+E+E+E+F.*.G+G+G+G+G+G+G+G+G+G+G+B g d V.g @ d d d d d d d d d d d d d d d d d d G.#. !+, _ G+G+&+e+l.t+$+G+G+G+9.5 N > I G+G+G+G+G+G+G+>+l.l.M.G+G+G+$+7 B+ W.%+*.&+G+G+G+G+G+G+G+G+G+I 5 0. % A &+G+G+G+G+G+G+G+G+G+B 7 P. t N.=+f+G+G+G+_ .+i c O.e+_ G+G+G+G+G+G+G+G+I {.Y.", " ].: E+E+E+E+E+E+E+E+E+E+)+} ~ $ _ G+G+B =+_ G+G+G+G+G+G+G+9.x.G+s+V.d d d d d d d d d d d d d d d d d d @ a+ <.5 {.x.G+G+G+G+G+_ =+A > 1. > I G+G+G+G+G+G+G+G+G+G+G+&+e+f t ]+ Q m 9 B _ G+G+G+_ b+A > 1. [.( /.I _ G+G+G+_ $+/.^ L. h e+M.{.N.N.{.{.M.7 G d.M.{.{.{.9 N.N.9 {.{.e+M.f ", " X.: E+E+E+E+E+K ; H o.0 h+k.9+++>+B 9+u 9+e+G+G+G+G+$+..{.$+G+G+f+/ d d d d d d d d d d d d d d d d d d @ + * ^.G 4 , i | z.i ( y 0. > I G+G+G+G+G+t+5 | z.i m h B+f. '.>.w., i | i ! %+0. 2 $.! i | z., $.2 b 8 c L.c c ]+2 G c * >.8 -.[.]+]+c -.[.L.[.-.8 [.", " ].: E+E+} H # D.A+F+F+F+F+F+/+g+k.g.)+)+6 {.G+G+G+..k k 6 9+K.e+>+`.@ d d d d d d d d d d d d d d d d d d a+ '.< < * > I G+G+G+G+G+( '.< w ^. ^.< ^. W.w < ", " ].: E+E+0 F+F+F+F+F+F+F+D.# & F+D.; E+E+S G+_ R.S E+E+E+E+K O u S `.g @ d d d d d d d d d d d d d d d d V * > I G+G+G+G+&+( ", " X.: )+j & F+F+F+F+# o.; K j H # o.E+)+S 7+0+` v o.H K E+E+E+E+~ 9+_ =+/ g @ d d d d d d d d d d d d d @ %. > I G+G+G+G+&+( ", " m.~.)+. A+F+F+v j )+E+E+E+E+1 ; )+H u.F+F+F+A+A+:+i+H )+E+E+E+u d.G+G+G+R./ g @ d d d d d d d d d d d 8.Z. > I G+G+G+G+_ ( ", " m.~.} 0 D.F+# ; E+E+E+E+E+K )+j v F+F+:+. H H H o.i+; E+E+z T c ++G+G+G+G+G+>+`.g @ d d d d d d d d d + > I G+G+G+G+&+( ", " X.~.} H ` ` ; E+E+E+E+E+E+E+o.F+F+A+. )+E+E+E+K |+K E+z l * % = G+G+G+G+G+G+G+d.r.8.@ d d d d d d @ ' > I G+G+G+G+_ ( ", " X.~.E+)+E+E+E+E+E+E+E+)+)+v F+F+h+~ E+E+E+E+)+K E+z l * * h $+G+G+G+G+G+G+B C+h.' + x d d d d d a ;.I G+G+G+G+_ ( ", " m.~.)+E+E+E+E+E+E+E+E+E+o.F+F+. E+E+E+E+E+E+E+z l * !+m &+G+G+G+G+G+G+Y.'. J.) x d d d G. { x.G+G+G+G+_ , ", " X.: E+E+E+E+E+E+E+E+E+; u.F+u.. ~ E+E+E+E+z l * 1.+.I G+G+G+G+G+= 8 N G.d d 8. 4 x.G+G+G+G+G+m ", " X.: E+E+E+E+E+E+E+E+} . u.:+J j E+E+E+z l * @.> R G+G+G+G+_ z.~+ h.8.d V ^.,.q.| G+G+G+G+G+G+l.%+c [.!+ ", " m.~.E+E+E+E+E+E+E+E+} ; ; ~ E+E+E+z l * B+,+G+G+G+G+I $. ' G.) $.9 b+G+G+G+G+G+G+G+G+I e+N.% ", " m.~.E+E+E+E+E+E+E+E+E+E+E+E+E+z l * G A G+G+G+G+*.Y > = {.9 N.N.N.N.N.N.N.9 e+R { ", " m.~.E+E+E+E+E+E+E+E+E+E+E+z l * -.++G+G+G+&+5 ^. 1.P.8 G c [.,.,.[.,.>.8 G P.w ", " U.~.E+E+E+E+E+E+E+E+E+z 5.* y ).G+G+G+9.t ", " m.~.E+E+E+E+E+E+E+z l * W.( x.G+G+G+++Q ", " U.~.E+E+E+E+E+z l * @.O.G+G+G+G+7 f. ", " U.~.E+E+E+z l * G R G+G+G+&+m W. ", " U.~.E+z 5.* * t d+G+G+G+>+%+* ", " U.4.5.* h.i _ G+G+G+R G ", " j.!+ ]+,+G+G+G+G+..L. ", " y ).G+G+G+_ 5 '. ", " !+( x.G+G+G+B 4 * ", " 1...G+G+G+G+= % ", " -.R G+G+G+G+*.-. ", " * > $+G+G+G+_ 7 |. ", " '.z.&+G+G+G+&+m '. ", " ,.,+G+G+G+G+9.4 * ", " { >+G+G+G+G+= r ", " s., &+G+G+G+G+,+,. ", " o (.G+G+G+G+_ =.@. ", " % .+G+G+G+G+B m !+ ", " * ( &+G+G+G+G+>+;.* ", " 1.7 G+G+G+G+G+= P. ", " Q = G+G+G+G+B | n. ", " * ^ x.G+G+b+B.B+* ", " @...G+G+B y ", " y ).G+).q. ", " !+x+N.! ^. "}; sweep-0.9.3/pixmaps/scrub.xpm0000644000175000017500000000070510777660150014724 0ustar useruser/* XPM */ static char * scrub_xpm[] = { "15 18 4 1", " c None", ". c #FFFFFF", "+ c #000000", "@ c #96E896", " ........... ", " .+++++++++. ", " .+.......+. ", " .+.+.@.+.+. ", " .+.++@++.+. ", " .+.++@++.+. ", " .++@+@+@++. ", " ..+@@@@@+.. ", " .++@@@++. ", " ..+@@@+.. ", " .++@++. ", " ..+@+.. ", " .+@+. ", " .+@+. ", " .+.+. ", " .+.+. ", " .+++. ", " ..... "}; sweep-0.9.3/pixmaps/zoom_out.xpm0000644000175000017500000000145610777660150015465 0ustar useruser/* XPM */ static char * zoom_out_xpm[] = { "24 25 4 1", " c None", ". c #000000", "+ c #FFFFFF", "@ c #9C999C", " ", " ", " ", " ", " ", " ", " ......... ", " .+++++++. ", " .... ......... ", " .@ @. ", " .@ @. ", " . . ", " . . ", " .@ @. ", " .@ @.. ", " ....... ", " ... ", " ... ", " ... ", " .. ", " ", " ", " ", " ", " "}; sweep-0.9.3/configure0000755000175000017500000403235110777670412013316 0ustar useruser#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## 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=: # 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 # PATH needs CR # 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 # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false 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.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. 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 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && 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 # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF 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 : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF 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 : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. 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" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (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 } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi 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 fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac echo=${ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if (echo_test_string=`eval $cmd`) 2>/dev/null && echo_test_string=`eval $cmd` && (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null then break fi done fi if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. echo='print -r' elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. echo='printf %s\n' if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL echo="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then echo="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. echo=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. ECHO=$echo if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi tagnames=${tagnames+${tagnames},}CXX tagnames=${tagnames+${tagnames},}F77 exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, 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= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="configure.ac" # 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='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP GREP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED LN_S ECHO AR RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL HAVE_GNOME_MOZ_REMOTE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC2 ALLOCA GLIBC21 INTL_MACOSX_LIBS HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB PTHREAD_LIBS PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS GTHREADS_CFLAGS GTHREADS_LIBS SNDFILE_CFLAGS SNDFILE_LIBS OGG_CFLAGS OGG_LIBS VORBIS_CFLAGS VORBIS_LIBS VORBISFILE_LIBS VORBISENC_LIBS SPEEX_CFLAGS SPEEX_LIBS MAD_LIBS SAMPLERATE_CFLAGS SAMPLERATE_LIBS ALSA_CFLAGS ALSA_LIBS PACKAGE_DATA_DIR PACKAGE_PLUGIN_DIR EXPORT_DYNAMIC_FLAGS LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP CXX CXXFLAGS CCC CXXCPP F77 FFLAGS PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS GTHREADS_CFLAGS GTHREADS_LIBS SNDFILE_CFLAGS SNDFILE_LIBS SAMPLERATE_CFLAGS SAMPLERATE_LIBS ALSA_CFLAGS ALSA_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=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_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=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_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --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_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=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 ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 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'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } 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 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # 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 -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^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 .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --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 --disable-rpath do not hardcode runtime library paths --enable-experimental enable building of experimental code --disable-oggvorbis disable Ogg Vorbis support --disable-speex disable Speex support --disable-oggtest Do not try to compile and run a test Ogg program --disable-vorbistest Do not try to compile and run a test Vorbis program --disable-speextest Do not try to compile and run a test Speex program --disable-mad disable libmad (MPEG audio loading) support --disable-src enable secret rabbit code (libsamplerate) --disable-alsa Disable ALSA, and enable use of OSS --enable-gcc-werror enable -Werror in all Makefiles Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-tags[=TAGS] include additional configurations [automatic] --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-included-gettext use the GNU gettext library included here --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir --with-ogg=PFX Prefix where libogg is installed (optional) --with-ogg-libraries=DIR Directory where libogg library is installed (optional) --with-ogg-includes=DIR Directory where libogg header files are installed (optional) --with-vorbis=PFX Prefix where libvorbis is installed (optional) --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional) --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional) --with-speex=PFX Prefix where libspeex is installed (optional) --with-speex-libraries=DIR Directory where libspeex library is installed (optional) --with-speex-includes=DIR Directory where libspeex header files are installed (optional) 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 C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags PKG_CONFIG path to pkg-config utility GTK_CFLAGS C compiler flags for GTK, overriding pkg-config GTK_LIBS linker flags for GTK, overriding pkg-config GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config GLIB_LIBS linker flags for GLIB, overriding pkg-config GTHREADS_CFLAGS C compiler flags for GTHREADS, overriding pkg-config GTHREADS_LIBS linker flags for GTHREADS, overriding pkg-config SNDFILE_CFLAGS C compiler flags for SNDFILE, overriding pkg-config SNDFILE_LIBS linker flags for SNDFILE, overriding pkg-config SAMPLERATE_CFLAGS C compiler flags for SAMPLERATE, overriding pkg-config SAMPLERATE_LIBS linker flags for SAMPLERATE, overriding pkg-config ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config ALSA_LIBS linker flags for ALSA, 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. _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" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 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 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.61. 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=. 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=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$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 ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export 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 cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX 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_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_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 cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); 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 # 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 # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi 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. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 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,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`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. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi 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.9" 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 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} { (exit 1); exit 1; }; } fi # 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. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS 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 { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&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 { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi # 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=sweep VERSION=0.9.3 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"} install_sh=${install_sh-"$am_aux_dir/install-sh"} # 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_config_headers="$ac_config_headers config.h" DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # 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 | *.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 { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # 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 | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 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 depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} 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 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if 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 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } if test "${ac_cv_lib_cposix_strerror+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcposix $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char strerror (); int main () { return strerror (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_cposix_strerror=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_cposix_strerror=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } if test $ac_cv_lib_cposix_strerror = yes; then LIBS="$LIBS -lcposix" 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 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 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 depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} 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 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if 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 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 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 depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} 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 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if 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 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc 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 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f 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 { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } 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 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` 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 fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` 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 fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* 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 rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # 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 --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 # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking build system type" >&5 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } if test "${ac_cv_build+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} { (exit 1); exit 1; }; } ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 echo "${ECHO_T}$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 echo "$as_me: error: invalid value of canonical build" >&2;} { (exit 1); exit 1; }; };; esac build=$ac_cv_build 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 { echo "$as_me:$LINENO: checking host system type" >&5 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } if test "${ac_cv_host+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 echo "${ECHO_T}$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 echo "$as_me: error: invalid value of canonical host" >&2;} { (exit 1); exit 1; }; };; esac host=$ac_cv_host 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 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } if test "${lt_cv_path_SED+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # 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 { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$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 fi SED=$lt_cv_path_SED { echo "$as_me:$LINENO: result: $SED" >&5 echo "${ECHO_T}$SED" >&6; } # 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. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw 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 { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_ld { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_ld_reload_flag='-r' fi { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } reload_flag=$lt_cv_ld_reload_flag case $reload_flag in "" | " "*) ;; *) reload_flag=" $reload_flag" ;; esac reload_cmds='$LD$reload_flag -o $output$reload_objs' case $host_os in 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 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } if test "${lt_cv_path_NM+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi fi { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 echo "${ECHO_T}$lt_cv_path_NM" >&6; } NM="$lt_cv_path_NM" { echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 echo "${ECHO_T}no, using $LN_S" >&6; } fi { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } if test "${lt_cv_deplibs_check_method+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 aix4* | aix5*) 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. if ( 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 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' fi ;; 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 ;; gnu*) 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]) 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 Linux ELF. linux* | k*bsd*-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=unknown ;; 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 ;; 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 ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; esac fi { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method test -z "$deplibs_check_method" && deplibs_check_method=unknown # 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 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:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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 6447 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *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*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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*) LD="${LD-ld} -m elf_i386" ;; 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*) 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" { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } if test "${lt_cv_cc_needs_belf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_cv_cc_needs_belf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 lt_cv_cc_needs_belf=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 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 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) LD="${LD-ld} -64" ;; esac ;; esac fi rm -rf conftest* ;; esac need_locks="$enable_libtool_lock" # 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=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in dlfcn.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in 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 ;; none) break ;; esac # 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. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { echo "$as_me:$LINENO: result: $CXXCPP" >&5 echo "${ECHO_T}$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # 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 >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$F77"; then ac_cv_prog_F77="$F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_F77="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi F77=$ac_cv_prog_F77 if test -n "$F77"; then { echo "$as_me:$LINENO: result: $F77" >&5 echo "${ECHO_T}$F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$F77" && break done fi if test -z "$F77"; then ac_ct_F77=$F77 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_F77"; then ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_F77="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_F77=$ac_cv_prog_ac_ct_F77 if test -n "$ac_ct_F77"; then { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 echo "${ECHO_T}$ac_ct_F77" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_F77" && break done if test "x$ac_ct_F77" = x; then F77="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac F77=$ac_ct_F77 fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -f a.out # If we don't use `.F' as extension, the preprocessor is not run on the # input file. (Note that this only needs to work for GNU compilers.) ac_save_ext=$ac_ext ac_ext=F { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } if test "${ac_cv_f77_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF program main #ifndef __GNUC__ choke me #endif end _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_f77_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } ac_ext=$ac_save_ext ac_test_FFLAGS=${FFLAGS+set} ac_save_FFLAGS=$FFLAGS FFLAGS= { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_f77_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else FFLAGS=-g cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_f77_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_f77_g=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } if test "$ac_test_FFLAGS" = set; then FFLAGS=$ac_save_FFLAGS elif test $ac_cv_prog_f77_g = yes; then if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-g -O2" else FFLAGS="-g" fi else if test "x$ac_cv_f77_compiler_gnu" = xyes; then FFLAGS="-O2" else FFLAGS= fi fi G77=`test $ac_compiler_gnu = yes && echo yes` 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 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! # find the maximum length of command line arguments { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } if test "${lt_cv_sys_max_cmd_len+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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*) # 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; ;; 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 ;; 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"; 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 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ = "XX$teststring") >/dev/null 2>&1 && new_result=`expr "X$teststring" : ".*" 2>&1` && lt_cv_sys_max_cmd_len=$new_result && test $i != 17 # 1/2 MB should be enough do i=`expr $i + 1` teststring=$teststring$teststring done 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 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } else { echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6; } fi # Check for command to grab the raw symbol name followed by C symbol from nm. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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]*\)' # Transform an extracted symbol line into a proper C declaration lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \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\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" # Define system-specific variables. case $host_os in aix*) symcode='[BCDT]' ;; cygwin* | mingw* | pw32*) symcode='[ABCDGISTW]' ;; hpux*) # Its linker distinguishes data from code symbols if test "$host_cpu" = ia64; then symcode='[ABCDEGRST]' fi lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; linux* | k*bsd*-gnu) if test "$host_cpu" = ia64; then symcode='[ABCDGIRSTW]' lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 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 # 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 # If we're using GNU nm, then use its standard symbol codes. case `$NM -V 2>&1` in *GNU* | *'with BFD'*) symcode='[ABCDGIRSTW]' ;; esac # Try without a prefix undercore, 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. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" # Check to see that the pipe works correctly. pipe_works=no rm -f conftest* cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Now try to grab the symbols. nlist=conftest.nm if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then 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 < conftest.$ac_ext #ifdef __cplusplus extern "C" { #endif EOF # Now generate the symbol file. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' cat <> conftest.$ac_ext #if defined (__STDC__) && __STDC__ # define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif /* The mapping between symbol names and symbols. */ const struct { const char *name; lt_ptr_t address; } lt_preloaded_symbols[] = { EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext cat <<\EOF >> conftest.$ac_ext {0, (lt_ptr_t) 0} }; #ifdef __cplusplus } #endif EOF # Now try linking the two files. mv conftest.$ac_objext conftstm.$ac_objext lt_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_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 -f 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 { echo "$as_me:$LINENO: result: failed" >&5 echo "${ECHO_T}failed" >&6; } else { echo "$as_me:$LINENO: result: ok" >&5 echo "${ECHO_T}ok" >&6; } fi { echo "$as_me:$LINENO: checking for objdir" >&5 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } if test "${lt_cv_objdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 echo "${ECHO_T}$lt_cv_objdir" >&6; } objdir=$lt_cv_objdir 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 # 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 to delay expansion of an escaped shell variable in a # double_quote_subst'ed string. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' # Sed substitution to avoid accidental globbing in evaled expressions no_glob_subst='s/\*/\\\*/g' # Constants: rm="rm -f" # Global variables: default_ofile=libtool can_build_shared=yes # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a ltmain="$ac_aux_dir/ltmain.sh" ofile="$default_ofile" with_gnu_ld="$lt_cv_prog_gnu_ld" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $AR" >&5 echo "${ECHO_T}$AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_AR"; then ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 echo "${ECHO_T}$ac_ct_AR" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_AR" = x; then AR="false" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac AR=$ac_ct_AR fi else AR="$ac_cv_prog_AR" fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi old_CC="$CC" old_CFLAGS="$CFLAGS" # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc test -z "$LTCC" && LTCC=$CC test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o # 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 \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 <&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 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 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then { echo "$as_me:$LINENO: checking for file" >&5 echo $ECHO_N "checking for file... $ECHO_C" >&6; } if test "${lt_cv_path_MAGIC_CMD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 <&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 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 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 echo "${ECHO_T}$MAGIC_CMD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi else MAGIC_CMD=: fi fi fi ;; esac enable_dlopen=no enable_win32_dll=no # 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 # Check whether --with-pic was given. if test "${with_pic+set}" = set; then withval=$with_pic; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # Use C for the default configuration in the libtool script tagname= 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 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 conftest* lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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:8780: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:8784: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl= lt_prog_compiler_pic= lt_prog_compiler_static= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' 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*) # 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' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # 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' ;; 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 ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic=-Kconform_pic fi ;; hpux*) # 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='-fPIC' ;; esac ;; *) lt_prog_compiler_pic='-fPIC' ;; 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 ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic='-qnocommon' lt_prog_compiler_wl='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # 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' ;; newsos6) lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # 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' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Sun\ F*) # 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='' ;; esac ;; esac ;; 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*) 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 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_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:9070: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:9074: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } if test x"$lt_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 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 # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_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 "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works=yes fi else lt_prog_compiler_static_works=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } if test x"$lt_prog_compiler_static_works" = xyes; then : else lt_prog_compiler_static= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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:9174: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:9178: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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 .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 echo "${ECHO_T}$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 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag= enable_shared_with_static_runtimes=no archive_cmds= archive_expsym_cmds= old_archive_From_new_cmds= old_archive_from_expsyms_cmds= export_dynamic_flag_spec= whole_archive_flag_spec= thread_safe_flag_spec= hardcode_libdir_flag_spec= hardcode_libdir_flag_spec_ld= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no hardcode_shlibpath_var=unsupported link_all_deplibs=unknown hardcode_automatic=no module_cmds= module_expsym_cmds= always_export_symbols=no export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # 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_" # 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. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # 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 ;; esac ld_shlibs=yes if test "$with_gnu_ld" = 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>/dev/null` in *\ [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 aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) 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 # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs=no ;; 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*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' 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/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 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 ;; 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* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= 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; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # 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; $echo \"$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' ;; 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; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; 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 link_all_deplibs=no 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 $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' fi ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no cat <&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. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 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 ;; 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 ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$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 $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 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 ;; aix4* | aix5*) 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 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")) && (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].*|aix5*) 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_libdir_separator=':' link_all_deplibs=yes 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 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 # 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. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 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 echo "${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. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 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' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' 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*) 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 # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) export_dynamic_flag_spec=-rdynamic ;; cygwin* | mingw* | pw32*) # 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. 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 `echo "$deplibs" | $SED -e '\''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' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs=no ;; esac fi ;; dgux*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-L$libdir' hardcode_shlibpath_var=no ;; freebsd1*) ld_shlibs=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 -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 -fPIC ${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 -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${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 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 -a "$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 ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${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' ;; *) archive_cmds='$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 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld='+b $libdir' hardcode_direct=no hardcode_shlibpath_var=no ;; *) hardcode_direct=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 $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld='-rpath $libdir' fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: 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 ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes hardcode_shlibpath_var=no 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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag=' -expect_unresolved \*' archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi 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} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${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='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -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; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_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 hardcode_libdir_separator=: ;; solaris*) no_undefined_flag=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${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 ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else 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' 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='`test -z "$SCOABSPATH" && echo ${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,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$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 fi { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 echo "${ECHO_T}$ld_shlibs" >&6; } test "$ld_shlibs" = no && can_build_shared=no # # 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. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 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:$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=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' 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" if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then # 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 -e 's/;/ /g'` else lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # 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; } }'` sys_lib_search_path_spec=`echo $lt_search_path_spec` else sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" fi 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 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' ;; aix4* | aix5*) version_type=linux 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*) 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=`$echo "X$lib" | $Xsed -e '\''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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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 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 ;; freebsd1*) dynamic_linker=no ;; 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[123]*) 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 ;; 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 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' ;; interix[3-9]*) 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' 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 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 Linux ELF. linux* | k*bsd*-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' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # 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;/^$/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 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=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=yes ;; 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 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 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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 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' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes 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' ;; uts4*) version_type=linux 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 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action= if test -n "$hardcode_libdir_flag_spec" || \ test -n "$runpath_var" || \ test "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existant 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_AC_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 { echo "$as_me:$LINENO: result: $hardcode_action" >&5 echo "${ECHO_T}$hardcode_action" >&6; } if test "$hardcode_action" = relink; 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 striplib= old_striplib= { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" test -z "$striplib" && striplib="$STRIP --strip-unneeded" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else # FIXME - insert some real tests, host_os isn't really good enough case $host_os in darwin*) if test -n "$STRIP" ; then striplib="$STRIP -x" old_striplib="$STRIP -S" { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi ;; *) { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } ;; esac 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*) 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 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes fi ;; *) { echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } if test "${ac_cv_func_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define shl_load to an innocuous variant, in case declares shl_load. For example, HP-UX 11i declares gettimeofday. */ #define shl_load innocuous_shl_load /* System header to define __stub macros and hopefully few prototypes, which can conflict with char shl_load (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef shl_load /* 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 (); /* 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_shl_load || defined __stub___shl_load choke me #endif int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } if test $ac_cv_func_shl_load = yes; then lt_cv_dlopen="shl_load" else { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_shl_load+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char shl_load (); int main () { return shl_load (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_shl_load=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_shl_load=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } if test $ac_cv_lib_dld_shl_load = yes; then lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" else { echo "$as_me:$LINENO: checking for dlopen" >&5 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } if test "${ac_cv_func_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define dlopen to an innocuous variant, in case declares dlopen. For example, HP-UX 11i declares gettimeofday. */ #define dlopen innocuous_dlopen /* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef dlopen /* 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 (); /* 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_dlopen || defined __stub___dlopen choke me #endif int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } if test $ac_cv_func_dlopen = yes; then lt_cv_dlopen="dlopen" else { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } if test "${ac_cv_lib_dl_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldl $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dl_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dl_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } if test $ac_cv_lib_dl_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" else { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } if test "${ac_cv_lib_svld_dlopen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsvld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dlopen (); int main () { return dlopen (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_svld_dlopen=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_svld_dlopen=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } if test $ac_cv_lib_svld_dlopen = yes; then lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" else { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } if test "${ac_cv_lib_dld_dld_link+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldld $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dld_link (); int main () { return dld_link (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_dld_dld_link=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_dld_dld_link=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } if test $ac_cv_lib_dld_dld_link = yes; then lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 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" { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 < #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 #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=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; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? 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 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } if test "${lt_cv_dlopen_self_static+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 < #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 #ifdef __cplusplus extern "C" void exit (int); #endif void fnord() { int i=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; /* dlclose (self); */ } else puts (dlerror ()); exit (status); } EOF if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&5 2>/dev/null lt_status=$? 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 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 echo "${ECHO_T}$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 # Report which library types will actually be built { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # 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 ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # 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 # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler \ CC \ LD \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_prog_compiler_no_builtin_flag \ export_dynamic_flag_spec \ thread_safe_flag_spec \ whole_archive_flag_spec \ enable_shared_with_static_runtimes \ old_archive_cmds \ old_archive_from_new_cmds \ predep_objects \ postdep_objects \ predeps \ postdeps \ compiler_lib_search_path \ archive_cmds \ archive_expsym_cmds \ postinstall_cmds \ postuninstall_cmds \ old_archive_from_expsyms_cmds \ allow_undefined_flag \ no_undefined_flag \ export_symbols_cmds \ hardcode_libdir_flag_spec \ hardcode_libdir_flag_spec_ld \ hardcode_libdir_separator \ hardcode_automatic \ module_cmds \ module_expsym_cmds \ lt_cv_prog_compiler_c_o \ fix_srcfile_path \ exclude_expsyms \ include_expsyms; do case $var in old_archive_cmds | \ old_archive_from_new_cmds | \ archive_cmds | \ archive_expsym_cmds | \ module_cmds | \ module_expsym_cmds | \ old_archive_from_expsyms_cmds | \ export_symbols_cmds | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="${ofile}T" trap "$rm \"$cfgfile\"; exit 1" 1 2 15 $rm -f "$cfgfile" { echo "$as_me:$LINENO: creating $ofile" >&5 echo "$as_me: creating $ofile" >&6;} cat <<__EOF__ >> "$cfgfile" #! $SHELL # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 # Free Software Foundation, Inc. # # This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 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 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # 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//" # 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 # The names of the tagged configurations supported by this script. available_tags= # ### BEGIN LIBTOOL CONFIG # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # 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 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # 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 # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler # Is the compiler the GNU C compiler? with_gcc=$GCC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o # Must we lock files when doing compilation? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # 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 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # 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 and install a shared archive. archive_cmds=$lt_archive_cmds archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds module_expsym_cmds=$lt_module_expsym_cmds # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # 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 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 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # 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 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_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 # ### END LIBTOOL CONFIG __EOF__ case $host_os in aix3*) cat <<\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 EOF ;; esac # 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) mv -f "$cfgfile" "$ofile" || \ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" # Check whether --with-tags was given. if test "${with_tags+set}" = set; then withval=$with_tags; tagnames="$withval" fi if test -f "$ltmain" && test -n "$tagnames"; then if test ! -f "${ofile}"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} fi if test -z "$LTCC"; then eval "`$SHELL ${ofile} --config | grep '^LTCC='`" if test -z "$LTCC"; then { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} else { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} fi fi if test -z "$LTCFLAGS"; then eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" fi # Extract list of available tagged configurations in $ofile. # Note that this assumes the entire list is on one line. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," for tagname in $tagnames; do IFS="$lt_save_ifs" # Check whether tagname contains only valid characters case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in "") ;; *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 echo "$as_me: error: invalid tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null then { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} { (exit 1); exit 1; }; } fi # Update the list of available tags. if test -n "$tagname"; then echo appending configuration tag \"$tagname\" to $ofile case $tagname in CXX) if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu archive_cmds_need_lc_CXX=no allow_undefined_flag_CXX= always_export_symbols_CXX=no archive_expsym_cmds_CXX= export_dynamic_flag_spec_CXX= hardcode_direct_CXX=no hardcode_libdir_flag_spec_CXX= hardcode_libdir_flag_spec_ld_CXX= hardcode_libdir_separator_CXX= hardcode_minus_L_CXX=no hardcode_shlibpath_var_CXX=unsupported hardcode_automatic_CXX=no module_cmds_CXX= module_expsym_cmds_CXX= link_all_deplibs_CXX=unknown old_archive_cmds_CXX=$old_archive_cmds no_undefined_flag_CXX= whole_archive_flag_spec_CXX= enable_shared_with_static_runtimes_CXX=no # Dependencies to place before and after the object being linked: predep_objects_CXX= postdep_objects_CXX= predeps_CXX= postdeps_CXX= compiler_lib_search_path_CXX= # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o objext_CXX=$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(int, char *[]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. # 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 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 conftest* # Allow CC to be a program name with arguments. lt_save_CC=$CC 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++"} compiler=$CC compiler_CXX=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # We don't want -fno-exception wen compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' else lt_prog_compiler_no_builtin_flag_CXX= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration # 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. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw 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 { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${lt_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU lds only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } with_gnu_ld=$lt_cv_prog_gnu_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 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${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 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_CXX= 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. archive_cmds_CXX='$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 "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } ld_shlibs_CXX=yes case $host_os in aix3*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; aix4* | aix5*) 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].*|aix5*) 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. archive_cmds_CXX='' hardcode_direct_CXX=yes hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes 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 hardcode_direct_CXX=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_CXX=yes hardcode_libdir_flag_spec_CXX='-L$libdir' hardcode_libdir_separator_CXX= 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 # 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_CXX=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_CXX='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${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_CXX='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_CXX="-z nodefs" archive_expsym_cmds_CXX="\$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. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_CXX='${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_CXX=' ${wl}-bernotok' allow_undefined_flag_CXX=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_CXX='$convenience' archive_cmds_need_lc_CXX=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_CXX="\$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 allow_undefined_flag_CXX=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_CXX=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_CXX='-L$libdir' allow_undefined_flag_CXX=unsupported always_export_symbols_CXX=no enable_shared_with_static_runtimes_CXX=yes if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_CXX='$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... archive_expsym_cmds_CXX='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 ld_shlibs_CXX=no fi ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_CXX=no hardcode_direct_CXX=no hardcode_automatic_CXX=yes hardcode_shlibpath_var_CXX=unsupported whole_archive_flag_spec_CXX='' link_all_deplibs_CXX=yes if test "$GXX" = yes ; then lt_int_apple_cc_single_mod=no output_verbose_link_cmd='echo' if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then lt_int_apple_cc_single_mod=yes fi if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' else archive_cmds_CXX='$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' fi module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds if test "X$lt_int_apple_cc_single_mod" = Xyes ; then archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' fi module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_CXX=no ;; esac fi ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; freebsd[12]*) # C++ shared libraries reported to be fairly broken before switch to ELF ld_shlibs_CXX=no ;; freebsd-elf*) archive_cmds_need_lc_CXX=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes ;; gnu*) ;; hpux9*) hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: export_dynamic_flag_spec_CXX='${wl}-E' hardcode_direct_CXX=yes hardcode_minus_L_CXX=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 ld_shlibs_CXX=no ;; aCC*) archive_cmds_CXX='$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) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' ;; *) if test "$GXX" = yes; then archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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 ld_shlibs_CXX=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' hardcode_libdir_separator_CXX=: case $host_cpu in hppa*64*|ia64*) ;; *) export_dynamic_flag_spec_CXX='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no ;; *) hardcode_direct_CXX=yes hardcode_minus_L_CXX=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 ld_shlibs_CXX=no ;; aCC*) case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$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; echo $list' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${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 ld_shlibs_CXX=no fi ;; esac ;; interix[3-9]*) hardcode_direct_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${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_CXX='$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_CXX='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++ archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -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. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' fi fi link_all_deplibs_CXX=yes ;; esac hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: ;; linux* | k*bsd*-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. archive_cmds_CXX='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' archive_expsym_cmds_CXX='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; echo $list' hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc*) # 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."*) archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$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 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac archive_cmds_need_lc_CXX=no hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC*) # Portland Group C++ compiler archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' archive_expsym_cmds_CXX='$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' hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_CXX='${wl}--export-dynamic' whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_CXX='$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 hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # 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=`echo $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; echo $list' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' hardcode_libdir_flag_spec_CXX='-R$libdir' whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # 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. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; m88k*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=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::"' ;; openbsd2*) # C++ shared libraries are fairly broken ld_shlibs_CXX=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_CXX=yes hardcode_shlibpath_var_CXX=no archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' export_dynamic_flag_spec_CXX='${wl}-E' whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd='echo' else ld_shlibs_CXX=no fi ;; osf3*) 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. archive_cmds_CXX='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' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # 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=`echo $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; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # 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 "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; 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. archive_cmds_CXX='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' hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' hardcode_libdir_separator_CXX=: # Archives containing C++ object files must be created using # the KAI C++ compiler. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; cxx*) allow_undefined_flag_CXX=' -expect_unresolved \*' archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_CXX='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' hardcode_libdir_flag_spec_CXX='-rpath $libdir' hardcode_libdir_separator_CXX=: # 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=`echo $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; echo $list' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_CXX=: # 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 "\-L"' else # FIXME: insert proper C++ library support ld_shlibs_CXX=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ archive_cmds_need_lc_CXX=yes no_undefined_flag_CXX=' -zdefs' archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' archive_expsym_cmds_CXX='$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' hardcode_libdir_flag_spec_CXX='-R$libdir' hardcode_shlibpath_var_CXX=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?) whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' ;; esac link_all_deplibs_CXX=yes output_verbose_link_cmd='echo' # 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. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler archive_cmds_CXX='$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. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then no_undefined_flag_CXX=' ${wl}-z ${wl}defs' if $CC --version | grep -v '^2\.7' > /dev/null; then archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared -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 \"\-L\"" else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' archive_expsym_cmds_CXX='$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 \"\-L\"" fi hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' case $host_os in solaris2.[0-5] | solaris2.[0-5].*) ;; *) whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_CXX='${wl}-z,text' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$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. # 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. # So that behaviour is only enabled if SCOABSPATH is set to a # non-empty value in the environment. Most likely only useful for # creating official distributions of packages. # This is a hack until libtool officially supports absolute path # names for shared libraries. no_undefined_flag_CXX='${wl}-z,text' allow_undefined_flag_CXX='${wl}-z,nodefs' archive_cmds_need_lc_CXX=no hardcode_shlibpath_var_CXX=no hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_CXX=':' link_all_deplibs_CXX=yes export_dynamic_flag_spec_CXX='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$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 ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; *) # FIXME: insert proper C++ library support ld_shlibs_CXX=no ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no GCC_CXX="$GXX" LD_CXX="$LD" cat > conftest.$ac_ext <&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; 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 # The `*' in the case matches for architectures that use `case' in # $output_verbose_cmd can trigger glob expansion during the loop # eval without this substitution. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` for p in `eval $output_verbose_link_cmd`; do case $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 else prev= fi if test "$pre_test_object_deps_done" = no; then case $p 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 "$compiler_lib_search_path_CXX"; then compiler_lib_search_path_CXX="${prev}${p}" else compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${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 "$postdeps_CXX"; then postdeps_CXX="${prev}${p}" else postdeps_CXX="${postdeps_CXX} ${prev}${p}" fi fi ;; *.$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 "$predep_objects_CXX"; then predep_objects_CXX="$p" else predep_objects_CXX="$predep_objects_CXX $p" fi else if test -z "$postdep_objects_CXX"; then postdep_objects_CXX="$p" else postdep_objects_CXX="$postdep_objects_CXX $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling CXX test program" fi $rm -f confest.$objext # PORTME: override above test on systems where it is broken 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. predep_objects_CXX= postdep_objects_CXX= postdeps_CXX= ;; 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 postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # 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 postdeps_CXX='-library=Cstd -library=Crun' fi ;; esac ;; esac case " $postdeps_CXX " in *" -lc "*) archive_cmds_need_lc_CXX=no ;; esac lt_prog_compiler_wl_CXX= lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-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_CXX='-Bstatic' fi ;; amigaos*) # 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_CXX='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32*) # 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_CXX='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_CXX='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all lt_prog_compiler_pic_CXX= ;; 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_prog_compiler_pic_CXX=-Kconform_pic fi ;; hpux*) # 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*) ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_CXX='-fPIC' ;; esac else case $host_os in aix4* | aix5*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_CXX='-Bstatic' else lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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 ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_CXX='-qnocommon' lt_prog_compiler_wl_CXX='-Wl,' ;; esac ;; dgux*) case $cc_basename in ec++*) lt_prog_compiler_pic_CXX='-KPIC' ;; ghcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then lt_prog_compiler_pic_CXX='+Z' fi ;; aCC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) lt_prog_compiler_pic_CXX='+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_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_static_CXX='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler lt_prog_compiler_wl_CXX='--backend -Wl,' lt_prog_compiler_pic_CXX='-fPIC' ;; icpc* | ecpc*) # Intel C++ lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-static' ;; pgCC*) # Portland Group C++ compiler. lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-fpic' lt_prog_compiler_static_CXX='-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_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) lt_prog_compiler_pic_CXX='-W c,exportall' ;; *) ;; esac ;; netbsd* | netbsdelf*-gnu) ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) lt_prog_compiler_wl_CXX='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 lt_prog_compiler_pic_CXX='-pic' ;; cxx*) # Digital/Compaq C++ lt_prog_compiler_wl_CXX='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. lt_prog_compiler_pic_CXX= lt_prog_compiler_static_CXX='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' lt_prog_compiler_wl_CXX='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler lt_prog_compiler_pic_CXX='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x lt_prog_compiler_pic_CXX='-pic' lt_prog_compiler_static_CXX='-Bstatic' ;; lcc*) # Lucid lt_prog_compiler_pic_CXX='-pic' ;; *) ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 lt_prog_compiler_pic_CXX='-KPIC' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) lt_prog_compiler_wl_CXX='-Wl,' lt_prog_compiler_pic_CXX='-KPIC' lt_prog_compiler_static_CXX='-Bstatic' ;; esac ;; vxworks*) ;; *) lt_prog_compiler_can_build_shared_CXX=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_CXX"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_CXX=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_CXX -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:14056: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:14060: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_CXX=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then case $lt_prog_compiler_pic_CXX in "" | " "*) ;; *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; esac else lt_prog_compiler_pic_CXX= lt_prog_compiler_can_build_shared_CXX=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_CXX= ;; *) lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_CXX=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 "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_CXX=yes fi else lt_prog_compiler_static_works_CXX=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } if test x"$lt_prog_compiler_static_works_CXX" = xyes; then : else lt_prog_compiler_static_CXX= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_CXX=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:14160: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:14164: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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_CXX=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 .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix4* | aix5*) # 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 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) export_symbols_cmds_CXX="$ltdll_cmds" ;; cygwin* | mingw*) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' ;; linux* | k*bsd*-gnu) link_all_deplibs_CXX=no ;; *) export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } test "$ld_shlibs_CXX" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_CXX" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_CXX=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_CXX 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. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_CXX pic_flag=$lt_prog_compiler_pic_CXX compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_CXX allow_undefined_flag_CXX= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_CXX=no else archive_cmds_need_lc_CXX=yes fi allow_undefined_flag_CXX=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' 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 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' ;; aix4* | aix5*) version_type=linux 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*) 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=`$echo "X$lib" | $Xsed -e '\''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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) 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 ;; freebsd1*) dynamic_linker=no ;; 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[123]*) 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 ;; 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 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' ;; interix[3-9]*) 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' 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 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 Linux ELF. linux* | k*bsd*-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' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # 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;/^$/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 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=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=yes ;; 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 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 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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 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' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes 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' ;; uts4*) version_type=linux 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 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || \ test -n "$runpath_var_CXX" || \ test "X$hardcode_automatic_CXX" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_CXX" != 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_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && test "$hardcode_minus_L_CXX" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_CXX=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_CXX=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_CXX=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 echo "${ECHO_T}$hardcode_action_CXX" >&6; } if test "$hardcode_action_CXX" = relink; 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 # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # 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 # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_CXX \ CC_CXX \ LD_CXX \ lt_prog_compiler_wl_CXX \ lt_prog_compiler_pic_CXX \ lt_prog_compiler_static_CXX \ lt_prog_compiler_no_builtin_flag_CXX \ export_dynamic_flag_spec_CXX \ thread_safe_flag_spec_CXX \ whole_archive_flag_spec_CXX \ enable_shared_with_static_runtimes_CXX \ old_archive_cmds_CXX \ old_archive_from_new_cmds_CXX \ predep_objects_CXX \ postdep_objects_CXX \ predeps_CXX \ postdeps_CXX \ compiler_lib_search_path_CXX \ archive_cmds_CXX \ archive_expsym_cmds_CXX \ postinstall_cmds_CXX \ postuninstall_cmds_CXX \ old_archive_from_expsyms_cmds_CXX \ allow_undefined_flag_CXX \ no_undefined_flag_CXX \ export_symbols_cmds_CXX \ hardcode_libdir_flag_spec_CXX \ hardcode_libdir_flag_spec_ld_CXX \ hardcode_libdir_separator_CXX \ hardcode_automatic_CXX \ module_cmds_CXX \ module_expsym_cmds_CXX \ lt_cv_prog_compiler_c_o_CXX \ fix_srcfile_path_CXX \ exclude_expsyms_CXX \ include_expsyms_CXX; do case $var in old_archive_cmds_CXX | \ old_archive_from_new_cmds_CXX | \ archive_cmds_CXX | \ archive_expsym_cmds_CXX | \ module_cmds_CXX | \ module_expsym_cmds_CXX | \ old_archive_from_expsyms_cmds_CXX | \ export_symbols_cmds_CXX | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_CXX # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # 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 # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_CXX # Is the compiler the GNU C compiler? with_gcc=$GCC_CXX # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_CXX # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_CXX # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_CXX pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX # Must we lock files when doing compilation? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_CXX # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_CXX old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_CXX archive_expsym_cmds=$lt_archive_expsym_cmds_CXX postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_CXX module_expsym_cmds=$lt_module_expsym_cmds_CXX # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_CXX # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_CXX # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_CXX # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_CXX # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_CXX # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_CXX # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_CXX # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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_CXX # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_CXX # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_CXX # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX # 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_CXX # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_CXX # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_CXX # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_CXX # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_CXX # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_CXX # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ldcxx=$with_gnu_ld 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 else tagname="" fi ;; F77) if test -n "$F77" && test "X$F77" != "Xno"; then ac_ext=f ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_f77_compiler_gnu archive_cmds_need_lc_F77=no allow_undefined_flag_F77= always_export_symbols_F77=no archive_expsym_cmds_F77= export_dynamic_flag_spec_F77= hardcode_direct_F77=no hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_minus_L_F77=no hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= link_all_deplibs_F77=unknown old_archive_cmds_F77=$old_archive_cmds no_undefined_flag_F77= whole_archive_flag_spec_F77= enable_shared_with_static_runtimes_F77=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o objext_F77=$objext # 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. # 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 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 conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${F77-"f77"} compiler=$CC compiler_F77=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $can_build_shared" >&5 echo "${ECHO_T}$can_build_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } test "$can_build_shared" = "no" && enable_shared=no # On AIX, shared libraries and static libraries use the same namespace, and # 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 ;; aix4* | aix5*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac { echo "$as_me:$LINENO: result: $enable_shared" >&5 echo "${ECHO_T}$enable_shared" >&6; } { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes { echo "$as_me:$LINENO: result: $enable_static" >&5 echo "${ECHO_T}$enable_static" >&6; } GCC_F77="$G77" LD_F77="$LD" lt_prog_compiler_wl_F77= lt_prog_compiler_pic_F77= lt_prog_compiler_static_F77= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_static_F77='-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_F77='-Bstatic' fi ;; amigaos*) # 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_F77='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # 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_F77='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_F77='-fno-common' ;; 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_F77=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_F77=-Kconform_pic fi ;; hpux*) # 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_F77='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_F77='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_F77='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_F77='-Bstatic' else lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_F77='-qnocommon' lt_prog_compiler_wl_F77='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # 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_F77='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_F77='-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_F77='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_F77='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_F77='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_F77='-non_shared' ;; newsos6) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-fpic' lt_prog_compiler_static_F77='-Bstatic' ;; ccc*) lt_prog_compiler_wl_F77='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' lt_prog_compiler_wl_F77='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_F77='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_F77='-non_shared' ;; rdos*) lt_prog_compiler_static_F77='-non_shared' ;; solaris*) lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_F77='-Qoption ld ';; *) lt_prog_compiler_wl_F77='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_F77='-Qoption ld ' lt_prog_compiler_pic_F77='-PIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_F77='-Kconform_pic' lt_prog_compiler_static_F77='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_pic_F77='-KPIC' lt_prog_compiler_static_F77='-Bstatic' ;; unicos*) lt_prog_compiler_wl_F77='-Wl,' lt_prog_compiler_can_build_shared_F77=no ;; uts4*) lt_prog_compiler_pic_F77='-pic' lt_prog_compiler_static_F77='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_F77"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_F77=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_F77" # 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:15737: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:15741: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_F77=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } if test x"$lt_prog_compiler_pic_works_F77" = xyes; then case $lt_prog_compiler_pic_F77 in "" | " "*) ;; *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; esac else lt_prog_compiler_pic_F77= lt_prog_compiler_can_build_shared_F77=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_F77= ;; *) lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_F77=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 "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_F77=yes fi else lt_prog_compiler_static_works_F77=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } if test x"$lt_prog_compiler_static_works_F77" = xyes; then : else lt_prog_compiler_static_F77= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_F77=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:15841: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:15845: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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_F77=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 .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_F77= enable_shared_with_static_runtimes_F77=no archive_cmds_F77= archive_expsym_cmds_F77= old_archive_From_new_cmds_F77= old_archive_from_expsyms_cmds_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= thread_safe_flag_spec_F77= hardcode_libdir_flag_spec_F77= hardcode_libdir_flag_spec_ld_F77= hardcode_libdir_separator_F77= hardcode_direct_F77=no hardcode_minus_L_F77=no hardcode_shlibpath_var_F77=unsupported link_all_deplibs_F77=unknown hardcode_automatic_F77=no module_cmds_F77= module_expsym_cmds_F77= always_export_symbols_F77=no export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_F77= # 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_F77="_GLOBAL_OFFSET_TABLE_" # 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. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # 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 ;; esac ld_shlibs_F77=yes if test "$with_gnu_ld" = 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_F77='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_F77='${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_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_F77= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [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 aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_F77=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_F77='$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_F77='-L$libdir' hardcode_minus_L_F77=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_F77=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_F77=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_F77=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_F77='-L$libdir' allow_undefined_flag_F77=unsupported always_export_symbols_F77=no enable_shared_with_static_runtimes_F77=yes export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_F77='$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_F77='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_F77=no fi ;; interix[3-9]*) hardcode_direct_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${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_F77='$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_F77='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* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$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' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_F77='$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 link_all_deplibs_F77=no else ld_shlibs_F77=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $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_F77=no cat <&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. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_F77=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 ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac ;; sunos4*) archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_F77=no fi ;; esac if test "$ld_shlibs_F77" = no; then runpath_var= hardcode_libdir_flag_spec_F77= export_dynamic_flag_spec_F77= whole_archive_flag_spec_F77= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_F77=unsupported always_export_symbols_F77=yes archive_expsym_cmds_F77='$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_F77=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_F77=unsupported fi ;; aix4* | aix5*) 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 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_F77='$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].*|aix5*) 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_F77='' hardcode_direct_F77=yes hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes 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_F77=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_F77=yes hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_libdir_separator_F77= 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 # 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_F77=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_F77='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${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_F77='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_F77="-z nodefs" archive_expsym_cmds_F77="\$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. cat >conftest.$ac_ext <<_ACEOF program main end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_f77_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_F77='${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_F77=' ${wl}-bernotok' allow_undefined_flag_F77=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_F77='$convenience' archive_cmds_need_lc_F77=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_F77="\$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*) archive_cmds_F77='$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_F77='-L$libdir' hardcode_minus_L_F77=yes # see comment about different semantics on the GNU ld section ld_shlibs_F77=no ;; bsdi[45]*) export_dynamic_flag_spec_F77=-rdynamic ;; cygwin* | mingw* | pw32*) # 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. hardcode_libdir_flag_spec_F77=' ' allow_undefined_flag_F77=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_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_F77='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_F77='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_F77=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_F77=no hardcode_direct_F77=no hardcode_automatic_F77=yes hardcode_shlibpath_var_F77=unsupported whole_archive_flag_spec_F77='' link_all_deplibs_F77=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_F77=no ;; esac fi ;; dgux*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; freebsd1*) ld_shlibs_F77=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_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${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_F77='$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_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes export_dynamic_flag_spec_F77='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$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_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$CC -shared -fPIC ${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_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_F77='$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 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' hardcode_libdir_separator_F77=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_F77='+b $libdir' hardcode_direct_F77=no hardcode_shlibpath_var_F77=no ;; *) hardcode_direct_F77=yes export_dynamic_flag_spec_F77='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_F77=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: link_all_deplibs_F77=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no ;; newsos6) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: hardcode_shlibpath_var_F77=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_F77=yes hardcode_shlibpath_var_F77=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' export_dynamic_flag_spec_F77='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-R$libdir' ;; *) archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs_F77=no fi ;; os2*) hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_minus_L_F77=yes allow_undefined_flag_F77=unsupported archive_cmds_F77='$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_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_F77=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_F77=' -expect_unresolved \*' archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_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_F77='-rpath $libdir' fi hardcode_libdir_separator_F77=: ;; solaris*) no_undefined_flag_F77=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_F77='$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' fi hardcode_libdir_flag_spec_F77='-R$libdir' hardcode_shlibpath_var_F77=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_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_F77=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_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_direct_F77=yes hardcode_minus_L_F77=yes hardcode_shlibpath_var_F77=no ;; sysv4) case $host_vendor in sni) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_F77='$CC -r -o $output$reload_objs' hardcode_direct_F77=no ;; motorola) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_F77=no ;; sysv4.3*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no export_dynamic_flag_spec_F77='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_F77=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_F77=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_F77='${wl}-z,text' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$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_F77='${wl}-z,text' allow_undefined_flag_F77='${wl}-z,nodefs' archive_cmds_need_lc_F77=no hardcode_shlibpath_var_F77=no hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_F77=':' link_all_deplibs_F77=yes export_dynamic_flag_spec_F77='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_F77='-L$libdir' hardcode_shlibpath_var_F77=no ;; *) ld_shlibs_F77=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 echo "${ECHO_T}$ld_shlibs_F77" >&6; } test "$ld_shlibs_F77" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_F77" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_F77=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_F77 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. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_F77 pic_flag=$lt_prog_compiler_pic_F77 compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_F77 allow_undefined_flag_F77= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_F77=no else archive_cmds_need_lc_F77=yes fi allow_undefined_flag_F77=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' 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 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' ;; aix4* | aix5*) version_type=linux 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*) 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=`$echo "X$lib" | $Xsed -e '\''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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) 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 ;; freebsd1*) dynamic_linker=no ;; 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[123]*) 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 ;; 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 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' ;; interix[3-9]*) 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' 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 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 Linux ELF. linux* | k*bsd*-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' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # 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;/^$/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 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=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=yes ;; 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 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 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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 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' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes 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' ;; uts4*) version_type=linux 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 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_F77= if test -n "$hardcode_libdir_flag_spec_F77" || \ test -n "$runpath_var_F77" || \ test "X$hardcode_automatic_F77" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_F77" != 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_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && test "$hardcode_minus_L_F77" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_F77=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_F77=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_F77=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 echo "${ECHO_T}$hardcode_action_F77" >&6; } if test "$hardcode_action_F77" = relink; 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 # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # 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 # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_F77 \ CC_F77 \ LD_F77 \ lt_prog_compiler_wl_F77 \ lt_prog_compiler_pic_F77 \ lt_prog_compiler_static_F77 \ lt_prog_compiler_no_builtin_flag_F77 \ export_dynamic_flag_spec_F77 \ thread_safe_flag_spec_F77 \ whole_archive_flag_spec_F77 \ enable_shared_with_static_runtimes_F77 \ old_archive_cmds_F77 \ old_archive_from_new_cmds_F77 \ predep_objects_F77 \ postdep_objects_F77 \ predeps_F77 \ postdeps_F77 \ compiler_lib_search_path_F77 \ archive_cmds_F77 \ archive_expsym_cmds_F77 \ postinstall_cmds_F77 \ postuninstall_cmds_F77 \ old_archive_from_expsyms_cmds_F77 \ allow_undefined_flag_F77 \ no_undefined_flag_F77 \ export_symbols_cmds_F77 \ hardcode_libdir_flag_spec_F77 \ hardcode_libdir_flag_spec_ld_F77 \ hardcode_libdir_separator_F77 \ hardcode_automatic_F77 \ module_cmds_F77 \ module_expsym_cmds_F77 \ lt_cv_prog_compiler_c_o_F77 \ fix_srcfile_path_F77 \ exclude_expsyms_F77 \ include_expsyms_F77; do case $var in old_archive_cmds_F77 | \ old_archive_from_new_cmds_F77 | \ archive_cmds_F77 | \ archive_expsym_cmds_F77 | \ module_cmds_F77 | \ module_expsym_cmds_F77 | \ old_archive_from_expsyms_cmds_F77 | \ export_symbols_cmds_F77 | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_F77 # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # 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 # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_F77 # Is the compiler the GNU C compiler? with_gcc=$GCC_F77 # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_F77 # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_F77 # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_F77 pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 # Must we lock files when doing compilation? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_F77 # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_F77 old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_F77 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_F77 module_expsym_cmds=$lt_module_expsym_cmds_F77 # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_F77 # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_F77 # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_F77 # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_F77 # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_F77 # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_F77 # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_F77 # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_F77 # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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_F77 # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_F77 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_F77 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 # 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_F77 # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_F77 # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_F77 # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_F77 # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_F77 # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_F77 # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; GCJ) if test -n "$GCJ" && test "X$GCJ" != "Xno"; then # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o objext_GCJ=$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. # 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 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 conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${GCJ-"gcj"} compiler=$CC compiler_GCJ=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # GCJ did not exist at the time GCC didn't implicitly link libc in. archive_cmds_need_lc_GCJ=no old_archive_cmds_GCJ=$old_archive_cmds lt_prog_compiler_no_builtin_flag_GCJ= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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:18041: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:18045: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" else : fi fi lt_prog_compiler_wl_GCJ= lt_prog_compiler_pic_GCJ= lt_prog_compiler_static_GCJ= { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } if test "$GCC" = yes; then lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_static_GCJ='-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_GCJ='-Bstatic' fi ;; amigaos*) # 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_GCJ='-m68020 -resident32 -malways-restore-a4' ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | pw32* | os2*) # 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_GCJ='-DDLL_EXPORT' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic_GCJ='-fno-common' ;; 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_GCJ=no enable_shared=no ;; sysv4*MP*) if test -d /usr/nec; then lt_prog_compiler_pic_GCJ=-Kconform_pic fi ;; hpux*) # 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_GCJ='-fPIC' ;; esac ;; *) lt_prog_compiler_pic_GCJ='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) lt_prog_compiler_wl_GCJ='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static_GCJ='-Bstatic' else lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' fi ;; darwin*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files case $cc_basename in xlc*) lt_prog_compiler_pic_GCJ='-qnocommon' lt_prog_compiler_wl_GCJ='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2*) # 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_GCJ='-DDLL_EXPORT' ;; hpux9* | hpux10* | hpux11*) lt_prog_compiler_wl_GCJ='-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_GCJ='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) lt_prog_compiler_wl_GCJ='-Wl,' # PIC (with -KPIC) is the default. lt_prog_compiler_static_GCJ='-non_shared' ;; newsos6) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; linux* | k*bsd*-gnu) case $cc_basename in icc* | ecc*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-fpic' lt_prog_compiler_static_GCJ='-Bstatic' ;; ccc*) lt_prog_compiler_wl_GCJ='-Wl,' # All Alpha code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' lt_prog_compiler_wl_GCJ='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' lt_prog_compiler_wl_GCJ='' ;; esac ;; esac ;; osf3* | osf4* | osf5*) lt_prog_compiler_wl_GCJ='-Wl,' # All OSF/1 code is PIC. lt_prog_compiler_static_GCJ='-non_shared' ;; rdos*) lt_prog_compiler_static_GCJ='-non_shared' ;; solaris*) lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' case $cc_basename in f77* | f90* | f95*) lt_prog_compiler_wl_GCJ='-Qoption ld ';; *) lt_prog_compiler_wl_GCJ='-Wl,';; esac ;; sunos4*) lt_prog_compiler_wl_GCJ='-Qoption ld ' lt_prog_compiler_pic_GCJ='-PIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then lt_prog_compiler_pic_GCJ='-Kconform_pic' lt_prog_compiler_static_GCJ='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_pic_GCJ='-KPIC' lt_prog_compiler_static_GCJ='-Bstatic' ;; unicos*) lt_prog_compiler_wl_GCJ='-Wl,' lt_prog_compiler_can_build_shared_GCJ=no ;; uts4*) lt_prog_compiler_pic_GCJ='-pic' lt_prog_compiler_static_GCJ='-Bstatic' ;; *) lt_prog_compiler_can_build_shared_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } # # Check to make sure the PIC flag actually works. # if test -n "$lt_prog_compiler_pic_GCJ"; then { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_pic_works_GCJ=no ac_outfile=conftest.$ac_objext echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$lt_prog_compiler_pic_GCJ" # 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:18331: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:18335: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_pic_works_GCJ=yes fi fi $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then case $lt_prog_compiler_pic_GCJ in "" | " "*) ;; *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; esac else lt_prog_compiler_pic_GCJ= lt_prog_compiler_can_build_shared_GCJ=no fi fi case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) lt_prog_compiler_pic_GCJ= ;; *) lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" ;; esac # # Check to make sure the static flag actually works. # wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_prog_compiler_static_works_GCJ=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 "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then lt_prog_compiler_static_works_GCJ=yes fi else lt_prog_compiler_static_works_GCJ=yes fi fi $rm conftest* LDFLAGS="$save_LDFLAGS" fi { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then : else lt_prog_compiler_static_GCJ= fi { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else lt_cv_prog_compiler_c_o_GCJ=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:18435: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:18439: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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_GCJ=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 .. rmdir conftest $rm conftest* fi { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } hard_links="nottested" if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } hard_links=yes $rm conftest* ln conftest.a conftest.b 2>/dev/null && hard_links=no touch conftest.a ln conftest.a conftest.b 2>&5 || hard_links=no ln conftest.a conftest.b 2>/dev/null && hard_links=no { echo "$as_me:$LINENO: result: $hard_links" >&5 echo "${ECHO_T}$hard_links" >&6; } if test "$hard_links" = no; then { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} need_locks=warn fi else need_locks=no fi { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } runpath_var= allow_undefined_flag_GCJ= enable_shared_with_static_runtimes_GCJ=no archive_cmds_GCJ= archive_expsym_cmds_GCJ= old_archive_From_new_cmds_GCJ= old_archive_from_expsyms_cmds_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= thread_safe_flag_spec_GCJ= hardcode_libdir_flag_spec_GCJ= hardcode_libdir_flag_spec_ld_GCJ= hardcode_libdir_separator_GCJ= hardcode_direct_GCJ=no hardcode_minus_L_GCJ=no hardcode_shlibpath_var_GCJ=unsupported link_all_deplibs_GCJ=unknown hardcode_automatic_GCJ=no module_cmds_GCJ= module_expsym_cmds_GCJ= always_export_symbols_GCJ=no export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list include_expsyms_GCJ= # 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_GCJ="_GLOBAL_OFFSET_TABLE_" # 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. extract_expsyms_cmds= # Just being paranoid about ensuring that cc_basename is set. for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` case $host_os in cygwin* | mingw* | pw32*) # 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 ;; esac ld_shlibs_GCJ=yes if test "$with_gnu_ld" = 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_GCJ='${wl}--rpath ${wl}$libdir' export_dynamic_flag_spec_GCJ='${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_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else whole_archive_flag_spec_GCJ= fi supports_anon_versioning=no case `$LD -v 2>/dev/null` in *\ [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 aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs_GCJ=no cat <&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. EOF fi ;; amigaos*) archive_cmds_GCJ='$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_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we can't use # them. ld_shlibs_GCJ=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then allow_undefined_flag_GCJ=unsupported # Joseph Beckenbach says some releases of gcc # support --undefined. This deserves some investigation. FIXME archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else ld_shlibs_GCJ=no fi ;; cygwin* | mingw* | pw32*) # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, # as there is no search path for DLLs. hardcode_libdir_flag_spec_GCJ='-L$libdir' allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=no enable_shared_with_static_runtimes_GCJ=yes export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then archive_cmds_GCJ='$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_GCJ='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_GCJ=no fi ;; interix[3-9]*) hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${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_GCJ='$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_GCJ='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* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then tmp_addflag= case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$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' ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; *) tmp_sharedflag='-shared' ;; esac archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test $supports_anon_versioning = yes; then archive_expsym_cmds_GCJ='$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 link_all_deplibs_GCJ=no else ld_shlibs_GCJ=no fi ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $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_GCJ=no cat <&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. EOF elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs_GCJ=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 ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac ;; sunos4*) archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else ld_shlibs_GCJ=no fi ;; esac if test "$ld_shlibs_GCJ" = no; then runpath_var= hardcode_libdir_flag_spec_GCJ= export_dynamic_flag_spec_GCJ= whole_archive_flag_spec_GCJ= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) allow_undefined_flag_GCJ=unsupported always_export_symbols_GCJ=yes archive_expsym_cmds_GCJ='$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_GCJ=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_GCJ=unsupported fi ;; aix4* | aix5*) 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 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds_GCJ='$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].*|aix5*) 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_GCJ='' hardcode_direct_GCJ=yes hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes 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_GCJ=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_GCJ=yes hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_libdir_separator_GCJ= 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 # 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_GCJ=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_GCJ='-berok' # Determine the default libpath from the value encoded in an empty executable. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${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_GCJ='${wl}-R $libdir:/usr/lib:/lib' allow_undefined_flag_GCJ="-z nodefs" archive_expsym_cmds_GCJ="\$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. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi hardcode_libdir_flag_spec_GCJ='${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_GCJ=' ${wl}-bernotok' allow_undefined_flag_GCJ=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec_GCJ='$convenience' archive_cmds_need_lc_GCJ=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds_GCJ="\$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*) archive_cmds_GCJ='$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_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes # see comment about different semantics on the GNU ld section ld_shlibs_GCJ=no ;; bsdi[45]*) export_dynamic_flag_spec_GCJ=-rdynamic ;; cygwin* | mingw* | pw32*) # 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. hardcode_libdir_flag_spec_GCJ=' ' allow_undefined_flag_GCJ=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_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. old_archive_From_new_cmds_GCJ='true' # FIXME: Should let the user specify the lib program. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes_GCJ=yes ;; darwin* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' ;; *) # Darwin 1.3 on if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' else case ${MACOSX_DEPLOYMENT_TARGET} in 10.[012]) allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10.*) allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' ;; esac fi ;; esac archive_cmds_need_lc_GCJ=no hardcode_direct_GCJ=no hardcode_automatic_GCJ=yes hardcode_shlibpath_var_GCJ=unsupported whole_archive_flag_spec_GCJ='' link_all_deplibs_GCJ=yes if test "$GCC" = yes ; then output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' else case $cc_basename in xlc*) output_verbose_link_cmd='echo' archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' ;; *) ld_shlibs_GCJ=no ;; esac fi ;; dgux*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; freebsd1*) ld_shlibs_GCJ=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_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${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_GCJ='$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_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$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_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$CC -shared -fPIC ${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_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds_GCJ='$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 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' hardcode_libdir_separator_GCJ=: case $host_cpu in hppa*64*|ia64*) hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' hardcode_direct_GCJ=no hardcode_shlibpath_var_GCJ=no ;; *) hardcode_direct_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L_GCJ=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: link_all_deplibs_GCJ=yes ;; netbsd* | netbsdelf*-gnu) if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; newsos6) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: hardcode_shlibpath_var_GCJ=no ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct_GCJ=yes hardcode_shlibpath_var_GCJ=no if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' export_dynamic_flag_spec_GCJ='${wl}-E' else case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-R$libdir' ;; *) archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs_GCJ=no fi ;; os2*) hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_minus_L_GCJ=yes allow_undefined_flag_GCJ=unsupported archive_cmds_GCJ='$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_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' fi hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator_GCJ=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' else allow_undefined_flag_GCJ=' -expect_unresolved \*' archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $LD -shared${allow_undefined_flag} -input $lib.exp $linker_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_GCJ='-rpath $libdir' fi hardcode_libdir_separator_GCJ=: ;; solaris*) no_undefined_flag_GCJ=' -z text' if test "$GCC" = yes; then wlarc='${wl}' archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' else wlarc='' archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' archive_expsym_cmds_GCJ='$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' fi hardcode_libdir_flag_spec_GCJ='-R$libdir' hardcode_shlibpath_var_GCJ=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_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' fi ;; esac link_all_deplibs_GCJ=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_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_direct_GCJ=yes hardcode_minus_L_GCJ=yes hardcode_shlibpath_var_GCJ=no ;; sysv4) case $host_vendor in sni) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' reload_cmds_GCJ='$CC -r -o $output$reload_objs' hardcode_direct_GCJ=no ;; motorola) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' hardcode_shlibpath_var_GCJ=no ;; sysv4.3*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no export_dynamic_flag_spec_GCJ='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var_GCJ=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes ld_shlibs_GCJ=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) no_undefined_flag_GCJ='${wl}-z,text' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$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_GCJ='${wl}-z,text' allow_undefined_flag_GCJ='${wl}-z,nodefs' archive_cmds_need_lc_GCJ=no hardcode_shlibpath_var_GCJ=no hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator_GCJ=':' link_all_deplibs_GCJ=yes export_dynamic_flag_spec_GCJ='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' else archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec_GCJ='-L$libdir' hardcode_shlibpath_var_GCJ=no ;; *) ld_shlibs_GCJ=no ;; esac fi { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } test "$ld_shlibs_GCJ" = no && can_build_shared=no # # Do we need to explicitly link libc? # case "x$archive_cmds_need_lc_GCJ" in x|xyes) # Assume -lc should be added archive_cmds_need_lc_GCJ=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $archive_cmds_GCJ 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. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } $rm conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$lt_prog_compiler_wl_GCJ pic_flag=$lt_prog_compiler_pic_GCJ compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ allow_undefined_flag_GCJ= if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } then archive_cmds_need_lc_GCJ=no else archive_cmds_need_lc_GCJ=yes fi allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $rm conftest* { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } ;; esac fi ;; esac { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } library_names_spec= libname_spec='lib$name' 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 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' ;; aix4* | aix5*) version_type=linux 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*) 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=`$echo "X$lib" | $Xsed -e '\''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' ;; beos*) library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; bsdi[45]*) version_type=linux 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*) version_type=windows shrext_cmds=".dll" need_version=no need_lib_prefix=no case $GCC,$host_os in yes,cygwin* | yes,mingw* | yes,pw32*) 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' 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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}${versuffix}$shared_ext ${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_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' ;; dgux*) 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 ;; freebsd1*) dynamic_linker=no ;; 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[123]*) 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 ;; 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 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' ;; interix[3-9]*) 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' 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 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 Linux ELF. linux* | k*bsd*-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' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no # 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;/^$/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 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=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=yes ;; 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 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 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 export_dynamic_flag_spec='${wl}-Blargedynsym' 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 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 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' shlibpath_overrides_runpath=no else sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' shlibpath_overrides_runpath=yes 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' ;; uts4*) version_type=linux 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 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6; } test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } hardcode_action_GCJ= if test -n "$hardcode_libdir_flag_spec_GCJ" || \ test -n "$runpath_var_GCJ" || \ test "X$hardcode_automatic_GCJ" = "Xyes" ; then # We can hardcode non-existant directories. if test "$hardcode_direct_GCJ" != 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_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && test "$hardcode_minus_L_GCJ" != no; then # Linking always hardcodes the temporary library directory. hardcode_action_GCJ=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. hardcode_action_GCJ=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. hardcode_action_GCJ=unsupported fi { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 echo "${ECHO_T}$hardcode_action_GCJ" >&6; } if test "$hardcode_action_GCJ" = relink; 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 # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # 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 # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_GCJ \ CC_GCJ \ LD_GCJ \ lt_prog_compiler_wl_GCJ \ lt_prog_compiler_pic_GCJ \ lt_prog_compiler_static_GCJ \ lt_prog_compiler_no_builtin_flag_GCJ \ export_dynamic_flag_spec_GCJ \ thread_safe_flag_spec_GCJ \ whole_archive_flag_spec_GCJ \ enable_shared_with_static_runtimes_GCJ \ old_archive_cmds_GCJ \ old_archive_from_new_cmds_GCJ \ predep_objects_GCJ \ postdep_objects_GCJ \ predeps_GCJ \ postdeps_GCJ \ compiler_lib_search_path_GCJ \ archive_cmds_GCJ \ archive_expsym_cmds_GCJ \ postinstall_cmds_GCJ \ postuninstall_cmds_GCJ \ old_archive_from_expsyms_cmds_GCJ \ allow_undefined_flag_GCJ \ no_undefined_flag_GCJ \ export_symbols_cmds_GCJ \ hardcode_libdir_flag_spec_GCJ \ hardcode_libdir_flag_spec_ld_GCJ \ hardcode_libdir_separator_GCJ \ hardcode_automatic_GCJ \ module_cmds_GCJ \ module_expsym_cmds_GCJ \ lt_cv_prog_compiler_c_o_GCJ \ fix_srcfile_path_GCJ \ exclude_expsyms_GCJ \ include_expsyms_GCJ; do case $var in old_archive_cmds_GCJ | \ old_archive_from_new_cmds_GCJ | \ archive_cmds_GCJ | \ archive_expsym_cmds_GCJ | \ module_cmds_GCJ | \ module_expsym_cmds_GCJ | \ old_archive_from_expsyms_cmds_GCJ | \ export_symbols_cmds_GCJ | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_GCJ # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # 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 # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_GCJ # Is the compiler the GNU C compiler? with_gcc=$GCC_GCJ # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_GCJ # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_GCJ # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_GCJ pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ # Must we lock files when doing compilation? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_GCJ # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_GCJ old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_GCJ archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_GCJ module_expsym_cmds=$lt_module_expsym_cmds_GCJ # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_GCJ # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_GCJ # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_GCJ # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_GCJ # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_GCJ # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_GCJ # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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_GCJ # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_GCJ # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_GCJ # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ # 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_GCJ # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_GCJ # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_GCJ # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_GCJ # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_GCJ # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_GCJ # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" else tagname="" fi ;; RC) # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o objext_RC=$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. # 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 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 conftest* # Allow CC to be a program name with arguments. lt_save_CC="$CC" CC=${RC-"windres"} compiler=$CC compiler_RC=$CC for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` lt_cv_prog_compiler_c_o_RC=yes # The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then # 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 # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ SED SHELL STRIP \ libname_spec library_names_spec soname_spec extract_expsyms_cmds \ old_striplib striplib file_magic_cmd finish_cmds finish_eval \ deplibs_check_method reload_flag reload_cmds need_locks \ lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ old_postinstall_cmds old_postuninstall_cmds \ compiler_RC \ CC_RC \ LD_RC \ lt_prog_compiler_wl_RC \ lt_prog_compiler_pic_RC \ lt_prog_compiler_static_RC \ lt_prog_compiler_no_builtin_flag_RC \ export_dynamic_flag_spec_RC \ thread_safe_flag_spec_RC \ whole_archive_flag_spec_RC \ enable_shared_with_static_runtimes_RC \ old_archive_cmds_RC \ old_archive_from_new_cmds_RC \ predep_objects_RC \ postdep_objects_RC \ predeps_RC \ postdeps_RC \ compiler_lib_search_path_RC \ archive_cmds_RC \ archive_expsym_cmds_RC \ postinstall_cmds_RC \ postuninstall_cmds_RC \ old_archive_from_expsyms_cmds_RC \ allow_undefined_flag_RC \ no_undefined_flag_RC \ export_symbols_cmds_RC \ hardcode_libdir_flag_spec_RC \ hardcode_libdir_flag_spec_ld_RC \ hardcode_libdir_separator_RC \ hardcode_automatic_RC \ module_cmds_RC \ module_expsym_cmds_RC \ lt_cv_prog_compiler_c_o_RC \ fix_srcfile_path_RC \ exclude_expsyms_RC \ include_expsyms_RC; do case $var in old_archive_cmds_RC | \ old_archive_from_new_cmds_RC | \ archive_cmds_RC | \ archive_expsym_cmds_RC | \ module_cmds_RC | \ module_expsym_cmds_RC | \ old_archive_from_expsyms_cmds_RC | \ export_symbols_cmds_RC | \ extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ old_postinstall_cmds | old_postuninstall_cmds | \ sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; *) eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" ;; esac done case $lt_echo in *'\$0 --fallback-echo"') lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` ;; esac cfgfile="$ofile" cat <<__EOF__ >> "$cfgfile" # ### BEGIN LIBTOOL TAG CONFIG: $tagname # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # Whether or not to build shared libraries. build_libtool_libs=$enable_shared # Whether or not to build static libraries. build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=$archive_cmds_need_lc_RC # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC # Whether or not to optimize for fast installation. fast_install=$enable_fast_install # 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 # An echo program that does not interpret backslashes. echo=$lt_echo # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # A C compiler. LTCC=$lt_LTCC # LTCC compiler flags. LTCFLAGS=$lt_LTCFLAGS # A language-specific compiler. CC=$lt_compiler_RC # Is the compiler the GNU C compiler? with_gcc=$GCC_RC # An ERE matcher. EGREP=$lt_EGREP # The linker used to build libraries. LD=$lt_LD_RC # Whether we need hard or soft links. LN_S=$lt_LN_S # A BSD-compatible nm program. NM=$lt_NM # A symbol stripping program STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD # Used on cygwin: DLL creation program. DLLTOOL="$DLLTOOL" # Used on cygwin: object dumper. OBJDUMP="$OBJDUMP" # Used on cygwin: assembler. AS="$AS" # The name of the directory that contains temporary libtool files. objdir=$objdir # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl_RC # Object file suffix (normally "o"). objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" # Shared library suffix (normally ".so"). shrext_cmds='$shrext_cmds' # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic_RC pic_mode=$pic_mode # What is the maximum length of a command? max_cmd_len=$lt_cv_sys_max_cmd_len # Does compiler simultaneously support -c and -o options? compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC # Must we lock files when doing compilation? need_locks=$lt_need_locks # 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 # 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 # Compiler flag to prevent dynamic linking. link_static_flag=$lt_lt_prog_compiler_static_RC # Compiler flag to turn off builtin functions. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC # Compiler flag to generate thread-safe objects. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC # Library versioning type. version_type=$version_type # 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 # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB old_archive_cmds=$lt_old_archive_cmds_RC old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds_RC archive_expsym_cmds=$lt_archive_expsym_cmds_RC postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds # Commands used to build a loadable module (assumed same as above if empty) module_cmds=$lt_module_cmds_RC module_expsym_cmds=$lt_module_expsym_cmds_RC # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib # Dependencies to place before the objects being linked to create a # shared library. predep_objects=$lt_predep_objects_RC # Dependencies to place after the objects being linked to create a # shared library. postdep_objects=$lt_postdep_objects_RC # Dependencies to place before the objects being linked to create a # shared library. predeps=$lt_predeps_RC # Dependencies to place after the objects being linked to create a # shared library. postdeps=$lt_postdeps_RC # The library search path used internally by the compiler when linking # a shared library. compiler_lib_search_path=$lt_compiler_lib_search_path_RC # 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 # Flag that allows shared libraries with undefined symbols to be built. allow_undefined_flag=$lt_allow_undefined_flag_RC # Flag that forces no undefined symbols. no_undefined_flag=$lt_no_undefined_flag_RC # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds # Same as above, but a single script fragment to be evaled but not shown. finish_eval=$lt_finish_eval # 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 # This is the shared library runtime path variable. runpath_var=$runpath_var # This is the shared library path variable. shlibpath_var=$shlibpath_var # Is shlibpath searched before the hard-coded library search path? shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. hardcode_action=$hardcode_action_RC # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # 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_RC # If ld is used when linking, flag to hardcode \$libdir into # a binary during linking. This must work even if \$libdir does # not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct_RC # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. hardcode_minus_L=$hardcode_minus_L_RC # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC # 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_RC # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. link_all_deplibs=$link_all_deplibs_RC # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # Set to yes if exported symbols are required. always_export_symbols=$always_export_symbols_RC # The commands to list exported symbols. export_symbols_cmds=$lt_export_symbols_cmds_RC # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. exclude_expsyms=$lt_exclude_expsyms_RC # Symbols that must always be exported. include_expsyms=$lt_include_expsyms_RC # ### END LIBTOOL TAG CONFIG: $tagname __EOF__ else # If there is no Makefile yet, we rely on a make rule to execute # `config.status --recheck' to rerun these tests and create the # libtool script then. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` if test -f "$ltmain_in"; then test -f Makefile && make "$ltmain" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu CC="$lt_save_CC" ;; *) { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} { (exit 1); exit 1; }; } ;; esac # Append the new tag name to the list of available tags. if test -n "$tagname" ; then available_tags="$available_tags $tagname" fi fi done IFS="$lt_save_ifs" # Now substitute the updated list of available tags. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then mv "${ofile}T" "$ofile" chmod +x "$ofile" else rm -f "${ofile}T" { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} { (exit 1); exit 1; }; } fi fi # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' # Prevent multiple expansion # Extract the first word of "'gnome-moz-remote'", so it can be a program name with args. set dummy 'gnome-moz-remote'; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_HAVE_GNOME_MOZ_REMOTE+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$HAVE_GNOME_MOZ_REMOTE"; then ac_cv_prog_HAVE_GNOME_MOZ_REMOTE="$HAVE_GNOME_MOZ_REMOTE" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_HAVE_GNOME_MOZ_REMOTE="yes" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_HAVE_GNOME_MOZ_REMOTE" && ac_cv_prog_HAVE_GNOME_MOZ_REMOTE="no" fi fi HAVE_GNOME_MOZ_REMOTE=$ac_cv_prog_HAVE_GNOME_MOZ_REMOTE if test -n "$HAVE_GNOME_MOZ_REMOTE"; then { echo "$as_me:$LINENO: result: $HAVE_GNOME_MOZ_REMOTE" >&5 echo "${ECHO_T}$HAVE_GNOME_MOZ_REMOTE" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } if test "${ac_cv_c_bigendian+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # See if sys/param.h defines the BYTE_ORDER macro. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then # It does; now see whether it defined to BIG_ENDIAN or not. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_bigendian=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_bigendian=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # It does not; compile a test program. if test "$cross_compiling" = yes; then # try to guess the endianness by grepping values into an object file ac_cv_c_bigendian=unknown cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } int main () { _ascii (); _ebcdic (); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_bigendian=no else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_c_bigendian=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in yes) cat >>confdefs.h <<\_ACEOF #define WORDS_BIGENDIAN 1 _ACEOF ;; no) ;; *) { { echo "$as_me:$LINENO: error: unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" >&5 echo "$as_me: error: unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} { (exit 1); exit 1; }; } ;; esac for ac_func in strchr do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in madvise do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done ALL_LINGUAS="de el es_ES fr hu it ja pl ru en_AU" MKINSTALLDIRS= if test -n "$ac_aux_dir"; then case "$ac_aux_dir" in /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; esac fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&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 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 echo "${ECHO_T}$USE_NLS" >&6; } # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$MSGFMT" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then { echo "$as_me:$LINENO: result: $MSGFMT" >&5 echo "${ECHO_T}$MSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 echo "${ECHO_T}$GMSGFMT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$XGETTEXT" in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done 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 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 echo "${ECHO_T}$XGETTEXT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi rm -f messages.po # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_MSGMERGE+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case "$MSGMERGE" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" ;; esac fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$MSGMERGE" != ":"; then { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 echo "${ECHO_T}$MSGMERGE" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "$GMSGFMT" != ":"; then if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then : ; else GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } GMSGFMT=":" fi fi if test "$XGETTEXT" != ":"; then if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then : ; else { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } XGETTEXT=":" fi rm -f messages.po fi ac_config_commands="$ac_config_commands default-1" { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; } if test "${ac_cv_gnu_library_2+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) Lucky GNU user #endif #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then ac_cv_gnu_library_2=yes else ac_cv_gnu_library_2=no fi rm -f conftest* fi { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; } GLIBC2="$ac_cv_gnu_library_2" 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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset cs; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_const=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then cat >>confdefs.h <<\_ACEOF #define const _ACEOF fi { echo "$as_me:$LINENO: checking for signed" >&5 echo $ECHO_N "checking for signed... $ECHO_C" >&6; } if test "${bh_cv_c_signed+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { signed char x; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then bh_cv_c_signed=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 bh_cv_c_signed=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 echo "${ECHO_T}$bh_cv_c_signed" >&6; } if test $bh_cv_c_signed = no; then cat >>confdefs.h <<\_ACEOF #define signed _ACEOF fi { echo "$as_me:$LINENO: checking for inline" >&5 echo $ECHO_N "checking for inline... $ECHO_C" >&6; } if test "${ac_cv_c_inline+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_c_inline=$ac_kw else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 echo "${ECHO_T}$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac { echo "$as_me:$LINENO: checking for off_t" >&5 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } if test "${ac_cv_type_off_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_off_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_off_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 echo "${ECHO_T}$ac_cv_type_off_t" >&6; } if test $ac_cv_type_off_t = yes; then : else cat >>confdefs.h <<_ACEOF #define off_t long int _ACEOF fi { echo "$as_me:$LINENO: checking for size_t" >&5 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } if test "${ac_cv_type_size_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef size_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_size_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_size_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } if test $ac_cv_type_size_t = yes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi { echo "$as_me:$LINENO: checking for long long" >&5 echo $ECHO_N "checking for long long... $ECHO_C" >&6; } if test "${ac_cv_type_long_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ long long ll = 1LL; int i = 63; int main () { long long llmax = (long long) -1; return ll << i | ll >> i | llmax / ll | llmax % ll; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_type_long_long=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_long_long=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 echo "${ECHO_T}$ac_cv_type_long_long" >&6; } if test $ac_cv_type_long_long = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LONG_LONG 1 _ACEOF fi { echo "$as_me:$LINENO: checking for long double" >&5 echo $ECHO_N "checking for long double... $ECHO_C" >&6; } if test "${gt_cv_c_long_double+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$GCC" = yes; then gt_cv_c_long_double=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* The Stardent Vistra knows sizeof(long double), but does not support it. */ long double foo = 0.0; /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ int array [2*(sizeof(long double) >= sizeof(double)) - 1]; int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gt_cv_c_long_double=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_c_long_double=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 echo "${ECHO_T}$gt_cv_c_long_double" >&6; } if test $gt_cv_c_long_double = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LONG_DOUBLE 1 _ACEOF fi { echo "$as_me:$LINENO: checking for wchar_t" >&5 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } if test "${gt_cv_c_wchar_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include wchar_t foo = (wchar_t)'\0'; int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gt_cv_c_wchar_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_c_wchar_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } if test $gt_cv_c_wchar_t = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_WCHAR_T 1 _ACEOF fi { echo "$as_me:$LINENO: checking for wint_t" >&5 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } if test "${gt_cv_c_wint_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include wint_t foo = (wchar_t)'\0'; int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gt_cv_c_wint_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_c_wint_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } if test $gt_cv_c_wint_t = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_WINT_T 1 _ACEOF fi { echo "$as_me:$LINENO: checking for inttypes.h" >&5 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } if test "${gl_cv_header_inttypes_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { uintmax_t i = (uintmax_t) -1; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gl_cv_header_inttypes_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gl_cv_header_inttypes_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; } if test $gl_cv_header_inttypes_h = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_INTTYPES_H_WITH_UINTMAX 1 _ACEOF fi { echo "$as_me:$LINENO: checking for stdint.h" >&5 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } if test "${gl_cv_header_stdint_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { uintmax_t i = (uintmax_t) -1; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gl_cv_header_stdint_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gl_cv_header_stdint_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; } if test $gl_cv_header_stdint_h = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_STDINT_H_WITH_UINTMAX 1 _ACEOF fi { echo "$as_me:$LINENO: checking for intmax_t" >&5 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } if test "${gt_cv_c_intmax_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if HAVE_STDINT_H_WITH_UINTMAX #include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX #include #endif int main () { intmax_t x = -1; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gt_cv_c_intmax_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_c_intmax_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } if test $gt_cv_c_intmax_t = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_INTMAX_T 1 _ACEOF fi { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } if test "${gt_cv_func_printf_posix+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ notposix #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "notposix" >/dev/null 2>&1; then gt_cv_func_printf_posix="guessing no" else gt_cv_func_printf_posix="guessing yes" fi rm -f conftest* else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include /* The string "%2$d %1$d", with dollar characters protected from the shell's dollar expansion (possibly an autoconf bug). */ static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; static char buf[100]; int main () { sprintf (buf, format, 33, 55); return (strcmp (buf, "55 33") != 0); } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gt_cv_func_printf_posix=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) gt_cv_func_printf_posix=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } case $gt_cv_func_printf_posix in *yes) cat >>confdefs.h <<\_ACEOF #define HAVE_POSIX_PRINTF 1 _ACEOF ;; esac # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! { echo "$as_me:$LINENO: checking for working alloca.h" >&5 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } if test "${ac_cv_working_alloca_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_working_alloca_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_working_alloca_h=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_ALLOCA_H 1 _ACEOF fi { echo "$as_me:$LINENO: checking for alloca" >&5 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } if test "${ac_cv_func_alloca_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __GNUC__ # define alloca __builtin_alloca #else # ifdef _MSC_VER # include # define alloca _alloca # else # ifdef HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ char *alloca (); # endif # endif # endif # endif #endif int main () { char *p = (char *) alloca (1); if (p) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_alloca_works=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_alloca_works=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } if test $ac_cv_func_alloca_works = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_ALLOCA 1 _ACEOF else # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext cat >>confdefs.h <<\_ACEOF #define C_ALLOCA 1 _ACEOF { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } if test "${ac_cv_os_cray+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if defined CRAY && ! defined CRAY2 webecray #else wenotbecray #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "webecray" >/dev/null 2>&1; then ac_cv_os_cray=yes else ac_cv_os_cray=no fi rm -f conftest* fi { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 echo "${ECHO_T}$ac_cv_os_cray" >&6; } if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define CRAY_STACKSEG_END $ac_func _ACEOF break fi done fi { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } if test "${ac_cv_c_stack_direction+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_c_stack_direction=0 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default int find_stack_direction () { static char *addr = 0; auto char dummy; if (addr == 0) { addr = &dummy; return find_stack_direction (); } else return (&dummy > addr) ? 1 : -1; } int main () { return find_stack_direction () < 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_stack_direction=1 else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } cat >>confdefs.h <<_ACEOF #define STACK_DIRECTION $ac_cv_c_stack_direction _ACEOF fi for ac_header in stdlib.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in getpagesize do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for working mmap" >&5 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then ac_cv_func_mmap_fixed_mapped=no else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default /* malloc might have been renamed as rpl_malloc. */ #undef malloc /* Thanks to Mike Haertel and Jim Avera for this test. Here is a matrix of mmap possibilities: mmap private not fixed mmap private fixed at somewhere currently unmapped mmap private fixed at somewhere already mapped mmap shared not fixed mmap shared fixed at somewhere currently unmapped mmap shared fixed at somewhere already mapped For private mappings, we should verify that changes cannot be read() back from the file, nor mmap's back from the file at a different address. (There have been systems where private was not correctly implemented like the infamous i386 svr4.0, and systems where the VM page cache was not coherent with the file system buffer cache like early versions of FreeBSD and possibly contemporary NetBSD.) For shared mappings, we should conversely verify that changes get propagated back to all the places they're supposed to be. Grep wants private fixed already mapped. The main things grep needs to know about mmap are: * does it exist and is it safe to write into the mmap'd area * how to use it (BSD variants) */ #include #include #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H char *malloc (); #endif /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE /* Assume that all systems that can run configure have sys/param.h. */ # ifndef HAVE_SYS_PARAM_H # define HAVE_SYS_PARAM_H 1 # endif # ifdef _SC_PAGESIZE # define getpagesize() sysconf(_SC_PAGESIZE) # else /* no _SC_PAGESIZE */ # ifdef HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else /* no EXEC_PAGESIZE */ # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif /* no CLSIZE */ # else /* no NBPG */ # ifdef NBPC # define getpagesize() NBPC # else /* no NBPC */ # ifdef PAGESIZE # define getpagesize() PAGESIZE # endif /* PAGESIZE */ # endif /* no NBPC */ # endif /* no NBPG */ # endif /* no EXEC_PAGESIZE */ # else /* no HAVE_SYS_PARAM_H */ # define getpagesize() 8192 /* punt totally */ # endif /* no HAVE_SYS_PARAM_H */ # endif /* no _SC_PAGESIZE */ #endif /* no HAVE_GETPAGESIZE */ int main () { char *data, *data2, *data3; int i, pagesize; int fd; pagesize = getpagesize (); /* First, make a file with some known garbage in it. */ data = (char *) malloc (pagesize); if (!data) return 1; for (i = 0; i < pagesize; ++i) *(data + i) = rand (); umask (0); fd = creat ("conftest.mmap", 0600); if (fd < 0) return 1; if (write (fd, data, pagesize) != pagesize) return 1; close (fd); /* Next, try to mmap the file at a fixed address which already has something else allocated at it. If we can, also make sure that we see the same garbage. */ fd = open ("conftest.mmap", O_RDWR); if (fd < 0) return 1; data2 = (char *) malloc (2 * pagesize); if (!data2) return 1; data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)) return 1; for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data2 + i)) return 1; /* Finally, make sure that changes to the mapped area do not percolate back to the file as seen by read(). (This is a bug on some variants of i386 svr4.0.) */ for (i = 0; i < pagesize; ++i) *(data2 + i) = *(data2 + i) + 1; data3 = (char *) malloc (pagesize); if (!data3) return 1; if (read (fd, data3, pagesize) != pagesize) return 1; for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data3 + i)) return 1; close (fd); return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_mmap_fixed_mapped=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_mmap_fixed_mapped=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } if test $ac_cv_func_mmap_fixed_mapped = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_MMAP 1 _ACEOF fi rm -f conftest.mmap { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } if test "${ac_cv_gnu_library_2_1+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then ac_cv_gnu_library_2_1=yes else ac_cv_gnu_library_2_1=no fi rm -f conftest* fi { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } GLIBC21="$ac_cv_gnu_library_2_1" { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; } if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Guess based on the CPU. case "$host_cpu" in alpha* | i3456786 | m68k | s390*) gt_cv_int_divbyzero_sigfpe="guessing yes";; *) gt_cv_int_divbyzero_sigfpe="guessing no";; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include static void #ifdef __cplusplus sigfpe_handler (int sig) #else sigfpe_handler (sig) int sig; #endif { /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ exit (sig != SIGFPE); } int x = 1; int y = 0; int z; int nan; int main () { signal (SIGFPE, sigfpe_handler); /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) signal (SIGTRAP, sigfpe_handler); #endif /* Linux/SPARC yields signal SIGILL. */ #if defined (__sparc__) && defined (__linux__) signal (SIGILL, sigfpe_handler); #endif z = x / y; nan = y / y; exit (1); } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gt_cv_int_divbyzero_sigfpe=yes else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) gt_cv_int_divbyzero_sigfpe=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } case "$gt_cv_int_divbyzero_sigfpe" in *yes) value=1;; *) value=0;; esac cat >>confdefs.h <<_ACEOF #define INTDIV0_RAISES_SIGFPE $value _ACEOF { echo "$as_me:$LINENO: checking for unsigned long long" >&5 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } if test "${ac_cv_type_unsigned_long_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ unsigned long long ull = 1ULL; int i = 63; int main () { unsigned long long ullmax = (unsigned long long) -1; return ull << i | ull >> i | ullmax / ull | ullmax % ull; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_type_unsigned_long_long=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_unsigned_long_long=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } if test $ac_cv_type_unsigned_long_long = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_UNSIGNED_LONG_LONG 1 _ACEOF fi if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then test $ac_cv_type_unsigned_long_long = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' cat >>confdefs.h <<_ACEOF #define uintmax_t $ac_type _ACEOF else cat >>confdefs.h <<\_ACEOF #define HAVE_UINTMAX_T 1 _ACEOF fi { echo "$as_me:$LINENO: checking for inttypes.h" >&5 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } if test "${gt_cv_header_inttypes_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gt_cv_header_inttypes_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_header_inttypes_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } if test $gt_cv_header_inttypes_h = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_INTTYPES_H 1 _ACEOF fi if test $gt_cv_header_inttypes_h = yes; then { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; } if test "${gt_cv_inttypes_pri_broken+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef PRId32 char *p = PRId32; #endif int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then gt_cv_inttypes_pri_broken=no else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_inttypes_pri_broken=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } fi if test "$gt_cv_inttypes_pri_broken" = yes; then cat >>confdefs.h <<_ACEOF #define PRI_MACROS_BROKEN 1 _ACEOF fi for ac_header in stdint.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } result= cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #if HAVE_STDINT_H #include #endif #ifdef SIZE_MAX Found it #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Found it" >/dev/null 2>&1; then result=yes fi rm -f conftest* if test -z "$result"; then if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) res_hi=$ac_lo;; '') result=? ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include static long int longval () { return ~(size_t)0 / 10; } static unsigned long int ulongval () { return ~(size_t)0 / 10; } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if ((~(size_t)0 / 10) < 0) { long int i = longval (); if (i != (~(size_t)0 / 10)) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != (~(size_t)0 / 10)) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then res_hi=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) result=? fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) res_lo=$ac_lo;; '') result=? ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include static long int longval () { return ~(size_t)0 % 10; } static unsigned long int ulongval () { return ~(size_t)0 % 10; } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if ((~(size_t)0 % 10) < 0) { long int i = longval (); if (i != (~(size_t)0 % 10)) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != (~(size_t)0 % 10)) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then res_lo=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) result=? fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) fits_in_uint=$ac_lo;; '') result=? ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) { long int i = longval (); if (i != (sizeof (size_t) <= sizeof (unsigned int))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != (sizeof (size_t) <= sizeof (unsigned int))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then fits_in_uint=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) result=? fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val if test "$fits_in_uint" = 1; then cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include extern size_t foo; extern unsigned long foo; int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then fits_in_uint=0 else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test -z "$result"; then if test "$fits_in_uint" = 1; then result="$res_hi$res_lo"U else result="$res_hi$res_lo"UL fi else result='~(size_t)0' fi fi { echo "$as_me:$LINENO: result: $result" >&5 echo "${ECHO_T}$result" >&6; } if test "$result" != yes; then cat >>confdefs.h <<_ACEOF #define SIZE_MAX $result _ACEOF fi for ac_header in stdint.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" gt_save_LIBS="$LIBS" LIBS="$LIBS -framework CoreFoundation" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_CFPreferencesCopyAppValue=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 _ACEOF fi { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" gt_save_LIBS="$LIBS" LIBS="$LIBS -framework CoreFoundation" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { CFLocaleCopyCurrent(); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_CFLocaleCopyCurrent=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_CFLOCALECOPYCURRENT 1 _ACEOF fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" # 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 # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&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. [\\/]* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path 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 { echo "$as_me:$LINENO: checking for GNU ld" >&5 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } else { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } fi if test "${acl_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$acl_cv_path_LD" if test -n "$LD"; then { echo "$as_me:$LINENO: result: $LD" >&5 echo "${ECHO_T}$LD" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} { (exit 1); exit 1; }; } { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } if test "${acl_cv_prog_gnu_ld+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 &5 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } if test "${acl_cv_rpath+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done fi { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 echo "${ECHO_T}$acl_cv_rpath" >&6; } wl="$acl_cv_wl" libext="$acl_cv_libext" shlibext="$acl_cv_shlibext" hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" hardcode_direct="$acl_cv_hardcode_direct" hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. if test "${enable_rpath+set}" = set; then enableval=$enable_rpath; : else enable_rpath=yes fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libiconv-prefix was given. if test "${with_libiconv_prefix+set}" = set; then withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/lib" fi fi fi LIBICONV= LTLIBICONV= INCICONV= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='iconv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" else : fi else found_dir= found_la= found_so= found_a= if test $use_additional = yes; then if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then found_dir="$additional_libdir" found_so="$additional_libdir/lib$name.$shlibext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi else if test -f "$additional_libdir/lib$name.$libext"; then found_dir="$additional_libdir" found_a="$additional_libdir/lib$name.$libext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then found_dir="$dir" found_so="$dir/lib$name.$shlibext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi else if test -f "$dir/lib$name.$libext"; then found_dir="$dir" found_a="$dir/lib$name.$libext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$hardcode_direct" = yes; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" fi if test "$hardcode_minus_L" != no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" else LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */lib | */lib/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/lib"; then haveit= if test "X$additional_libdir" = "X/usr/local/lib"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" ;; esac done fi else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" done fi { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } if test "${ac_cv_type_ptrdiff_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef ptrdiff_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_ptrdiff_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_ptrdiff_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } if test $ac_cv_type_ptrdiff_t = yes; then : else cat >>confdefs.h <<\_ACEOF #define ptrdiff_t long _ACEOF fi for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ stdlib.h string.h unistd.h sys/param.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ __fsetlocking do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* 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 $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } if test "${ac_cv_have_decl__snprintf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { #ifndef _snprintf char *p = (char *) _snprintf; #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_have_decl__snprintf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl__snprintf=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } if test $ac_cv_have_decl__snprintf = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SNPRINTF $gt_value _ACEOF { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } if test "${ac_cv_have_decl__snwprintf+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { #ifndef _snwprintf char *p = (char *) _snwprintf; #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_have_decl__snwprintf=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl__snwprintf=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } if test $ac_cv_have_decl__snwprintf = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SNWPRINTF $gt_value _ACEOF { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { #ifndef feof_unlocked char *p = (char *) feof_unlocked; #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_have_decl_feof_unlocked=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl_feof_unlocked=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } if test $ac_cv_have_decl_feof_unlocked = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_FEOF_UNLOCKED $gt_value _ACEOF { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { #ifndef fgets_unlocked char *p = (char *) fgets_unlocked; #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_have_decl_fgets_unlocked=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl_fgets_unlocked=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } if test $ac_cv_have_decl_fgets_unlocked = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_FGETS_UNLOCKED $gt_value _ACEOF { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { #ifndef getc_unlocked char *p = (char *) getc_unlocked; #endif ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_have_decl_getc_unlocked=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_have_decl_getc_unlocked=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } if test $ac_cv_have_decl_getc_unlocked = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_GETC_UNLOCKED $gt_value _ACEOF case $gt_cv_func_printf_posix in *yes) HAVE_POSIX_PRINTF=1 ;; *) HAVE_POSIX_PRINTF=0 ;; esac if test "$ac_cv_func_asprintf" = yes; then HAVE_ASPRINTF=1 else HAVE_ASPRINTF=0 fi if test "$ac_cv_func_snprintf" = yes; then HAVE_SNPRINTF=1 else HAVE_SNPRINTF=0 fi if test "$ac_cv_func_wprintf" = yes; then HAVE_WPRINTF=1 else HAVE_WPRINTF=0 fi am_save_CPPFLAGS="$CPPFLAGS" for element in $INCICONV; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { echo "$as_me:$LINENO: checking for iconv" >&5 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } if test "${am_cv_func_iconv+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then am_cv_func_iconv=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then am_cv_lib_iconv=yes am_cv_func_iconv=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 echo "${ECHO_T}$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_ICONV 1 _ACEOF fi if test "$am_cv_lib_iconv" = yes; then { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $LIBICONV" >&5 echo "${ECHO_T}$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi if test "$am_cv_func_iconv" = yes; then { echo "$as_me:$LINENO: checking for iconv declaration" >&5 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } if test "${am_cv_proto_iconv+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif int main () { ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then am_cv_proto_iconv_arg1="" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 am_cv_proto_iconv_arg1="const" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" fi am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` { echo "$as_me:$LINENO: result: ${ac_t:- }$am_cv_proto_iconv" >&5 echo "${ECHO_T}${ac_t:- }$am_cv_proto_iconv" >&6; } cat >>confdefs.h <<_ACEOF #define ICONV_CONST $am_cv_proto_iconv_arg1 _ACEOF fi { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } if test "${am_cv_langinfo_codeset+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { char* cs = nl_langinfo(CODESET); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then am_cv_langinfo_codeset=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 am_cv_langinfo_codeset=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } if test $am_cv_langinfo_codeset = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LANGINFO_CODESET 1 _ACEOF fi if test $ac_cv_header_locale_h = yes; then { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } if test "${gt_cv_val_LC_MESSAGES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { return LC_MESSAGES ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_val_LC_MESSAGES=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_val_LC_MESSAGES=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; } if test $gt_cv_val_LC_MESSAGES = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LC_MESSAGES 1 _ACEOF fi fi if test -n "$INTL_MACOSX_LIBS"; then CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" fi for ac_prog in bison do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_INTLBISON+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$INTLBISON"; then ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_INTLBISON="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi INTLBISON=$ac_cv_prog_INTLBISON if test -n "$INTLBISON"; then { echo "$as_me:$LINENO: result: $INTLBISON" >&5 echo "${ECHO_T}$INTLBISON" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$INTLBISON" && break done if test -z "$INTLBISON"; then ac_verc_fail=yes else { echo "$as_me:$LINENO: checking version of bison" >&5 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 echo "${ECHO_T}$ac_prog_version" >&6; } fi if test $ac_verc_fail = yes; then INTLBISON=: fi { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" gt_save_LIBS="$LIBS" LIBS="$LIBS -framework CoreFoundation" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_CFPreferencesCopyAppValue=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 _ACEOF fi { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" gt_save_LIBS="$LIBS" LIBS="$LIBS -framework CoreFoundation" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include int main () { CFLocaleCopyCurrent(); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_CFLocaleCopyCurrent=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_CFLOCALECOPYCURRENT 1 _ACEOF fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&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 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 echo "${ECHO_T}$USE_NLS" >&6; } BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no LIBINTL= LTLIBINTL= POSUB= if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } # Check whether --with-included-gettext was given. if test "${with_included_gettext+set}" = set; then withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval else nls_cv_force_use_gnu_gettext=no fi { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } if test "${gt_cv_func_gnugettext1_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; int main () { bindtextdomain ("", ""); return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_gnugettext1_libc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_gnugettext1_libc=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } if test "$gt_cv_func_gnugettext1_libc" != "yes"; then use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libintl-prefix was given. if test "${with_libintl_prefix+set}" = set; then withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/lib" fi fi fi LIBINTL= LTLIBINTL= INCINTL= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='intl ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" else : fi else found_dir= found_la= found_so= found_a= if test $use_additional = yes; then if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then found_dir="$additional_libdir" found_so="$additional_libdir/lib$name.$shlibext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi else if test -f "$additional_libdir/lib$name.$libext"; then found_dir="$additional_libdir" found_a="$additional_libdir/lib$name.$libext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then found_dir="$dir" found_so="$dir/lib$name.$shlibext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi else if test -f "$dir/lib$name.$libext"; then found_dir="$dir" found_a="$dir/lib$name.$libext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$hardcode_direct" = yes; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" fi if test "$hardcode_minus_L" != no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" else LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */lib | */lib/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/lib"; then haveit= if test "X$additional_libdir" = "X/usr/local/lib"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" ;; esac done fi else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" done fi { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then gt_cv_func_gnugettext1_libintl=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 gt_cv_func_gnugettext1_libintl=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" gt_cv_func_gnugettext1_libintl=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } fi if test "$gt_cv_func_gnugettext1_libc" = "yes" \ || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else LIBINTL= LTLIBINTL= INCINTL= fi if test "$gt_use_preinstalled_gnugettext" != "yes"; then nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then CATOBJEXT=.gmo fi if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then cat >>confdefs.h <<\_ACEOF #define ENABLE_NLS 1 _ACEOF else USE_NLS=no fi fi { echo "$as_me:$LINENO: checking whether to use NLS" >&5 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $USE_NLS" >&5 echo "${ECHO_T}$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi { echo "$as_me:$LINENO: result: $gt_source" >&5 echo "${ECHO_T}$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then { echo "$as_me:$LINENO: checking how to link with libintl" >&5 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $LIBINTL" >&5 echo "${ECHO_T}$LIBINTL" >&6; } for element in $INCINTL; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done fi cat >>confdefs.h <<\_ACEOF #define HAVE_GETTEXT 1 _ACEOF cat >>confdefs.h <<\_ACEOF #define HAVE_DCGETTEXT 1 _ACEOF fi POSUB=po fi if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi nls_cv_header_intl= nls_cv_header_libgt= DATADIRNAME=share INSTOBJEXT=.mo GENCAT=gencat INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi INTL_LIBTOOL_SUFFIX_PREFIX= INTLLIBS="$LIBINTL" sweep_config_ok=yes sweep_config_driver=none ac_enable_experimental=no # Check whether --enable-experimental was given. if test "${enable_experimental+set}" = set; then enableval=$enable_experimental; ac_enable_experimental=yes fi if test "x${ac_enable_experimental}" = xyes ; then cat >>confdefs.h <<\_ACEOF #define DEVEL_CODE _ACEOF fi PTHREAD_LIBS=error { echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6; } if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_attr_init (); int main () { return pthread_attr_init (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_pthread_pthread_attr_init=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_pthread_pthread_attr_init=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6; } if test $ac_cv_lib_pthread_pthread_attr_init = yes; then PTHREAD_LIBS="-lpthread" fi if test "x$PTHREAD_LIBS" = xerror; then { echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthreads" >&5 echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6; } if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthreads $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_attr_init (); int main () { return pthread_attr_init (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_pthreads_pthread_attr_init=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_pthreads_pthread_attr_init=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6; } if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then PTHREAD_LIBS="-lpthreads" fi fi if test "x$PTHREAD_LIBS" = xerror; then { echo "$as_me:$LINENO: checking for pthread_attr_init in -lc_r" >&5 echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6; } if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lc_r $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_attr_init (); int main () { return pthread_attr_init (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_c_r_pthread_attr_init=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_c_r_pthread_attr_init=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_attr_init" >&5 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6; } if test $ac_cv_lib_c_r_pthread_attr_init = yes; then PTHREAD_LIBS="-lc_r" fi fi if test "x$PTHREAD_LIBS" = xerror; then { echo "$as_me:$LINENO: checking for pthread_attr_init" >&5 echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6; } if test "${ac_cv_func_pthread_attr_init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define pthread_attr_init to an innocuous variant, in case declares pthread_attr_init. For example, HP-UX 11i declares gettimeofday. */ #define pthread_attr_init innocuous_pthread_attr_init /* System header to define __stub macros and hopefully few prototypes, which can conflict with char pthread_attr_init (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef pthread_attr_init /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_attr_init (); /* 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_pthread_attr_init || defined __stub___pthread_attr_init choke me #endif int main () { return pthread_attr_init (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_func_pthread_attr_init=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_pthread_attr_init=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_init" >&5 echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6; } if test $ac_cv_func_pthread_attr_init = yes; then PTHREAD_LIBS="" fi fi if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 echo "${ECHO_T}$PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac 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 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { echo "$as_me:$LINENO: checking for GTK" >&5 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$GTK_CFLAGS"; then pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$GTK_LIBS"; then pkg_cv_GTK_LIBS="$GTK_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0"` else GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0"` fi # Put the nasty error message in config.log where it belongs echo "$GTK_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } sweep_config_ok="no" elif test $pkg_failed = untried; then sweep_config_ok="no" else GTK_CFLAGS=$pkg_cv_GTK_CFLAGS GTK_LIBS=$pkg_cv_GTK_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } HAVE_GTK="yes" fi if test "x$HAVE_GTK" != xyes ; then { echo "$as_me:$LINENO: checking for gtk_init in -lgtk-x11-2.0" >&5 echo $ECHO_N "checking for gtk_init in -lgtk-x11-2.0... $ECHO_C" >&6; } if test "${ac_cv_lib_gtk_x11_2_0_gtk_init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lgtk-x11-2.0 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gtk_init (); int main () { return gtk_init (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_gtk_x11_2_0_gtk_init=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_gtk_x11_2_0_gtk_init=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_gtk_x11_2_0_gtk_init" >&5 echo "${ECHO_T}$ac_cv_lib_gtk_x11_2_0_gtk_init" >&6; } if test $ac_cv_lib_gtk_x11_2_0_gtk_init = yes; then HAVE_GTK="maybe" else sweep_config_ok="no" fi fi pkg_failed=no { echo "$as_me:$LINENO: checking for GLIB" >&5 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$GLIB_CFLAGS"; then pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.2.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$GLIB_LIBS"; then pkg_cv_GLIB_LIBS="$GLIB_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.2.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.2.0"` else GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.2.0"` fi # Put the nasty error message in config.log where it belongs echo "$GLIB_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } sweep_config_ok="no" elif test $pkg_failed = untried; then sweep_config_ok="no" else GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS GLIB_LIBS=$pkg_cv_GLIB_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } HAVE_GLIB="yes" fi if test "x$HAVE_GLIB" != xyes ; then { echo "$as_me:$LINENO: checking for g_list_append in -lglib-2.0" >&5 echo $ECHO_N "checking for g_list_append in -lglib-2.0... $ECHO_C" >&6; } if test "${ac_cv_lib_glib_2_0_g_list_append+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lglib-2.0 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char g_list_append (); int main () { return g_list_append (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_glib_2_0_g_list_append=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_glib_2_0_g_list_append=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_g_list_append" >&5 echo "${ECHO_T}$ac_cv_lib_glib_2_0_g_list_append" >&6; } if test $ac_cv_lib_glib_2_0_g_list_append = yes; then HAVE_GLIB="maybe" else sweep_config_ok="no" fi fi pkg_failed=no { echo "$as_me:$LINENO: checking for GTHREADS" >&5 echo $ECHO_N "checking for GTHREADS... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$GTHREADS_CFLAGS"; then pkg_cv_GTHREADS_CFLAGS="$GTHREADS_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GTHREADS_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.2.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$GTHREADS_LIBS"; then pkg_cv_GTHREADS_LIBS="$GTHREADS_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_GTHREADS_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.2.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTHREADS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gthread-2.0 >= 2.2.0"` else GTHREADS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gthread-2.0 >= 2.2.0"` fi # Put the nasty error message in config.log where it belongs echo "$GTHREADS_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } sweep_config_ok="no" elif test $pkg_failed = untried; then sweep_config_ok="no" else GTHREADS_CFLAGS=$pkg_cv_GTHREADS_CFLAGS GTHREADS_LIBS=$pkg_cv_GTHREADS_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } HAVE_GTHREADS="yes" fi if test "x$HAVE_GTHREADS" != xyes ; then { echo "$as_me:$LINENO: checking for g_thread_init in -lgthread-2.0" >&5 echo $ECHO_N "checking for g_thread_init in -lgthread-2.0... $ECHO_C" >&6; } if test "${ac_cv_lib_gthread_2_0_g_thread_init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lgthread-2.0 $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char g_thread_init (); int main () { return g_thread_init (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_gthread_2_0_g_thread_init=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_gthread_2_0_g_thread_init=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_gthread_2_0_g_thread_init" >&5 echo "${ECHO_T}$ac_cv_lib_gthread_2_0_g_thread_init" >&6; } if test $ac_cv_lib_gthread_2_0_g_thread_init = yes; then HAVE_GTHREADS="maybe" else sweep_config_ok="no" fi fi pkg_failed=no { echo "$as_me:$LINENO: checking for SNDFILE" >&5 echo $ECHO_N "checking for SNDFILE... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$SNDFILE_CFLAGS"; then pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.0\"") >&5 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$SNDFILE_LIBS"; then pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.0\"") >&5 ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sndfile >= 1.0.0"` else SNDFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sndfile >= 1.0.0"` fi # Put the nasty error message in config.log where it belongs echo "$SNDFILE_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } HAVE_LIBSNDFILE1="no" elif test $pkg_failed = untried; then HAVE_LIBSNDFILE1="no" else SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } HAVE_LIBSNDFILE1="yes" fi if test "x$HAVE_LIBSNDFILE1" = xyes ; then cat >>confdefs.h <<\_ACEOF #define HAVE_LIBSNDFILE1 _ACEOF else sweep_config_ok="no" { echo "$as_me:$LINENO: checking for sf_open in -lsndfile" >&5 echo $ECHO_N "checking for sf_open in -lsndfile... $ECHO_C" >&6; } if test "${ac_cv_lib_sndfile_sf_open+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsndfile $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char sf_open (); int main () { return sf_open (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_sndfile_sf_open=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_sndfile_sf_open=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_sndfile_sf_open" >&5 echo "${ECHO_T}$ac_cv_lib_sndfile_sf_open" >&6; } if test $ac_cv_lib_sndfile_sf_open = yes; then HAVE_LIBSNDFILE1="maybe" fi fi if test "x$HAVE_LIBSNDFILE1" = xmaybe ; then for ac_header in sndfile.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF HAVE_LIBSNDFILE1="ouch" fi done if test "x$HAVE_LIBSNDFILE1" = xouch ; then { { echo "$as_me:$LINENO: error: *** *** libsndfile-1.0.0 or greater seems to exist on your system, however *** the pkg-config tool cannot find its build information. *** *** Please set your PKG_CONFIG_PATH environment variable to include the *** directory in which sndfile.pc was installed. For example, sndfile.pc *** is installed in /usr/local/lib/pkgconfig by default; if that is the *** case do: *** *** export PKG_CONFIG_PATH=\"\$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig\" *** *** then run this ./configure again. If you configured libsndfile with a *** different --prefix option, replace /usr/local above with that prefix. *** " >&5 echo "$as_me: error: *** *** libsndfile-1.0.0 or greater seems to exist on your system, however *** the pkg-config tool cannot find its build information. *** *** Please set your PKG_CONFIG_PATH environment variable to include the *** directory in which sndfile.pc was installed. For example, sndfile.pc *** is installed in /usr/local/lib/pkgconfig by default; if that is the *** case do: *** *** export PKG_CONFIG_PATH=\"\$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig\" *** *** then run this ./configure again. If you configured libsndfile with a *** different --prefix option, replace /usr/local above with that prefix. *** " >&2;} { (exit 1); exit 1; }; } fi fi { echo "$as_me:$LINENO: checking for off_t" >&5 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } if test "${ac_cv_type_off_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_type_off_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_off_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 echo "${ECHO_T}$ac_cv_type_off_t" >&6; } # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. { echo "$as_me:$LINENO: checking size of off_t" >&5 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; } if test "${ac_cv_sizeof_off_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off_t ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=0 ac_mid=0 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off_t ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr $ac_mid + 1` if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off_t ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=-1 ac_mid=-1 while :; do cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off_t ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_lo=$ac_mid; break else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_hi=`expr '(' $ac_mid ')' - 1` if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi ac_mid=`expr 2 '*' $ac_mid` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off_t ac__type_sizeof_; int main () { static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; test_array [0] = 0 ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_hi=$ac_mid else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_lo=`expr '(' $ac_mid ')' + 1` fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in ?*) ac_cv_sizeof_off_t=$ac_lo;; '') if test "$ac_cv_type_off_t" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (off_t) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_off_t=0 fi ;; esac else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef off_t ac__type_sizeof_; static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (((long int) (sizeof (ac__type_sizeof_))) < 0) { long int i = longval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%ld\n", i); } else { unsigned long int i = ulongval (); if (i != ((long int) (sizeof (ac__type_sizeof_)))) return 1; fprintf (f, "%lu\n", i); } return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_sizeof_off_t=`cat conftest.val` else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) if test "$ac_cv_type_off_t" = yes; then { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t) See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute sizeof (off_t) See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } else ac_cv_sizeof_off_t=0 fi fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi rm -f conftest.val fi { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_OFF_T $ac_cv_sizeof_off_t _ACEOF HAVE_OGG=no HAVE_VORBIS=no HAVE_SPEEX=no ac_enable_oggvorbis=yes # Check whether --enable-oggvorbis was given. if test "${enable_oggvorbis+set}" = set; then enableval=$enable_oggvorbis; ac_enable_oggvorbis=no else ac_enable_oggvorbis=yes fi ac_enable_speex=yes # Check whether --enable-speex was given. if test "${enable_speex+set}" = set; then enableval=$enable_speex; ac_enable_speex=no else ac_enable_speex=yes fi if test "x${ac_enable_oggvorbis}" != xno || test "x${ac_enable_speex}" != xno ; then # Check whether --with-ogg was given. if test "${with_ogg+set}" = set; then withval=$with_ogg; ogg_prefix="$withval" else ogg_prefix="" fi # Check whether --with-ogg-libraries was given. if test "${with_ogg_libraries+set}" = set; then withval=$with_ogg_libraries; ogg_libraries="$withval" else ogg_libraries="" fi # Check whether --with-ogg-includes was given. if test "${with_ogg_includes+set}" = set; then withval=$with_ogg_includes; ogg_includes="$withval" else ogg_includes="" fi # Check whether --enable-oggtest was given. if test "${enable_oggtest+set}" = set; then enableval=$enable_oggtest; else enable_oggtest=yes fi if test "x$ogg_libraries" != "x" ; then OGG_LIBS="-L$ogg_libraries" elif test "x$ogg_prefix" != "x" ; then OGG_LIBS="-L$ogg_prefix/lib" elif test "x$prefix" != "xNONE" ; then OGG_LIBS="-L$prefix/lib" fi OGG_LIBS="$OGG_LIBS -logg" if test "x$ogg_includes" != "x" ; then OGG_CFLAGS="-I$ogg_includes" elif test "x$ogg_prefix" != "x" ; then OGG_CFLAGS="-I$ogg_prefix/include" elif test "x$prefix" != "xNONE"; then OGG_CFLAGS="-I$prefix/include" fi { echo "$as_me:$LINENO: checking for Ogg" >&5 echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; } no_ogg="" if test "x$enable_oggtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $OGG_CFLAGS" LIBS="$LIBS $OGG_LIBS" rm -f conf.oggtest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { system("touch conf.oggtest"); return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_ogg=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi if test "x$no_ogg" = "x" ; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } HAVE_OGG="yes" else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } if test -f conf.oggtest ; then : else echo "*** Could not run Ogg test program, checking why..." CFLAGS="$CFLAGS $OGG_CFLAGS" LIBS="$LIBS $OGG_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding Ogg or finding the wrong" echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means Ogg was incorrectly installed" echo "*** or that you have moved Ogg since it was installed." fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi OGG_CFLAGS="" OGG_LIBS="" HAVE_OGG="no" fi rm -f conf.oggtest if test "x$HAVE_OGG" = xno ; then { echo "$as_me:$LINENO: checking for ogg_stream_init in -logg" >&5 echo $ECHO_N "checking for ogg_stream_init in -logg... $ECHO_C" >&6; } if test "${ac_cv_lib_ogg_ogg_stream_init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-logg $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ogg_stream_init (); int main () { return ogg_stream_init (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_ogg_ogg_stream_init=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ogg_ogg_stream_init=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_stream_init" >&5 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_stream_init" >&6; } if test $ac_cv_lib_ogg_ogg_stream_init = yes; then HAVE_OGG="maybe" fi fi if test "x$HAVE_OGG" = xmaybe; then if test "${ac_cv_header_ogg_ogg_h+set}" = set; then { echo "$as_me:$LINENO: checking for ogg/ogg.h" >&5 echo $ECHO_N "checking for ogg/ogg.h... $ECHO_C" >&6; } if test "${ac_cv_header_ogg_ogg_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_ogg_ogg_h" >&5 echo "${ECHO_T}$ac_cv_header_ogg_ogg_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking ogg/ogg.h usability" >&5 echo $ECHO_N "checking ogg/ogg.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking ogg/ogg.h presence" >&5 echo $ECHO_N "checking ogg/ogg.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: ogg/ogg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: ogg/ogg.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: ogg/ogg.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: ogg/ogg.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: ogg/ogg.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: ogg/ogg.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: ogg/ogg.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: ogg/ogg.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for ogg/ogg.h" >&5 echo $ECHO_N "checking for ogg/ogg.h... $ECHO_C" >&6; } if test "${ac_cv_header_ogg_ogg_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_ogg_ogg_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_ogg_ogg_h" >&5 echo "${ECHO_T}$ac_cv_header_ogg_ogg_h" >&6; } fi if test $ac_cv_header_ogg_ogg_h = yes; then HAVE_OGG="yes" else HAVE_OGG="no" fi fi fi if test "x$HAVE_OGG" = xyes && test "x${ac_enable_oggvorbis}" != xno ; then # Check whether --with-vorbis was given. if test "${with_vorbis+set}" = set; then withval=$with_vorbis; vorbis_prefix="$withval" else vorbis_prefix="" fi # Check whether --with-vorbis-libraries was given. if test "${with_vorbis_libraries+set}" = set; then withval=$with_vorbis_libraries; vorbis_libraries="$withval" else vorbis_libraries="" fi # Check whether --with-vorbis-includes was given. if test "${with_vorbis_includes+set}" = set; then withval=$with_vorbis_includes; vorbis_includes="$withval" else vorbis_includes="" fi # Check whether --enable-vorbistest was given. if test "${enable_vorbistest+set}" = set; then enableval=$enable_vorbistest; else enable_vorbistest=yes fi if test "x$vorbis_libraries" != "x" ; then VORBIS_LIBS="-L$vorbis_libraries" elif test "x$vorbis_prefix" != "x" ; then VORBIS_LIBS="-L$vorbis_prefix/lib" elif test "x$prefix" != "xNONE"; then VORBIS_LIBS="-L$prefix/lib" fi VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm" VORBISFILE_LIBS="-lvorbisfile" VORBISENC_LIBS="-lvorbisenc" if test "x$vorbis_includes" != "x" ; then VORBIS_CFLAGS="-I$vorbis_includes" elif test "x$vorbis_prefix" != "x" ; then VORBIS_CFLAGS="-I$vorbis_prefix/include" elif test "x$prefix" != "xNONE"; then VORBIS_CFLAGS="-I$prefix/include" fi { echo "$as_me:$LINENO: checking for Vorbis" >&5 echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6; } no_vorbis="" if test "x$enable_vorbistest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS" LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS" rm -f conf.vorbistest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include #include int main () { vorbis_block vb; vorbis_dsp_state vd; vorbis_info vi; vorbis_info_init (&vi); vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1); vorbis_analysis_init (&vd, &vi); vorbis_block_init (&vd, &vb); /* this function was added in 1.0rc3, so this is what we're testing for */ vorbis_bitrate_addblock (&vb); system("touch conf.vorbistest"); return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_vorbis=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi if test "x$no_vorbis" = "x" ; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } HAVE_VORBIS="yes" else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } if test -f conf.vorbistest ; then : else echo "*** Could not run Vorbis test program, checking why..." CFLAGS="$CFLAGS $VORBIS_CFLAGS" LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding Vorbis or finding the wrong" echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means Vorbis was incorrectly installed" echo "*** or that you have moved Vorbis since it was installed." fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi VORBIS_CFLAGS="" VORBIS_LIBS="" VORBISFILE_LIBS="" VORBISENC_LIBS="" HAVE_VORBIS="no" fi rm -f conf.vorbistest if test "x$HAVE_VORBIS" = xno ; then { echo "$as_me:$LINENO: result: *** Trying explicit detection of Ogg Vorbis libraries and headers ..." >&5 echo "${ECHO_T} *** Trying explicit detection of Ogg Vorbis libraries and headers ..." >&6; } { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; } if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lvorbis -lm -logg $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char vorbis_info_init (); int main () { return vorbis_info_init (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_vorbis_vorbis_info_init=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_vorbis_vorbis_info_init=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; } if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then HAVE_VORBIS="maybe" fi { echo "$as_me:$LINENO: checking for vorbis_encode_init in -lvorbisenc" >&5 echo $ECHO_N "checking for vorbis_encode_init in -lvorbisenc... $ECHO_C" >&6; } if test "${ac_cv_lib_vorbisenc_vorbis_encode_init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lvorbisenc -lm -logg -lvorbis $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char vorbis_encode_init (); int main () { return vorbis_encode_init (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_vorbisenc_vorbis_encode_init=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_vorbisenc_vorbis_encode_init=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisenc_vorbis_encode_init" >&5 echo "${ECHO_T}$ac_cv_lib_vorbisenc_vorbis_encode_init" >&6; } if test $ac_cv_lib_vorbisenc_vorbis_encode_init = yes; then HAVE_VORBISENC="maybe" fi { echo "$as_me:$LINENO: checking for ov_open in -lvorbisfile" >&5 echo $ECHO_N "checking for ov_open in -lvorbisfile... $ECHO_C" >&6; } if test "${ac_cv_lib_vorbisfile_ov_open+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lvorbisfile -lm -logg -lvorbis $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char ov_open (); int main () { return ov_open (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_vorbisfile_ov_open=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_vorbisfile_ov_open=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_ov_open" >&5 echo "${ECHO_T}$ac_cv_lib_vorbisfile_ov_open" >&6; } if test $ac_cv_lib_vorbisfile_ov_open = yes; then HAVE_VORBISFILE="maybe" fi for ac_header in vorbis/codec.h vorbis/vorbisfile.h vorbis/vorbisenc.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF HAVE_VORBIS_HEADERS="yes" else HAVE_VORBIS_HEADERS="no" fi done if test "x$HAVE_VORBIS" = xmaybe && test "x$HAVE_VORBISENC" = xmaybe && test "x$HAVE_VORBISFILE" = xmaybe && test "x$HAVE_VORBIS_HEADERS" = xyes ; then VORBIS_LIBS="-lvorbis -lm" VORBISFILE_LIBS="-lvorbisfile" VORBISENC_LIBS="-lvorbisenc" VORBIS_CFLAGS="" HAVE_VORBIS="yes" else HAVE_VORBIS="no" fi fi if test "x$HAVE_VORBIS" = xyes ; then cat >>confdefs.h <<\_ACEOF #define HAVE_OGGVORBIS _ACEOF { echo "$as_me:$LINENO: checking for deprecated ov_read_float() interface" >&5 echo $ECHO_N "checking for deprecated ov_read_float() interface... $ECHO_C" >&6; } ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $OGG_CFLAGS $VORBIS_CFLAGS" LIBS="$LIBS $OGG_LIBS $VORBIS_LIBS $VORBISFILE_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { OggVorbis_File * vf; float ** pcm; int b; ov_read_float (vf, &pcm, &b); ; return 0; } _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then cat >>confdefs.h <<\_ACEOF #define OV_READ_FLOAT_THREE_ARGS _ACEOF { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" else sweep_config_ok="no" fi else HAVE_VORBIS=disabled fi if test "x$HAVE_OGG" = xyes && test "x${ac_enable_speex}" != xno ; then # Check whether --with-speex was given. if test "${with_speex+set}" = set; then withval=$with_speex; speex_prefix="$withval" else speex_prefix="" fi # Check whether --with-speex-libraries was given. if test "${with_speex_libraries+set}" = set; then withval=$with_speex_libraries; speex_libraries="$withval" else speex_libraries="" fi # Check whether --with-speex-includes was given. if test "${with_speex_includes+set}" = set; then withval=$with_speex_includes; speex_includes="$withval" else speex_includes="" fi # Check whether --enable-speextest was given. if test "${enable_speextest+set}" = set; then enableval=$enable_speextest; else enable_speextest=yes fi if test "x$speex_libraries" != "x" ; then SPEEX_LIBS="-L$speex_libraries" elif test "x$speex_prefix" != "x" ; then SPEEX_LIBS="-L$speex_prefix/lib" elif test "x$prefix" != "xNONE" ; then SPEEX_LIBS="-L$prefix/lib" fi SPEEX_LIBS="$SPEEX_LIBS -lspeex" if test "x$speex_includes" != "x" ; then SPEEX_CFLAGS="-I$speex_includes" elif test "x$speex_prefix" != "x" ; then SPEEX_CFLAGS="-I$speex_prefix/include" elif test "x$prefix" != "xNONE"; then SPEEX_CFLAGS="-I$prefix/include" fi { echo "$as_me:$LINENO: checking for Speex" >&5 echo $ECHO_N "checking for Speex... $ECHO_C" >&6; } no_speex="" if test "x$enable_speextest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $SPEEX_CFLAGS" LIBS="$LIBS $SPEEX_LIBS" rm -f conf.speextest if test "$cross_compiling" = yes; then echo $ac_n "cross compiling; assumed OK... $ac_c" else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { system("touch conf.speextest"); return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) no_speex=yes fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi if test "x$no_speex" = "x" ; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } HAVE_SPEEX="yes" else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } if test -f conf.speextest ; then : else echo "*** Could not run Speex test program, checking why..." CFLAGS="$CFLAGS $SPEEX_CFLAGS" LIBS="$LIBS $SPEEX_LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include int main () { return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding Speex or finding the wrong" echo "*** version of Speex. If it is not finding Speex, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means Speex was incorrectly installed" echo "*** or that you have moved Speex since it was installed." fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi SPEEX_CFLAGS="" SPEEX_LIBS="" HAVE_SPEEX="no" fi rm -f conf.speextest if test "x$HAVE_SPEEX" = xno ; then { echo "$as_me:$LINENO: checking for speex_encoder_init in -lspeex" >&5 echo $ECHO_N "checking for speex_encoder_init in -lspeex... $ECHO_C" >&6; } if test "${ac_cv_lib_speex_speex_encoder_init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lspeex -lm -logg $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char speex_encoder_init (); int main () { return speex_encoder_init (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_speex_speex_encoder_init=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_speex_speex_encoder_init=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_init" >&5 echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_init" >&6; } if test $ac_cv_lib_speex_speex_encoder_init = yes; then HAVE_SPEEX="maybe" fi if test "x$HAVE_SPEEX" = xmaybe; then if test "${ac_cv_header_speex_h+set}" = set; then { echo "$as_me:$LINENO: checking for speex.h" >&5 echo $ECHO_N "checking for speex.h... $ECHO_C" >&6; } if test "${ac_cv_header_speex_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_speex_h" >&5 echo "${ECHO_T}$ac_cv_header_speex_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking speex.h usability" >&5 echo $ECHO_N "checking speex.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking speex.h presence" >&5 echo $ECHO_N "checking speex.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: speex.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: speex.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: speex.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: speex.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: speex.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: speex.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: speex.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: speex.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: speex.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: speex.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: speex.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: speex.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: speex.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: speex.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: speex.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for speex.h" >&5 echo $ECHO_N "checking for speex.h... $ECHO_C" >&6; } if test "${ac_cv_header_speex_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_speex_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_speex_h" >&5 echo "${ECHO_T}$ac_cv_header_speex_h" >&6; } fi if test $ac_cv_header_speex_h = yes; then HAVE_SPEEX="yes" else if test "${ac_cv_header_speex_speex_h+set}" = set; then { echo "$as_me:$LINENO: checking for speex/speex.h" >&5 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; } if test "${ac_cv_header_speex_speex_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for speex/speex.h" >&5 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; } if test "${ac_cv_header_speex_speex_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_speex_speex_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; } fi if test $ac_cv_header_speex_speex_h = yes; then HAVE_SPEEX="yes" else HAVE_SPEEX="no" fi fi fi fi if test "x$HAVE_SPEEX" = xyes ; then if test "${ac_cv_header_speex_speex_h+set}" = set; then { echo "$as_me:$LINENO: checking for speex/speex.h" >&5 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; } if test "${ac_cv_header_speex_speex_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for speex/speex.h" >&5 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; } if test "${ac_cv_header_speex_speex_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_speex_speex_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; } fi if test $ac_cv_header_speex_speex_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_SPEEX_SUBDIR 1 _ACEOF fi cat >>confdefs.h <<\_ACEOF #define HAVE_SPEEX _ACEOF SPEEX_LIBS="-lspeex -lm" fi else HAVE_SPEEX=disabled fi HAVE_MAD=no ac_enable_mad=yes # Check whether --enable-mad was given. if test "${enable_mad+set}" = set; then enableval=$enable_mad; ac_enable_mad=no else ac_enable_mad=yes fi if test "x${ac_enable_mad}" != xno ; then { echo "$as_me:$LINENO: checking for mad_decoder_init in -lmad" >&5 echo $ECHO_N "checking for mad_decoder_init in -lmad... $ECHO_C" >&6; } if test "${ac_cv_lib_mad_mad_decoder_init+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lmad $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char mad_decoder_init (); int main () { return mad_decoder_init (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_mad_mad_decoder_init=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_mad_mad_decoder_init=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_decoder_init" >&5 echo "${ECHO_T}$ac_cv_lib_mad_mad_decoder_init" >&6; } if test $ac_cv_lib_mad_mad_decoder_init = yes; then HAVE_MAD="maybe" fi if test "x$HAVE_MAD" = xmaybe ; then if test "${ac_cv_header_mad_h+set}" = set; then { echo "$as_me:$LINENO: checking for mad.h" >&5 echo $ECHO_N "checking for mad.h... $ECHO_C" >&6; } if test "${ac_cv_header_mad_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi { echo "$as_me:$LINENO: result: $ac_cv_header_mad_h" >&5 echo "${ECHO_T}$ac_cv_header_mad_h" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking mad.h usability" >&5 echo $ECHO_N "checking mad.h usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking mad.h presence" >&5 echo $ECHO_N "checking mad.h presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: mad.h: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: mad.h: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: mad.h: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: mad.h: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: mad.h: present but cannot be compiled" >&5 echo "$as_me: WARNING: mad.h: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: mad.h: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: mad.h: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: mad.h: see the Autoconf documentation" >&5 echo "$as_me: WARNING: mad.h: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: mad.h: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: mad.h: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: mad.h: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: mad.h: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: mad.h: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: mad.h: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for mad.h" >&5 echo $ECHO_N "checking for mad.h... $ECHO_C" >&6; } if test "${ac_cv_header_mad_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_header_mad_h=$ac_header_preproc fi { echo "$as_me:$LINENO: result: $ac_cv_header_mad_h" >&5 echo "${ECHO_T}$ac_cv_header_mad_h" >&6; } fi if test $ac_cv_header_mad_h = yes; then HAVE_MAD="yes" else HAVE_MAD="no" fi fi if test "x$HAVE_MAD" = xyes ; then cat >>confdefs.h <<\_ACEOF #define HAVE_MAD _ACEOF MAD_LIBS="-lmad" fi else HAVE_MAD=disabled fi HAVE_LIBSAMPLERATE=no ac_enable_src=yes # Check whether --enable-src was given. if test "${enable_src+set}" = set; then enableval=$enable_src; ac_enable_src=no else ac_enable_src=yes fi if test "x${ac_enable_src}" != xno ; then pkg_failed=no { echo "$as_me:$LINENO: checking for SAMPLERATE" >&5 echo $ECHO_N "checking for SAMPLERATE... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$SAMPLERATE_CFLAGS"; then pkg_cv_SAMPLERATE_CFLAGS="$SAMPLERATE_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.0.9\"") >&5 ($PKG_CONFIG --exists --print-errors "samplerate >= 0.0.9") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= 0.0.9" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$SAMPLERATE_LIBS"; then pkg_cv_SAMPLERATE_LIBS="$SAMPLERATE_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.0.9\"") >&5 ($PKG_CONFIG --exists --print-errors "samplerate >= 0.0.9") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate >= 0.0.9" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "samplerate >= 0.0.9"` else SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "samplerate >= 0.0.9"` fi # Put the nasty error message in config.log where it belongs echo "$SAMPLERATE_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } HAVE_LIBSAMPLERATE="no" elif test $pkg_failed = untried; then HAVE_LIBSAMPLERATE="no" else SAMPLERATE_CFLAGS=$pkg_cv_SAMPLERATE_CFLAGS SAMPLERATE_LIBS=$pkg_cv_SAMPLERATE_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } HAVE_LIBSAMPLERATE="yes" fi if test "x$HAVE_LIBSAMPLERATE" = xyes ; then cat >>confdefs.h <<\_ACEOF #define HAVE_LIBSAMPLERATE _ACEOF fi else HAVE_LIBSAMPLERATE=disabled fi ac_enable_alsa=yes # Check whether --enable-alsa was given. if test "${enable_alsa+set}" = set; then enableval=$enable_alsa; ac_enable_alsa=no fi if test "x${ac_enable_alsa}" != xno ; then pkg_failed=no { echo "$as_me:$LINENO: checking for ALSA" >&5 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; } if test -n "$PKG_CONFIG"; then if test -n "$ALSA_CFLAGS"; then pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.0\"") >&5 ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 1.0.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test -n "$PKG_CONFIG"; then if test -n "$ALSA_LIBS"; then pkg_cv_ALSA_LIBS="$ALSA_LIBS" else if test -n "$PKG_CONFIG" && \ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.0\"") >&5 ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 1.0.0" 2>/dev/null` else pkg_failed=yes fi fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa >= 1.0.0"` else ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 1.0.0"` fi # Put the nasty error message in config.log where it belongs echo "$ALSA_PKG_ERRORS" >&5 { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } sweep_config_ok="no" elif test $pkg_failed = untried; then sweep_config_ok="no" else ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS ALSA_LIBS=$pkg_cv_ALSA_LIBS { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } HAVE_ALSA="yes" fi cat >>confdefs.h <<\_ACEOF #define DRIVER_ALSA _ACEOF if test "x$HAVE_ALSA" != xyes ; then { echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6; } if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lasound $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char snd_seq_open (); int main () { return snd_seq_open (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_asound_snd_seq_open=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_asound_snd_seq_open=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6; } if test $ac_cv_lib_asound_snd_seq_open = yes; then HAVE_ALSA="maybe" else sweep_config_ok="no" fi fi sweep_config_driver="ALSA" fi for ac_header in sys/soundcard.h machine/soundcard.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "x${ac_cv_header_sys_soundcard_h}" = xyes || \ test "x${ac_cv_header_machine_soundcard_h}" = xyes; then if test "x$ac_enable_alsa" = xno ; then cat >>confdefs.h <<\_ACEOF #define DRIVER_OSS _ACEOF { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; } if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lossaudio $LIBS" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char _oss_ioctl (); int main () { return _oss_ioctl (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then ac_cv_lib_ossaudio__oss_ioctl=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ossaudio__oss_ioctl=no fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; } if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then LIBS="$LIBS -lossaudio" fi sweep_config_driver="OSS" fi fi case $host in *-*-solaris*) for ac_header in sys/audioio.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "x${ac_cv_header_sys_audioio_h}" = xyes; then cat >>confdefs.h <<\_ACEOF #define DRIVER_SOLARIS_AUDIO _ACEOF sweep_config_driver="Solaris" fi ;; esac if test "x${prefix}" = xNONE; then cat >>confdefs.h <<_ACEOF #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale" _ACEOF else cat >>confdefs.h <<_ACEOF #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale" _ACEOF fi if test "x${datadir}" = 'x${prefix}/share'; then if test "x${prefix}" = xNONE; then PACKAGE_DATA_DIR='"${ac_default_prefix}/share/${PACKAGE}"' else PACKAGE_DATA_DIR='"${prefix}/share/${PACKAGE}"' fi else PACKAGE_DATA_DIR='"${datadir}/${PACKAGE}"' fi PACKAGE_PLUGIN_DIR=$libdir/sweep if test "x${prefix}" = xNONE; then sweep_plugin_dir="${ac_default_prefix}/lib/${PACKAGE}" else sweep_plugin_dir="${prefix}/lib/${PACKAGE}" fi cat >>confdefs.h <<_ACEOF #define PACKAGE_PLUGIN_DIR "$sweep_plugin_dir" _ACEOF packagesrcdir=`cd $srcdir && pwd` cat >>confdefs.h <<_ACEOF #define PACKAGE_SOURCE_DIR "${packagesrcdir}" _ACEOF # Check whether --enable-gcc-werror was given. if test "${enable_gcc_werror+set}" = set; then enableval=$enable_gcc_werror; fi if test "x$ac_cv_c_compiler_gnu" = xyes ; then CFLAGS="$CFLAGS -Wall" if test x$enable_gcc_werror = "xyes" ; then CFLAGS="$CFLAGS -Werror" fi fi { echo "$as_me:$LINENO: checking for extra flags needed to export symbols" >&5 echo $ECHO_N "checking for extra flags needed to export symbols... $ECHO_C" >&6; } case $host_os in aix4*|aix5*) EXPORT_DYNAMIC_FLAGS="-Wl,-bexpall,-brtl" ;; bsdi*) EXPORT_DYNAMIC_FLAGS="-rdynamic" ;; *) save_ldflags="$LDFLAGS" LDFLAGS=-Wl,-export-dynamic cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then EXPORT_DYNAMIC_FLAGS="-Wl,-export-dynamic" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 LDFLAGS=-Wl,-Bexport cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && $as_test_x conftest$ac_exeext; then EXPORT_DYNAMIC_FLAGS="- Wl,-Bexport" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { echo "$as_me:$LINENO: result: none" >&5 echo "${ECHO_T}none" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_ldflags" ;; esac test "x$EXPORT_DYNAMIC_FLAGS" != x && { echo "$as_me:$LINENO: result: $EXPORT_DYNAMIC_FLAGS" >&5 echo "${ECHO_T}$EXPORT_DYNAMIC_FLAGS" >&6; } if test $sweep_config_ok = no ; then { echo "$as_me:$LINENO: result: ************************************************************** *** Sweep $VERSION: Automatic configuration FAILED. *** The file config.log has full details. *** The following required libraries are missing or *** misconfigured on your system: " >&5 echo "${ECHO_T} ************************************************************** *** Sweep $VERSION: Automatic configuration FAILED. *** The file config.log has full details. *** The following required libraries are missing or *** misconfigured on your system: " >&6; } if test "x$HAVE_GLIB" != xyes || test "x$HAVE_GTHREADS" != xyes; then { echo "$as_me:$LINENO: result: *** GLib version 2.2.x or greater, available from http://www.gtk.org/ " >&5 echo "${ECHO_T} *** GLib version 2.2.x or greater, available from http://www.gtk.org/ " >&6; } fi if test "x$HAVE_GLIB" = xmaybe || test "x$HAVE_GTHREADS" = xmaybe; then { echo "$as_me:$LINENO: result: Development files missing: The libglib-2.0 binary seems to be installed, but the pkg-config tool cannot find its build information. " >&5 echo "${ECHO_T} Development files missing: The libglib-2.0 binary seems to be installed, but the pkg-config tool cannot find its build information. " >&6; } fi if test "x$HAVE_GTK" != xyes ; then { echo "$as_me:$LINENO: result: *** GTK+ version 2.2.x or greater, available from http://www.gtk.org/ " >&5 echo "${ECHO_T} *** GTK+ version 2.2.x or greater, available from http://www.gtk.org/ " >&6; } fi if test "x$HAVE_GTK" = xmaybe ; then { echo "$as_me:$LINENO: result: Development files missing: The libgtk binary seems to be installed, but the pkg-config tool cannot find its build information.. " >&5 echo "${ECHO_T} Development files missing: The libgtk binary seems to be installed, but the pkg-config tool cannot find its build information.. " >&6; } fi if test "x$HAVE_LIBSNDFILE1" != xyes ; then { echo "$as_me:$LINENO: result: *** libsndfile version 1.0.0 or greater, available from *** http://www.mega-nerd.com/libsndfile/ " >&5 echo "${ECHO_T} *** libsndfile version 1.0.0 or greater, available from *** http://www.mega-nerd.com/libsndfile/ " >&6; } fi if test "x$HAVE_LIBSNDFILE1" = xmaybe ; then { echo "$as_me:$LINENO: result: Development files missing: libsndfile-1.0.0 or greater seems to exist on your system, however the header files are missing and the pkg-config tool cannot find its build information. " >&5 echo "${ECHO_T} Development files missing: libsndfile-1.0.0 or greater seems to exist on your system, however the header files are missing and the pkg-config tool cannot find its build information. " >&6; } fi if test "x$HAVE_ALSA" = xmaybe ; then { echo "$as_me:$LINENO: result: Development files missing: alsa-lib 1.0.0 or greater seems to exist on your system, however the pkg-config tool cannot find the build information. " >&5 echo "${ECHO_T} Development files missing: alsa-lib 1.0.0 or greater seems to exist on your system, however the pkg-config tool cannot find the build information. " >&6; } fi if test "x$HAVE_ALSA" != xyes ; then { echo "$as_me:$LINENO: result: *** alsa-lib version 1.0.0 or greater, available from *** http://alsa-project.org/ " >&5 echo "${ECHO_T} *** alsa-lib version 1.0.0 or greater, available from *** http://alsa-project.org/ " >&6; } fi if test "x$HAVE_VORBIS" = xmaybe ; then { echo "$as_me:$LINENO: result: Development files missing: The libogg, libvorbis, libvorbisenc and libvorbisfile library binaries seem to be installed, but building of a test program failed. " >&5 echo "${ECHO_T} Development files missing: The libogg, libvorbis, libvorbisenc and libvorbisfile library binaries seem to be installed, but building of a test program failed. " >&6; } fi if test "x$HAVE_VORBIS" != xyes ; then { echo "$as_me:$LINENO: result: *** Ogg Vorbis libraries, available from http://www.xiph.org/ogg/vorbis/ " >&5 echo "${ECHO_T} *** Ogg Vorbis libraries, available from http://www.xiph.org/ogg/vorbis/ " >&6; } fi if test "x$HAVE_VORBIS" != xyes ; then { echo "$as_me:$LINENO: result: *** Or, to build a version of Sweep without Ogg Vorbis support, do: *** *** ./configure --disable-oggvorbis " >&5 echo "${ECHO_T} *** Or, to build a version of Sweep without Ogg Vorbis support, do: *** *** ./configure --disable-oggvorbis " >&6; } fi if test "x$HAVE_GLIB" = xmaybe || test "x$HAVE_GTK" = xmaybe || test "x$HAVE_LIBSNDFILE1" = xmaybe || test "x$HAVE_TDB" = xmaybe || test "x$HAVE_GTHREADS" = xmaybe || test "x$HAVE_ALSA" = xmaybe || test "x$HAVE_OGG" = xmaybe || test "x$HAVE_VORBIS" = xmaybe ; then { echo "$as_me:$LINENO: result: *** HOW TO FIX \"development files missing\": you have probably *** installed the library package from your distribution. You *** must also install the library's \"development\" package. " >&5 echo "${ECHO_T} *** HOW TO FIX \"development files missing\": you have probably *** installed the library package from your distribution. You *** must also install the library's \"development\" package. " >&6; } fi { echo "$as_me:$LINENO: result: *** If you install the required libraries from source, you *** need to inform the dynamic linker of their location. If *** you install them in a system-wide directory such as *** /usr/local (the default), you must ensure that *** /usr/local/lib is listed in /etc/ld.so.conf, then run *** ldconfig to update the dynamic linking system. *** Alternatively, you can set your LD_LIBRARY_PATH environment *** variable to include the library installation directory. " >&5 echo "${ECHO_T} *** If you install the required libraries from source, you *** need to inform the dynamic linker of their location. If *** you install them in a system-wide directory such as *** /usr/local (the default), you must ensure that *** /usr/local/lib is listed in /etc/ld.so.conf, then run *** ldconfig to update the dynamic linking system. *** Alternatively, you can set your LD_LIBRARY_PATH environment *** variable to include the library installation directory. " >&6; } { echo "$as_me:$LINENO: result: ************************************************************** " >&5 echo "${ECHO_T} ************************************************************** " >&6; } { { echo "$as_me:$LINENO: error: *** *** After fixing the above problems, you must run ./configure again. *** " >&5 echo "$as_me: error: *** *** After fixing the above problems, you must run ./configure again. *** " >&2;} { (exit 1); exit 1; }; } else ac_config_files="$ac_config_files Makefile sweep.spec m4/Makefile include/Makefile include/sweep/Makefile src/Makefile src/tdb/Makefile plugins/Makefile plugins/echo/Makefile plugins/normalise/Makefile plugins/fade/Makefile plugins/reverse/Makefile plugins/ladspa/Makefile plugins/byenergy/Makefile plugins/example/Makefile doc/Makefile intl/Makefile po/Makefile.in doc/sweep.1" 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_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_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 test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache 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=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # 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} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## 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=: # 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 # PATH needs CR # 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 # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false 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.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. 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 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && 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 # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. 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" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (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 } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi 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 fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.61. 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 cat >>$CONFIG_STATUS <<_ACEOF # 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_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 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 ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) 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. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$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 if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # 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" ;; "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "sweep.spec") CONFIG_FILES="$CONFIG_FILES sweep.spec" ;; "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; "include/sweep/Makefile") CONFIG_FILES="$CONFIG_FILES include/sweep/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/tdb/Makefile") CONFIG_FILES="$CONFIG_FILES src/tdb/Makefile" ;; "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; "plugins/echo/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/echo/Makefile" ;; "plugins/normalise/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/normalise/Makefile" ;; "plugins/fade/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fade/Makefile" ;; "plugins/reverse/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/reverse/Makefile" ;; "plugins/ladspa/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ladspa/Makefile" ;; "plugins/byenergy/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/byenergy/Makefile" ;; "plugins/example/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/example/Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "doc/sweep.1") CONFIG_FILES="$CONFIG_FILES doc/sweep.1" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # 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= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim CYGPATH_W!$CYGPATH_W$ac_delim PACKAGE!$PACKAGE$ac_delim VERSION!$VERSION$ac_delim ACLOCAL!$ACLOCAL$ac_delim AUTOCONF!$AUTOCONF$ac_delim AUTOMAKE!$AUTOMAKE$ac_delim AUTOHEADER!$AUTOHEADER$ac_delim MAKEINFO!$MAKEINFO$ac_delim install_sh!$install_sh$ac_delim STRIP!$STRIP$ac_delim INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim mkdir_p!$mkdir_p$ac_delim AWK!$AWK$ac_delim SET_MAKE!$SET_MAKE$ac_delim am__leading_dot!$am__leading_dot$ac_delim AMTAR!$AMTAR$ac_delim am__tar!$am__tar$ac_delim am__untar!$am__untar$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim DEPDIR!$DEPDIR$ac_delim am__include!$am__include$ac_delim am__quote!$am__quote$ac_delim AMDEP_TRUE!$AMDEP_TRUE$ac_delim AMDEP_FALSE!$AMDEP_FALSE$ac_delim AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim CCDEPMODE!$CCDEPMODE$ac_delim am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim CPP!$CPP$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim build!$build$ac_delim build_cpu!$build_cpu$ac_delim build_vendor!$build_vendor$ac_delim build_os!$build_os$ac_delim host!$host$ac_delim host_cpu!$host_cpu$ac_delim host_vendor!$host_vendor$ac_delim host_os!$host_os$ac_delim SED!$SED$ac_delim LN_S!$LN_S$ac_delim ECHO!$ECHO$ac_delim AR!$AR$ac_delim RANLIB!$RANLIB$ac_delim CXX!$CXX$ac_delim CXXFLAGS!$CXXFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$ac_delim CXXDEPMODE!$CXXDEPMODE$ac_delim am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim CXXCPP!$CXXCPP$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF CEOF$ac_eof _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF F77!$F77$ac_delim FFLAGS!$FFLAGS$ac_delim ac_ct_F77!$ac_ct_F77$ac_delim LIBTOOL!$LIBTOOL$ac_delim HAVE_GNOME_MOZ_REMOTE!$HAVE_GNOME_MOZ_REMOTE$ac_delim MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim USE_NLS!$USE_NLS$ac_delim MSGFMT!$MSGFMT$ac_delim GMSGFMT!$GMSGFMT$ac_delim XGETTEXT!$XGETTEXT$ac_delim MSGMERGE!$MSGMERGE$ac_delim GLIBC2!$GLIBC2$ac_delim ALLOCA!$ALLOCA$ac_delim GLIBC21!$GLIBC21$ac_delim INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim LIBICONV!$LIBICONV$ac_delim LTLIBICONV!$LTLIBICONV$ac_delim INTLBISON!$INTLBISON$ac_delim BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim CATOBJEXT!$CATOBJEXT$ac_delim DATADIRNAME!$DATADIRNAME$ac_delim INSTOBJEXT!$INSTOBJEXT$ac_delim GENCAT!$GENCAT$ac_delim INTLOBJS!$INTLOBJS$ac_delim INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim INTLLIBS!$INTLLIBS$ac_delim LIBINTL!$LIBINTL$ac_delim LTLIBINTL!$LTLIBINTL$ac_delim POSUB!$POSUB$ac_delim PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim PKG_CONFIG!$PKG_CONFIG$ac_delim GTK_CFLAGS!$GTK_CFLAGS$ac_delim GTK_LIBS!$GTK_LIBS$ac_delim GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim GLIB_LIBS!$GLIB_LIBS$ac_delim GTHREADS_CFLAGS!$GTHREADS_CFLAGS$ac_delim GTHREADS_LIBS!$GTHREADS_LIBS$ac_delim SNDFILE_CFLAGS!$SNDFILE_CFLAGS$ac_delim SNDFILE_LIBS!$SNDFILE_LIBS$ac_delim OGG_CFLAGS!$OGG_CFLAGS$ac_delim OGG_LIBS!$OGG_LIBS$ac_delim VORBIS_CFLAGS!$VORBIS_CFLAGS$ac_delim VORBIS_LIBS!$VORBIS_LIBS$ac_delim VORBISFILE_LIBS!$VORBISFILE_LIBS$ac_delim VORBISENC_LIBS!$VORBISENC_LIBS$ac_delim SPEEX_CFLAGS!$SPEEX_CFLAGS$ac_delim SPEEX_LIBS!$SPEEX_LIBS$ac_delim MAD_LIBS!$MAD_LIBS$ac_delim SAMPLERATE_CFLAGS!$SAMPLERATE_CFLAGS$ac_delim SAMPLERATE_LIBS!$SAMPLERATE_LIBS$ac_delim ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim ALSA_LIBS!$ALSA_LIBS$ac_delim PACKAGE_DATA_DIR!$PACKAGE_DATA_DIR$ac_delim PACKAGE_PLUGIN_DIR!$PACKAGE_PLUGIN_DIR$ac_delim EXPORT_DYNAMIC_FLAGS!$EXPORT_DYNAMIC_FLAGS$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # 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[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 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="$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 || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; 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 || 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" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`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 || 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" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 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 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_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 sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;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 $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| . 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # 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. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /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 || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || 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 case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`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 || 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" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; "default-1":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; 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 INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # 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 || { (exit 1); exit 1; } fi { echo "$as_me:$LINENO: result: ************************************************************ * Sweep $VERSION: Automatic configuration OK. ** ** Configuration summary: ** ** Experimental code: ....... ${ac_enable_experimental} ** Audio device handling: ... $sweep_config_driver ** PCM: libsndfile .......... $HAVE_LIBSNDFILE1 ** Ogg Vorbis support: ...... $HAVE_VORBIS ** MPEG (MP3) loading: ...... $HAVE_MAD ** Speex support: ........... $HAVE_SPEEX ** Secret Rabbit Code: ...... $HAVE_LIBSAMPLERATE ** Translations: ............ $ALL_LINGUAS ** ** Installation directories: ** ** Program: ................. ${prefix}/bin ** Plugins: ................. $sweep_plugin_dir ** ************************************************************** ** ** Type 'make' to compile Sweep. ** ** Type 'make install' to install Sweep. Plugins will not be ** accessible until you have done this. ** ** Have fun with Scrubby! * ************************************************************ " >&5 echo "${ECHO_T} ************************************************************ * Sweep $VERSION: Automatic configuration OK. ** ** Configuration summary: ** ** Experimental code: ....... ${ac_enable_experimental} ** Audio device handling: ... $sweep_config_driver ** PCM: libsndfile .......... $HAVE_LIBSNDFILE1 ** Ogg Vorbis support: ...... $HAVE_VORBIS ** MPEG (MP3) loading: ...... $HAVE_MAD ** Speex support: ........... $HAVE_SPEEX ** Secret Rabbit Code: ...... $HAVE_LIBSAMPLERATE ** Translations: ............ $ALL_LINGUAS ** ** Installation directories: ** ** Program: ................. ${prefix}/bin ** Plugins: ................. $sweep_plugin_dir ** ************************************************************** ** ** Type 'make' to compile Sweep. ** ** Type 'make install' to install Sweep. Plugins will not be ** accessible until you have done this. ** ** Have fun with Scrubby! * ************************************************************ " >&6; } fi sweep-0.9.3/config.h.in0000644000175000017500000002375410777670661013443 0ustar useruser/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP systems. This function is required for `alloca.c' support on those systems. */ #undef CRAY_STACKSEG_END /* Define to 1 if using `alloca.c'. */ #undef C_ALLOCA /* Whether to build the develpment code. */ #undef DEVEL_CODE /* Define if we have and want alsa. */ #undef DRIVER_ALSA /* Define if we have and want OSS. */ #undef DRIVER_OSS /* Define if we have and want the solaris audio driver. */ #undef DRIVER_SOLARIS_AUDIO /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS /* Define to 1 if you have `alloca', as a function or macro. */ #undef HAVE_ALLOCA /* Define to 1 if you have and it should be used (not on Ultrix). */ #undef HAVE_ALLOCA_H /* Define to 1 if you have the header file. */ #undef HAVE_ARGZ_H /* Define to 1 if you have the `asprintf' function. */ #undef HAVE_ASPRINTF /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework. */ #undef HAVE_CFLOCALECOPYCURRENT /* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE /* Define if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_FEOF_UNLOCKED /* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_FGETS_UNLOCKED /* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_GETC_UNLOCKED /* Define to 1 if you have the declaration of `_snprintf', and to 0 if you don't. */ #undef HAVE_DECL__SNPRINTF /* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you don't. */ #undef HAVE_DECL__SNWPRINTF /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the `fwprintf' function. */ #undef HAVE_FWPRINTF /* Define to 1 if you have the `getcwd' function. */ #undef HAVE_GETCWD /* Define to 1 if you have the `getegid' function. */ #undef HAVE_GETEGID /* Define to 1 if you have the `geteuid' function. */ #undef HAVE_GETEUID /* Define to 1 if you have the `getgid' function. */ #undef HAVE_GETGID /* Define to 1 if you have the `getpagesize' function. */ #undef HAVE_GETPAGESIZE /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the `getuid' function. */ #undef HAVE_GETUID /* Define if you have the iconv() function. */ #undef HAVE_ICONV /* Define if you have the 'intmax_t' type in or . */ #undef HAVE_INTMAX_T /* Define if exists and doesn't clash with . */ #undef HAVE_INTTYPES_H /* Define if exists, doesn't clash with , and declares uintmax_t. */ #undef HAVE_INTTYPES_H_WITH_UINTMAX /* Define if you have and nl_langinfo(CODESET). */ #undef HAVE_LANGINFO_CODESET /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define if we have libsamplerate. */ #undef HAVE_LIBSAMPLERATE /* Define if we have libsndfile1. */ #undef HAVE_LIBSNDFILE1 /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define if you have the 'long double' type. */ #undef HAVE_LONG_DOUBLE /* Define if you have the 'long long' type. */ #undef HAVE_LONG_LONG /* Define to 1 if you have the header file. */ #undef HAVE_MACHINE_SOUNDCARD_H /* Define if we have mad. */ #undef HAVE_MAD /* Define to 1 if you have the `madvise' function. */ #undef HAVE_MADVISE /* Define to 1 if you have the header file. */ #undef HAVE_MALLOC_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `mempcpy' function. */ #undef HAVE_MEMPCPY /* Define to 1 if you have a working `mmap' system call. */ #undef HAVE_MMAP /* Define to 1 if you have the `munmap' function. */ #undef HAVE_MUNMAP /* Define to 1 if you have the header file. */ #undef HAVE_NL_TYPES_H /* Define if we have Ogg Vorbis. */ #undef HAVE_OGGVORBIS /* Define if your printf() function supports format strings with positions. */ #undef HAVE_POSIX_PRINTF /* Define to 1 if you have the `putenv' function. */ #undef HAVE_PUTENV /* Define to 1 if you have the `setenv' function. */ #undef HAVE_SETENV /* Define to 1 if you have the `setlocale' function. */ #undef HAVE_SETLOCALE /* Define to 1 if you have the header file. */ #undef HAVE_SNDFILE_H /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF /* Define if we have speex. */ #undef HAVE_SPEEX /* Define to 1 if speex headers are eg. */ #undef HAVE_SPEEX_SUBDIR /* Define to 1 if you have the header file. */ #undef HAVE_STDDEF_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define if exists, doesn't clash with , and declares uintmax_t. */ #undef HAVE_STDINT_H_WITH_UINTMAX /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `stpcpy' function. */ #undef HAVE_STPCPY /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP /* Define to 1 if you have the `strchr' function. */ #undef HAVE_STRCHR /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strtoul' function. */ #undef HAVE_STRTOUL /* Define to 1 if you have the header file. */ #undef HAVE_SYS_AUDIOIO_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PARAM_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOUNDCARD_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the `tsearch' function. */ #undef HAVE_TSEARCH /* Define if you have the 'uintmax_t' type in or . */ #undef HAVE_UINTMAX_T /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define if you have the 'unsigned long long' type. */ #undef HAVE_UNSIGNED_LONG_LONG /* Define to 1 if you have the header file. */ #undef HAVE_VORBIS_CODEC_H /* Define to 1 if you have the header file. */ #undef HAVE_VORBIS_VORBISENC_H /* Define to 1 if you have the header file. */ #undef HAVE_VORBIS_VORBISFILE_H /* Define if you have the 'wchar_t' type. */ #undef HAVE_WCHAR_T /* Define to 1 if you have the `wcslen' function. */ #undef HAVE_WCSLEN /* Define if you have the 'wint_t' type. */ #undef HAVE_WINT_T /* Define to 1 if you have the `__argz_count' function. */ #undef HAVE___ARGZ_COUNT /* Define to 1 if you have the `__argz_next' function. */ #undef HAVE___ARGZ_NEXT /* Define to 1 if you have the `__argz_stringify' function. */ #undef HAVE___ARGZ_STRINGIFY /* Define to 1 if you have the `__fsetlocking' function. */ #undef HAVE___FSETLOCKING /* Define as const if the declaration of iconv() needs const. */ #undef ICONV_CONST /* Define if integer division by zero raises signal SIGFPE. */ #undef INTDIV0_RAISES_SIGFPE /* Define if ov_read_float takes 3 arguments. */ #undef OV_READ_FLOAT_THREE_ARGS /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define the PACKAGE_LOCALE_DIR. */ #undef PACKAGE_LOCALE_DIR /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define the PACKAGE_PLUGIN_DIR. */ #undef PACKAGE_PLUGIN_DIR /* Define the PACKAGE_SOURCE_DIR. */ #undef PACKAGE_SOURCE_DIR /* 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 version of this package. */ #undef PACKAGE_VERSION /* Define if exists and defines unusable PRI* macros. */ #undef PRI_MACROS_BROKEN /* The size of `off_t', as computed by sizeof. */ #undef SIZEOF_OFF_T /* Define as the maximum value of type 'size_t', if the system doesn't define it. */ #undef SIZE_MAX /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at runtime. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ #undef WORDS_BIGENDIAN /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to `long int' if does not define. */ #undef off_t /* Define as the type of the result of subtracting two pointers, if the system doesn't define it. */ #undef ptrdiff_t /* Define to empty if the C compiler doesn't support this keyword. */ #undef signed /* Define to `unsigned int' if does not define. */ #undef size_t /* Define to unsigned long or unsigned long long if and don't define. */ #undef uintmax_t sweep-0.9.3/depcomp0000755000175000017500000003710010777670413012756 0ustar useruser#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2005-07-09.11 # Copyright (C) 1999, 2000, 2003, 2004, 2005 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, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. 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. stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test -f "$tmpdepfile"; then : else stripped=`echo "$stripped" | sed 's,^.*/,,'` tmpdepfile="$stripped.u" fi if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then outname="$stripped.o" # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mecanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -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, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # 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-end: "$" # End: sweep-0.9.3/README.i18n0000644000175000017500000000504110777660176013043 0ustar useruserHow to do translations for sweep - a quick overview =================================================== (Includes information from Mathieu Roy and Silvia Pfeiffer) For more detailed information refer to: http://www.gnu.org/manual/gettext/index.html (1) How to create and test a translation for a new language? ------------------------------------------------------------ Grab the po/sweep.pot file and copy it to the new language, naming the file after a language code as defined by ISO 639: ll.po (e.g. fr.po), with a possible country-specific adaptation as in ll_CC.po. [For the codes, refer to http://www.gnu.org/software/gettext/manual/html_node/Language-Codes.html#Language-Codes] Translate the strings in that file and save it in the /po folder. Edit the "configure.ac" file (in sweep-x.x.x folder), adding the new language to the "ALL_LINGUAS directive. Should look like this : ALL_LINGUAS="fr se de" AM_GNU_GETTEXT The next "configure" will include the new language, the next "make dist" will create the machine-readable translation, and the next "make install" will copy it to the system folder where gettext can find it. Testing the new translation goes via setting of environment variables (LANG is usually enough). Mathieu recommends: [user@host /]$ export LANG="fr_FR"&&LC_ALL="fr"&&LINGUAS="fr" (configures this terminal until you close it) [user@host /]$ sweep (should work in french) (2) How to keep the code and its translations up to date? --------------------------------------------------------- When coding, keep marking displayed text with _("blah") where function calls are possible or N_("blah") for statically defined strings. Where the string is actually used in the program, you need to put another _(variable) around it! A proposed guideline from gnu.org is to use format strings instead of string concatenation and to keep sentences within one string. CAUTION: Be aware that when you mark a string with N_("blah"), this only marks it for translation. When creating new code files (.[ch]) with translatable strings in them, they need to be added manually to the po/POTFILES.in file. The next "configure" will then automatically take care of creating the po/POTFILES file and the "make" thereafter will create the updated po/sweep.pot file. For merging those updated strings into existing translations, a "make dist" is required. When a translator updates his/her translation file, copy it back to the /po directory. It will be compiled into machine-readable form with the next "make dist" and installed with the next "make install". sweep-0.9.3/ABOUT-NLS0000644000175000017500000020610510777660176012640 0ustar useruser1 Notes on the Free Translation Project *************************************** Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that free software will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. When reporting bugs in the `intl/' directory or bugs which may be related to internationalization, you should tell about the version of `gettext' which is used. The information can be found in the `intl/VERSION' file, in internationalized packages. 1.1 Quick configuration advice ============================== If you want to exploit the full power of internationalization, you should configure it using ./configure --with-included-gettext to force usage of internationalizing routines provided within this package, despite the existence of internationalizing capabilities in the operating system where this package is being installed. So far, only the `gettext' implementation in the GNU C library version 2 provides as many features (such as locale alias, message inheritance, automatic charset conversion or plural form handling) as the implementation here. It is also not possible to offer this additional functionality on top of a `catgets' implementation. Future versions of GNU `gettext' will very likely convey even more functionality. So it might be a good idea to change to GNU `gettext' as soon as possible. So you need _not_ provide this option if you are using GNU libc 2 or you have installed a recent copy of the GNU gettext package with the included `libintl'. 1.2 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU `gettext' functions. If not, the included GNU `gettext' library will be used. This library is wholly contained within this package, usually in the `intl/' subdirectory, so prior installation of the GNU `gettext' package is _not_ required. Installers may use special options at configuration time for changing the default behaviour. The commands: ./configure --with-included-gettext ./configure --disable-nls will, respectively, bypass any pre-existing `gettext' to use the internationalizing routines provided within this package, or else, _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl.a' file and will decide to use this. This might not be desirable. You should use the more recent version of the GNU `gettext' library. I.e. if the file `intl/VERSION' shows that the library which comes with this package is more recent, you should use ./configure --with-included-gettext to prevent auto-detection. The configuration process will not test for the `catgets' function and therefore it will not be used. The reason is that even an emulation of `gettext' on top of `catgets' could not provide all the extensions of the GNU `gettext' library. Internationalized packages usually have many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. 1.3 Using This Package ====================== As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate `LL_CC' combination. Here `LL' is an ISO 639 two-letter language code, and `CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of `LL_CC', with `LL' denoting the language and `CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as `LL' or `LL_CC.ENCODING'. You can get the list of locales supported by your system for your country by running the command `locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' for the purpose of message handling, but you still need to have `LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. Special advice for Norwegian users: The language code for Norwegian bokma*l changed from `no' to `nb' recently (in 2003). During the transition period, while some message catalogs for this language are installed under `nb' and some older ones under `no', it's recommended for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and older translations are used. In the `LANGUAGE' environment variable, but not in the `LANG' environment variable, `LL_CC' combinations can be abbreviated as `LL' to denote the language's main dialect. For example, `de' is equivalent to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. 1.4 Translating Teams ===================== For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, `http://www.iro.umontreal.ca/contrib/po/HTML/', in the "National teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `translation@iro.umontreal.ca' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skill are praised more than programming skill, here. 1.5 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of May 2005. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files af am ar az be bg bs ca cs cy da de el en en_GB +-------------------------------------------------+ GNUnet | | a2ps | [] [] [] [] [] | aegis | () | ant-phone | () | anubis | [] | ap-utils | | aspell | [] [] [] [] | bash | [] [] | batchelor | [] | bfd | | bibshelf | [] | binutils | [] | bison | [] [] | bluez-pin | [] [] [] [] | clisp | [] [] | console-tools | [] [] | coreutils | [] [] [] [] | cpio | | cpplib | [] [] [] | darkstat | [] () [] | dialog | [] [] [] [] [] [] | diffutils | [] [] [] [] [] | doodle | [] | e2fsprogs | [] [] | enscript | [] [] [] [] | error | [] [] [] [] | fetchmail | [] [] () [] | fileutils | [] [] | findutils | [] [] [] | flex | [] [] [] | fslint | [] | gas | | gawk | [] [] [] | gbiff | [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] | gettext-runtime | [] [] [] [] | gettext-tools | [] [] | gimp-print | [] [] [] [] | gip | | gliv | [] | glunarclock | | gmult | [] [] | gnubiff | () | gnucash | [] () () [] | gnucash-glossary | [] () | gpe-aerial | [] [] | gpe-beam | [] [] | gpe-calendar | [] [] | gpe-clock | [] [] | gpe-conf | [] [] | gpe-contacts | | gpe-edit | [] | gpe-go | [] | gpe-login | [] [] | gpe-ownerinfo | [] [] | gpe-sketchbook | [] [] | gpe-su | [] [] | gpe-taskmanager | [] [] | gpe-timesheet | [] | gpe-today | [] [] | gpe-todo | [] [] | gphoto2 | [] [] [] [] | gprof | [] [] | gpsdrive | () () | gramadoir | [] [] | grep | [] [] [] [] [] [] | gretl | | gsasl | [] | gss | | gst-plugins | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] () | gtkspell | [] [] [] | hello | [] [] [] [] | id-utils | [] [] | impost | | indent | [] [] | iso_3166 | | iso_3166_1 | [] [] [] [] [] | iso_3166_2 | | iso_3166_3 | [] | iso_4217 | | iso_639 | | jpilot | [] | jtag | | jwhois | | kbd | [] [] [] [] | latrine | () | ld | [] | libc | [] [] [] [] [] | libextractor | | libgpewidget | [] [] [] | libgphoto2 | [] | libgphoto2_port | [] | libgsasl | | libiconv | [] [] [] [] [] | libidn | | lifelines | [] () | lilypond | [] | lingoteach | | lynx | [] [] [] [] | m4 | [] [] [] [] | mailutils | [] | make | [] [] | man-db | [] () [] [] | minicom | [] [] | mysecretdiary | [] [] | nano | [] () [] | nano_1_0 | [] () [] [] | opcodes | [] | parted | [] [] [] [] | psmisc | | ptx | [] [] [] | pwdutils | | python | | radius | [] | recode | [] [] [] [] [] | rpm | [] [] | screem | | scrollkeeper | [] [] [] [] [] [] [] [] | sed | [] [] | sh-utils | [] [] | shared-mime-info | [] [] | sharutils | [] [] [] [] [] | silky | | skencil | [] () | sketch | [] () | solfege | [] | soundtracker | [] [] | sp | [] | stardict | [] | tar | | texinfo | [] [] | textutils | [] [] [] | tin | () () | tp-robot | [] | tuxpaint | [] [] [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] [] [] | vorbis-tools | [] [] [] [] | wastesedge | () | wdiff | [] [] [] [] | wget | | xchat | [] [] [] [] [] | xkeyboard-config | | xpad | | +-------------------------------------------------+ af am ar az be bg bs ca cs cy da de el en en_GB 10 0 0 2 7 5 0 40 43 2 51 91 19 1 14 eo es et eu fa fi fr ga gl he hi hr hu id is +-----------------------------------------------+ GNUnet | | a2ps | [] [] [] | aegis | | ant-phone | [] | anubis | [] | ap-utils | [] | aspell | [] [] | bash | [] [] [] [] | batchelor | [] [] | bfd | [] | bibshelf | [] [] | binutils | [] [] | bison | [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] | clisp | [] [] | console-tools | | coreutils | [] [] [] [] [] | cpio | [] [] | cpplib | [] [] | darkstat | [] () [] [] [] | dialog | [] [] [] [] [] [] [] | diffutils | [] [] [] [] [] [] [] [] [] | doodle | [] | e2fsprogs | [] [] | enscript | [] [] | error | [] [] [] [] [] | fetchmail | [] | fileutils | [] [] [] [] [] | findutils | [] [] [] [] | flex | [] [] [] | fslint | [] | gas | [] [] | gawk | [] [] [] [] | gbiff | [] | gcal | [] [] | gcc | [] | gettext-examples | [] [] [] | gettext-runtime | [] [] [] [] [] | gettext-tools | [] [] | gimp-print | [] [] | gip | [] [] [] | gliv | () | glunarclock | [] [] [] | gmult | [] [] | gnubiff | () | gnucash | [] () | gnucash-glossary | [] | gpe-aerial | [] [] | gpe-beam | [] [] | gpe-calendar | [] [] [] [] | gpe-clock | [] [] [] | gpe-conf | [] | gpe-contacts | [] | gpe-edit | [] [] | gpe-go | [] [] | gpe-login | [] [] [] | gpe-ownerinfo | [] [] [] [] [] | gpe-sketchbook | [] [] | gpe-su | [] [] [] | gpe-taskmanager | [] [] [] | gpe-timesheet | [] [] [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] [] [] | gprof | [] [] [] | gpsdrive | () () [] | gramadoir | [] [] | grep | [] [] [] [] [] [] [] [] [] [] [] | gretl | [] [] | gsasl | [] [] [] | gss | [] | gst-plugins | [] [] | gstreamer | | gtick | [] [] [] [] | gtkspell | [] [] [] [] [] | hello | [] [] [] [] [] [] [] [] [] [] [] [] [] | id-utils | [] [] [] | impost | [] [] | indent | [] [] [] [] [] [] [] [] [] [] | iso_3166 | [] [] [] | iso_3166_1 | [] [] [] [] [] [] [] | iso_3166_2 | [] | iso_3166_3 | [] | iso_4217 | [] [] [] | iso_639 | [] [] [] [] | jpilot | [] [] | jtag | [] | jwhois | [] [] [] [] | kbd | [] [] | latrine | [] [] | ld | [] [] | libc | [] [] [] [] [] | libextractor | | libgpewidget | [] [] [] [] [] | libgphoto2 | [] [] [] | libgphoto2_port | [] | libgsasl | [] [] | libiconv | [] [] [] [] [] [] [] [] [] [] | libidn | [] [] | lifelines | () | lilypond | | lingoteach | [] [] | lynx | [] [] | m4 | [] [] [] [] | mailutils | [] [] | make | [] [] [] [] [] [] [] | man-db | () | minicom | [] [] [] [] | mysecretdiary | [] [] [] | nano | [] [] () [] | nano_1_0 | [] [] [] [] | opcodes | [] [] [] | parted | [] [] [] | psmisc | [] | ptx | [] [] [] [] [] [] [] [] [] | pwdutils | | python | | radius | [] [] | recode | [] [] [] [] [] [] [] | rpm | [] | screem | | scrollkeeper | [] [] [] | sed | [] [] [] [] [] [] | sh-utils | [] [] [] [] [] [] | shared-mime-info | [] [] [] [] [] [] | sharutils | [] [] [] [] [] [] | silky | [] | skencil | [] [] | sketch | [] [] | solfege | | soundtracker | [] [] | sp | [] | stardict | [] | tar | [] [] [] [] | texinfo | [] [] [] | textutils | [] [] [] [] [] | tin | [] () | tp-robot | [] [] | tuxpaint | [] [] [] [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | [] [] | util-linux | [] [] [] [] [] | vorbis-tools | [] [] | wastesedge | () | wdiff | [] [] [] [] [] [] [] | wget | [] [] [] [] | xchat | [] [] [] [] [] | xkeyboard-config | | xpad | [] [] [] | +-----------------------------------------------+ eo es et eu fa fi fr ga gl he hi hr hu id is 15 85 21 15 2 35 115 45 16 8 1 6 40 27 1 it ja ko ku lg lt lv mk mn ms mt nb nl nn no nso +--------------------------------------------------+ GNUnet | | a2ps | () () [] [] () | aegis | () | ant-phone | [] | anubis | [] [] [] | ap-utils | | aspell | [] [] | bash | [] | batchelor | [] | bfd | | bibshelf | [] | binutils | | bison | [] [] [] [] | bluez-pin | [] [] | clisp | [] | console-tools | | coreutils | [] [] | cpio | | cpplib | [] | darkstat | [] [] | dialog | [] [] | diffutils | [] [] [] [] | doodle | [] | e2fsprogs | [] | enscript | [] | error | [] | fetchmail | [] [] | fileutils | [] [] [] | findutils | [] [] | flex | [] [] | fslint | [] | gas | | gawk | [] [] | gbiff | [] | gcal | | gcc | | gettext-examples | [] [] [] | gettext-runtime | [] [] [] [] | gettext-tools | [] [] [] | gimp-print | [] [] | gip | [] | gliv | [] | glunarclock | [] [] | gmult | [] [] | gnubiff | () | gnucash | [] () () [] | gnucash-glossary | [] [] | gpe-aerial | [] | gpe-beam | [] | gpe-calendar | [] | gpe-clock | [] | gpe-conf | [] | gpe-contacts | | gpe-edit | [] | gpe-go | [] | gpe-login | [] | gpe-ownerinfo | [] | gpe-sketchbook | [] | gpe-su | [] | gpe-taskmanager | [] [] | gpe-timesheet | [] | gpe-today | [] | gpe-todo | [] | gphoto2 | [] [] [] | gprof | | gpsdrive | () () () () | gramadoir | () | grep | [] [] [] [] | gretl | [] | gsasl | [] | gss | | gst-plugins | [] [] | gstreamer | [] [] | gtick | [] [] | gtkspell | [] [] [] | hello | [] [] [] [] [] [] [] [] [] | id-utils | [] [] | impost | | indent | [] [] [] | iso_3166 | [] | iso_3166_1 | [] [] | iso_3166_2 | [] | iso_3166_3 | [] | iso_4217 | [] [] [] | iso_639 | [] [] [] | jpilot | () () () | jtag | | jwhois | [] [] | kbd | [] | latrine | [] [] | ld | | libc | [] [] [] [] [] | libextractor | | libgpewidget | [] | libgphoto2 | [] [] | libgphoto2_port | [] [] | libgsasl | [] | libiconv | [] [] | libidn | [] | lifelines | [] | lilypond | | lingoteach | [] [] | lynx | [] [] [] | m4 | [] [] | mailutils | | make | [] [] [] | man-db | () | minicom | [] | mysecretdiary | [] | nano | [] [] [] | nano_1_0 | [] [] [] [] | opcodes | [] | parted | [] [] [] [] | psmisc | [] [] [] | ptx | [] [] [] | pwdutils | | python | | radius | | recode | [] [] | rpm | [] [] | screem | [] | scrollkeeper | [] [] [] | sed | [] [] | sh-utils | [] [] [] | shared-mime-info | [] [] [] [] | sharutils | [] [] [] | silky | [] | skencil | | sketch | | solfege | [] [] [] | soundtracker | [] | sp | () | stardict | [] [] | tar | [] [] [] | texinfo | [] [] [] | textutils | [] [] [] | tin | | tp-robot | [] | tuxpaint | [] [] [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] [] | vorbis-tools | [] | wastesedge | [] | wdiff | [] [] [] | wget | [] | xchat | [] [] [] [] [] | xkeyboard-config | [] | xpad | [] | +--------------------------------------------------+ it ja ko ku lg lt lv mk mn ms mt nb nl nn no nso 46 35 11 2 1 1 2 2 3 11 0 15 96 7 5 0 or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv +----------------------------------------------+ GNUnet | | a2ps | () [] [] [] [] [] [] | aegis | () () | ant-phone | [] | anubis | [] [] [] | ap-utils | () | aspell | [] [] | bash | [] [] [] | batchelor | [] | bfd | | bibshelf | | binutils | [] [] | bison | [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | clisp | [] | console-tools | [] | coreutils | [] [] [] [] | cpio | [] [] | cpplib | | darkstat | [] [] [] [] [] [] | dialog | [] [] [] [] [] [] [] | diffutils | [] [] [] [] [] [] | doodle | [] | e2fsprogs | [] [] | enscript | [] [] [] [] | error | [] [] [] | fetchmail | [] [] [] [] | fileutils | [] [] [] [] [] | findutils | [] [] [] [] [] [] | flex | [] [] [] [] [] | fslint | [] [] [] | gas | | gawk | [] [] [] [] | gbiff | [] | gcal | [] | gcc | | gettext-examples | [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] [] | gimp-print | [] [] | gip | [] [] [] | gliv | [] [] [] | glunarclock | [] [] [] [] [] [] | gmult | [] [] [] [] | gnubiff | () [] | gnucash | () [] [] [] [] | gnucash-glossary | [] [] [] | gpe-aerial | [] [] [] [] [] [] | gpe-beam | [] [] [] [] [] [] | gpe-calendar | [] [] [] [] [] [] [] | gpe-clock | [] [] [] [] [] [] [] | gpe-conf | [] [] [] [] [] [] | gpe-contacts | [] [] [] [] | gpe-edit | [] [] [] [] [] [] [] | gpe-go | [] [] [] [] [] | gpe-login | [] [] [] [] [] [] [] | gpe-ownerinfo | [] [] [] [] [] [] [] | gpe-sketchbook | [] [] [] [] [] [] [] | gpe-su | [] [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] | gpe-todo | [] [] [] [] [] [] [] [] | gphoto2 | [] [] [] [] | gprof | [] [] [] | gpsdrive | [] [] | gramadoir | [] | grep | [] [] [] [] [] [] [] | gretl | [] | gsasl | [] [] [] [] [] | gss | [] [] [] | gst-plugins | [] [] [] [] | gstreamer | [] [] [] [] | gtick | [] [] [] | gtkspell | [] [] [] [] [] [] | hello | [] [] [] [] [] [] [] | id-utils | [] [] [] [] | impost | | indent | [] [] [] [] [] [] | iso_3166 | [] [] [] [] [] | iso_3166_1 | [] [] [] [] | iso_3166_2 | | iso_3166_3 | [] [] [] | iso_4217 | [] [] | iso_639 | [] [] [] | jpilot | | jtag | [] | jwhois | [] [] [] () () | kbd | [] [] [] | latrine | [] [] | ld | [] | libc | [] [] [] [] [] | libextractor | [] | libgpewidget | [] [] [] [] [] [] | libgphoto2 | [] [] | libgphoto2_port | [] | libgsasl | [] [] [] | libiconv | [] [] [] [] [] [] [] [] [] [] | libidn | [] () | lifelines | [] [] | lilypond | | lingoteach | [] | lynx | [] [] [] | m4 | [] [] [] [] [] | mailutils | [] [] [] | make | [] [] [] [] | man-db | [] [] | minicom | [] [] [] [] | mysecretdiary | [] [] [] [] | nano | [] [] [] | nano_1_0 | [] [] [] [] | opcodes | [] [] | parted | [] [] [] [] | psmisc | [] [] | ptx | [] [] [] [] [] [] | pwdutils | [] | python | | radius | [] [] | recode | [] [] [] [] [] [] | rpm | [] [] [] [] | screem | | scrollkeeper | [] [] [] [] [] [] [] | sed | [] [] [] [] [] [] [] [] | sh-utils | [] [] [] | shared-mime-info | [] [] [] [] [] [] | sharutils | [] [] [] | silky | [] | skencil | [] [] [] | sketch | [] [] [] | solfege | | soundtracker | [] [] | sp | | stardict | [] [] | tar | [] [] [] [] | texinfo | [] [] [] [] | textutils | [] [] [] | tin | | tp-robot | [] | tuxpaint | [] [] [] [] [] [] [] [] | unicode-han-tra... | | unicode-transla... | | util-linux | [] [] [] | vorbis-tools | [] [] | wastesedge | | wdiff | [] [] [] [] [] [] | wget | | xchat | [] [] [] [] [] [] [] | xkeyboard-config | | xpad | | +----------------------------------------------+ or pa pl pt pt_BR rm ro ru rw sk sl sq sr sv 1 3 47 29 57 6 78 73 5 44 12 12 50 85 ta tg th tk tr uk ven vi wa xh zh_CN zh_TW zu +-----------------------------------------------+ GNUnet | | 0 a2ps | [] [] [] | 19 aegis | | 0 ant-phone | [] [] | 5 anubis | [] [] [] | 11 ap-utils | () [] | 2 aspell | [] [] [] | 13 bash | [] | 11 batchelor | [] [] | 7 bfd | | 1 bibshelf | [] | 5 binutils | [] | 6 bison | [] [] | 18 bluez-pin | [] [] [] [] [] | 25 clisp | | 7 console-tools | [] [] | 5 coreutils | [] [] | 17 cpio | [] [] [] | 7 cpplib | [] [] | 8 darkstat | [] () () | 15 dialog | [] [] [] | 25 diffutils | [] [] [] [] | 28 doodle | [] | 5 e2fsprogs | [] | 8 enscript | [] | 12 error | [] [] [] | 16 fetchmail | [] | 12 fileutils | [] [] [] | 18 findutils | [] [] | 17 flex | [] [] | 15 fslint | [] | 7 gas | [] | 3 gawk | [] | 14 gbiff | [] | 5 gcal | [] | 5 gcc | [] [] | 4 gettext-examples | [] [] [] [] [] | 21 gettext-runtime | [] [] [] [] [] | 25 gettext-tools | [] [] [] [] [] | 19 gimp-print | [] | 11 gip | [] | 8 gliv | [] [] | 7 glunarclock | [] [] | 13 gmult | [] [] [] | 13 gnubiff | [] | 3 gnucash | () [] | 10 gnucash-glossary | [] [] | 9 gpe-aerial | [] [] | 13 gpe-beam | [] [] | 13 gpe-calendar | [] [] [] [] | 18 gpe-clock | [] [] [] [] | 17 gpe-conf | [] [] | 12 gpe-contacts | [] [] | 7 gpe-edit | [] [] [] [] | 15 gpe-go | [] [] | 11 gpe-login | [] [] [] [] [] | 18 gpe-ownerinfo | [] [] [] [] | 19 gpe-sketchbook | [] [] | 14 gpe-su | [] [] [] | 16 gpe-taskmanager | [] [] [] | 17 gpe-timesheet | [] [] [] [] | 17 gpe-today | [] [] [] [] [] | 19 gpe-todo | [] [] [] | 17 gphoto2 | [] [] [] | 18 gprof | [] [] | 10 gpsdrive | | 3 gramadoir | [] | 6 grep | [] [] [] [] | 32 gretl | | 4 gsasl | [] [] | 12 gss | [] | 5 gst-plugins | [] [] [] | 17 gstreamer | [] [] [] [] | 15 gtick | [] | 11 gtkspell | [] [] [] [] | 21 hello | [] [] [] [] | 37 id-utils | [] [] | 13 impost | [] | 3 indent | [] [] [] [] | 25 iso_3166 | [] [] [] | 12 iso_3166_1 | [] [] | 20 iso_3166_2 | | 2 iso_3166_3 | [] [] | 8 iso_4217 | [] [] | 10 iso_639 | [] [] | 12 jpilot | [] [] [] | 6 jtag | | 2 jwhois | [] [] [] | 12 kbd | [] [] | 12 latrine | [] [] | 8 ld | [] | 5 libc | [] [] | 22 libextractor | | 1 libgpewidget | [] [] | 17 libgphoto2 | [] | 9 libgphoto2_port | | 5 libgsasl | [] | 7 libiconv | [] [] [] [] [] | 32 libidn | [] [] | 6 lifelines | | 4 lilypond | | 1 lingoteach | [] | 6 lynx | [] [] [] | 15 m4 | [] [] | 17 mailutils | [] | 7 make | [] [] | 18 man-db | | 5 minicom | | 11 mysecretdiary | [] [] | 12 nano | [] [] | 13 nano_1_0 | [] [] [] | 18 opcodes | [] [] | 9 parted | [] [] [] | 18 psmisc | [] | 7 ptx | [] [] | 23 pwdutils | | 1 python | | 0 radius | [] | 6 recode | [] [] | 22 rpm | [] [] | 11 screem | | 1 scrollkeeper | [] [] [] | 24 sed | [] [] [] | 21 sh-utils | [] | 15 shared-mime-info | [] [] [] | 21 sharutils | [] [] [] | 20 silky | | 3 skencil | | 6 sketch | | 6 solfege | | 4 soundtracker | [] | 8 sp | [] | 3 stardict | [] [] [] [] | 10 tar | [] [] [] [] | 15 texinfo | [] [] | 14 textutils | [] [] [] | 17 tin | | 1 tp-robot | [] [] [] | 8 tuxpaint | [] [] [] [] | 34 unicode-han-tra... | | 0 unicode-transla... | | 2 util-linux | [] [] [] | 18 vorbis-tools | [] | 10 wastesedge | | 1 wdiff | [] [] | 22 wget | [] [] | 7 xchat | [] [] [] [] | 26 xkeyboard-config | [] | 2 xpad | [] | 5 +-----------------------------------------------+ 73 teams ta tg th tk tr uk ven vi wa xh zh_CN zh_TW zu 149 domains 0 0 0 1 77 30 0 92 16 0 42 32 0 1746 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If May 2005 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at `http://www.iro.umontreal.ca/contrib/po/HTML/matrix.html'. 1.6 Using `gettext' in new packages =================================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU `gettext' in your package. Of course you have to respect the GNU Library General Public License which covers the use of the GNU `gettext' library. This means in particular that even non-free programs can use `libintl' as a shared library, whereas only free software can use `libintl' as a static library or use modified versions of `libintl'. Once the sources are changed appropriately and the setup can handle the use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact `translation@iro.umontreal.ca' to make the `.pot' files available to the translation teams. sweep-0.9.3/Makefile.am0000644000175000017500000000231610777660362013440 0ustar useruser## Process this file with automake to produce Makefile.in ACLOCAL_AMFLAGS = -I m4 SUBDIRS = m4 intl po include src plugins doc pkgdata_DATA = sweep_splash.png desktop_DATA = sweep.desktop desktopdir = $(datadir)/applications pixmapdir = $(datadir)/pixmaps pixmap_DATA = sweep.svg EXTRA_DIST = config.rpath mkinstalldirs $(desktop_DATA) $(pkgdata_DATA) $(pixmap_DATA) \ sweep.spec README.Solaris README.ALSA README.i18n TODO MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure config.h.in \ stamp-h.in \ config.guess mkinstalldirs \ missing install-sh config.sub ltconfig \ ltmain.sh acinclude.m4 #install-data-local: # @$(NORMAL_INSTALL) # if test -d $(srcdir)/pixmaps; then \ # $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/pixmaps; \ # for pixmap in $(srcdir)/pixmaps/*; do \ # if test -f $$pixmap; then \ # $(INSTALL_DATA) $$pixmap $(DESTDIR)$(pkgdatadir)/pixmaps; \ # fi \ # done \ # fi dist-hook: if test -d pixmaps; then \ mkdir $(distdir)/pixmaps; \ for pixmap in pixmaps/*; do \ if test -f $$pixmap; then \ cp -p $$pixmap $(distdir)/pixmaps; \ fi \ done \ fi sweep-0.9.3/m4/0000755000175000017500000000000011001133761011675 5ustar userusersweep-0.9.3/m4/codeset.m40000644000175000017500000000135110777660145013611 0ustar useruser# codeset.m4 serial AM1 (gettext-0.10.40) dnl Copyright (C) 2000-2002 Free Software Foundation, 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 From Bruno Haible. AC_DEFUN([AM_LANGINFO_CODESET], [ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, [AC_TRY_LINK([#include ], [char* cs = nl_langinfo(CODESET);], am_cv_langinfo_codeset=yes, am_cv_langinfo_codeset=no) ]) if test $am_cv_langinfo_codeset = yes; then AC_DEFINE(HAVE_LANGINFO_CODESET, 1, [Define if you have and nl_langinfo(CODESET).]) fi ]) sweep-0.9.3/m4/speex.m40000644000175000017500000000717010777660145013314 0ustar useruser# Configure paths for libspeex # Jean-Marc Valin # Shamelessly stolen from: # Jack Moffitt 10-21-2000 # Shamelessly stolen from Owen Taylor and Manish Singh dnl XIPH_PATH_SPEEX([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) dnl Test for libspeex, and define SPEEX_CFLAGS and SPEEX_LIBS dnl AC_DEFUN([XIPH_PATH_SPEEX], [dnl dnl Get the cflags and libraries dnl AC_ARG_WITH(speex,[ --with-speex=PFX Prefix where libspeex is installed (optional)], speex_prefix="$withval", speex_prefix="") AC_ARG_WITH(speex-libraries,[ --with-speex-libraries=DIR Directory where libspeex library is installed (optional)], speex_libraries="$withval", speex_libraries="") AC_ARG_WITH(speex-includes,[ --with-speex-includes=DIR Directory where libspeex header files are installed (optional)], speex_includes="$withval", speex_includes="") AC_ARG_ENABLE(speextest, [ --disable-speextest Do not try to compile and run a test Speex program],, enable_speextest=yes) if test "x$speex_libraries" != "x" ; then SPEEX_LIBS="-L$speex_libraries" elif test "x$speex_prefix" != "x" ; then SPEEX_LIBS="-L$speex_prefix/lib" elif test "x$prefix" != "xNONE" ; then SPEEX_LIBS="-L$prefix/lib" fi SPEEX_LIBS="$SPEEX_LIBS -lspeex" if test "x$speex_includes" != "x" ; then SPEEX_CFLAGS="-I$speex_includes" elif test "x$speex_prefix" != "x" ; then SPEEX_CFLAGS="-I$speex_prefix/include" elif test "x$prefix" != "xNONE"; then SPEEX_CFLAGS="-I$prefix/include" fi AC_MSG_CHECKING(for Speex) no_speex="" if test "x$enable_speextest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $SPEEX_CFLAGS" LIBS="$LIBS $SPEEX_LIBS" dnl dnl Now check if the installed Speex is sufficiently new. dnl rm -f conf.speextest AC_TRY_RUN([ #include #include #include #include int main () { system("touch conf.speextest"); return 0; } ],, no_speex=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi if test "x$no_speex" = "x" ; then AC_MSG_RESULT(yes) ifelse([$1], , :, [$1]) else AC_MSG_RESULT(no) if test -f conf.speextest ; then : else echo "*** Could not run Speex test program, checking why..." CFLAGS="$CFLAGS $SPEEX_CFLAGS" LIBS="$LIBS $SPEEX_LIBS" AC_TRY_LINK([ #include #include ], [ return 0; ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding Speex or finding the wrong" echo "*** version of Speex. If it is not finding Speex, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means Speex was incorrectly installed" echo "*** or that you have moved Speex since it was installed." ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi SPEEX_CFLAGS="" SPEEX_LIBS="" ifelse([$2], , :, [$2]) fi AC_SUBST(SPEEX_CFLAGS) AC_SUBST(SPEEX_LIBS) rm -f conf.speextest ]) sweep-0.9.3/m4/xsize.m40000644000175000017500000000064510777660145013332 0ustar useruser# xsize.m4 serial 3 dnl Copyright (C) 2003-2004 Free Software Foundation, 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. AC_DEFUN([gl_XSIZE], [ dnl Prerequisites of lib/xsize.h. AC_REQUIRE([gl_SIZE_MAX]) AC_REQUIRE([AC_C_INLINE]) AC_CHECK_HEADERS(stdint.h) ]) sweep-0.9.3/m4/glibc2.m40000644000175000017500000000135410777660145013330 0ustar useruser# glibc2.m4 serial 1 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, 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. # Test for the GNU C Library, version 2.0 or newer. # From Bruno Haible. AC_DEFUN([gt_GLIBC2], [ AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer, ac_cv_gnu_library_2, [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) Lucky GNU user #endif #endif ], ac_cv_gnu_library_2=yes, ac_cv_gnu_library_2=no) ] ) AC_SUBST(GLIBC2) GLIBC2="$ac_cv_gnu_library_2" ] ) sweep-0.9.3/m4/uintmax_t.m40000644000175000017500000000207610777660145014200 0ustar useruser# uintmax_t.m4 serial 9 dnl Copyright (C) 1997-2004 Free Software Foundation, 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 From Paul Eggert. AC_PREREQ(2.13) # Define uintmax_t to 'unsigned long' or 'unsigned long long' # if it is not already defined in or . AC_DEFUN([gl_AC_TYPE_UINTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then AC_REQUIRE([gl_AC_TYPE_UNSIGNED_LONG_LONG]) test $ac_cv_type_unsigned_long_long = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, [Define to unsigned long or unsigned long long if and don't define.]) else AC_DEFINE(HAVE_UINTMAX_T, 1, [Define if you have the 'uintmax_t' type in or .]) fi ]) sweep-0.9.3/m4/Makefile.in0000644000175000017500000002630510777670413013773 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = m4 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ EXTRA_DIST = codeset.m4 gettext.m4 glibc2.m4 glibc21.m4 iconv.m4 intdiv0.m4 intmax.m4 inttypes.m4 inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 longdouble.m4 longlong.m4 nls.m4 po.m4 printf-posix.m4 progtest.m4 signed.m4 size_max.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 wchar_t.m4 wint_t.m4 xsize.m4 \ ogg.m4 \ speex.m4 \ vorbis.m4 all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu m4/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 mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: sweep-0.9.3/m4/nls.m40000644000175000017500000000353010777660145012760 0ustar useruser# nls.m4 serial 2 (gettext-0.14.3) dnl Copyright (C) 1995-2003, 2005 Free Software Foundation, 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) ]) AC_DEFUN([AM_MKINSTALLDIRS], [ dnl Tell automake >= 1.10 to complain if mkinstalldirs is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([mkinstalldirs])]) 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 it. MKINSTALLDIRS= if test -n "$ac_aux_dir"; then case "$ac_aux_dir" in /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; esac fi if test -z "$MKINSTALLDIRS"; then MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" fi AC_SUBST(MKINSTALLDIRS) ]) sweep-0.9.3/m4/glibc21.m40000644000175000017500000000144510777660145013412 0ustar useruser# glibc21.m4 serial 3 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, 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. # Test for the GNU C Library, version 2.1 or newer. # From Bruno Haible. AC_DEFUN([gl_GLIBC21], [ AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, ac_cv_gnu_library_2_1, [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif ], ac_cv_gnu_library_2_1=yes, ac_cv_gnu_library_2_1=no) ] ) AC_SUBST(GLIBC21) GLIBC21="$ac_cv_gnu_library_2_1" ] ) sweep-0.9.3/m4/inttypes.m40000644000175000017500000000147210777660145014046 0ustar useruser# inttypes.m4 serial 1 (gettext-0.11.4) dnl Copyright (C) 1997-2002 Free Software Foundation, 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 From Paul Eggert. # Define HAVE_INTTYPES_H if exists and doesn't clash with # . AC_DEFUN([gt_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h, [ AC_TRY_COMPILE( [#include #include ], [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no) ]) if test $gt_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, [Define if exists and doesn't clash with .]) fi ]) sweep-0.9.3/m4/signed.m40000644000175000017500000000115410777660145013435 0ustar useruser# signed.m4 serial 1 (gettext-0.10.40) dnl Copyright (C) 2001-2002 Free Software Foundation, 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 From Bruno Haible. AC_DEFUN([bh_C_SIGNED], [ AC_CACHE_CHECK([for signed], bh_cv_c_signed, [AC_TRY_COMPILE(, [signed char x;], bh_cv_c_signed=yes, bh_cv_c_signed=no)]) if test $bh_cv_c_signed = no; then AC_DEFINE(signed, , [Define to empty if the C compiler doesn't support this keyword.]) fi ]) sweep-0.9.3/m4/lib-prefix.m40000644000175000017500000001231010777660145014221 0ustar useruser# lib-prefix.m4 serial 4 (gettext-0.14.2) dnl Copyright (C) 2001-2005 Free Software Foundation, 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 From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib-prefix], [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/lib" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/lib"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/lib"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) sweep-0.9.3/m4/ulonglong.m40000644000175000017500000000161510777660145014172 0ustar useruser# ulonglong.m4 serial 4 dnl Copyright (C) 1999-2004 Free Software Foundation, 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 From Paul Eggert. # Define HAVE_UNSIGNED_LONG_LONG if 'unsigned long long' works. AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG], [ AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, [AC_TRY_LINK([unsigned long long ull = 1ULL; int i = 63;], [unsigned long long ullmax = (unsigned long long) -1; return ull << i | ull >> i | ullmax / ull | ullmax % ull;], ac_cv_type_unsigned_long_long=yes, ac_cv_type_unsigned_long_long=no)]) if test $ac_cv_type_unsigned_long_long = yes; then AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, [Define if you have the 'unsigned long long' type.]) fi ]) sweep-0.9.3/m4/inttypes_h.m40000644000175000017500000000162310777660145014353 0ustar useruser# inttypes_h.m4 serial 6 dnl Copyright (C) 1997-2004 Free Software Foundation, 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 From Paul Eggert. # Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h, [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1;], gl_cv_header_inttypes_h=yes, gl_cv_header_inttypes_h=no)]) if test $gl_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) sweep-0.9.3/m4/intmax.m40000644000175000017500000000174610777660145013473 0ustar useruser# intmax.m4 serial 2 (gettext-0.14.2) dnl Copyright (C) 2002-2005 Free Software Foundation, 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 From Bruno Haible. dnl Test whether the system has the 'intmax_t' type, but don't attempt to dnl find a replacement if it is lacking. AC_DEFUN([gt_TYPE_INTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t, [AC_TRY_COMPILE([ #include #include #if HAVE_STDINT_H_WITH_UINTMAX #include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX #include #endif ], [intmax_t x = -1;], gt_cv_c_intmax_t=yes, gt_cv_c_intmax_t=no)]) if test $gt_cv_c_intmax_t = yes; then AC_DEFINE(HAVE_INTMAX_T, 1, [Define if you have the 'intmax_t' type in or .]) fi ]) sweep-0.9.3/m4/ogg.m40000644000175000017500000000663610777660145012752 0ustar useruser# Configure paths for libogg # Jack Moffitt 10-21-2000 # Shamelessly stolen from Owen Taylor and Manish Singh dnl XIPH_PATH_OGG([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) dnl Test for libogg, and define OGG_CFLAGS and OGG_LIBS dnl AC_DEFUN([XIPH_PATH_OGG], [dnl dnl Get the cflags and libraries dnl AC_ARG_WITH(ogg,[ --with-ogg=PFX Prefix where libogg is installed (optional)], ogg_prefix="$withval", ogg_prefix="") AC_ARG_WITH(ogg-libraries,[ --with-ogg-libraries=DIR Directory where libogg library is installed (optional)], ogg_libraries="$withval", ogg_libraries="") AC_ARG_WITH(ogg-includes,[ --with-ogg-includes=DIR Directory where libogg header files are installed (optional)], ogg_includes="$withval", ogg_includes="") AC_ARG_ENABLE(oggtest, [ --disable-oggtest Do not try to compile and run a test Ogg program],, enable_oggtest=yes) if test "x$ogg_libraries" != "x" ; then OGG_LIBS="-L$ogg_libraries" elif test "x$ogg_prefix" != "x" ; then OGG_LIBS="-L$ogg_prefix/lib" elif test "x$prefix" != "xNONE" ; then OGG_LIBS="-L$prefix/lib" fi OGG_LIBS="$OGG_LIBS -logg" if test "x$ogg_includes" != "x" ; then OGG_CFLAGS="-I$ogg_includes" elif test "x$ogg_prefix" != "x" ; then OGG_CFLAGS="-I$ogg_prefix/include" elif test "x$prefix" != "xNONE"; then OGG_CFLAGS="-I$prefix/include" fi AC_MSG_CHECKING(for Ogg) no_ogg="" if test "x$enable_oggtest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $OGG_CFLAGS" LIBS="$LIBS $OGG_LIBS" dnl dnl Now check if the installed Ogg is sufficiently new. dnl rm -f conf.oggtest AC_TRY_RUN([ #include #include #include #include int main () { system("touch conf.oggtest"); return 0; } ],, no_ogg=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi if test "x$no_ogg" = "x" ; then AC_MSG_RESULT(yes) ifelse([$1], , :, [$1]) else AC_MSG_RESULT(no) if test -f conf.oggtest ; then : else echo "*** Could not run Ogg test program, checking why..." CFLAGS="$CFLAGS $OGG_CFLAGS" LIBS="$LIBS $OGG_LIBS" AC_TRY_LINK([ #include #include ], [ return 0; ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding Ogg or finding the wrong" echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means Ogg was incorrectly installed" echo "*** or that you have moved Ogg since it was installed." ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi OGG_CFLAGS="" OGG_LIBS="" ifelse([$2], , :, [$2]) fi AC_SUBST(OGG_CFLAGS) AC_SUBST(OGG_LIBS) rm -f conf.oggtest ]) sweep-0.9.3/m4/inttypes-pri.m40000644000175000017500000000200210777660145014624 0ustar useruser# inttypes-pri.m4 serial 1 (gettext-0.11.4) dnl Copyright (C) 1997-2002 Free Software Foundation, 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 From Bruno Haible. # Define PRI_MACROS_BROKEN if exists and defines the PRI* # macros to non-string values. This is the case on AIX 4.3.3. AC_DEFUN([gt_INTTYPES_PRI], [ AC_REQUIRE([gt_HEADER_INTTYPES_H]) if test $gt_cv_header_inttypes_h = yes; then AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], gt_cv_inttypes_pri_broken, [ AC_TRY_COMPILE([#include #ifdef PRId32 char *p = PRId32; #endif ], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) ]) fi if test "$gt_cv_inttypes_pri_broken" = yes; then AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, [Define if exists and defines unusable PRI* macros.]) fi ]) sweep-0.9.3/m4/lib-link.m40000644000175000017500000005542610777660145013700 0ustar useruser# lib-link.m4 serial 6 (gettext-0.14.3) dnl Copyright (C) 2001-2005 Free Software Foundation, 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 From Bruno Haible. AC_PREREQ(2.50) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) define([Name],[translit([$1],[./-], [___])]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes undefine([Name]) undefine([NAME]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. If found, it dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) define([Name],[translit([$1],[./-], [___])]) define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" LIBS="$LIBS $LIB[]NAME" AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) undefine([Name]) undefine([NAME]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, dnl hardcode_direct, hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Tell automake >= 1.10 to complain if config.rpath is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" libext="$acl_cv_libext" shlibext="$acl_cv_shlibext" hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" hardcode_direct="$acl_cv_hardcode_direct" hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE(rpath, [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib$1-prefix], [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib --without-lib$1-prefix don't search for lib$1 in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/lib" fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= if test $use_additional = yes; then if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then found_dir="$additional_libdir" found_so="$additional_libdir/lib$name.$shlibext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi else if test -f "$additional_libdir/lib$name.$libext"; then found_dir="$additional_libdir" found_a="$additional_libdir/lib$name.$libext" if test -f "$additional_libdir/lib$name.la"; then found_la="$additional_libdir/lib$name.la" fi fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then found_dir="$dir" found_so="$dir/lib$name.$shlibext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi else if test -f "$dir/lib$name.$libext"; then found_dir="$dir" found_a="$dir/lib$name.$libext" if test -f "$dir/lib$name.la"; then found_la="$dir/lib$name.la" fi fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */lib | */lib/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/lib"; then haveit= if test "X$additional_libdir" = "X/usr/local/lib"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" done dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) sweep-0.9.3/m4/gettext.m40000644000175000017500000005166710777660145013666 0ustar useruser# gettext.m4 serial 37 (gettext-0.14.4) dnl Copyright (C) 1995-2005 Free Software Foundation, 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. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value `$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], [no], [yes])) define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AM_NLS ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH(included-gettext, [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. dnl Add a version number to the cache macros. define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, [AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ], [])[extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings;], [bindtextdomain ("", ""); return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], gt_cv_func_gnugettext_libc=yes, gt_cv_func_gnugettext_libc=no)]) if test "$gt_cv_func_gnugettext_libc" != "yes"; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], gt_cv_func_gnugettext_libintl, [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ], [])[extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], gt_cv_func_gnugettext_libintl=yes, gt_cv_func_gnugettext_libintl=no) dnl Now see whether libintl exists and depends on libiconv. if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include ]ifelse([$2], [need-formatstring-macros], [#ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ], [])[extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")]ifelse([$2], [need-ngettext], [ + * ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" gt_cv_func_gnugettext_libintl=yes ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if test "$gt_cv_func_gnugettext_libc" = "yes" \ || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext_libintl" = "yes"; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if test "$gt_cv_func_gnugettext_libintl" = "yes"; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE(HAVE_GETTEXT, 1, [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE(HAVE_DCGETTEXT, 1, [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST(BUILD_INCLUDED_LIBINTL) AC_SUBST(USE_INCLUDED_LIBINTL) AC_SUBST(CATOBJEXT) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST(DATADIRNAME) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST(INSTOBJEXT) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST(GENCAT) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST(INTLOBJS) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST(INTLLIBS) dnl Make all documented variables known to autoconf. AC_SUBST(LIBINTL) AC_SUBST(LTLIBINTL) AC_SUBST(POSUB) ]) dnl Checks for all prerequisites of the intl subdirectory, dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. AC_DEFUN([AM_INTL_SUBDIR], [ AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_MKINSTALLDIRS])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([gt_GLIBC2])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([AC_ISC_POSIX])dnl AC_REQUIRE([AC_HEADER_STDC])dnl AC_REQUIRE([AC_C_CONST])dnl AC_REQUIRE([bh_C_SIGNED])dnl AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_OFF_T])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([gl_AC_TYPE_LONG_LONG])dnl AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl AC_REQUIRE([gt_TYPE_WCHAR_T])dnl AC_REQUIRE([gt_TYPE_WINT_T])dnl AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_REQUIRE([gt_TYPE_INTMAX_T]) AC_REQUIRE([gt_PRINTF_POSIX]) AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_REQUIRE([gl_GLIBC21])dnl AC_REQUIRE([gt_INTDIV0])dnl AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl AC_REQUIRE([gt_INTTYPES_PRI])dnl AC_REQUIRE([gl_XSIZE])dnl AC_REQUIRE([gt_INTL_MACOSX])dnl AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) ]) AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ stdlib.h string.h unistd.h sys/param.h]) AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \ mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ __fsetlocking]) dnl Use the _snprintf function only if it is declared (because on NetBSD it dnl is defined as a weak alias of snprintf; we prefer to use the latter). gt_CHECK_DECL(_snprintf, [#include ]) gt_CHECK_DECL(_snwprintf, [#include ]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. gt_CHECK_DECL(feof_unlocked, [#include ]) gt_CHECK_DECL(fgets_unlocked, [#include ]) gt_CHECK_DECL(getc_unlocked, [#include ]) case $gt_cv_func_printf_posix in *yes) HAVE_POSIX_PRINTF=1 ;; *) HAVE_POSIX_PRINTF=0 ;; esac AC_SUBST([HAVE_POSIX_PRINTF]) if test "$ac_cv_func_asprintf" = yes; then HAVE_ASPRINTF=1 else HAVE_ASPRINTF=0 fi AC_SUBST([HAVE_ASPRINTF]) if test "$ac_cv_func_snprintf" = yes; then HAVE_SNPRINTF=1 else HAVE_SNPRINTF=0 fi AC_SUBST([HAVE_SNPRINTF]) if test "$ac_cv_func_wprintf" = yes; then HAVE_WPRINTF=1 else HAVE_WPRINTF=0 fi AC_SUBST([HAVE_WPRINTF]) AM_ICONV AM_LANGINFO_CODESET if test $ac_cv_header_locale_h = yes; then gt_LC_MESSAGES fi if test -n "$INTL_MACOSX_LIBS"; then CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" fi dnl intl/plural.c is generated from intl/plural.y. It requires bison, dnl because plural.y uses bison specific features. It requires at least dnl bison-1.26 because earlier versions generate a plural.c that doesn't dnl compile. dnl bison is only needed for the maintainer (who touches plural.y). But in dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put dnl the rule in general Makefile. Now, some people carelessly touch the dnl files or have a broken "make" program, hence the plural.c rule will dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not dnl present or too old. AC_CHECK_PROGS([INTLBISON], [bison]) if test -z "$INTLBISON"; then ac_verc_fail=yes else dnl Found it, now check the version. AC_MSG_CHECKING([version of bison]) changequote(<<,>>)dnl ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) changequote([,])dnl ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac AC_MSG_RESULT([$ac_prog_version]) fi if test $ac_verc_fail = yes; then INTLBISON=: fi ]) dnl Checks for special options needed on MacOS X. dnl Defines INTL_MACOSX_LIBS. AC_DEFUN([gt_INTL_MACOSX], [ dnl Check for API introduced in MacOS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], gt_cv_func_CFPreferencesCopyAppValue, [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" gt_save_LIBS="$LIBS" LIBS="$LIBS -framework CoreFoundation" AC_TRY_LINK([#include ], [CFPreferencesCopyAppValue(NULL, NULL)], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1, [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Check for API introduced in MacOS X 10.3. AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent, [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" gt_save_LIBS="$LIBS" LIBS="$LIBS -framework CoreFoundation" AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], [gt_cv_func_CFLocaleCopyCurrent=yes], [gt_cv_func_CFLocaleCopyCurrent=no]) CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1, [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) dnl gt_CHECK_DECL(FUNC, INCLUDES) dnl Check whether a function is declared. AC_DEFUN([gt_CHECK_DECL], [ AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1, [AC_TRY_COMPILE([$2], [ #ifndef $1 char *p = (char *) $1; #endif ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) if test $ac_cv_have_decl_$1 = yes; then gt_value=1 else gt_value=0 fi AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) sweep-0.9.3/m4/lcmessage.m40000644000175000017500000000240410777660145014126 0ustar useruser# lcmessage.m4 serial 4 (gettext-0.14.2) dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, 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. # Check whether LC_MESSAGES is available in . AC_DEFUN([gt_LC_MESSAGES], [ AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES, [AC_TRY_LINK([#include ], [return LC_MESSAGES], gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)]) if test $gt_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, [Define if your file defines LC_MESSAGES.]) fi ]) sweep-0.9.3/m4/wchar_t.m40000644000175000017500000000132610777660145013614 0ustar useruser# wchar_t.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2002-2003 Free Software Foundation, 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 From Bruno Haible. dnl Test whether has the 'wchar_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WCHAR_T], [ AC_CACHE_CHECK([for wchar_t], gt_cv_c_wchar_t, [AC_TRY_COMPILE([#include wchar_t foo = (wchar_t)'\0';], , gt_cv_c_wchar_t=yes, gt_cv_c_wchar_t=no)]) if test $gt_cv_c_wchar_t = yes; then AC_DEFINE(HAVE_WCHAR_T, 1, [Define if you have the 'wchar_t' type.]) fi ]) sweep-0.9.3/m4/intdiv0.m40000644000175000017500000000334010777660145013540 0ustar useruser# intdiv0.m4 serial 1 (gettext-0.11.3) dnl Copyright (C) 2002 Free Software Foundation, 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 From Bruno Haible. AC_DEFUN([gt_INTDIV0], [ AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], gt_cv_int_divbyzero_sigfpe, [ AC_TRY_RUN([ #include #include static void #ifdef __cplusplus sigfpe_handler (int sig) #else sigfpe_handler (sig) int sig; #endif { /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ exit (sig != SIGFPE); } int x = 1; int y = 0; int z; int nan; int main () { signal (SIGFPE, sigfpe_handler); /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) signal (SIGTRAP, sigfpe_handler); #endif /* Linux/SPARC yields signal SIGILL. */ #if defined (__sparc__) && defined (__linux__) signal (SIGILL, sigfpe_handler); #endif z = x / y; nan = y / y; exit (1); } ], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no, [ # Guess based on the CPU. case "$host_cpu" in alpha* | i[34567]86 | m68k | s390*) gt_cv_int_divbyzero_sigfpe="guessing yes";; *) gt_cv_int_divbyzero_sigfpe="guessing no";; esac ]) ]) case "$gt_cv_int_divbyzero_sigfpe" in *yes) value=1;; *) value=0;; esac AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, [Define if integer division by zero raises signal SIGFPE.]) ]) sweep-0.9.3/m4/longdouble.m40000644000175000017500000000205310777660145014315 0ustar useruser# longdouble.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2002-2003 Free Software Foundation, 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 From Bruno Haible. dnl Test whether the compiler supports the 'long double' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_LONGDOUBLE], [ AC_CACHE_CHECK([for long double], gt_cv_c_long_double, [if test "$GCC" = yes; then gt_cv_c_long_double=yes else AC_TRY_COMPILE([ /* The Stardent Vistra knows sizeof(long double), but does not support it. */ long double foo = 0.0; /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ int array [2*(sizeof(long double) >= sizeof(double)) - 1]; ], , gt_cv_c_long_double=yes, gt_cv_c_long_double=no) fi]) if test $gt_cv_c_long_double = yes; then AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the 'long double' type.]) fi ]) sweep-0.9.3/m4/vorbis.m40000644000175000017500000001040410777660145013466 0ustar useruser# Configure paths for libvorbis # Jack Moffitt 10-21-2000 # Shamelessly stolen from Owen Taylor and Manish Singh # thomasvs added check for vorbis_bitrate_addblock which is new in rc3 dnl XIPH_PATH_VORBIS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) dnl Test for libvorbis, and define VORBIS_CFLAGS and VORBIS_LIBS dnl AC_DEFUN([XIPH_PATH_VORBIS], [dnl dnl Get the cflags and libraries dnl AC_ARG_WITH(vorbis,[ --with-vorbis=PFX Prefix where libvorbis is installed (optional)], vorbis_prefix="$withval", vorbis_prefix="") AC_ARG_WITH(vorbis-libraries,[ --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)], vorbis_libraries="$withval", vorbis_libraries="") AC_ARG_WITH(vorbis-includes,[ --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)], vorbis_includes="$withval", vorbis_includes="") AC_ARG_ENABLE(vorbistest, [ --disable-vorbistest Do not try to compile and run a test Vorbis program],, enable_vorbistest=yes) if test "x$vorbis_libraries" != "x" ; then VORBIS_LIBS="-L$vorbis_libraries" elif test "x$vorbis_prefix" != "x" ; then VORBIS_LIBS="-L$vorbis_prefix/lib" elif test "x$prefix" != "xNONE"; then VORBIS_LIBS="-L$prefix/lib" fi VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm" VORBISFILE_LIBS="-lvorbisfile" VORBISENC_LIBS="-lvorbisenc" if test "x$vorbis_includes" != "x" ; then VORBIS_CFLAGS="-I$vorbis_includes" elif test "x$vorbis_prefix" != "x" ; then VORBIS_CFLAGS="-I$vorbis_prefix/include" elif test "x$prefix" != "xNONE"; then VORBIS_CFLAGS="-I$prefix/include" fi AC_MSG_CHECKING(for Vorbis) no_vorbis="" if test "x$enable_vorbistest" = "xyes" ; then ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS" LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS" dnl dnl Now check if the installed Vorbis is sufficiently new. dnl rm -f conf.vorbistest AC_TRY_RUN([ #include #include #include #include #include int main () { vorbis_block vb; vorbis_dsp_state vd; vorbis_info vi; vorbis_info_init (&vi); vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1); vorbis_analysis_init (&vd, &vi); vorbis_block_init (&vd, &vb); /* this function was added in 1.0rc3, so this is what we're testing for */ vorbis_bitrate_addblock (&vb); system("touch conf.vorbistest"); return 0; } ],, no_vorbis=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi if test "x$no_vorbis" = "x" ; then AC_MSG_RESULT(yes) ifelse([$1], , :, [$1]) else AC_MSG_RESULT(no) if test -f conf.vorbistest ; then : else echo "*** Could not run Vorbis test program, checking why..." CFLAGS="$CFLAGS $VORBIS_CFLAGS" LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS" AC_TRY_LINK([ #include #include ], [ return 0; ], [ echo "*** The test program compiled, but did not run. This usually means" echo "*** that the run-time linker is not finding Vorbis or finding the wrong" echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your" echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" echo "*** to the installed location Also, make sure you have run ldconfig if that" echo "*** is required on your system" echo "***" echo "*** If you have an old version installed, it is best to remove it, although" echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], [ echo "*** The test program failed to compile or link. See the file config.log for the" echo "*** exact error that occured. This usually means Vorbis was incorrectly installed" echo "*** or that you have moved Vorbis since it was installed." ]) CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi VORBIS_CFLAGS="" VORBIS_LIBS="" VORBISFILE_LIBS="" VORBISENC_LIBS="" ifelse([$2], , :, [$2]) fi AC_SUBST(VORBIS_CFLAGS) AC_SUBST(VORBIS_LIBS) AC_SUBST(VORBISFILE_LIBS) AC_SUBST(VORBISENC_LIBS) rm -f conf.vorbistest ]) sweep-0.9.3/m4/isc-posix.m40000644000175000017500000000170610777660145014105 0ustar useruser# isc-posix.m4 serial 2 (gettext-0.11.2) dnl Copyright (C) 1995-2002 Free Software Foundation, 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. # This file is not needed with autoconf-2.53 and newer. Remove it in 2005. # This test replaces the one in autoconf. # Currently this macro should have the same name as the autoconf macro # because gettext's gettext.m4 (distributed in the automake package) # still uses it. Otherwise, the use in gettext.m4 makes autoheader # give these diagnostics: # configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX # configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX undefine([AC_ISC_POSIX]) AC_DEFUN([AC_ISC_POSIX], [ dnl This test replaces the obsolescent AC_ISC_POSIX kludge. AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) ] ) sweep-0.9.3/m4/size_max.m40000644000175000017500000000364510777660145014012 0ustar useruser# size_max.m4 serial 2 dnl Copyright (C) 2003 Free Software Foundation, 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 From Bruno Haible. AC_DEFUN([gl_SIZE_MAX], [ AC_CHECK_HEADERS(stdint.h) dnl First test whether the system already has SIZE_MAX. AC_MSG_CHECKING([for SIZE_MAX]) result= AC_EGREP_CPP([Found it], [ #include #if HAVE_STDINT_H #include #endif #ifdef SIZE_MAX Found it #endif ], result=yes) if test -z "$result"; then dnl Define it ourselves. Here we assume that the type 'size_t' is not wider dnl than the type 'unsigned long'. dnl The _AC_COMPUTE_INT macro works up to LONG_MAX, since it uses 'expr', dnl which is guaranteed to work from LONG_MIN to LONG_MAX. _AC_COMPUTE_INT([~(size_t)0 / 10], res_hi, [#include ], result=?) _AC_COMPUTE_INT([~(size_t)0 % 10], res_lo, [#include ], result=?) _AC_COMPUTE_INT([sizeof (size_t) <= sizeof (unsigned int)], fits_in_uint, [#include ], result=?) if test "$fits_in_uint" = 1; then dnl Even though SIZE_MAX fits in an unsigned int, it must be of type dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. AC_TRY_COMPILE([#include extern size_t foo; extern unsigned long foo; ], [], fits_in_uint=0) fi if test -z "$result"; then if test "$fits_in_uint" = 1; then result="$res_hi$res_lo"U else result="$res_hi$res_lo"UL fi else dnl Shouldn't happen, but who knows... result='~(size_t)0' fi fi AC_MSG_RESULT([$result]) if test "$result" != yes; then AC_DEFINE_UNQUOTED([SIZE_MAX], [$result], [Define as the maximum value of type 'size_t', if the system doesn't define it.]) fi ]) sweep-0.9.3/m4/printf-posix.m40000644000175000017500000000266110777660145014632 0ustar useruser# printf-posix.m4 serial 2 (gettext-0.13.1) dnl Copyright (C) 2003 Free Software Foundation, 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 From Bruno Haible. dnl Test whether the printf() function supports POSIX/XSI format strings with dnl positions. AC_DEFUN([gt_PRINTF_POSIX], [ AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings], gt_cv_func_printf_posix, [ AC_TRY_RUN([ #include #include /* The string "%2$d %1$d", with dollar characters protected from the shell's dollar expansion (possibly an autoconf bug). */ static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; static char buf[100]; int main () { sprintf (buf, format, 33, 55); return (strcmp (buf, "55 33") != 0); }], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no, [ AC_EGREP_CPP(notposix, [ #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ notposix #endif ], gt_cv_func_printf_posix="guessing no", gt_cv_func_printf_posix="guessing yes") ]) ]) case $gt_cv_func_printf_posix in *yes) AC_DEFINE(HAVE_POSIX_PRINTF, 1, [Define if your printf() function supports format strings with positions.]) ;; esac ]) sweep-0.9.3/m4/Makefile.am0000644000175000017500000000057710777660145013766 0ustar useruser EXTRA_DIST = codeset.m4 gettext.m4 glibc2.m4 glibc21.m4 iconv.m4 intdiv0.m4 intmax.m4 inttypes.m4 inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 longdouble.m4 longlong.m4 nls.m4 po.m4 printf-posix.m4 progtest.m4 signed.m4 size_max.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 wchar_t.m4 wint_t.m4 xsize.m4 \ ogg.m4 \ speex.m4 \ vorbis.m4 sweep-0.9.3/m4/lib-ld.m40000644000175000017500000000653110777660145013333 0ustar useruser# lib-ld.m4 serial 3 (gettext-0.13) dnl Copyright (C) 1996-2003 Free Software Foundation, 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 Subroutines of libtool.m4, dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision dnl with libtool.m4. dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, [# I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi 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 GCC]) 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. [[\\/]* | [A-Za-z]:[\\/]*)] [re_direlt='/[^/][^/]*/\.\./'] # Canonicalize the path 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(acl_cv_path_LD, [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$acl_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else AC_MSG_RESULT(no) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_LIB_PROG_LD_GNU ]) sweep-0.9.3/m4/iconv.m40000644000175000017500000000642610777660145013311 0ustar useruser# iconv.m4 serial AM4 (gettext-0.11.3) dnl Copyright (C) 2000-2002 Free Software Foundation, 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 From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_func_iconv=yes) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_lib_iconv=yes am_cv_func_iconv=yes) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST(LIBICONV) AC_SUBST(LTLIBICONV) ]) AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL(am_cv_proto_iconv, [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([$]{ac_t:- }[$]am_cv_proto_iconv) AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, [Define as const if the declaration of iconv() needs const.]) fi ]) sweep-0.9.3/m4/po.m40000644000175000017500000004364310777660145012613 0ustar useruser# po.m4 serial 7 (gettext-0.14.3) dnl Copyright (C) 1995-2005 Free Software Foundation, 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) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_MKINSTALLDIRS])dnl AC_REQUIRE([AM_NLS])dnl dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. dnl Test whether we really found GNU msgfmt. if test "$GMSGFMT" != ":"; then dnl If it is no GNU msgfmt we define it as : so that the dnl Makefiles still can work. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then : ; else GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` AC_MSG_RESULT( [found $GMSGFMT program is not GNU msgfmt; ignore it]) GMSGFMT=":" fi fi dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. dnl Test whether we really found GNU xgettext. if test "$XGETTEXT" != ":"; then dnl If it is no GNU xgettext we define it as : so that the dnl Makefiles still can work. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then : ; else AC_MSG_RESULT( [found xgettext program is not GNU xgettext; ignore it]) XGETTEXT=":" fi dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po fi AC_OUTPUT_COMMANDS([ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; 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 INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" <, 1996. AC_PREREQ(2.50) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # 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. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done 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 ]) sweep-0.9.3/m4/stdint_h.m40000644000175000017500000000157310777660145014005 0ustar useruser# stdint_h.m4 serial 5 dnl Copyright (C) 1997-2004 Free Software Foundation, 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 From Paul Eggert. # Define HAVE_STDINT_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_STDINT_H], [ AC_CACHE_CHECK([for stdint.h], gl_cv_header_stdint_h, [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1;], gl_cv_header_stdint_h=yes, gl_cv_header_stdint_h=no)]) if test $gl_cv_header_stdint_h = yes; then AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) sweep-0.9.3/m4/longlong.m40000644000175000017500000000141610777660145014004 0ustar useruser# longlong.m4 serial 5 dnl Copyright (C) 1999-2004 Free Software Foundation, 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 From Paul Eggert. # Define HAVE_LONG_LONG if 'long long' works. AC_DEFUN([gl_AC_TYPE_LONG_LONG], [ AC_CACHE_CHECK([for long long], ac_cv_type_long_long, [AC_TRY_LINK([long long ll = 1LL; int i = 63;], [long long llmax = (long long) -1; return ll << i | ll >> i | llmax / ll | llmax % ll;], ac_cv_type_long_long=yes, ac_cv_type_long_long=no)]) if test $ac_cv_type_long_long = yes; then AC_DEFINE(HAVE_LONG_LONG, 1, [Define if you have the 'long long' type.]) fi ]) sweep-0.9.3/m4/wint_t.m40000644000175000017500000000130410777660145013465 0ustar useruser# wint_t.m4 serial 1 (gettext-0.12) dnl Copyright (C) 2003 Free Software Foundation, 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 From Bruno Haible. dnl Test whether has the 'wint_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WINT_T], [ AC_CACHE_CHECK([for wint_t], gt_cv_c_wint_t, [AC_TRY_COMPILE([#include wint_t foo = (wchar_t)'\0';], , gt_cv_c_wint_t=yes, gt_cv_c_wint_t=no)]) if test $gt_cv_c_wint_t = yes; then AC_DEFINE(HAVE_WINT_T, 1, [Define if you have the 'wint_t' type.]) fi ]) sweep-0.9.3/INSTALL0000644000175000017500000001722710777660176012447 0ustar useruserBasic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure Or on systems that have the `env' program, you can do it like this: env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not supports the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: CPU-COMPANY-SYSTEM See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the host type. If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Operation Controls ================== `configure' recognizes the following options to control how it operates. `--cache-file=FILE' Use and save the results of the tests in FILE instead of `./config.cache'. Set FILE to `/dev/null' to disable caching, for debugging `configure'. `--help' Print a summary of the options to `configure', and exit. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `configure' also accepts some other, not widely useful, options. sweep-0.9.3/NEWS0000644000175000017500000003343010777702713012101 0ustar useruserFri April 11 2008 -- Version 0.9.3 ---------------------------------------- This is a bug fix release, containing the following changes: * Fixed bounds checking of mode in speex header. relates to: http://www.ocert.org/advisories/ocert-2008-2.html * Fixed bug preventing device dialog being reopened when closed via the window manager. All users with speex handling enabled should upgrade. Tue Jan 30 2007 -- Version 0.9.2 -------------------------------- New in this release: * ALSA is now the default driver. see README.OSS for oss * minimum supported gtk version raised to 2.4 * added the "hand tool" for panning the display with inertia (Radoslaw Korzeniewski) * can now open multiple files via the gtk file selector * implemented accel editing via the usual gtk method * added tdb lock override (Takashi Iwai) * remove support for libsndfile0 (Erik de Castro Lopo) * remove direct flac support as it's supported by libsndfile now (Erik de Castro Lopo) * added a new splash screen (Pascal Klein) * fix segfault when closing windows while others were still loading * other bugs addressed and changes made. run "svn log" on a copy of svn trunk for details, or check http://trac.metadecks.org/timeline * released 0.9.2 Mon Jan 30 2006 -- Version 0.9.1 -------------------------------- This is a maintainance release. The previous release (0.9.0) had a bug that prevented sweep from populating the ALSA devices in settings. The bug was only apparent when you built with ALSA and didn't have a previous installation of sweep that used ALSA. If you installed sweep 0.9.0 and had problems getting any sound output then please upgrade to 0.9.1. Mon Aug 22 2005 -- Version 0.8.4 -------------------------------- This is maintainance release, including: * updates for ALSA 1.0 (Daniel Dreschers, Charles Turner), * a new Polish translation (Radoslaw Korzeniewski), * an updated russian translation (Alex Prokoudine), * a small fix to the German translation, and * various minor tweaks and improvements. This is likely to be the last Sweep release based on GTK+-1.2. Further development will use GTK+-2.0 for the interface. Over the last year, Peter Shorthose has developed a comprehensive set of GTK+-2.0 patches for Sweep, and will handle their merging and ongoing release management towards Sweep 1.0. Welcome Peter! The trunk of sweep CVS has been migrated to a new Subversion repository. You can check it out by: svn co http://svn.metadecks.org/sweep/trunk sweep svn.metadecks.org can also be browsed via trac at: http://trac.metadecks.org/ Fri Apr 30 2004 -- Version 0.8.3 -------------------------------- This is a maintainance release, including a new Spanish translation, various bugfixes and no new functionality. Sweep has moved back into CVS at SourceForge. Five new developers have been added to the project: Yuri Bongiorno, Erik de Castro Lopo, Torben Hohn, Andr? Pang, and Alexandre Prokoudine. Internationalization (i18n) improvements: * a new Spanish translation by Juan Manuel Martinez * an updated Italian translation by Yuri Bongiorno Bugfixes: * resampler bug fixed by Erik de Castro Lopo * made main scrollbar arrows useful (bug #821596) * seven other bug reports closed * compile warning fixes for GCC3 The dependency on libtdb has been removed. TDB sources are now pulled directly from the upstream Samba subversion repository. Wed Apr 30 2003 -- Version 0.8.2 -------------------------------- This release contains support for ALSA 0.9; this is configurable and could do with widespread testing. To build with ALSA support, simply configure with: ./configure --enable-alsa Note that this will build a binary which will work with ALSA only, and not attempt to use OSS. In future this will be replaced with plugins for different pcm i/o methods, which should ease binary distribution. Internationalization (i18n) improvements: * a complete audit of untranslateable strings, including mis-configured source files and unmarked strings, by Silvia Pfeiffer. * a new Greek translation by Dokianakis Fanis * a new Russian translation by Alexandre Prokoudine * an updated Italian translation by Yuri Bongiorno * an updated German translation by Silvia Pfeiffer There is a new mailing list: sweep-i18n. List information is at http://lists.sourceforge.net/lists/listinfo/sweep-i18n Additional changes include: * added VBR without DTX option for Speex 1.0 speech encoding * improved accuracy of sliders in processing dialogs Events: Conrad will presenting and demoing Sweep at the following upcoming events: Jul 10-13 LinuxTag 2003 (Karlsruhe, Germany) Conference and Linux Audio Dev (LAD) exhibition booth http://www.linuxtag.org/ Jul 31 - Aug 3 UKUUG Linux Developers Conference (Edinburgh, Scotland) http://www.ukuug.org/events/linux2003/ Plus, the Call for Participation for the Linux Audio Mini-Conf @ LCA2004 (Jan 12-13 2004, Adelaide, South Australia) is announced: http://www.metadecks.org/events/lca2004/ Thu Feb 6 2003 -- Version 0.8.1 -------------------------------- This release contains performance improvements for basic editing operations, including reduced memory consumption during cut and paste insert. It also includes support for creation of new files on the command line, updated handling of raw file loading through libsndfile, and updated support for voice activity detection and intensity stereo coding features of the Speex speech codec. Sat Jan 18 2003 -- Version 0.8.0 -------------------------------- This is the first milestone release for Sweep 1. Please test it thoroughly for both general sample editing and live performance! For more information, see http://www.metadecks.org/ . New in this release: * a new monitoring subsystem for use in DJing and live performance. Users with two sound cards can use headphones for monitoring, to prepare mixes and cue samples without disrupting the main output. * A usability bug was fixed in keyboard playback controls * the Italian translation of the user interface was updated by Yuri Bongiorno. New at metadecks.org: Notes for the tutorial "Using Sweep: Fun with Scrubby" are now available online in HTML, PostScript and PDF formats at: http://www.metadecks.org/software/sweep/tutorials/ This is a brief overview of the tutorial given at linux.conf.au 2003 in Perth, Australia; the real thing is live and very, very loud. Sat Jan 4 2003 -- Open Sound System's killer app of the month ------------------------------------------------------------- Sweep has been selected as the killer app of the month for January 2003 by Open Sound System (OSS), developers of the most widely used digital audio architecture for UNIX. Fri Dec 20 2002 -- Version 0.5.13 --------------------------------- This release contains build fixes for NetBSD and cleanups by Erik de Castro Lopo to fix preprocessor pasting warnings. It also features new fade in and fade out filters. Conrad will be presenting two sessions at linux.conf.au, January 22-25 2003 in Perth, Australia; a tutorial titled "Using Sweep: Fun with Scrubby", and an overview of Sweep's internals and plugin development. Fri Dec 6 2002 -- Version 0.5.12 --------------------------------- New in this release: * an updated Italian translation from Yuri Bongiorno * resample (sample rate conversion): change the sample rate of a file, for example from CD format to DAT format, or to any arbitrary sample rate. This requires Erik de Castro Lopo's newly released libsamplerate, available from http://www.mega-nerd.com/SRC/ * preview cut: hear how the area around the selection will sound after the selection is cut out, including the parts between selection regions for multi-region selections. * preroll to cursor: play one second of sound leading up to the cursor; useful for hearing the cursor position without moving it. Bugs were fixed in MP3 loading and pitched playback (using QWERTY keys). Thu Nov 28 2002 -- Version 0.5.11 --------------------------------- New features in this release include: * mixing and crossfading paste methods: copy a region from one file and mix or fade it into another file or elsewhere in the same file, with control of source and destination levels and phase. * navigation shortcuts to move between selection edges: move the cursor between the start and end of selection regions, and to the next edge of a multi-region selection, with Ctrl + Arrow Left/Right * view memories: assign the viewable area to a number on the numeric keypad with Ctrl+, and zoom back to it later by pressing that number. (NB. Num Lock must be on on your keyboard). * support for Speex 1.0beta3 ultra-wideband mode (32kHz). Speex is a high quality, patent-free and open source voice codec. * support for full-file application of Secret Rabbit Code Additionally, minor bugs were fixed affecting portability of system error handling and detection of MP3 files. Thu Oct 31 2002 -- Version 0.5.10a ---------------------------------- This is an update to 0.5.10 which fixes a compilation error in the default build. Wed Oct 30 2002 -- Version 0.5.10 --------------------------------- New features in this release include vertical zoom with a draggable dB scale and mouse wheel control, and some basic channel operations: Duplicate to stereo/multichannel, Swap left and right, Remove left/right, Mix down to mono, and Add/Remove channels. This release also includes compile fixes for Solaris, and a bug fix for first-time file 'save'. A new section for screenshots contributed by users was recently added to the screenshot tour: http://www.metadecks.org/software/sweep/screenshots/ Wed Oct 23 2002 -- Version 0.5.9 -------------------------------- Sweep now supports Speex, a special purpose speech codec designed for efficient Voice over IP (VoIP) and file-based compression. Speex is free, open and unpatented; more information is available at http://www.speex.org/. This release also includes improved handling of the main volume and pitch sliders, contributed by Zenaan Harkness. Thu Oct 17 2002 -- Version 0.5.8 -------------------------------- MP3 import is now supported. Minor bugs have been fixed in rendering of record position and playback mixing. There is a new page of audio demos made with Sweep. These demonstrate the sounds of Scrubby, a tool which allows vinyl-like manipulation of digital audio: http://www.metadecks.org/software/sweep/demos.html Fri Oct 11 2002 -- Version 0.5.7 -------------------------------- This version includes support for Ogg Vorbis import and export, including both variable and average bitrate encoding modes. There are many other user interface updates, including new input controls for sample rates and channels, and question, information and system error dialogs. There is a new Screenshot tour of Sweep, including many screenshots of the new dialogs and general editing: http://www.metadecks.org/software/sweep/screenshots/ Wed Sep 25 2002 -- Version 0.5.6 and Sweep Demo at SLUG ------------------------------------------------------- Changes in this version include monitoring of file modification, "are you sure" dialogs, file revert, and many minor bug fixes. There will be a demo of the latest Sweep features, including live DJing and experimental music techniques and the Sydney LUG meeting on Sep. 27 2002; see http://www.slug.org.au/ for details. Fri Sep 20 2002 -- Version 0.5.5 -------------------------------- Changes since version 0.5.4 include major bugfixes for LADSPA plugin handling and improvements in scrubbing usability. Wed Sep 11 2002 -- Version 0.5.4 -------------------------------- Changes since version 0.5.3 (September 5 2002) include bug fixes for playback during destructive operations and for edits of tiny regions, and improvements in configuration checks for libsndfile-1.0.0. Additionally, scrubbing is now working for reverse playback, and has been tuned for responsiveness independent of sample rate. There is now a web page introducing Scrubby and outlining a few simple editing and live performance techniques: http://www.metadecks.org/software/sweep/scrub.html Thu Sep 5 2002 -- Version 0.5.3 -------------------------------- This release incorporates robust configuration checking to help new users compile from source. After a long period of quiet development we are now beginning to roll this out for general public usage, and your testing and feedback is very welcome! Changes since 0.1.1 (October 2000) include interactive scrubbing, recording, support for LADSPA 1.1 effects plugins and multichannel sound files, multithreaded background rendering, unlimited undo/redo, mouse wheel zooming, reverse playback and overall stability and usability improvements. Changes since version 0.5.0 (August 12 2002) include preferences saving and support for libsndfile 1.0.0. Changes since version 0.5.1 (August 29 2002) include improved configure checks and porting fixes. Additionally, Sweep now remembers the last used file load and save directories between sessions. Changes since version 0.5.2 (September 4 2002) include the fixing of a bug in "save as", and (NEW) audible scrubbing when selecting regions. Mon, 1 May 2000 --------------- Mark Taylor writes: sweep was used to document some decoder bugs in winamp: http://www.sulaco.org/mp3/winamp/winamp.html (Screenshots on this page show sweep version 0.0.6). sweep-0.9.3/README0000644000175000017500000001075310777660176012273 0ustar useruser SWEEP, a sound wave editor, brought to you by Conrad Parker ----------------------------------------------------------- Sweep is an audio editor and live playback tool for GNU/Linux, BSD and compatible systems. It supports many music and voice formats including WAV, AIFF, Ogg Vorbis, Speex and MP3, with multichannel editing and LADSPA effects plugins. Inside lives a pesky little virtual stylus called Scrubby who enjoys mixing around in your files. Sweep is designed to be intuitive and to give you full control. It includes almost everything you would expect in a sound editor, and then some: * precise, vinyl like scrubbing * looped, reverse, and pitch-controlled playback * playback mixing of unlimited independent tracks * monitoring support for use with multiple audio devices * looped and reverse recording * internationalisation * multichannel and 32 bit floating point file support * Ogg Vorbis, MP3 and Speex compressed formats * sample rate conversion and channel operations * LADSPA 1.1 effects support * multiple views, discontinuous selections * easy keybindings, mouse wheel zooming * unlimited undo/redo with fully revertible edit history * multithreaded background processing * shaded peak/mean waveform rendering, multiple colour schemes Summary of library dependencies: -------------------------------- REQUIRED: * GTK+ 2.0, (version 2.4.0 or higher) standard in most distributions and available from: http://www.gtk.org/ * libsndfile-1.0.x, available from: http://www.zip.com.au/~erikd/libsndfile/ * Secret Rabbit Code, aka. libsamplerate, available from: http://www.mega-nerd.com/SRC/ OPTIONAL: * Ogg Vorbis libraries (high quality perceptual audio format): http://www.vorbis.com/ * libmad (MPEG audio loading), available from: http://www.underbit.com/products/mad/ * Speex library (an open speech compression format): http://www.speex.org/ See the file INSTALL for building instructions. Generally all that is required, after the above libraries have been installed, is: ./configure make make install If you are not sure what you need, simply run ./configure and it will probe your system and provide a reasonably useful summary. For information on enabling and disabling optional components, run ./configure --help Homepage -------- Detailed information and new releases of Sweep can be found at: http://sweep.sourceforge.net/ Mailing Lists ------------- There are four mailing lists related to sweep: sweep-announce which contains only announcements about new releases of sweep. This is a moderated list. sweep-users For general discussion about using sweep sweep-devel For discussion about sweep development related issues. sweep-i18n For discussion of language translation issues. Archives of each list are available on the World Wide Web via the Sweep homepage. You can also subscribe or unsubscribe via a web interface. For more information about using these lists or to subscribe or unsubscribe via an email interface, send a message with just the word `help' as subject or in the body, to: sweep-announce-request@lists.sourceforge.net or sweep-users-request@lists.sourceforge.net or sweep-devel-request@lists.sourceforge.net or sweep-i18n-request@lists.sourceforge.net as appropriate. Internet Relay Chat ------------------- For usage and developer discussion, join the channel #sweep on irc.freenode.net (established 2005). Licence ------- 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. Acknowledgements ---------------- Thanks to Pixar Animation Studios and CSIRO Australia for supporting the development of this project. Contact ------- If you have any further queries about Sweep, please contact the main author: Conrad Parker sweep-0.9.3/missing0000755000175000017500000002540610777670413013006 0ustar useruser#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2005-06-08.21 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] 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 # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). case "$1" in lex|yacc) # Not GNU programs, they don't have --version. ;; tar) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: sweep-0.9.3/README.ALSA0000644000175000017500000000330510777660176013005 0ustar useruserSun Jun 25 2006 --------------- the default driver is now the ALSA driver. see README.OSS for information on using the OSS driver instead. Wed Apr 30 2003 --------------- Support for ALSA 0.9 is functional and could do with widespread testing. To build with alsa support, simply configure with: ./configure --enable-alsa Note that this will build a binary which will work with ALSA only, and not attempt to use OSS. In future this will be replaced with plugins for different pcm i/o methods, which should ease binary distribution. Wed Sep 11 2002 --------------- ALSA native support it currently not working; to even attempt to build the code, you must configure with: ./configure --enable-experimental --enable-alsa However, Sweep works fine with ALSA under OSS emulation. Sat Oct 7 2000 --------------- Support for ALSA (Advanced Linux Sound Architecture) version 0.6.0 was added by Paul Barton-Davis . To build sweep with support for ALSA 0.6.0, do: ./configure --enable-alsa make Paul writes: To use ALSA, you need --enable-alsa as an arg to configure, because just discovering ALSA is not deemed to be sufficient to use it (at this time). A couple of things to note: * this is ALSA 0.6.0, which is only available via CVS right now * this code is totally different than the code needed for 0.5.X * you also need a ~/.asoundrc file to define the characteristics of various "named PCM devices" * you can define the environment variable SWEEP_ALSA_PCM to the name of the PCM device you want sweep to use * if its not defined, sweep will try to open a named PCM device called "sweep" sweep-0.9.3/doc/0000755000175000017500000000000011001133767012130 5ustar userusersweep-0.9.3/doc/sweep.1.in0000644000175000017500000000207410777660161013761 0ustar useruser.TH SWEEP 1 "30 Jan 2007" Version @VERSION@ .SH NAME Sweep - a sound wave editor .SH SYNOPSIS .B sweep [\-h] [\-\-help] [-v] [\-\-version] [\-\-display \fIdisplay\fP] [\-\-ignore\-failed\-lock] [\fIfilename\fP]... .SH DESCRIPTION .PP \fISweep\fP is a sound wave editor. .SH OPTIONS .l \fISweep\fP accepts the following options: .TP 8 .B \-h, \-\-help Display a list of all commandline options. .TP 8 .B \-v, \-\-version Output the version info. .TP 8 .B \-\-ignore\-failed\-lock Continue when attempt to lock the preferences file fails. For use when the users home directory is on an NFS file system. (possibly unsafe) .TP 8 .B \-\-display \fIdisplay\fP Use the designated X display. .SH ENVIRONMENT .PP .TP 8 .B DISPLAY to get the default host and display number. .TP 8 .B XENVIRONMENT to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property. .SH SEE ALSO .BR X (1) .SH COPYRIGHT Copyright \(co 2000 Conrad Parker .SH OTHER INFO More information is available at http://sweep.sourceforge.net/ .SH AUTHOR Conrad Parker sweep-0.9.3/doc/Makefile.in0000644000175000017500000003144310777670413014217 0ustar useruser# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 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@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ 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@ subdir = doc DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/sweep.1.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/glibc2.m4 \ $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/intmax.m4 \ $(top_srcdir)/m4/inttypes-pri.m4 $(top_srcdir)/m4/inttypes.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/isc-posix.m4 \ $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \ $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/ogg.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/signed.m4 \ $(top_srcdir)/m4/size_max.m4 $(top_srcdir)/m4/speex.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/uintmax_t.m4 \ $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/m4/vorbis.m4 \ $(top_srcdir)/m4/wchar_t.m4 $(top_srcdir)/m4/wint_t.m4 \ $(top_srcdir)/m4/xsize.m4 $(top_srcdir)/acinclude.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = sweep.1 SOURCES = DIST_SOURCES = man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ ALSA_CFLAGS = @ALSA_CFLAGS@ ALSA_LIBS = @ALSA_LIBS@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO = @ECHO@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ EXPORT_DYNAMIC_FLAGS = @EXPORT_DYNAMIC_FLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GREP = @GREP@ GTHREADS_CFLAGS = @GTHREADS_CFLAGS@ GTHREADS_LIBS = @GTHREADS_LIBS@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_GNOME_MOZ_REMOTE = @HAVE_GNOME_MOZ_REMOTE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LN_S = @LN_S@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAD_LIBS = @MAD_LIBS@ MAKEINFO = @MAKEINFO@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ OGG_CFLAGS = @OGG_CFLAGS@ OGG_LIBS = @OGG_LIBS@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_DATA_DIR = @PACKAGE_DATA_DIR@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_PLUGIN_DIR = @PACKAGE_PLUGIN_DIR@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ POSUB = @POSUB@ PTHREAD_LIBS = @PTHREAD_LIBS@ RANLIB = @RANLIB@ SAMPLERATE_CFLAGS = @SAMPLERATE_CFLAGS@ SAMPLERATE_LIBS = @SAMPLERATE_LIBS@ SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ SPEEX_CFLAGS = @SPEEX_CFLAGS@ SPEEX_LIBS = @SPEEX_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ VORBISENC_LIBS = @VORBISENC_LIBS@ VORBISFILE_LIBS = @VORBISFILE_LIBS@ VORBIS_CFLAGS = @VORBIS_CFLAGS@ VORBIS_LIBS = @VORBIS_LIBS@ XGETTEXT = @XGETTEXT@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ man_MANS = sweep.1 EXTRA_DIST = $(man_MANS) sweep.1.in plugin_writers_guide.txt all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/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 sweep.1: $(top_builddir)/config.status $(srcdir)/sweep.1.in cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool uninstall-info-am: install-man1: $(man1_MANS) $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)" @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ else file=$$i; fi; \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ done uninstall-man1: @$(NORMAL_UNINSTALL) @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ case "$$i" in \ *.1*) list="$$list $$i" ;; \ esac; \ done; \ for i in $$list; do \ ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ 1*) ;; \ *) ext='1' ;; \ esac; \ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ done tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) installdirs: for dir in "$(DESTDIR)$(man1dir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-libtool dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-man install-exec-am: install-info: install-info-am install-man: install-man1 installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-info-am uninstall-man uninstall-man: uninstall-man1 .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-man1 \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-info-am uninstall-man \ uninstall-man1 # 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: sweep-0.9.3/doc/sweep.10000644000175000017500000000207010777670441013352 0ustar useruser.TH SWEEP 1 "30 Jan 2007" Version 0.9.3 .SH NAME Sweep - a sound wave editor .SH SYNOPSIS .B sweep [\-h] [\-\-help] [-v] [\-\-version] [\-\-display \fIdisplay\fP] [\-\-ignore\-failed\-lock] [\fIfilename\fP]... .SH DESCRIPTION .PP \fISweep\fP is a sound wave editor. .SH OPTIONS .l \fISweep\fP accepts the following options: .TP 8 .B \-h, \-\-help Display a list of all commandline options. .TP 8 .B \-v, \-\-version Output the version info. .TP 8 .B \-\-ignore\-failed\-lock Continue when attempt to lock the preferences file fails. For use when the users home directory is on an NFS file system. (possibly unsafe) .TP 8 .B \-\-display \fIdisplay\fP Use the designated X display. .SH ENVIRONMENT .PP .TP 8 .B DISPLAY to get the default host and display number. .TP 8 .B XENVIRONMENT to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property. .SH SEE ALSO .BR X (1) .SH COPYRIGHT Copyright \(co 2000 Conrad Parker .SH OTHER INFO More information is available at http://sweep.sourceforge.net/ .SH AUTHOR Conrad Parker sweep-0.9.3/doc/Makefile.am0000644000175000017500000000021510777660161014176 0ustar useruser## Process this file with automake to produce Makefile.in man_MANS = sweep.1 EXTRA_DIST = $(man_MANS) sweep.1.in plugin_writers_guide.txt sweep-0.9.3/doc/plugin_writers_guide.txt0000644000175000017500000007125010777660161017144 0ustar useruser Sweep Plugin Writer's Guide --------------------------- Documents Sweep Plugin API Version 1.0.0 Last modified Oct 22 2000 Copyright (C) 2000 Conrad Parker 1. Introduction =============== Sweep plugins are able to modify all aspects of a sample file, including the audio data, the sampling format used, and which regions of the sample are currently selected. Sweep provides some convenience functions to make plugin writing easy. If you intend to write plugins which only modify audio data, you are encouraged to use the Linux Audio Developer's Simple Plugin API (LADSPA) [1] instead of writing a native Sweep plugin. Other types of plugins include those which simply modify the selection data, and those which provide conversions between different data formats. Plugins do not need to provide their own graphical user interface code. This API provides an abstraction by which plugins specify numeric and string parameters. Sweep creates and presents to the user a graphical dialog window for setting these parameters. This document explains the programming interface for writing native Sweep plugins and how to set up a build environment for your plugin code. 2. Getting started ================== A sweep plugin is a shared library which contains one or more procedures. These procedures can modify any of the data associated with a particular sound wave. Procedures take as input a set of parameters. They must specify the types of these parameters, and can optionally provide some constraints (such as an acceptable numeric range, or a list of values to choose from) and hints (such as to interpret a number logarithmically). The constraints are interpreted by Sweep as hard limits, ie. it will not pass values to the plugin which fall outside of the constraints. Both constraints and hints are used to construct a useful dialog box to the user for setting parameters. Procedures can optionally supply a function to suggest appropriate values for the parameters as needed, provide Help and Copyright information, and of course must supply a function to perform the desired operation. It is a requirement that all operations which modify a sound wave or its associated data also provide a means for undoing and redoing themselves. Sweep provides some standard mechanisms for efficiently undoing and redoing some common types of operation. This section describes the data structures used by Sweep and its plugins, the mechanisms provided for performing common operations, and information on building the resulting plugin libraries. 2.1 Sample code --------------- You will most likely find it useful to examine the existing plugins in the Sweep source archive. These are in the plugins/ directory. In particular, the "example" plugin contains many of the features discussed in this document. 2.2 Files to include -------------------- Includes all required sweep header files. Sweep plugins have access to all functions and datatypes defined in GLib [2]. is automatically included in , so there is no need to explicitly include it once has been included. In particular the GList data structure is used extensively by this API. 2.3 Internationalisation ------------------------ Sweep includes support for translatable strings via GNU gettext [3]. It uses the same macros that the Gnome project defines to mark out strings which can be translated. When writing a plugin, you will provide some text strings describing the plugin's procedures, the names of parameters used, and short descriptions of the paramters meanings. In order to enable translators to provide complete translations of Sweep and its plugins in other languages, you must specifically mark strings which should be translated. The usual way to do this is to place the macro _(...) around any strings used within the code. However, when the string appears outside of a function, you must use the macro N_(...) instead. N(...) marks a string for later translation; _(...) marks a string for immediate translation, and can only be used where a function call is permitted. For more detailed information on the use of these macros, see the relevent section in "GTK+/Gnome Application Development" [4]. If you would like to add a translation for Sweep into a new language, all you need to do is provide translations for the text strings used in Sweep. Please see the documentation for GNU gettext [3] for more information on how to create the required file. 2.4 Basic types --------------- Sweep provides some basic types which are useful for audio handling. It is important to use these types where appropriate, as this allows the sourcecode to be reconfigured for different environments. Individual sample values of audio data are represented by the types sw_audio_t and sw_audio_intermediate_t. These are floating point values ranging between SW_AUDIO_T_MIN and SW_AUDIO_T_MAX. For most data storage and moving operations you should use sw_audio_t, and where more precision is required (eg. when mixing sounds together) use sw_audio_intermediate_t. Blocks of audio data are stored in consecutive frames, where a frame is a collection of the data values corresponding to the same instant of time in each channel. That is, multichannel audio data is interleaved, for example stereo data is stored: (LR)(LR)(LR)(LR)...(LR) where L and R are sample values of type sw_audio_t, and (LR) is a single frame of data. Frame counts are given as sw_framecount_t. Please use this type wherever a count or offset in terms of frames is required. Time is represented by sw_time_t. Time is defined in a floating point format in units of seconds. 2.5 Complex types ----------------- struct _sw_sample { sw_sounddata * sounddata; ... }; struct _sw_sounddata { sw_format * format; sw_framecount_t nr_frames; /* nr frames */ gpointer data; GList * sels; /* selection: list of sw_sels */ ... }; struct _sw_format { gint channels; /* nr channels per frame */ gint rate; /* sampling rate (Hz) */ }; The selection component of a sounddata object is a GList of sw_sel objects. An sw_sel describes a region in a selection. Units are frame offsets from start of sample. struct _sw_sel { sw_framecount_t sel_start; sw_framecount_t sel_end; }; 2.6 Types for parameters ------------------------ The parameters to pass to functions can be any of a few simple types as defined in : SWEEP_TYPE_BOOL, SWEEP_TYPE_INT, SWEEP_TYPE_FLOAT, SWEEP_TYPE_STRING. A parameter object is a union which can take any of these values. A parameter set is defined as a pointer to a sequence of parameters. /* * Instances of Parameter Sets */ typedef union _sw_param sw_param; typedef sw_param * sw_param_set; union _sw_param { sw_bool b; sw_int i; sw_float f; sw_string s; }; 2.7 Parameter Specifications ---------------------------- Information about a parameter accepted by a procedure is stored in a parameter specification object, as defined in /* * sw_param_spec: specification for a parameter. */ struct _sw_param_spec { /* A short name for this parameter */ gchar * name; /* A longer description of the parameter's purpose and usage */ gchar * desc; /* The type of the parameter */ sw_param_type type; /* Constraints */ sw_constraint_type constraint_type; sw_constraint constraint; /* Hints */ sw_hints hints; }; Please remember to mark the name and description fields for translation. 2.7.1 Constraints ----------------- There are two ways of defining constraints on parameter values accepted by the procedure; additionally, you can specify that the values for a parameter are completely unconstrained. SW_PARAM_CONSTRAINED_NOT SW_PARAM_CONSTRAINED_LIST indicates that the parameter is constrained to values given in a param list. NB: the length of this list is given by the value of the first parameter, interpreted as an integer. ie. this length = constraint->param_list[0].i SW_PARAM_CONSTRAINED_RANGE indicates that the parameter is constrained to a given range. /* * sw_param_range: a range of acceptable parameter values. * * NB: this is a hard limit. Values upper * need not be expected by plugins. * * The first parameter is a mask consisting of a bitwise or of between * zero and three of SW_RANGE_LOWER_BOUND_VALID, * SW_RANGE_UPPER_BOUND_VALID, and SW_RANGE_STEP_VALID. * * The three following parameters are interpreted as the type of the * parameter they constrain. The 'step' parameter is never valid for * string parameters. */ struct _sw_param_range { int valid_mask; sw_param lower; sw_param upper; sw_param step; }; 2.7.2 Hints ----------- A few hints exist which Sweep can use to provide different graphical input methods as appropriate. SW_PARAM_HINT_LOGARITHMIC indicates that the parameter should be interpreted as logarithmic. SW_PARAM_HINT_TIME indicates that the parameter should be interpreted as a time SW_PARAM_HINT_FILENAME indicates that the parameter should be interpreted as a valid filename on the user's system. 2.8 Procedures -------------- A procedure object ties together all the aspects of a particular operation, including some textual data, the specifications for parameters, and functions to suggest useful parameters and to do the work required. When the user initiates a procedure, the following occurs: 1. A new, empty, parameter set is created large enough to hold the parameters required for this proc 2. The parameter set is passed to the suggest() function (if that is defined) along with the sample and custom data. This allows the suggest() function to provide some useful values based on the characteristics of the sample. The suggest() function modifies the values in the parameter set and returns. 3. A graphical dialog is created to allow the user to edit the parameter values. It is initialised with the values given by the suggests() function. 4. The user changes the parameter values as they wish, and upon pressing "OK" the apply() function is called with these adjusted parameter values. The sw_procedure object has the following structure: typedef struct _sw_procedure sw_procedure; struct _sw_procedure { gchar * name; gchar * description; gchar * author; gchar * copyright; gchar * url; gchar * identifier; /* Key bindings */ guint accel_key; GdkModifierType accel_mods; gint nr_params; sw_param_spec * param_specs; /* suggest sets suggested values for the members of pset, * possibly using the sample. * * If nr_params is 0 then this function will not be called. * If this function is NULL then default values (zero,FALSE,"") * will be used. */ void (*suggest) (sw_sample * sample, sw_param_set pset, gpointer custom_data); /* This is the function that actually does the work! * * apply applies the parameter set pset to a sample * * If nr_params is 0 then this function will be passed a NULL pset. */ sw_op_instance * (*apply) (sw_sample * sample, sw_param_set pset, gpointer custom_data); /* custom data to pass to the suggest and apply functions */ gpointer custom_data; }; The name field should be a short descriptive name, as appropriate for labelling the menu item to invoke this procedure from Sweep. The description should be some somewhat longer ASCII text describing what this procedure does. Please remember to mark the name and description fields for translation. The author field should be a comma separated list of names of authors of this procedure, each optionally providing an email address in angle brackets. The copyright field should be a string such as "Copyright (C) 2000 Joe Blow". The url field can optionally give the URL of a web page describing the procedure in more detail. The identifier field should be a string which will uniquely identify this plugin. You may choose to put identifying information here such as your name, domain, a suggested categorisation for the procedure, or the name of your favourite vegetable or fish. The accel_key and accel_mods fields list keybindings to initiate this procedure. The values of their types are defined in . The nr_params field gives the number of parameters this procedure takes. You must point the param_specs field to an array of nr_params sw_param_spec objects as defined in section 2.7. Procedures must provide a suggest() and an apply() function. These functions take the same arguments (sample, parameter set, custom data). The first argument is the sample which is being edited. The second is the parameter set object to use, and the third is some custom data provided by the proc. The suggest() function is used to set some meaningful parameter values. The apply() function does the actual work of the procedure. A useful means of handling suggest() is to remember the parameter values set by the last invocation of this procedure. This can simply be done by keeping these values in static global variables within the plugin file. The (sw_op_instance *) returned by the apply() function is described in section 3.1. However in the usual case of writing a selection modifier or audio filter, you do not need to understand the internals of an sw_op_instance. You may provide some custom_data to pass to the suggest() and apply() functions if required. This is often useful if many procedures share the same suggest() and apply() functions, as custom_data can then provide further information to these functions as to how they should actually operate. See the ladspameta plugin for an example of this use of custom_data. 2.9 Writing a selection modifier -------------------------------- A selection modifier is an operation which only affects the sels member of a sample's sounddata. The undo and redo methods which are registered for a selection modifier do not attempt to retain any information about any other portion of the sample -- they are optimised to only retain information about changes in the selection. To create a selection modifier, you must provide a function of the form SweepModify, as defined in : typedef void (*SweepModify) (sw_sample * sample, sw_param_set pset, gpointer custom_data); This function is expected to modify only the selection data, ie. sample->sounddata->sels. Note that this data may also be accessed by the playback thread, so it is protected by a mutex. You must surround any modifications to the sels member of a sounddata object with calls to sounddata_lock_selection() and sounddata_unlock_selection(), as defined in . To perform the selection modification, call the following function (also defined in ): sw_op_instance * perform_selection_op (sw_sample * s, char * desc, SweepModify func, sw_param_set pset, gpointer custom_data); The first argument is the sample to modify, the second is some short descriptive text for the operation, 'func' is the SweepModify function, and pset and custom_data are those provided by the proc. see eg. plugins/byenergy/byenergy.c for an example of a Selection plugin. 2.10 Writing an audio filter --------------------------- Two convenience routines exist for creating plugins which only modify audio data. Note that where possible it is preferable to use the LADSPA API instead for developing such plugins. See Appendix B for more information about building LADSPA plugins for use with Sweep. Filter plugins must only modify the audio data corresponding to selected regions of a sample. The functions provided to perform filter operations remember only information in the selected regions for the purposes of undoing and redoing. Thus any modifications done outside the selected regions will be lost after an undo. As the selection information consists of a linked list of selected regions (see section 2.3) it is necessary for a filter plugin to somehow iterate over the selection and operate only on these regions. The SweepFilterRegion mechanism handles this iteration for you, whereas the SweepFilter mechanism allows for more general filters for which you must provide the iteration over the selection regions. 2.10.1 SweepFilterRegion ----------------------- To make use of the SweepFilterRegion mechanism define a function of type SweepFilterRegion, which has the following prototype: typedef void (*SweepFilterRegion) (gpointer data, sw_format * format, sw_framecount_t nr_frames, sw_param_set pset, gpointer custom_data); A SweepFilterRegion function takes a pointer 'data' to a block of audio data, an (sw_format *) describing the format of the data, and a count of the number of frames to process from that point onwards. It also accepts a parameter set and some custom data. To perform a FilterRegion operation, use the following function: sw_op_instance * perform_filter_region_op (sw_sample * sample, char * desc, SweepFilterRegion func, sw_param_set pset, gpointer custom_data); see eg. plugins/reverse/reverse.c for an example of a FilterRegion The LADSPA meta-plugin is implemented as a FilterRegion. 2.10.2 SweepFilter ----------------- If the processing involved cannot be done independently for each selection region, it is necessary to use a SweepFilter function. Note that the plugin must then perform the iteration over the selection regions itself. These functions have the following prototype: typedef sw_sounddata * (*SweepFilter) (sw_sounddata * sounddata, sw_param_set pset, gpointer custom_data); To perform a Filter operation, use the following function: sw_op_instance * perform_filter_op (sw_sample * sample, char * desc, SweepFilter func, sw_param_set pset, gpointer custom_data); For example, the Normalise plugin (plugins/normalise/normalise.c) is implemened as a Filter. This is necessary because it must first find the greatest data value in any of the selected regions, and then in a second pass amplify each region by an amount calculated. 2.11 Creating Plugin Shared Libraries ------------------------------------- The usual way to make a proc available for use with Sweep is to build it into a shared library file. When building a shared library to contain one or more procs you must define a structure of type sw_plugin with the name "plugin". This is the only name that should be exposed in the library's symbol table; declare all other functions and global variables as static. If multiple procedures share common code or data then place them in the same plugin library. A plugin must not rely on any other particular plugin being loaded. typedef struct _sw_plugin sw_plugin; struct _sw_plugin { /* plugin_init () returns a list of procs */ GList * (*plugin_init) (void); /* plugin_cleanup() frees the plugin's private data structures */ void (*plugin_cleanup) (void); }; An sw_plugin structure contains two members, a plugin_init function that takes no arguments and returns a list of procs, and a void plugin_cleanup function. The initialisation is performed through a function call and can instantiate an indeterminate number of procs. This allows the creation of plugins which may not necessarily know when built how many procs they will create; for example, the LADSPA meta plugin dynamically creates a proc corresponding to every LADSPA function it can find in all the LADSPA plugins it can find. In the usual case where the procs are known at build time (ie. they consist of functions within the plugin library) the plugin_init function can simply construct a GList out of these known procs, each of which can be statically defined. This list is constructed using g_list_append(); see for more information on using GLists. 2.12 Building plugins within the sweep source tree ------------------------------------------------- Have a look at plugins/example/ Makefile.am: ## Process this file with automake to produce Makefile.in INCLUDES = -I$(top_srcdir)/include libdir = $(PACKAGE_PLUGIN_DIR) lib_LTLIBRARIES = \ libexample.la libexample_la_SOURCES = example.c libexample_la_LDFLAGS = -version-info 1:0:0 The version info (1:0:0 in the example above) should consist of the numbers SWEEP_PLUGIN_API_MAJOR, SWEEP_PLUGIN_API_MINOR and SWEEP_PLUGIN_API_REVISION listed in , colon separated. Copy the numbers in manually, do not attempt to generate them from the values defined. These numbers should only be changed when your plugin code changes to use features only available in newer versions of the plugin API. Note that the plugin API is maintained independently of the application version. See section 3.2 for more information on API versioning. 3. Advanced topics ================== This section explains in depth some topics which are not usually required by plugin writers. This includes the creation of new types of operation and undo/redo mechanisms and a detailed discussion of the versioning system employed. 3.1 Sweep "Operations", Handling Undo and Redo ---------------------------------------------- Sweep maintains a stack of recent operations for each sample, which are used to allow undoing and redoing of all operations. If you write a new operation method that modifies a sample's 'sounddata' (ie. the sampling rate, length, selections or audio data) then you must implement Undo and Redo methods for it. However if you are using one of the convenience mechanisms covered in Sections 2.7 and 2.8 then these things are already taken care of by the perform_* functions. The datatypes used are defined in as follows: typedef void (*SweepFunction) (gpointer data); typedef void (*SweepCallback) (sw_sample * sample, gpointer data); typedef struct _sw_operation sw_operation; typedef struct _sw_op_instance sw_op_instance; struct _sw_operation { SweepCallback undo; SweepFunction purge_undo; SweepCallback redo; SweepFunction purge_redo; }; struct _sw_op_instance { char * description; sw_operation * op; gpointer undo_data; gpointer redo_data; }; Once an operation has been successfully performed, it needs to register itself with Sweep's undo handler. This involves: 1. Finding or constructing an sw_operation structure. These are often statically defined. 2. Creating an sw_op_instance structure. This contains a description of the operation performed, a pointer to the sw_operation, and pointers to data for use in undoing and redoing the operation performed. 3. Calling register_operation() to add the sw_op_instance to the sample's stack of operations. The apply() method of a proc usually does these things, does its actual work, registers the operation then returns the sw_op_instance created. An operation given by (sw_op_instance * inst) is undone by calling inst->op->undo (sample, inst->undo_data); and redone by calling inst->op->redo (sample, inst->redo_data); When an operation instance can be discarded (eg. if only a finite number of recent operations are remembered), the undo_data and redo_data members are purged by calling inst->op->purge_undo (inst->undo_data); inst->op->purge_redo (inst->redo_data); Thus, if any memory was allocated to create undo_data or redo_data it should be freed in the purge functions. Some stock undo and redo methods exist for handling operations which need to paste new data over the selected region, or which need to splice data into the sample. These are outlined in . For examples of their use, see "src/edit.c" in the Sweep application source. 3.2 Versioning -------------- Sweep's plugin API is strictly versioned. Note that the plugin API's versions are maintained completely independently of the application version. You can find out the application and plugin API versions of your installed copy of Sweep by issuing the command "sweep --version". Versioning of the plugin API tracks the interface provided by Sweep. This is done because the application is actively linking itself against the plugin libraries, and must look for plugins which implement versions it understands. Versions are given in the form Major.Minor.Revision (M.m.R). The API version implemented by a particular release of Sweep is defined in by the values SWEEP_PLUGIN_API_MAJOR, SWEEP_PLUGIN_API_MINOR and SWEEP_PLUGIN_API_REVISION. Note: in the following description, a "public data structure" is one defined in any of the headers included by , and a "public function" is any function declared in any of the headers included by . An "interface" is anything that is either a public data structure or a public function. The version information is only ever updated upon a release of Sweep. Interfaces defined in the code available through CVS between releases are subject to change. The version information V = M.m.R is updated to V' as follows: 1. If any interfaces have been removed or modified by a release (ie. backwards compatability has been broken) then the Major number is incremented and Minor and Revision are set to 0. (V' = M+1.0.0) 2. Otherwise, if any interfaces have been added since the last release the Minor number is incremented and Revision is set to 0. (V' = M.m+1.0) 3. Otherwise, if the application code has changed at all since the last release the Revision is incremented. (V' = M.m.R+1) A plugin library 'plugin' must be built with a name of the form libplugin.so.M.m.R where M, m, and R correspond to the Major, Minor and Revision provided by the particular version of sweep you are developing against, or an earlier Minor and Revision which are known to work. The current behaviour of sweep is to attempt to load all plugins with a Major number it understands, and fail silently if the plugin makes use of interfaces added in subsequent Minor API versions. Thus it is not absolutely necessary to find the earliest API version which will work with your plugin. Additionally, symlinks should be created for the plugin as follows: libplugin.so -> libplugin.so.M libplugin.so.M -> libplugin.so.M.m libplugin.so.M.m -> libplugin.so.M.m.R These symlinks are created automatically when using libtool to build plugin libraries by including the line libplugin_la_LDFLAGS = -version-info M:m:R in the Makefile.am within the plugin's build directory (if using automake, or the flag "-version-info M:m:R" needs to be otherwise passed to libtool). Note that this flag contains colons, not dots. Appendix A. Keeping in touch with Sweep development =================================================== The Sweep homepage contains links to many relevent resources. http://sweep.sourceforge.net/ The Sweep project page on Sourceforge holds the infrastructure for such things as CVS access and bug reporting. It is available at http://sourceforge.net/projects/sweep/ If you have any questions or comments about Sweep please send them to the sweep-devel mailing list . If in doubt, contact the main author: Conrad Parker Appendix B. Building LADSPA plugins for use with Sweep ====================================================== If you intend to create a plugin which only modifies audio data (such as an effects plugin), it is recommended that you use the LADSPA API [1] if possible. This ensures that the plugin you create is usable by a wide variety of free audio programs, rather than only being usable by Sweep. If writing a LADSPA plugin please write a mono filter unless there is some kind of algorithmic interaction between the channels such as panning. Sweep, and most other LADSPA hosts, use multiple instances or invocations of the LADSPA plugins as required so that any number of channels can be catered for with a mono plugin. In fact Sweep will quite happily use a stereo LADSPA filter on a mono sample (it will generate an empty second channel and ignore its output) but it is inefficient to rely on this behaviour. To clarify: LADSPA defines a standardised interface for audio plugins. When creating LADSPA plugins, do not reference any data structures used internally by Sweep. You do not provide any undo or redo methods; Sweep will construct these as required when performing an operation from a LADSPA plugin. Acknowledgements ================ This API was constructed after careful studying of plugin APIs from many other free software projects, including SANE, the Gimp, LADSPA, and xmms. References ========== [1] Linux Audio Developer's Simple Plugin API http://www.ladspa.org/ [2] GLib Reference Manual http://developer.gnome.org/doc/API/glib/index.html [3] GNU gettext http://www.gnu.org/software/gettext/ [4] GTK+/Gnome Application Development, Section 5.2 "Internationalization" Havoc Pennington, New Riders Publishing 1999 http://developer.gnome.org/doc/GGAD/sec-i18n.html sweep-0.9.3/config.rpath0000755000175000017500000003502510777660176013722 0ustar useruser#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2005 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally 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. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a `.a' archive for static linking (except M$VC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` cc_basename=`echo "$CC" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's AC_LIBTOOL_PROG_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; darwin*) case "$cc_basename" in xlc*) wl='-Wl,' ;; esac ;; mingw* | pw32* | os2*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; newsos6) ;; linux*) case $cc_basename in icc* | ecc*) wl='-Wl,' ;; pgcc | pgf77 | pgf90) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; como) wl='-lopt=' ;; esac ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; sco3.2v5*) ;; solaris*) wl='-Wl,' ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) wl='-Wl,' ;; sysv4*MP*) ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's AC_LIBTOOL_PROG_LD_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32*) # 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 ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then case "$host_os" in aix3* | aix4* | aix5*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we cannot use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris* | sysv5*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; sunos4*) hardcode_direct=yes ;; linux*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = yes; then # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix4* | aix5*) 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 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].*|aix5*) 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 fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 hardcode_direct=yes else # We have old collect2 hardcode_direct=unsupported hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) ;; cygwin* | mingw* | pw32*) # 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. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if test "$GCC" = yes ; then : else case "$cc_basename" in xlc*) ;; *) ld_shlibs=no ;; esac fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd1*) ld_shlibs=no ;; freebsd2.2*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; freebsd2*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | kfreebsd*-gnu | dragonfly*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) 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 ;; hpux10* | hpux11*) if test "$with_gnu_ld" = no; then case "$host_cpu" in hppa*64*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=no ;; ia64*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=no # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; *) 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 ;; esac fi ;; irix5* | irix6* | nonstopux*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; openbsd*) hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; sco3.2v5*) ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4.2uw2*) hardcode_direct=yes hardcode_minus_L=no ;; sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) ;; sysv5*) hardcode_libdir_flag_spec= ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's AC_LIBTOOL_SYS_DYNAMIC_LINKER. libname_spec='lib$name' case "$host_os" in aix3*) ;; aix4* | aix5*) ;; amigaos*) ;; beos*) ;; bsdi[45]*) ;; cygwin* | mingw* | pw32*) shrext=.dll ;; darwin* | rhapsody*) shrext=.dylib ;; dgux*) ;; freebsd1*) ;; kfreebsd*-gnu) ;; freebsd*) ;; gnu*) ;; hpux9* | hpux10* | hpux11*) case "$host_cpu" in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac ;; irix5* | irix6* | nonstopux*) case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux*) ;; knetbsd*-gnu) ;; netbsd*) ;; newsos6) ;; nto-qnx*) ;; openbsd*) ;; os2*) libname_spec='$name' shrext=.dll ;; osf3* | osf4* | osf5*) ;; sco3.2v5*) ;; solaris*) ;; sunos4*) ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ;; sysv4*MP*) ;; uts4*) ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <. Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64vr | mips64vrel \ | mips64orion | mips64orionel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64vr-* | mips64vrel-* \ | mips64orion-* | mips64orionel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; # 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 ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; c90) basic_machine=c90-cray os=-unicos ;; 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 ;; cr16c) basic_machine=cr16c-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 ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; 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[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: