xmp-4.2.0/0000755000000000000000000000000014442671646011035 5ustar rootrootxmp-4.2.0/CREDITS0000644000000000000000000000300714442670136012046 0ustar rootrootThe Authors - Rob Adamson * ALSA 0.5 driver fixes - Tijs van Bakel * ALSA 0.5 driver fixes - Marc R. Boyns * --nocmd command line option - Douglas Carmichael * OSX portability fixes - Hipolito Carraro Jr * main player coding - Chris Cox * fixes for OpenBSD 2.8 * option parsing fixes - Brian Downing * SGI and endianism fixes - Rune Elvemo * fixes for endianism problems in Linux/PPC - Jan Engelhardt * fixes for background process handling * misc source code fixes * automake-based build system - Mike Gorchak * QNX6 portability fix - Keith Hargrove * Solaris driver fixes - Dirk Jagdmann * devfs sound device support - Lorence Lombardo * Amiga AHI driver * AIFF file writer - Kevin Langman * OS/2 port and OS/2 DART drivers - Andrew "Alf" Leahy * fixes for Digital UNIX - Claudio Matsuoka * main player coding * sound drivers - Michael * NetBSD port fixes * NetBSD and OpenBSD enhanced drivers - Thomas Pfaff * OpenBSD sndio driver - Johan Samuelsson * Amiga port and fixes - Chris Young * Amiga port and fixes xmp-4.2.0/build-aux/0000755000000000000000000000000014442671646012727 5ustar rootrootxmp-4.2.0/build-aux/compile0000755000000000000000000001635014442671646014312 0ustar rootroot#! /bin/sh # Wrapper for compilers which do not understand '-c -o'. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2021 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' # We need space, tab and new line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage. IFS=" "" $nl" file_conv= # func_file_conv build_file lazy # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) LAZY, no conversion will # take place. func_file_conv () { file=$1 case $file in / | /[!/]*) # absolute file, and not a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in MINGW*) file_conv=mingw ;; CYGWIN* | MSYS*) file_conv=cygwin ;; *) file_conv=wine ;; esac fi case $file_conv/,$2, in *,$file_conv,*) ;; mingw/*) file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/* | msys/*) file=`cygpath -m "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` ;; esac ;; esac } # func_cl_dashL linkdir # Make cl look for libraries in LINKDIR func_cl_dashL () { func_file_conv "$1" if test -z "$lib_path"; then lib_path=$file else lib_path="$lib_path;$file" fi linker_opts="$linker_opts -LIBPATH:$file" } # func_cl_dashl library # Do a library search-path lookup for cl func_cl_dashl () { lib=$1 found=no save_IFS=$IFS IFS=';' for dir in $lib_path $LIB do IFS=$save_IFS if $shared && test -f "$dir/$lib.dll.lib"; then found=yes lib=$dir/$lib.dll.lib break fi if test -f "$dir/$lib.lib"; then found=yes lib=$dir/$lib.lib break fi if test -f "$dir/lib$lib.a"; then found=yes lib=$dir/lib$lib.a break fi done IFS=$save_IFS if test "$found" != yes; then lib=$lib.lib fi } # func_cl_wrapper cl arg... # Adjust compile command to suit cl func_cl_wrapper () { # Assume a capable shell lib_path= shared=: linker_opts= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. eat=1 case $2 in *.o | *.[oO][bB][jJ]) func_file_conv "$2" set x "$@" -Fo"$file" shift ;; *) func_file_conv "$2" set x "$@" -Fe"$file" shift ;; esac ;; -I) eat=1 func_file_conv "$2" mingw set x "$@" -I"$file" shift ;; -I*) func_file_conv "${1#-I}" mingw set x "$@" -I"$file" shift ;; -l) eat=1 func_cl_dashl "$2" set x "$@" "$lib" shift ;; -l*) func_cl_dashl "${1#-l}" set x "$@" "$lib" shift ;; -L) eat=1 func_cl_dashL "$2" ;; -L*) func_cl_dashL "${1#-L}" ;; -static) shared=false ;; -Wl,*) arg=${1#-Wl,} save_ifs="$IFS"; IFS=',' for flag in $arg; do IFS="$save_ifs" linker_opts="$linker_opts $flag" done IFS="$save_ifs" ;; -Xlinker) eat=1 linker_opts="$linker_opts $2" ;; -*) set x "$@" "$1" shift ;; *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) func_file_conv "$1" set x "$@" -Tp"$file" shift ;; *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) func_file_conv "$1" mingw set x "$@" "$file" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -n "$linker_opts"; then linker_opts="-link$linker_opts" fi exec "$@" $linker_opts exit 1 } eat= case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: compile [--help] [--version] PROGRAM [ARGS] Wrapper for compilers which do not understand '-c -o'. Remove '-o dest.o' from ARGS, run PROGRAM with the remaining arguments, and rename the output as expected. If you are trying to build a whole package this is not the right script to run: please start by reading the file 'INSTALL'. Report bugs to . EOF exit $? ;; -v | --v*) echo "compile $scriptversion" exit $? ;; cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) func_cl_wrapper "$@" # Doesn't return... ;; esac ofile= cfile= for arg do if test -n "$eat"; then eat= else case $1 in -o) # configure might choose to run compile as 'compile cc -o foo foo.c'. # So we strip '-o arg' only if arg is an object. eat=1 case $2 in *.o | *.obj) ofile=$2 ;; *) set x "$@" -o "$2" shift ;; esac ;; *.c) cfile=$1 set x "$@" "$1" shift ;; *) set x "$@" "$1" shift ;; esac fi shift done if test -z "$ofile" || test -z "$cfile"; then # If no '-o' option was seen then we might have been invoked from a # pattern rule where we don't need one. That is ok -- this is a # normal compilation that the losing compiler can handle. If no # '.c' file was seen then we are probably linking. That is also # ok. exec "$@" fi # Name of file we expect compiler to create. cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` # Create the lock directory. # Note: use '[/\\:.-]' here to ensure that we don't use the same name # that we are using for the .o file. Also, base the name on the expected # object file name, since that is what matters with a parallel build. lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d while true; do if mkdir "$lockdir" >/dev/null 2>&1; then break fi sleep 1 done # FIXME: race condition here if user kills between mkdir and trap. trap "rmdir '$lockdir'; exit 1" 1 2 15 # Run the compile. "$@" ret=$? if test -f "$cofile"; then test "$cofile" = "$ofile" || mv "$cofile" "$ofile" elif test -f "${cofile}bj"; then test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" fi rmdir "$lockdir" exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: xmp-4.2.0/build-aux/depcomp0000755000000000000000000005602014442671646014307 0ustar rootroot#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2018-03-07.03; # UTC # Copyright (C) 1999-2021 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # Get the directory component of the given path, and save it in the # global variables '$dir'. Note that this directory component will # be either empty or ending with a '/' character. This is deliberate. set_dir_from () { case $1 in */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; *) dir=;; esac } # Get the suffix-stripped basename of the given path, and save it the # global variable '$base'. set_base_from () { base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` } # If no dependency file was actually created by the compiler invocation, # we still have to create a dummy depfile, to avoid errors with the # Makefile "include basename.Plo" scheme. make_dummy_depfile () { echo "#dummy" > "$depfile" } # Factor out some common post-processing of the generated depfile. # Requires the auxiliary global variable '$tmpdepfile' to be set. aix_post_process_depfile () { # If the compiler actually managed to produce a dependency file, # post-process it. if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependency.h'. # Do two passes, one to just change these to # $object: dependency.h # and one to simply output # dependency.h: # which is needed to avoid the deleted-header problem. { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" } > "$depfile" rm -f "$tmpdepfile" else make_dummy_depfile fi } # A tabulation character. tab=' ' # A newline character. nl=' ' # Character ranges might be problematic outside the C locale. # These definitions help. upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ lower=abcdefghijklmnopqrstuvwxyz digits=0123456789 alpha=${upper}${lower} if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Avoid interferences from the environment. gccflag= dashmflag= # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. ## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). Also, it might not be ## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The second -e expression handles DOS-style file names with drive # letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done aix_post_process_depfile ;; tcc) # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 # FIXME: That version still under development at the moment of writing. # Make that this statement remains true also for stable, released # versions. # It will wrap lines (doesn't matter whether long or short) with a # trailing '\', as in: # # foo.o : \ # foo.c \ # foo.h \ # # It will put a trailing '\' even on the last line, and will use leading # spaces rather than leading tabs (at least since its commit 0394caf7 # "Emit spaces for -MD"). "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. # We have to change lines of the first kind to '$object: \'. sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" # And for each line of the second kind, we have to emit a 'dep.h:' # dummy dependency, to avoid the deleted-header problem. sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; ## The order of this option in the case statement is important, since the ## shell code in configure will try each of these formats in the order ## listed in this file. A plain '-MD' option would be understood by many ## compilers, so we must ensure this comes after the gcc and icc options. pgcc) # Portland's C compiler understands '-MD'. # Will always output deps to 'file.d' where file is the root name of the # source file under compilation, even if file resides in a subdirectory. # The object file name does not affect the name of the '.d' file. # pgcc 10.2 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\' : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... set_dir_from "$object" # Use the source, not the object, to determine the base name, since # that's sadly what pgcc will do too. set_base_from "$source" tmpdepfile=$base.d # For projects that build the same source file twice into different object # files, the pgcc approach of using the *source* file root name can cause # problems in parallel builds. Use a locking strategy to avoid stomping on # the same $tmpdepfile. lockdir=$base.d-lock trap " echo '$0: caught signal, cleaning up...' >&2 rmdir '$lockdir' exit 1 " 1 2 13 15 numtries=100 i=$numtries while test $i -gt 0; do # mkdir is a portable test-and-set. if mkdir "$lockdir" 2>/dev/null; then # This process acquired the lock. "$@" -MD stat=$? # Release the lock. rmdir "$lockdir" break else # If the lock is being held by a different process, wait # until the winning process is done or we timeout. while test -d "$lockdir" && test $i -gt 0; do sleep 1 i=`expr $i - 1` done fi i=`expr $i - 1` done trap - 1 2 13 15 if test $i -le 0; then echo "$0: failed to acquire lock after $numtries attempts" >&2 echo "$0: check lockdir '$lockdir'" >&2 exit 1 fi if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else make_dummy_depfile fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. set_dir_from "$object" set_base_from "$object" if test "$libtool" = yes; then # Libtool generates 2 separate objects for the 2 libraries. These # two compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir$base.o.d # libtool 1.5 tmpdepfile2=$dir.libs/$base.o.d # Likewise. tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d "$@" -MD fi stat=$? if test $stat -ne 0; then rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done # Same post-processing that is required for AIX mode. aix_post_process_depfile ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" echo >> "$depfile" # make sure the fragment doesn't end with a backslash rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this sed invocation # correctly. Breaking it into two sed invocations is a workaround. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process the last invocation # correctly. Breaking it into two sed invocations is a workaround. sed '1,2d' "$tmpdepfile" \ | tr ' ' "$nl" \ | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E \ | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: xmp-4.2.0/build-aux/config.sub0000755000000000000000000010511514442671646014715 0ustar rootroot#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2022 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2022-01-03' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches to . # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.sub # 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. # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS Canonicalize a configuration name. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2022 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 ;; *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 # Split fields of configuration type # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read field1 field2 field3 field4 <&2 exit 1 ;; *-*-*-*) basic_machine=$field1-$field2 basic_os=$field3-$field4 ;; *-*-*) # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two # parts maybe_os=$field2-$field3 case $maybe_os in nto-qnx* | linux-* | uclinux-uclibc* \ | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ | storm-chaos* | os2-emx* | rtmk-nova*) basic_machine=$field1 basic_os=$maybe_os ;; android-linux) basic_machine=$field1-unknown basic_os=linux-android ;; *) basic_machine=$field1-$field2 basic_os=$field3 ;; esac ;; *-*) # A lone config we happen to match not fitting any pattern case $field1-$field2 in decstation-3100) basic_machine=mips-dec basic_os= ;; *-*) # Second component is usually, but not always the OS case $field2 in # Prevent following clause from handling this valid os sun*os*) basic_machine=$field1 basic_os=$field2 ;; zephyr*) basic_machine=$field1-unknown basic_os=$field2 ;; # Manufacturers dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \ | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \ | unicom* | ibm* | next | hp | isi* | apollo | altos* \ | convergent* | ncr* | news | 32* | 3600* | 3100* \ | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \ | ultra | tti* | harris | dolphin | highlevel | gould \ | cbm | ns | masscomp | apple | axis | knuth | cray \ | microblaze* | sim | cisco \ | oki | wec | wrs | winbond) basic_machine=$field1-$field2 basic_os= ;; *) basic_machine=$field1 basic_os=$field2 ;; esac ;; esac ;; *) # Convert single-component short-hands not valid as part of # multi-component configurations. case $field1 in 386bsd) basic_machine=i386-pc basic_os=bsd ;; a29khif) basic_machine=a29k-amd basic_os=udi ;; adobe68k) basic_machine=m68010-adobe basic_os=scout ;; alliant) basic_machine=fx80-alliant basic_os= ;; altos | altos3068) basic_machine=m68k-altos basic_os= ;; am29k) basic_machine=a29k-none basic_os=bsd ;; amdahl) basic_machine=580-amdahl basic_os=sysv ;; amiga) basic_machine=m68k-unknown basic_os= ;; amigaos | amigados) basic_machine=m68k-unknown basic_os=amigaos ;; amigaunix | amix) basic_machine=m68k-unknown basic_os=sysv4 ;; apollo68) basic_machine=m68k-apollo basic_os=sysv ;; apollo68bsd) basic_machine=m68k-apollo basic_os=bsd ;; aros) basic_machine=i386-pc basic_os=aros ;; aux) basic_machine=m68k-apple basic_os=aux ;; balance) basic_machine=ns32k-sequent basic_os=dynix ;; blackfin) basic_machine=bfin-unknown basic_os=linux ;; cegcc) basic_machine=arm-unknown basic_os=cegcc ;; convex-c1) basic_machine=c1-convex basic_os=bsd ;; convex-c2) basic_machine=c2-convex basic_os=bsd ;; convex-c32) basic_machine=c32-convex basic_os=bsd ;; convex-c34) basic_machine=c34-convex basic_os=bsd ;; convex-c38) basic_machine=c38-convex basic_os=bsd ;; cray) basic_machine=j90-cray basic_os=unicos ;; crds | unos) basic_machine=m68k-crds basic_os= ;; da30) basic_machine=m68k-da30 basic_os= ;; decstation | pmax | pmin | dec3100 | decstatn) basic_machine=mips-dec basic_os= ;; delta88) basic_machine=m88k-motorola basic_os=sysv3 ;; dicos) basic_machine=i686-pc basic_os=dicos ;; djgpp) basic_machine=i586-pc basic_os=msdosdjgpp ;; ebmon29k) basic_machine=a29k-amd basic_os=ebmon ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson basic_os=ose ;; gmicro) basic_machine=tron-gmicro basic_os=sysv ;; go32) basic_machine=i386-pc basic_os=go32 ;; h8300hms) basic_machine=h8300-hitachi basic_os=hms ;; h8300xray) basic_machine=h8300-hitachi basic_os=xray ;; h8500hms) basic_machine=h8500-hitachi basic_os=hms ;; harris) basic_machine=m88k-harris basic_os=sysv3 ;; hp300 | hp300hpux) basic_machine=m68k-hp basic_os=hpux ;; hp300bsd) basic_machine=m68k-hp basic_os=bsd ;; hppaosf) basic_machine=hppa1.1-hp basic_os=osf ;; hppro) basic_machine=hppa1.1-hp basic_os=proelf ;; i386mach) basic_machine=i386-mach basic_os=mach ;; isi68 | isi) basic_machine=m68k-isi basic_os=sysv ;; m68knommu) basic_machine=m68k-unknown basic_os=linux ;; magnum | m3230) basic_machine=mips-mips basic_os=sysv ;; merlin) basic_machine=ns32k-utek basic_os=sysv ;; mingw64) basic_machine=x86_64-pc basic_os=mingw64 ;; mingw32) basic_machine=i686-pc basic_os=mingw32 ;; mingw32ce) basic_machine=arm-unknown basic_os=mingw32ce ;; monitor) basic_machine=m68k-rom68k basic_os=coff ;; morphos) basic_machine=powerpc-unknown basic_os=morphos ;; moxiebox) basic_machine=moxie-unknown basic_os=moxiebox ;; msdos) basic_machine=i386-pc basic_os=msdos ;; msys) basic_machine=i686-pc basic_os=msys ;; mvs) basic_machine=i370-ibm basic_os=mvs ;; nacl) basic_machine=le32-unknown basic_os=nacl ;; ncr3000) basic_machine=i486-ncr basic_os=sysv4 ;; netbsd386) basic_machine=i386-pc basic_os=netbsd ;; netwinder) basic_machine=armv4l-rebel basic_os=linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony basic_os=newsos ;; news1000) basic_machine=m68030-sony basic_os=newsos ;; necv70) basic_machine=v70-nec basic_os=sysv ;; nh3000) basic_machine=m68k-harris basic_os=cxux ;; nh[45]000) basic_machine=m88k-harris basic_os=cxux ;; nindy960) basic_machine=i960-intel basic_os=nindy ;; mon960) basic_machine=i960-intel basic_os=mon960 ;; nonstopux) basic_machine=mips-compaq basic_os=nonstopux ;; os400) basic_machine=powerpc-ibm basic_os=os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson basic_os=ose ;; os68k) basic_machine=m68k-none basic_os=os68k ;; paragon) basic_machine=i860-intel basic_os=osf ;; parisc) basic_machine=hppa-unknown basic_os=linux ;; psp) basic_machine=mipsallegrexel-sony basic_os=psp ;; pw32) basic_machine=i586-unknown basic_os=pw32 ;; rdos | rdos64) basic_machine=x86_64-pc basic_os=rdos ;; rdos32) basic_machine=i386-pc basic_os=rdos ;; rom68k) basic_machine=m68k-rom68k basic_os=coff ;; sa29200) basic_machine=a29k-amd basic_os=udi ;; sei) basic_machine=mips-sei basic_os=seiux ;; sequent) basic_machine=i386-sequent basic_os= ;; sps7) basic_machine=m68k-bull basic_os=sysv2 ;; st2000) basic_machine=m68k-tandem basic_os= ;; stratus) basic_machine=i860-stratus basic_os=sysv4 ;; sun2) basic_machine=m68000-sun basic_os= ;; sun2os3) basic_machine=m68000-sun basic_os=sunos3 ;; sun2os4) basic_machine=m68000-sun basic_os=sunos4 ;; sun3) basic_machine=m68k-sun basic_os= ;; sun3os3) basic_machine=m68k-sun basic_os=sunos3 ;; sun3os4) basic_machine=m68k-sun basic_os=sunos4 ;; sun4) basic_machine=sparc-sun basic_os= ;; sun4os3) basic_machine=sparc-sun basic_os=sunos3 ;; sun4os4) basic_machine=sparc-sun basic_os=sunos4 ;; sun4sol2) basic_machine=sparc-sun basic_os=solaris2 ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun basic_os= ;; sv1) basic_machine=sv1-cray basic_os=unicos ;; symmetry) basic_machine=i386-sequent basic_os=dynix ;; t3e) basic_machine=alphaev5-cray basic_os=unicos ;; t90) basic_machine=t90-cray basic_os=unicos ;; toad1) basic_machine=pdp10-xkl basic_os=tops20 ;; tpf) basic_machine=s390x-ibm basic_os=tpf ;; udi29k) basic_machine=a29k-amd basic_os=udi ;; ultra3) basic_machine=a29k-nyu basic_os=sym1 ;; v810 | necv810) basic_machine=v810-nec basic_os=none ;; vaxv) basic_machine=vax-dec basic_os=sysv ;; vms) basic_machine=vax-dec basic_os=vms ;; vsta) basic_machine=i386-pc basic_os=vsta ;; vxworks960) basic_machine=i960-wrs basic_os=vxworks ;; vxworks68) basic_machine=m68k-wrs basic_os=vxworks ;; vxworks29k) basic_machine=a29k-wrs basic_os=vxworks ;; xbox) basic_machine=i686-pc basic_os=mingw32 ;; ymp) basic_machine=ymp-cray basic_os=unicos ;; *) basic_machine=$1 basic_os= ;; esac ;; esac # Decode 1-component or ad-hoc basic machines case $basic_machine in # 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) cpu=hppa1.1 vendor=winbond ;; op50n) cpu=hppa1.1 vendor=oki ;; op60c) cpu=hppa1.1 vendor=oki ;; ibm*) cpu=i370 vendor=ibm ;; orion105) cpu=clipper vendor=highlevel ;; mac | mpw | mac-mpw) cpu=m68k vendor=apple ;; pmac | pmac-mpw) cpu=powerpc vendor=apple ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) cpu=m68000 vendor=att ;; 3b*) cpu=we32k vendor=att ;; bluegene*) cpu=powerpc vendor=ibm basic_os=cnk ;; decsystem10* | dec10*) cpu=pdp10 vendor=dec basic_os=tops10 ;; decsystem20* | dec20*) cpu=pdp10 vendor=dec basic_os=tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) cpu=m68k vendor=motorola ;; dpx2*) cpu=m68k vendor=bull basic_os=sysv3 ;; encore | umax | mmax) cpu=ns32k vendor=encore ;; elxsi) cpu=elxsi vendor=elxsi basic_os=${basic_os:-bsd} ;; fx2800) cpu=i860 vendor=alliant ;; genix) cpu=ns32k vendor=ns ;; h3050r* | hiux*) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) cpu=m68000 vendor=hp ;; hp9k3[2-9][0-9]) cpu=m68k vendor=hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) cpu=hppa1.1 vendor=hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) cpu=hppa1.1 vendor=hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) cpu=hppa1.0 vendor=hp ;; i*86v32) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv32 ;; i*86v4*) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv4 ;; i*86v) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=sysv ;; i*86sol2) cpu=`echo "$1" | sed -e 's/86.*/86/'` vendor=pc basic_os=solaris2 ;; j90 | j90-cray) cpu=j90 vendor=cray basic_os=${basic_os:-unicos} ;; iris | iris4d) cpu=mips vendor=sgi case $basic_os in irix*) ;; *) basic_os=irix4 ;; esac ;; miniframe) cpu=m68000 vendor=convergent ;; *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) cpu=m68k vendor=atari basic_os=mint ;; news-3600 | risc-news) cpu=mips vendor=sony basic_os=newsos ;; next | m*-next) cpu=m68k vendor=next case $basic_os in openstep*) ;; nextstep*) ;; ns2*) basic_os=nextstep2 ;; *) basic_os=nextstep3 ;; esac ;; np1) cpu=np1 vendor=gould ;; op50n-* | op60c-*) cpu=hppa1.1 vendor=oki basic_os=proelf ;; pa-hitachi) cpu=hppa1.1 vendor=hitachi basic_os=hiuxwe2 ;; pbd) cpu=sparc vendor=tti ;; pbb) cpu=m68k vendor=tti ;; pc532) cpu=ns32k vendor=pc532 ;; pn) cpu=pn vendor=gould ;; power) cpu=power vendor=ibm ;; ps2) cpu=i386 vendor=ibm ;; rm[46]00) cpu=mips vendor=siemens ;; rtpc | rtpc-*) cpu=romp vendor=ibm ;; sde) cpu=mipsisa32 vendor=sde basic_os=${basic_os:-elf} ;; simso-wrs) cpu=sparclite vendor=wrs basic_os=vxworks ;; tower | tower-32) cpu=m68k vendor=ncr ;; vpp*|vx|vx-*) cpu=f301 vendor=fujitsu ;; w65) cpu=w65 vendor=wdc ;; w89k-*) cpu=hppa1.1 vendor=winbond basic_os=proelf ;; none) cpu=none vendor=none ;; leon|leon[3-9]) cpu=sparc vendor=$basic_machine ;; leon-*|leon[3-9]-*) cpu=sparc vendor=`echo "$basic_machine" | sed 's/-.*//'` ;; *-*) # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read cpu vendor <&2 exit 1 ;; esac ;; esac # Here we canonicalize certain aliases for manufacturers. case $vendor in digital*) vendor=dec ;; commodore*) vendor=cbm ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if test x$basic_os != x then # First recognize some ad-hoc cases, or perhaps split kernel-os, or else just # set os. case $basic_os in gnu/linux*) kernel=linux os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'` ;; os2-emx) kernel=os2 os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'` ;; nto-qnx*) kernel=nto os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` ;; *-*) # shellcheck disable=SC2162 saved_IFS=$IFS IFS="-" read kernel os <&2 exit 1 ;; esac # As a final step for OS-related things, validate the OS-kernel combination # (given a valid OS), if there is a kernel. case $kernel-$os in linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ | linux-musl* | linux-relibc* | linux-uclibc* ) ;; uclinux-uclibc* ) ;; -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* ) # These are just libc implementations, not actual OSes, and thus # require a kernel. echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2 exit 1 ;; kfreebsd*-gnu* | kopensolaris*-gnu*) ;; vxworks-simlinux | vxworks-simwindows | vxworks-spe) ;; nto-qnx*) ;; os2-emx) ;; *-eabi* | *-gnueabi*) ;; -*) # Blank kernel with real OS is always fine. ;; *-*) echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2 exit 1 ;; esac # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. case $vendor in unknown) case $cpu-$os in *-riscix*) vendor=acorn ;; *-sunos*) vendor=sun ;; *-cnk* | *-aix*) vendor=ibm ;; *-beos*) vendor=be ;; *-hpux*) vendor=hp ;; *-mpeix*) vendor=hp ;; *-hiux*) vendor=hitachi ;; *-unos*) vendor=crds ;; *-dgux*) vendor=dg ;; *-luna*) vendor=omron ;; *-genix*) vendor=ns ;; *-clix*) vendor=intergraph ;; *-mvs* | *-opened*) vendor=ibm ;; *-os400*) vendor=ibm ;; s390-* | s390x-*) 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 ;; esac echo "$cpu-$vendor-${kernel:+$kernel-}$os" exit # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: xmp-4.2.0/build-aux/config.guess0000755000000000000000000014120214442671646015247 0ustar rootroot#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2022 Free Software Foundation, Inc. # shellcheck disable=SC2006,SC2268 # see below for rationale timestamp='2022-05-25' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # https://git.savannah.gnu.org/cgit/config.git/plain/config.guess # # Please send patches to . # The "shellcheck disable" line above the timestamp inhibits complaints # about features and limitations of the classic Bourne shell that were # superseded or lifted in POSIX. However, this script identifies a wide # variety of pre-POSIX systems that do not have POSIX shells at all, and # even some reasonably current systems (Solaris 10 as case-in-point) still # have a pre-POSIX /bin/sh. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Options: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2022 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 # Just in case it came from the environment. GUESS= # 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. tmp= # shellcheck disable=SC2172 trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 set_cc_for_build() { # prevent multiple calls if $tmp is already set test "$tmp" && return 0 : "${TMPDIR=/tmp}" # shellcheck disable=SC2039,SC3028 { 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" 2>/dev/null) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } dummy=$tmp/dummy case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in ,,) echo "int x;" > "$dummy.c" for driver in cc gcc c89 c99 ; do if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then CC_FOR_BUILD=$driver 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 } # 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 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case $UNAME_SYSTEM in Linux|GNU|GNU/*) LIBC=unknown set_cc_for_build cat <<-EOF > "$dummy.c" #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #elif defined(__GLIBC__) LIBC=gnu #else #include /* First heuristic to detect musl libc. */ #ifdef __DEFINED_va_list LIBC=musl #endif #endif EOF cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` eval "$cc_set_libc" # Second heuristic to detect musl libc. if [ "$LIBC" = unknown ] && command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl; then LIBC=musl fi # If the system lacks a compiler, then just pick glibc. # We could probably try harder. if [ "$LIBC" = unknown ]; then LIBC=gnu fi ;; esac # Note: order is significant - the case branches are not exclusive. case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ echo unknown)` case $UNAME_MACHINE_ARCH in aarch64eb) machine=aarch64_be-unknown ;; armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-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) and ABI. case $UNAME_MACHINE_ARCH in earm*) os=netbsdelf ;; arm*|i386|m68k|ns32k|sh3*|sparc|vax) set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # Determine ABI tags. case $UNAME_MACHINE_ARCH in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` ;; 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/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. GUESS=$machine-${os}${release}${abi-} ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE ;; *:SecBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE ;; *:LibertyBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE ;; *:MidnightBSD:*:*) GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE ;; *:ekkoBSD:*:*) GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE ;; *:SolidBSD:*:*) GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE ;; *:OS108:*:*) GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE ;; macppc:MirBSD:*:*) GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE ;; *:MirBSD:*:*) GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE ;; *:Sortix:*:*) GUESS=$UNAME_MACHINE-unknown-sortix ;; *:Twizzler:*:*) GUESS=$UNAME_MACHINE-unknown-twizzler ;; *:Redox:*:*) GUESS=$UNAME_MACHINE-unknown-redox ;; mips:OSF1:*.*) GUESS=mips-dec-osf1 ;; alpha:OSF1:*:*) # Reset EXIT trap before exiting to avoid spurious non-zero exit code. trap '' 0 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. OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` GUESS=$UNAME_MACHINE-dec-osf$OSF_REL ;; Amiga*:UNIX_System_V:4.0:*) GUESS=m68k-unknown-sysv4 ;; *:[Aa]miga[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-amigaos ;; *:[Mm]orph[Oo][Ss]:*:*) GUESS=$UNAME_MACHINE-unknown-morphos ;; *:OS/390:*:*) GUESS=i370-ibm-openedition ;; *:z/VM:*:*) GUESS=s390-ibm-zvmoe ;; *:OS400:*:*) GUESS=powerpc-ibm-os400 ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) GUESS=arm-acorn-riscix$UNAME_RELEASE ;; arm*:riscos:*:*|arm*:RISCOS:*:*) GUESS=arm-unknown-riscos ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) GUESS=hppa1.1-hitachi-hiuxmpp ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. case `(/bin/universe) 2>/dev/null` in att) GUESS=pyramid-pyramid-sysv3 ;; *) GUESS=pyramid-pyramid-bsd ;; esac ;; NILE*:*:*:dcosx) GUESS=pyramid-pyramid-svr4 ;; DRS?6000:unix:4.0:6*) GUESS=sparc-icl-nx6 ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) GUESS=sparc-icl-nx7 ;; esac ;; s390x:SunOS:*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL ;; sun4H:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-hal-solaris2$SUN_REL ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris2$SUN_REL ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) GUESS=i386-pc-auroraux$UNAME_RELEASE ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) set_cc_for_build SUN_ARCH=i386 # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH=x86_64 fi fi SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=$SUN_ARCH-pc-solaris2$SUN_REL ;; 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. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=sparc-sun-solaris3$SUN_REL ;; 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'. SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` GUESS=sparc-sun-sunos$SUN_REL ;; sun3*:SunOS:*:*) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; 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) GUESS=m68k-sun-sunos$UNAME_RELEASE ;; sun4) GUESS=sparc-sun-sunos$UNAME_RELEASE ;; esac ;; aushp:SunOS:*:*) GUESS=sparc-auspex-sunos$UNAME_RELEASE ;; # 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:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) GUESS=m68k-atari-mint$UNAME_RELEASE ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) GUESS=m68k-milan-mint$UNAME_RELEASE ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) GUESS=m68k-hades-mint$UNAME_RELEASE ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) GUESS=m68k-unknown-mint$UNAME_RELEASE ;; m68k:machten:*:*) GUESS=m68k-apple-machten$UNAME_RELEASE ;; powerpc:machten:*:*) GUESS=powerpc-apple-machten$UNAME_RELEASE ;; RISC*:Mach:*:*) GUESS=mips-dec-mach_bsd4.3 ;; RISC*:ULTRIX:*:*) GUESS=mips-dec-ultrix$UNAME_RELEASE ;; VAX*:ULTRIX*:*:*) GUESS=vax-dec-ultrix$UNAME_RELEASE ;; 2020:CLIX:*:* | 2430:CLIX:*:*) GUESS=clipper-intergraph-clix$UNAME_RELEASE ;; mips:*:*:UMIPS | mips:*:*:RISCos) 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; } GUESS=mips-mips-riscos$UNAME_RELEASE ;; Motorola:PowerMAX_OS:*:*) GUESS=powerpc-motorola-powermax ;; Motorola:*:4.3:PL8-*) GUESS=powerpc-harris-powermax ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) GUESS=powerpc-harris-powermax ;; Night_Hawk:Power_UNIX:*:*) GUESS=powerpc-harris-powerunix ;; m88k:CX/UX:7*:*) GUESS=m88k-harris-cxux7 ;; m88k:*:4*:R4*) GUESS=m88k-motorola-sysv4 ;; m88k:*:3*:R3*) GUESS=m88k-motorola-sysv3 ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 then if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ test "$TARGET_BINARY_INTERFACE"x = x then GUESS=m88k-dg-dgux$UNAME_RELEASE else GUESS=m88k-dg-dguxbcs$UNAME_RELEASE fi else GUESS=i586-dg-dgux$UNAME_RELEASE fi ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) GUESS=m88k-dolphin-sysv3 ;; M88*:*:R3*:*) # Delta 88k system running SVR3 GUESS=m88k-motorola-sysv3 ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) GUESS=m88k-tektronix-sysv3 ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) GUESS=m68k-tektronix-bsd ;; *:IRIX*:*:*) IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` GUESS=mips-sgi-irix$IRIX_REL ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) GUESS=i386-ibm-aix ;; ia64:AIX:*:*) if test -x /usr/bin/oslevel ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 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 GUESS=$SYSTEM_NAME else GUESS=rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then GUESS=rs6000-ibm-aix3.2.4 else GUESS=rs6000-ibm-aix3.2 fi ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if test -x /usr/bin/lslpp ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=$UNAME_VERSION.$UNAME_RELEASE fi GUESS=$IBM_ARCH-ibm-aix$IBM_REV ;; *:AIX:*:*) GUESS=rs6000-ibm-aix ;; ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) GUESS=romp-ibm-bsd4.4 ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) GUESS=rs6000-bull-bosx ;; DPX/2?00:B.O.S.:*:*) GUESS=m68k-bull-sysv3 ;; 9000/[34]??:4.3bsd:1.*:*) GUESS=m68k-hp-bsd ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) GUESS=m68k-hp-bsd4.4 ;; 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 test -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 test "$HP_ARCH" = ""; then 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 test "$HP_ARCH" = hppa2.0w then set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH=hppa2.0w else HP_ARCH=hppa64 fi fi GUESS=$HP_ARCH-hp-hpux$HPUX_REV ;; ia64:HP-UX:*:*) HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` GUESS=ia64-hp-hpux$HPUX_REV ;; 3050*:HI-UX:*:*) 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; } GUESS=unknown-hitachi-hiuxwe2 ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) GUESS=hppa1.1-hp-bsd ;; 9000/8??:4.3bsd:*:*) GUESS=hppa1.0-hp-bsd ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) GUESS=hppa1.0-hp-mpeix ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) GUESS=hppa1.1-hp-osf ;; hp8??:OSF1:*:*) GUESS=hppa1.0-hp-osf ;; i*86:OSF1:*:*) if test -x /usr/sbin/sysversion ; then GUESS=$UNAME_MACHINE-unknown-osf1mk else GUESS=$UNAME_MACHINE-unknown-osf1 fi ;; parisc*:Lites*:*:*) GUESS=hppa1.1-hp-lites ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) GUESS=c1-convex-bsd ;; 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*:*) GUESS=c34-convex-bsd ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) GUESS=c38-convex-bsd ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) GUESS=c4-convex-bsd ;; CRAY*Y-MP:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=ymp-cray-unicos$CRAY_REL ;; 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:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=t90-cray-unicos$CRAY_REL ;; CRAY*T3E:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=alphaev5-cray-unicosmk$CRAY_REL ;; CRAY*SV1:*:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=sv1-cray-unicos$CRAY_REL ;; *:UNICOS/mp:*:*) CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` GUESS=craynv-cray-unicosmp$CRAY_REL ;; 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/ /_/'` GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; 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/ /_/'` GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE ;; sparc*:BSD/OS:*:*) GUESS=sparc-unknown-bsdi$UNAME_RELEASE ;; *:BSD/OS:*:*) GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE ;; arm:FreeBSD:*:*) UNAME_PROCESSOR=`uname -p` set_cc_for_build if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi else FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf fi ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case $UNAME_PROCESSOR in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL ;; i*:CYGWIN*:*) GUESS=$UNAME_MACHINE-pc-cygwin ;; *:MINGW64*:*) GUESS=$UNAME_MACHINE-pc-mingw64 ;; *:MINGW*:*) GUESS=$UNAME_MACHINE-pc-mingw32 ;; *:MSYS*:*) GUESS=$UNAME_MACHINE-pc-msys ;; i*:PW*:*) GUESS=$UNAME_MACHINE-pc-pw32 ;; *:SerenityOS:*:*) GUESS=$UNAME_MACHINE-pc-serenity ;; *:Interix*:*) case $UNAME_MACHINE in x86) GUESS=i586-pc-interix$UNAME_RELEASE ;; authenticamd | genuineintel | EM64T) GUESS=x86_64-unknown-interix$UNAME_RELEASE ;; IA64) GUESS=ia64-unknown-interix$UNAME_RELEASE ;; esac ;; i*:UWIN*:*) GUESS=$UNAME_MACHINE-pc-uwin ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) GUESS=x86_64-pc-cygwin ;; prep*:SunOS:5.*:*) SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` GUESS=powerpcle-unknown-solaris2$SUN_REL ;; *:GNU:*:*) # the GNU system GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL ;; *:GNU/*:*:*) # other systems with GNU libc and userland GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC ;; *:Minix:*:*) GUESS=$UNAME_MACHINE-unknown-minix ;; aarch64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; arm*:Linux:*:*) set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then GUESS=$UNAME_MACHINE-unknown-linux-$LIBC else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi else GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf fi fi ;; avr32*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; cris:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; crisv32:Linux:*:*) GUESS=$UNAME_MACHINE-axis-linux-$LIBC ;; e2k:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; frv:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; hexagon:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; i*86:Linux:*:*) GUESS=$UNAME_MACHINE-pc-linux-$LIBC ;; ia64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; k1om:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m32r*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; m68*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; mips:Linux:*:* | mips64:Linux:*:*) set_cc_for_build IS_GLIBC=0 test x"${LIBC}" = xgnu && IS_GLIBC=1 sed 's/^ //' << EOF > "$dummy.c" #undef CPU #undef mips #undef mipsel #undef mips64 #undef mips64el #if ${IS_GLIBC} && defined(_ABI64) LIBCABI=gnuabi64 #else #if ${IS_GLIBC} && defined(_ABIN32) LIBCABI=gnuabin32 #else LIBCABI=${LIBC} #endif #endif #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa64r6 #else #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 CPU=mipsisa32r6 #else #if defined(__mips64) CPU=mips64 #else CPU=mips #endif #endif #endif #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) MIPS_ENDIAN=el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) MIPS_ENDIAN= #else MIPS_ENDIAN= #endif #endif EOF cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` eval "$cc_set_vars" test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } ;; mips64el:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; openrisc*:Linux:*:*) GUESS=or1k-unknown-linux-$LIBC ;; or32:Linux:*:* | or1k*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; padre:Linux:*:*) GUESS=sparc-unknown-linux-$LIBC ;; parisc64:Linux:*:* | hppa64:Linux:*:*) GUESS=hppa64-unknown-linux-$LIBC ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; *) GUESS=hppa-unknown-linux-$LIBC ;; esac ;; ppc64:Linux:*:*) GUESS=powerpc64-unknown-linux-$LIBC ;; ppc:Linux:*:*) GUESS=powerpc-unknown-linux-$LIBC ;; ppc64le:Linux:*:*) GUESS=powerpc64le-unknown-linux-$LIBC ;; ppcle:Linux:*:*) GUESS=powerpcle-unknown-linux-$LIBC ;; riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; s390:Linux:*:* | s390x:Linux:*:*) GUESS=$UNAME_MACHINE-ibm-linux-$LIBC ;; sh64*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sh*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; sparc:Linux:*:* | sparc64:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; tile*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; vax:Linux:*:*) GUESS=$UNAME_MACHINE-dec-linux-$LIBC ;; x86_64:Linux:*:*) set_cc_for_build CPU=$UNAME_MACHINE LIBCABI=$LIBC if test "$CC_FOR_BUILD" != no_compiler_found; then ABI=64 sed 's/^ //' << EOF > "$dummy.c" #ifdef __i386__ ABI=x86 #else #ifdef __ILP32__ ABI=x32 #endif #endif EOF cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` eval "$cc_set_abi" case $ABI in x86) CPU=i686 ;; x32) LIBCABI=${LIBC}x32 ;; esac fi GUESS=$CPU-pc-linux-$LIBCABI ;; xtensa*:Linux:*:*) GUESS=$UNAME_MACHINE-unknown-linux-$LIBC ;; 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. GUESS=i386-sequent-sysv4 ;; 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. GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. GUESS=$UNAME_MACHINE-pc-os2-emx ;; i*86:XTS-300:*:STOP) GUESS=$UNAME_MACHINE-unknown-stop ;; i*86:atheos:*:*) GUESS=$UNAME_MACHINE-unknown-atheos ;; i*86:syllable:*:*) GUESS=$UNAME_MACHINE-pc-syllable ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) GUESS=i386-unknown-lynxos$UNAME_RELEASE ;; i*86:*DOS:*:*) GUESS=$UNAME_MACHINE-pc-msdosdjgpp ;; i*86:*:4.*:*) UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL fi ;; 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 GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} ;; 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 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL else GUESS=$UNAME_MACHINE-pc-sysv32 fi ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configure will decide that # this is a cross-build. GUESS=i586-pc-msdosdjgpp ;; Intel:Mach:3*:*) GUESS=i386-pc-mach3 ;; paragon:*:*:*) GUESS=i860-intel-osf1 ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 fi ;; mini*:CTIX:SYS*5:*) # "miniframe" GUESS=m68010-convergent-sysv ;; mc68k:UNIX:SYSTEM5:3.51m) GUESS=m68k-convergent-sysv ;; M680?0:D-NIX:5.3:*) GUESS=m68k-diab-dnix ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) GUESS=m68k-unknown-lynxos$UNAME_RELEASE ;; mc68030:UNIX_System_V:4.*:*) GUESS=m68k-atari-sysv4 ;; TSUNAMI:LynxOS:2.*:*) GUESS=sparc-unknown-lynxos$UNAME_RELEASE ;; rs6000:LynxOS:2.*:*) GUESS=rs6000-unknown-lynxos$UNAME_RELEASE ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) GUESS=powerpc-unknown-lynxos$UNAME_RELEASE ;; SM[BE]S:UNIX_SV:*:*) GUESS=mips-dde-sysv$UNAME_RELEASE ;; RM*:ReliantUNIX-*:*:*) GUESS=mips-sni-sysv4 ;; RM*:SINIX-*:*:*) GUESS=mips-sni-sysv4 ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` GUESS=$UNAME_MACHINE-sni-sysv4 else GUESS=ns32k-sni-sysv fi ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says GUESS=i586-unisys-sysv4 ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm GUESS=hppa1.1-stratus-sysv4 ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. GUESS=i860-stratus-sysv4 ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. GUESS=$UNAME_MACHINE-stratus-vos ;; *:VOS:*:*) # From Paul.Green@stratus.com. GUESS=hppa1.1-stratus-vos ;; mc68*:A/UX:*:*) GUESS=m68k-apple-aux$UNAME_RELEASE ;; news*:NEWS-OS:6*:*) GUESS=mips-sony-newsos6 ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if test -d /usr/nec; then GUESS=mips-nec-sysv$UNAME_RELEASE else GUESS=mips-unknown-sysv$UNAME_RELEASE fi ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. GUESS=powerpc-be-beos ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. GUESS=powerpc-apple-beos ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. GUESS=i586-pc-beos ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. GUESS=i586-pc-haiku ;; ppc:Haiku:*:*) # Haiku running on Apple PowerPC GUESS=powerpc-apple-haiku ;; *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) GUESS=$UNAME_MACHINE-unknown-haiku ;; SX-4:SUPER-UX:*:*) GUESS=sx4-nec-superux$UNAME_RELEASE ;; SX-5:SUPER-UX:*:*) GUESS=sx5-nec-superux$UNAME_RELEASE ;; SX-6:SUPER-UX:*:*) GUESS=sx6-nec-superux$UNAME_RELEASE ;; SX-7:SUPER-UX:*:*) GUESS=sx7-nec-superux$UNAME_RELEASE ;; SX-8:SUPER-UX:*:*) GUESS=sx8-nec-superux$UNAME_RELEASE ;; SX-8R:SUPER-UX:*:*) GUESS=sx8r-nec-superux$UNAME_RELEASE ;; SX-ACE:SUPER-UX:*:*) GUESS=sxace-nec-superux$UNAME_RELEASE ;; Power*:Rhapsody:*:*) GUESS=powerpc-apple-rhapsody$UNAME_RELEASE ;; *:Rhapsody:*:*) GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE ;; arm64:Darwin:*:*) GUESS=aarch64-apple-darwin$UNAME_RELEASE ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac if command -v xcode-select > /dev/null 2> /dev/null && \ ! xcode-select --print-path > /dev/null 2> /dev/null ; then # Avoid executing cc if there is no toolchain installed as # cc will be a stub that puts up a graphical alert # prompting the user to install developer tools. CC_FOR_BUILD=no_compiler_found else set_cc_for_build fi if test "$CC_FOR_BUILD" != no_compiler_found; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_PPC >/dev/null then UNAME_PROCESSOR=powerpc fi elif test "$UNAME_PROCESSOR" = i386 ; then # uname -m returns i386 or x86_64 UNAME_PROCESSOR=$UNAME_MACHINE fi GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE ;; *:QNX:*:4*) GUESS=i386-pc-qnx ;; NEO-*:NONSTOP_KERNEL:*:*) GUESS=neo-tandem-nsk$UNAME_RELEASE ;; NSE-*:NONSTOP_KERNEL:*:*) GUESS=nse-tandem-nsk$UNAME_RELEASE ;; NSR-*:NONSTOP_KERNEL:*:*) GUESS=nsr-tandem-nsk$UNAME_RELEASE ;; NSV-*:NONSTOP_KERNEL:*:*) GUESS=nsv-tandem-nsk$UNAME_RELEASE ;; NSX-*:NONSTOP_KERNEL:*:*) GUESS=nsx-tandem-nsk$UNAME_RELEASE ;; *:NonStop-UX:*:*) GUESS=mips-compaq-nonstopux ;; BS2000:POSIX*:*:*) GUESS=bs2000-siemens-sysv ;; DS/*:UNIX_System_V:*:*) GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE ;; *: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 elif test "x${cputype-}" != x; then UNAME_MACHINE=$cputype fi GUESS=$UNAME_MACHINE-unknown-plan9 ;; *:TOPS-10:*:*) GUESS=pdp10-unknown-tops10 ;; *:TENEX:*:*) GUESS=pdp10-unknown-tenex ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) GUESS=pdp10-dec-tops20 ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) GUESS=pdp10-xkl-tops20 ;; *:TOPS-20:*:*) GUESS=pdp10-unknown-tops20 ;; *:ITS:*:*) GUESS=pdp10-unknown-its ;; SEI:*:*:SEIUX) GUESS=mips-sei-seiux$UNAME_RELEASE ;; *:DragonFly:*:*) DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case $UNAME_MACHINE in A*) GUESS=alpha-dec-vms ;; I*) GUESS=ia64-dec-vms ;; V*) GUESS=vax-dec-vms ;; esac ;; *:XENIX:*:SysV) GUESS=i386-pc-xenix ;; i*86:skyos:*:*) SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL ;; i*86:rdos:*:*) GUESS=$UNAME_MACHINE-pc-rdos ;; i*86:Fiwix:*:*) GUESS=$UNAME_MACHINE-pc-fiwix ;; *:AROS:*:*) GUESS=$UNAME_MACHINE-unknown-aros ;; x86_64:VMkernel:*:*) GUESS=$UNAME_MACHINE-unknown-esx ;; amd64:Isilon\ OneFS:*:*) GUESS=x86_64-unknown-onefs ;; *:Unleashed:*:*) GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE ;; esac # Do we have a guess based on uname results? if test "x$GUESS" != x; then echo "$GUESS" exit fi # No uname command or uname output not recognized. set_cc_for_build cat > "$dummy.c" < #include #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #include #if defined(_SIZE_T_) || defined(SIGLOST) #include #endif #endif #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 (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 #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname un; uname (&un); printf ("vax-dec-ultrix%s\n", un.release); exit (0); #else printf ("vax-dec-ultrix\n"); exit (0); #endif #endif #endif #if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) #if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) #if defined(_SIZE_T_) || defined(SIGLOST) struct utsname *un; uname (&un); printf ("mips-dec-ultrix%s\n", un.release); exit (0); #else printf ("mips-dec-ultrix\n"); exit (0); #endif #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; } echo "$0: unable to guess system type" >&2 case $UNAME_MACHINE:$UNAME_SYSTEM in mips:Linux | mips64:Linux) # If we got here on MIPS GNU/Linux, output extra information. cat >&2 <&2 <&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 fi exit 1 # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: xmp-4.2.0/build-aux/install-sh0000755000000000000000000003577614442671646014755 0ustar rootroot#!/bin/sh # install - install a program, script, or datafile scriptversion=2020-11-14.01; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_mkdir= # Desired mode of installed file. mode=0755 # Create dirs (including intermediate dirs) using mode 755. # This is like GNU 'install' as of coreutils 8.32 (2020). mkdir_umask=22 backupsuffix= chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false is_target_a_directory=possibly usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -p pass -p to $cpprog. -s $stripprog installed files. -S SUFFIX attempt to back up existing files, with suffix SUFFIX. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG By default, rm is invoked with -f; when overridden with RMPROG, it's up to you to specify -f if you want it. If -S is not specified, no backups are attempted. Email bug reports to bug-automake@gnu.org. Automake home page: https://www.gnu.org/software/automake/ " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -p) cpprog="$cpprog -p";; -s) stripcmd=$stripprog;; -S) backupsuffix="$2" shift;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? # Don't chown directories that already exist. if test $dstdir_status = 0; then chowncmd="" 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 "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename. if test -d "$dst"; then if test "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dstbase=`basename "$src"` case $dst in */) dst=$dst$dstbase;; *) dst=$dst/$dstbase;; esac dstdir_status=0 else dstdir=`dirname "$dst"` test -d "$dstdir" dstdir_status=$? fi fi case $dstdir in */) dstdirslash=$dstdir;; *) dstdirslash=$dstdir/;; esac obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false # The $RANDOM variable is not portable (e.g., dash). Use it # here however when possible just to lower collision chance. tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap ' ret=$? rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null exit $ret ' 0 # Because "mkdir -p" follows existing symlinks and we likely work # directly in world-writeable /tmp, make sure that the '$tmpdir' # directory is successfully created first before we actually test # 'mkdir -p'. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null fi trap '' 0;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac oIFS=$IFS IFS=/ set -f set fnord $dstdir shift set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=${dstdirslash}_inst.$$_ rmtmp=${dstdirslash}_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && { test -z "$stripcmd" || { # Create $dsttmp read-write so that cp doesn't create it read-only, # which would cause strip to fail. if test -z "$doit"; then : >"$dsttmp" # No need to fork-exec 'touch'. else $doit touch "$dsttmp" fi } } && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # If $backupsuffix is set, and the file being installed # already exists, attempt a backup. Don't worry if it fails, # e.g., if mv doesn't support -f. if test -n "$backupsuffix" && test -f "$dst"; then $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null fi # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: xmp-4.2.0/build-aux/missing0000755000000000000000000001533614442671646014336 0ustar rootroot#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2018-03-07.03; # UTC # Copyright (C) 1996-2021 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi case $1 in --is-lightweight) # Used by our autoconf macros to check whether the available missing # script is modern enough. exit 0 ;; --run) # Back-compat with the calling convention used by older automake. shift ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit Supported PROGRAM values: aclocal autoconf autoheader autom4te automake makeinfo bison yacc flex lex help2man Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # Run the given program, remember its exit status. "$@"; st=$? # If it succeeded, we are done. test $st -eq 0 && exit 0 # Also exit now if we it failed (or wasn't found), and '--version' was # passed; such an option is passed most likely to detect whether the # program is present and works. case $2 in --version|--help) exit $st;; esac # Exit code 63 means version mismatch. This often happens when the user # tries to use an ancient version of a tool on a file that requires a # minimum version. if test $st -eq 63; then msg="probably too old" elif test $st -eq 127; then # Program was missing. msg="missing on your system" else # Program was found and executed, but failed. Give up. exit $st fi perl_URL=https://www.perl.org/ flex_URL=https://github.com/westes/flex gnu_software_URL=https://www.gnu.org/software program_details () { case $1 in aclocal|automake) echo "The '$1' program is part of the GNU Automake package:" echo "<$gnu_software_URL/automake>" echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/autoconf>" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; autoconf|autom4te|autoheader) echo "The '$1' program is part of the GNU Autoconf package:" echo "<$gnu_software_URL/autoconf/>" echo "It also requires GNU m4 and Perl in order to run:" echo "<$gnu_software_URL/m4/>" echo "<$perl_URL>" ;; esac } give_advice () { # Normalize program name to check for. normalized_program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` printf '%s\n' "'$1' is $msg." configure_deps="'configure.ac' or m4 files included by 'configure.ac'" case $normalized_program in autoconf*) echo "You should only need it if you modified 'configure.ac'," echo "or m4 files included by it." program_details 'autoconf' ;; autoheader*) echo "You should only need it if you modified 'acconfig.h' or" echo "$configure_deps." program_details 'autoheader' ;; automake*) echo "You should only need it if you modified 'Makefile.am' or" echo "$configure_deps." program_details 'automake' ;; aclocal*) echo "You should only need it if you modified 'acinclude.m4' or" echo "$configure_deps." program_details 'aclocal' ;; autom4te*) echo "You might have modified some maintainer files that require" echo "the 'autom4te' program to be rebuilt." program_details 'autom4te' ;; bison*|yacc*) echo "You should only need it if you modified a '.y' file." echo "You may want to install the GNU Bison package:" echo "<$gnu_software_URL/bison/>" ;; lex*|flex*) echo "You should only need it if you modified a '.l' file." echo "You may want to install the Fast Lexical Analyzer package:" echo "<$flex_URL>" ;; help2man*) echo "You should only need it if you modified a dependency" \ "of a man page." echo "You may want to install the GNU Help2man package:" echo "<$gnu_software_URL/help2man/>" ;; makeinfo*) echo "You should only need it if you modified a '.texi' file, or" echo "any other file indirectly affecting the aspect of the manual." echo "You might want to install the Texinfo package:" echo "<$gnu_software_URL/texinfo/>" echo "The spurious makeinfo call might also be the consequence of" echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" echo "want to install GNU make:" echo "<$gnu_software_URL/make/>" ;; *) echo "You might have modified some files without having the proper" echo "tools for further handling them. Check the 'README' file, it" echo "often tells you about the needed prerequisites for installing" echo "this package. You may also peek at any GNU archive site, in" echo "case some other package contains this missing '$1' program." ;; esac } give_advice "$1" | sed -e '1s/^/WARNING: /' \ -e '2,$s/^/ /' >&2 # Propagate the correct exit status (expected to be 127 for a program # not found, 63 for a program that failed due to version mismatch). exit $st # Local variables: # eval: (add-hook 'before-save-hook 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC0" # time-stamp-end: "; # UTC" # End: xmp-4.2.0/Makefile.os20000644000000000000000000000143314442670136013171 0ustar rootroot# Makefile for OS/2 using Watcom compiler. # # wmake -f Makefile.os2 # - builds using libxmp.dll and its import lib (libxmp.lib) # # wmake -f Makefile.os2 target=static # - builds using the static library xmp_static.lib # !ifndef target target = dll !endif # change libxmp_path as needed (or specify on the wmake cmdline) !ifndef libxmp_path libxmp_path = ../libxmp !endif CC=wcc386 SYSTEM=os2v2 CFLAGS = -bt=os2 -bm -fp5 -fpi87 -mf -oeatxh -w4 -zp8 -ei -q # newer OpenWatcom versions enable W303 by default. CFLAGS += -wcd=303 # -5s : Pentium stack calling conventions. # -5r : Pentium register calling conventions. CFLAGS += -5s INCLUDES = -I"$(%WATCOM)/h/os2" -I"$(%WATCOM)/h" # for sound_dart: CPPFLAGS = -DSOUND_OS2DART OS_OBJS = sound_dart.obj LIBS = mmpm2.lib !include watcom.mif xmp-4.2.0/README0000644000000000000000000000523414442670136011712 0ustar rootroot ___ ___ ____________ \ \/ // ____ \ > <| Y Y \ |_> > /__/\ __|_| / ___/ \_/ \/|_| E x t e n d e d M o d u l e P l a y e r Version 4.2 OVERVIEW This is the Extended Module Player, a portable module player that plays over 90 mainstream and obscure module formats, including Protracker MOD, Fasttracker II XM, Scream Tracker 3 S3M and Impulse Tracker IT files. Run xmp --help for a list of available options, or xmp -L to list the supported module formats. INTERACTIVE COMMANDS The following single key commands can be used during the playback: q, ESC => quit the player f, Right-arrow => jump to next pattern b, Left-arrow => jump to previous pattern n, Up-arrow => jump to next module p, Down-arrow => jump to previous module Space => pause/unpause 1 to 0 => mute/unmute channels 1 to 10 ! => unmute all channels ? => display available commands X => display current mixer type Z => display current sequence z => toggle subsong explorer mode l => toggle loop mode m => display module information i => display combined instrument/sample list I => display instrument list S => display sample list c => display comment, if any < => jump to previous sequence > => jump to next sequence Interactive mode can be disabled using the --nocmd command line option. FEEDBACK Send your comments and bug reports to xmp-devel@lists.sourceforge.net, or directly to cmatsuoka@gmail.com. LICENSE Extended Module Player Copyright (C) 1996-2022 Claudio Matsuoka and Hipolito Carraro Jr This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You 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. xmp-4.2.0/Makefile.in0000644000000000000000000006125014442671646013106 0ustar rootroot# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ # -*- Makefile -*- VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ $(am__configure_deps) $(am__DIST_COMMON) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir distdir-am dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/compile \ $(top_srcdir)/build-aux/config.guess \ $(top_srcdir)/build-aux/config.sub \ $(top_srcdir)/build-aux/install-sh \ $(top_srcdir)/build-aux/missing COPYING INSTALL README \ build-aux/compile build-aux/config.guess build-aux/config.sub \ build-aux/depcomp build-aux/install-sh build-aux/missing DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip # Exists only to be overridden by the user if desired. AM_DISTCHECK_DVI_TARGET = dvi distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CXXLD = @CXXLD@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LD_VERSCRIPT = @LD_VERSCRIPT@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBXMP_CFLAGS = @LIBXMP_CFLAGS@ LIBXMP_LIBS = @LIBXMP_LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ XMP_DARWIN_LDFLAGS = @XMP_DARWIN_LDFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ alsa_CFLAGS = @alsa_CFLAGS@ alsa_LIBS = @alsa_LIBS@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pulseaudio_CFLAGS = @pulseaudio_CFLAGS@ pulseaudio_LIBS = @pulseaudio_LIBS@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = src EXTRA_DIST = CREDITS Changelog autogen.sh girl_from_mars.xm \ Makefile.dos Makefile.os2 Makefile.w32 watcom.mif \ vc/xmp.vcproj vc/xmp.sln all: all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile 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__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-zstd: distdir tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst $(am__post_remove_distdir) dist-tarZ: distdir @echo WARNING: "Support for distribution archives compressed with" \ "legacy program 'compress' is deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir @echo WARNING: "Support for shar distribution archives is" \ "deprecated." >&2 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ *.tar.zst*) \ zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build/sub \ && ../../configure \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile 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: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(am__recursive_targets) install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ dist-zstd distcheck distclean distclean-generic distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags tags-am uninstall uninstall-am .PRECIOUS: Makefile # 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: xmp-4.2.0/vc/0000755000000000000000000000000014442671646011445 5ustar rootrootxmp-4.2.0/vc/xmp.sln0000644000000000000000000000126514442670136012764 0ustar rootroot Microsoft Visual Studio Solution File, Format Version 10.00 # Visual C++ Express 2008 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xmp", "xmp.vcproj", "{A25F83C3-6C57-4DD7-939E-3F4F44F22345}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Release|Win32 = Release|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {A25F83C3-6C57-4DD7-939E-3F4F44F22345}.Release|Win32.ActiveCfg = Release|Win32 {A25F83C3-6C57-4DD7-939E-3F4F44F22345}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal xmp-4.2.0/vc/xmp.vcproj0000644000000000000000000000656514442670136013503 0ustar rootroot xmp-4.2.0/configure0000755000000000000000000066774314442671646012773 0ustar rootroot#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for xmp 4.2.0. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='xmp' PACKAGE_TARNAME='xmp' PACKAGE_VERSION='4.2.0' PACKAGE_STRING='xmp 4.2.0' PACKAGE_BUGREPORT='' PACKAGE_URL='' # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS XMP_DARWIN_LDFLAGS pulseaudio_LIBS pulseaudio_CFLAGS alsa_LIBS alsa_CFLAGS SOUND_WIN32_FALSE SOUND_WIN32_TRUE SOUND_OS2DART_FALSE SOUND_OS2DART_TRUE SOUND_SOLARIS_FALSE SOUND_SOLARIS_TRUE SOUND_SNDIO_FALSE SOUND_SNDIO_TRUE SOUND_SGI_FALSE SOUND_SGI_TRUE SOUND_SB_FALSE SOUND_SB_TRUE SOUND_QNX_FALSE SOUND_QNX_TRUE SOUND_PULSEAUDIO_FALSE SOUND_PULSEAUDIO_TRUE SOUND_OSS_FALSE SOUND_OSS_TRUE SOUND_NETBSD_FALSE SOUND_NETBSD_TRUE SOUND_HPUX_FALSE SOUND_HPUX_TRUE SOUND_COREAUDIO_FALSE SOUND_COREAUDIO_TRUE SOUND_BSD_FALSE SOUND_BSD_TRUE SOUND_BEOS_FALSE SOUND_BEOS_TRUE SOUND_ALSA_FALSE SOUND_ALSA_TRUE SOUND_ALSA05_FALSE SOUND_ALSA05_TRUE SOUND_AIX_FALSE SOUND_AIX_TRUE SOUND_AHI_FALSE SOUND_AHI_TRUE EGREP GREP CPP LIBXMP_LIBS LIBXMP_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG CSCOPE ETAGS CTAGS am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__include DEPDIR am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM CXXLD ac_ct_CXX CXXFLAGS CXX OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC host_os host_vendor host_cpu host build_os build_vendor build_cpu build LD_VERSCRIPT AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL am__quote' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_oss enable_alsa enable_pulseaudio enable_sndio enable_dependency_tracking with_libxmp_lite ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CXX CXXFLAGS CCC PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR LIBXMP_CFLAGS LIBXMP_LIBS CPP alsa_CFLAGS alsa_LIBS pulseaudio_CFLAGS pulseaudio_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures xmp 4.2.0 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/xmp] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of xmp 4.2.0:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --disable-oss don't compile OSS support --disable-alsa don't compile ALSA support --enable-pulseaudio compile PulseAudio support --disable-sndio don't compile sndio support --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-libxmp-lite build against libxmp-lite instead of libxmp Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CXX C++ compiler command CXXFLAGS C++ compiler flags PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path LIBXMP_CFLAGS C compiler flags for LIBXMP, overriding pkg-config LIBXMP_LIBS linker flags for LIBXMP, overriding pkg-config CPP C preprocessor alsa_CFLAGS C compiler flags for alsa, overriding pkg-config alsa_LIBS linker flags for alsa, overriding pkg-config pulseaudio_CFLAGS C compiler flags for pulseaudio, overriding pkg-config pulseaudio_LIBS linker flags for pulseaudio, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF xmp configure 4.2.0 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_try_run LINENO # ---------------------- # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that # executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES # ---------------------------------------------------- # Tries to find if the field MEMBER exists in type AGGR, after including # INCLUDES, setting cache variable VAR accordingly. ac_fn_c_check_member () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 $as_echo_n "checking for $2.$3... " >&6; } if eval \${$4+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main () { static $2 ac_aggr; if (ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$4=yes" else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $5 int main () { static $2 ac_aggr; if (sizeof ac_aggr.$3) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$4=yes" else eval "$4=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$4 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_member # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func 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 xmp $as_me 4.2.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Sanitize IFS. IFS=" "" $as_nl" # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=0;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' ac_aux_dir= for ac_dir in build-aux "$srcdir"/build-aux; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 0>confdefs.h # Check whether --enable-oss was given. if test "${enable_oss+set}" = set; then : enableval=$enable_oss; fi # Check whether --enable-alsa was given. if test "${enable_alsa+set}" = set; then : enableval=$enable_alsa; fi # Check whether --enable-pulseaudio was given. if test "${enable_pulseaudio+set}" = set; then : enableval=$enable_pulseaudio; fi # Check whether --enable-sndio was given. if test "${enable_sndio+set}" = set; then : enableval=$enable_sndio; fi # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" = maybe && test "x$build" != "x$host"; then cross_compiling=yes elif test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$am_cv_prog_cc_c_o" >&6; } if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu case "$host_os" in beos*|haiku*) if ! which "$CXX" >/dev/null 2>/dev/null; then : as_fn_error $? "C++ compiler required on this platform ($host_os)" "$LINENO" 5 fi CXXLD='$(CXX)' ;; *) # Do not error out on linking when g++ is absent. CXXLD='$(CCLD)' ;; esac # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' am__api_version='1.16' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` if test x"${MISSING+set}" != xset; then MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } case $?:`cat confinc.out 2>/dev/null` in #( '0:this is the am__doit target') : case $s in #( BSD) : am__include='.include' am__quote='"' ;; #( *) : am__include='include' am__quote='' ;; esac ;; #( *) : ;; esac if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 $as_echo "${_am_result}" >&6; } # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='xmp' VERSION='4.2.0' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi if test -z "$ETAGS"; then ETAGS=etags fi if test -z "$CSCOPE"; then CSCOPE=cscope fi # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 fi fi # Check whether --with-libxmp-lite was given. if test "${with_libxmp_lite+set}" = set; then : withval=$with_libxmp_lite; xmplib="$withval" else xmplib=xmp fi case "$xmplib" in no|xmp) xmplib=xmp ;; *) xmplib=xmp-lite ;; esac old_LIBS="${LIBS}" old_CPPFLAGS="${CPPFLAGS}" if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lib$xmplib >= 4.4" >&5 $as_echo_n "checking for lib$xmplib >= 4.4... " >&6; } if test -n "$LIBXMP_CFLAGS"; then pkg_cv_LIBXMP_CFLAGS="$LIBXMP_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lib\$xmplib >= 4.4\""; } >&5 ($PKG_CONFIG --exists --print-errors "lib$xmplib >= 4.4") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXMP_CFLAGS=`$PKG_CONFIG --cflags "lib$xmplib >= 4.4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$LIBXMP_LIBS"; then pkg_cv_LIBXMP_LIBS="$LIBXMP_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lib\$xmplib >= 4.4\""; } >&5 ($PKG_CONFIG --exists --print-errors "lib$xmplib >= 4.4") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_LIBXMP_LIBS=`$PKG_CONFIG --libs "lib$xmplib >= 4.4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then LIBXMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lib$xmplib >= 4.4" 2>&1` else LIBXMP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lib$xmplib >= 4.4" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$LIBXMP_PKG_ERRORS" >&5 echo "You need libxmp version 4.4 or later to build this package"; exit 1 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } echo "You need libxmp version 4.4 or later to build this package"; exit 1 else LIBXMP_CFLAGS=$pkg_cv_LIBXMP_CFLAGS LIBXMP_LIBS=$pkg_cv_LIBXMP_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking linkage to lib$xmplib" >&5 $as_echo_n "checking linkage to lib$xmplib... " >&6; } LIBS="${LIBXMP_LIBS}" CPPFLAGS="${CPPFLAGS} ${LIBXMP_CFLAGS}" # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return xmp_set_player((char*)0,0,0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBS="${old_LIBS}" { $as_echo "$as_me:${as_lineno-$LINENO}: result: success" >&5 $as_echo "success" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed:" >&5 $as_echo "failed:" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking linkage to lib$xmplib with -lm" >&5 $as_echo_n "checking linkage to lib$xmplib with -lm... " >&6; } LIBS="${LIBS} -lm" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return xmp_set_player((char*)0,0,0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBS="${old_LIBS} -lm" { $as_echo "$as_me:${as_lineno-$LINENO}: result: success" >&5 $as_echo "success" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 $as_echo "failed" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 1 "linkage to lib$xmplib failed See \`config.log' for more details" "$LINENO" 5; } fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="${old_CPPFLAGS}" fix_prefix=no if test "x$prefix" = xNONE; then fix_prefix=yes elif test "x$prefix" = x/usr -o "x$prefix" = x/usr/local; then fix_prefix=yes fi if test $fix_prefix = yes -a $sysconfdir = '${prefix}/etc'; then sysconfdir=/etc localstatedir=/var fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in sys/types.h unistd.h getopt.h signal.h sys/select.h sys/time.h sys/audioio.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done case $host_os in amigaos*|aros*|morphos*|*djgpp) ;; *) for ac_header in termios.h do : ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" if test "x$ac_cv_header_termios_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_TERMIOS_H 1 _ACEOF fi done ;; esac case "$host_cpu" in powerpc64) CFLAGS="${CFLAGS} -m64" LDFLAGS="${LDFLAGS} -m64" ;; esac if false; then SOUND_AHI_TRUE= SOUND_AHI_FALSE='#' else SOUND_AHI_TRUE='#' SOUND_AHI_FALSE= fi if false; then SOUND_AIX_TRUE= SOUND_AIX_FALSE='#' else SOUND_AIX_TRUE='#' SOUND_AIX_FALSE= fi if false; then SOUND_ALSA05_TRUE= SOUND_ALSA05_FALSE='#' else SOUND_ALSA05_TRUE='#' SOUND_ALSA05_FALSE= fi if false; then SOUND_ALSA_TRUE= SOUND_ALSA_FALSE='#' else SOUND_ALSA_TRUE='#' SOUND_ALSA_FALSE= fi if false; then SOUND_BEOS_TRUE= SOUND_BEOS_FALSE='#' else SOUND_BEOS_TRUE='#' SOUND_BEOS_FALSE= fi if false; then SOUND_BSD_TRUE= SOUND_BSD_FALSE='#' else SOUND_BSD_TRUE='#' SOUND_BSD_FALSE= fi if false; then SOUND_COREAUDIO_TRUE= SOUND_COREAUDIO_FALSE='#' else SOUND_COREAUDIO_TRUE='#' SOUND_COREAUDIO_FALSE= fi if false; then SOUND_HPUX_TRUE= SOUND_HPUX_FALSE='#' else SOUND_HPUX_TRUE='#' SOUND_HPUX_FALSE= fi if false; then SOUND_NETBSD_TRUE= SOUND_NETBSD_FALSE='#' else SOUND_NETBSD_TRUE='#' SOUND_NETBSD_FALSE= fi if false; then SOUND_OSS_TRUE= SOUND_OSS_FALSE='#' else SOUND_OSS_TRUE='#' SOUND_OSS_FALSE= fi if false; then SOUND_PULSEAUDIO_TRUE= SOUND_PULSEAUDIO_FALSE='#' else SOUND_PULSEAUDIO_TRUE='#' SOUND_PULSEAUDIO_FALSE= fi if false; then SOUND_QNX_TRUE= SOUND_QNX_FALSE='#' else SOUND_QNX_TRUE='#' SOUND_QNX_FALSE= fi if false; then SOUND_SB_TRUE= SOUND_SB_FALSE='#' else SOUND_SB_TRUE='#' SOUND_SB_FALSE= fi if false; then SOUND_SGI_TRUE= SOUND_SGI_FALSE='#' else SOUND_SGI_TRUE='#' SOUND_SGI_FALSE= fi if false; then SOUND_SNDIO_TRUE= SOUND_SNDIO_FALSE='#' else SOUND_SNDIO_TRUE='#' SOUND_SNDIO_FALSE= fi if false; then SOUND_SOLARIS_TRUE= SOUND_SOLARIS_FALSE='#' else SOUND_SOLARIS_TRUE='#' SOUND_SOLARIS_FALSE= fi if false; then SOUND_OS2DART_TRUE= SOUND_OS2DART_FALSE='#' else SOUND_OS2DART_TRUE='#' SOUND_OS2DART_FALSE= fi if false; then SOUND_WIN32_TRUE= SOUND_WIN32_FALSE='#' else SOUND_WIN32_TRUE='#' SOUND_WIN32_FALSE= fi if test "${enable_oss}" != "no"; then for ac_header in sys/soundcard.h machine/soundcard.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "${ac_cv_header_sys_soundcard_h}" = "yes" -o "${ac_cv_header_machine_soundcard_h}" = "yes"; then $as_echo "#define SOUND_OSS 1" >>confdefs.h if true; then SOUND_OSS_TRUE= SOUND_OSS_FALSE='#' else SOUND_OSS_TRUE='#' SOUND_OSS_FALSE= fi fi fi if test "$enable_alsa" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alsa >= 1" >&5 $as_echo_n "checking for alsa >= 1... " >&6; } if test -n "$alsa_CFLAGS"; then pkg_cv_alsa_CFLAGS="$alsa_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 1\""; } >&5 ($PKG_CONFIG --exists --print-errors "alsa >= 1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_alsa_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$alsa_LIBS"; then pkg_cv_alsa_LIBS="$alsa_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 1\""; } >&5 ($PKG_CONFIG --exists --print-errors "alsa >= 1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_alsa_LIBS=`$PKG_CONFIG --libs "alsa >= 1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then alsa_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa >= 1" 2>&1` else alsa_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa >= 1" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$alsa_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (alsa >= 1) were not met: $alsa_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables alsa_CFLAGS and alsa_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables alsa_CFLAGS and alsa_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else alsa_CFLAGS=$pkg_cv_alsa_CFLAGS alsa_LIBS=$pkg_cv_alsa_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } enable_alsa=yes fi else if test "$enable_alsa" != "no"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alsa >= 1" >&5 $as_echo_n "checking for alsa >= 1... " >&6; } if test -n "$alsa_CFLAGS"; then pkg_cv_alsa_CFLAGS="$alsa_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 1\""; } >&5 ($PKG_CONFIG --exists --print-errors "alsa >= 1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_alsa_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$alsa_LIBS"; then pkg_cv_alsa_LIBS="$alsa_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa >= 1\""; } >&5 ($PKG_CONFIG --exists --print-errors "alsa >= 1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_alsa_LIBS=`$PKG_CONFIG --libs "alsa >= 1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then alsa_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa >= 1" 2>&1` else alsa_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa >= 1" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$alsa_PKG_ERRORS" >&5 true elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } true else alsa_CFLAGS=$pkg_cv_alsa_CFLAGS alsa_LIBS=$pkg_cv_alsa_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_open in -lasound" >&5 $as_echo_n "checking for snd_pcm_open in -lasound... " >&6; } if ${ac_cv_lib_asound_snd_pcm_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lasound $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char snd_pcm_open (); int main () { return snd_pcm_open (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_asound_snd_pcm_open=yes else ac_cv_lib_asound_snd_pcm_open=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_open" >&5 $as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; } if test "x$ac_cv_lib_asound_snd_pcm_open" = xyes; then : enable_alsa=yes fi fi fi fi if test "$enable_alsa" = "yes"; then : $as_echo "#define SOUND_ALSA 1" >>confdefs.h if true; then SOUND_ALSA_TRUE= SOUND_ALSA_FALSE='#' else SOUND_ALSA_TRUE='#' SOUND_ALSA_FALSE= fi fi if test "$enable_pulseaudio" = "yes"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple" >&5 $as_echo_n "checking for libpulse-simple... " >&6; } if test -n "$pulseaudio_CFLAGS"; then pkg_cv_pulseaudio_CFLAGS="$pulseaudio_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_pulseaudio_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$pulseaudio_LIBS"; then pkg_cv_pulseaudio_LIBS="$pulseaudio_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_pulseaudio_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then pulseaudio_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple" 2>&1` else pulseaudio_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$pulseaudio_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (libpulse-simple) were not met: $pulseaudio_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables pulseaudio_CFLAGS and pulseaudio_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables pulseaudio_CFLAGS and pulseaudio_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else pulseaudio_CFLAGS=$pkg_cv_pulseaudio_CFLAGS pulseaudio_LIBS=$pkg_cv_pulseaudio_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } enable_pulseaudio=yes fi else if test "$enable_pulseaudio" != "no"; then : pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple" >&5 $as_echo_n "checking for libpulse-simple... " >&6; } if test -n "$pulseaudio_CFLAGS"; then pkg_cv_pulseaudio_CFLAGS="$pulseaudio_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_pulseaudio_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$pulseaudio_LIBS"; then pkg_cv_pulseaudio_LIBS="$pulseaudio_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\""; } >&5 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_pulseaudio_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then pulseaudio_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple" 2>&1` else pulseaudio_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$pulseaudio_PKG_ERRORS" >&5 true elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } true else pulseaudio_CFLAGS=$pkg_cv_pulseaudio_CFLAGS pulseaudio_LIBS=$pkg_cv_pulseaudio_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_simple_new in -lpulse-simple" >&5 $as_echo_n "checking for pa_simple_new in -lpulse-simple... " >&6; } if ${ac_cv_lib_pulse_simple_pa_simple_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpulse-simple $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pa_simple_new (); int main () { return pa_simple_new (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pulse_simple_pa_simple_new=yes else ac_cv_lib_pulse_simple_pa_simple_new=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_simple_pa_simple_new" >&5 $as_echo "$ac_cv_lib_pulse_simple_pa_simple_new" >&6; } if test "x$ac_cv_lib_pulse_simple_pa_simple_new" = xyes; then : enable_pulseaudio=yes fi fi fi fi if test "$enable_pulseaudio" = "yes"; then : $as_echo "#define SOUND_PULSEAUDIO 1" >>confdefs.h if true; then SOUND_PULSEAUDIO_TRUE= SOUND_PULSEAUDIO_FALSE='#' else SOUND_PULSEAUDIO_TRUE='#' SOUND_PULSEAUDIO_FALSE= fi fi if test "${enable_sndio}" != "no"; then ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default" if test "x$ac_cv_header_sndio_h" = xyes; then : fi if test "${ac_cv_header_sndio_h}" = "yes"; then $as_echo "#define SOUND_SNDIO 1" >>confdefs.h if true; then SOUND_SNDIO_TRUE= SOUND_SNDIO_FALSE='#' else SOUND_SNDIO_TRUE='#' SOUND_SNDIO_FALSE= fi fi fi case "${host_os}" in amigaos*|aros*|morphos*) $as_echo "#define SOUND_AHI 1" >>confdefs.h if true; then SOUND_AHI_TRUE= SOUND_AHI_FALSE='#' else SOUND_AHI_TRUE='#' SOUND_AHI_FALSE= fi ;; darwin*) for ac_header in AudioUnit/AudioComponent.h CoreAudio/CoreAudio.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done if test "${ac_cv_header_CoreAudio_CoreAudio_h}" = "yes"; then $as_echo "#define SOUND_COREAUDIO 1" >>confdefs.h if true; then SOUND_COREAUDIO_TRUE= SOUND_COREAUDIO_FALSE='#' else SOUND_COREAUDIO_TRUE='#' SOUND_COREAUDIO_FALSE= fi XMP_DARWIN_LDFLAGS="-framework AudioToolbox -framework AudioUnit -framework CoreServices" fi ;; netbsd*) if test "${ac_cv_header_sys_audioio_h}" = "yes"; then $as_echo "#define SOUND_NETBSD 1" >>confdefs.h if true; then SOUND_NETBSD_TRUE= SOUND_NETBSD_FALSE='#' else SOUND_NETBSD_TRUE='#' SOUND_NETBSD_FALSE= fi fi if test "${ac_cv_header_sys_soundcard_h}" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lossaudio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char _oss_ioctl (); int main () { return _oss_ioctl (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_ossaudio__oss_ioctl=yes else ac_cv_lib_ossaudio__oss_ioctl=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBOSSAUDIO 1 _ACEOF LIBS="-lossaudio $LIBS" fi fi ;; solaris*) if test "${ac_cv_header_sys_audioio_h}" = "yes"; then $as_echo "#define SOUND_SOLARIS 1" >>confdefs.h if true; then SOUND_SOLARIS_TRUE= SOUND_SOLARIS_FALSE='#' else SOUND_SOLARIS_TRUE='#' SOUND_SOLARIS_FALSE= fi fi ;; hpux*) ac_fn_c_check_header_mongrel "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default" if test "x$ac_cv_header_sys_audio_h" = xyes; then : fi if test "${ac_cv_header_sys_audio_h}" = "yes"; then $as_echo "#define SOUND_HPUX 1" >>confdefs.h if true; then SOUND_HPUX_TRUE= SOUND_HPUX_FALSE='#' else SOUND_HPUX_TRUE='#' SOUND_HPUX_FALSE= fi fi ;; aix*) ac_fn_c_check_header_mongrel "$LINENO" "audio.h" "ac_cv_header_audio_h" "$ac_includes_default" if test "x$ac_cv_header_audio_h" = xyes; then : fi if test "${ac_cv_header_audio_h}" = "yes"; then $as_echo "#define SOUND_AIX 1" >>confdefs.h if true; then SOUND_AIX_TRUE= SOUND_AIX_FALSE='#' else SOUND_AIX_TRUE='#' SOUND_AIX_FALSE= fi fi ;; irix*) for ac_header in dmedia/audio.h do : ac_fn_c_check_header_mongrel "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default" if test "x$ac_cv_header_dmedia_audio_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DMEDIA_AUDIO_H 1 _ACEOF fi done if test "${ac_cv_header_dmedia_audio_h}" = "yes"; then $as_echo "#define SOUND_SGI 1" >>confdefs.h if true; then SOUND_SGI_TRUE= SOUND_SGI_FALSE='#' else SOUND_SGI_TRUE='#' SOUND_SGI_FALSE= fi fi ;; qnx*) for ac_header in sys/audio.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/audio.h" "ac_cv_header_sys_audio_h" "$ac_includes_default" if test "x$ac_cv_header_sys_audio_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_AUDIO_H 1 _ACEOF fi done if test "${ac_cv_header_sys_audio_h}" = "yes"; then $as_echo "#define SOUND_QNX 1" >>confdefs.h if true; then SOUND_QNX_TRUE= SOUND_QNX_FALSE='#' else SOUND_QNX_TRUE='#' SOUND_QNX_FALSE= fi fi ;; nto-qnx*) for ac_header in sys/asoundlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "sys/asoundlib.h" "ac_cv_header_sys_asoundlib_h" "$ac_includes_default" if test "x$ac_cv_header_sys_asoundlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_SYS_ASOUNDLIB_H 1 _ACEOF fi done if test "${ac_cv_header_sys_asoundlib_h}" = "yes"; then $as_echo "#define SOUND_ALSA05 1" >>confdefs.h if true; then SOUND_ALSA05_TRUE= SOUND_ALSA05_FALSE='#' else SOUND_ALSA05_TRUE='#' SOUND_ALSA05_FALSE= fi fi ;; cygwin*|mingw*) $as_echo "#define SOUND_WIN32 1" >>confdefs.h if true; then SOUND_WIN32_TRUE= SOUND_WIN32_FALSE='#' else SOUND_WIN32_TRUE='#' SOUND_WIN32_FALSE= fi ;; *djgpp) $as_echo "#define SOUND_SB 1" >>confdefs.h if true; then SOUND_SB_TRUE= SOUND_SB_FALSE='#' else SOUND_SB_TRUE='#' SOUND_SB_FALSE= fi ;; beos*|haiku*) $as_echo "#define SOUND_BEOS 1" >>confdefs.h CFLAGS="${CFLAGS} -Wno-multichar" if true; then SOUND_BEOS_TRUE= SOUND_BEOS_FALSE='#' else SOUND_BEOS_TRUE='#' SOUND_BEOS_FALSE= fi ;; *) if test "$ac_cv_header_sys_audioio_h" = "yes"; then : ac_fn_c_check_member "$LINENO" "audio_info_t" "play" "ac_cv_member_audio_info_t_play" "#include " if test "x$ac_cv_member_audio_info_t_play" = xyes; then : $as_echo "#define SOUND_BSD 1" >>confdefs.h if true; then SOUND_BSD_TRUE= SOUND_BSD_FALSE='#' else SOUND_BSD_TRUE='#' SOUND_BSD_FALSE= fi fi fi ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -Wall" >&5 $as_echo_n "checking whether compiler understands -Wall... " >&6; } if ${ac_cv_c_flag_w_all+:} false; then : $as_echo_n "(cached) " >&6 else oldcflags="${CFLAGS}" CFLAGS="${CFLAGS} -Wall" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(){} _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_flag_w_all=yes else ac_cv_c_flag_w_all=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="${oldcflags}" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flag_w_all" >&5 $as_echo "$ac_cv_c_flag_w_all" >&6; } if test "x$ac_cv_c_flag_w_all" = xyes; then : CFLAGS="${CFLAGS} -Wall" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -Wwrite-strings" >&5 $as_echo_n "checking whether compiler understands -Wwrite-strings... " >&6; } if ${ac_cv_c_flag_w_write_strings+:} false; then : $as_echo_n "(cached) " >&6 else oldcflags="${CFLAGS}" CFLAGS="${CFLAGS} -Wwrite-strings" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(){} _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_flag_w_write_strings=yes else ac_cv_c_flag_w_write_strings=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="${oldcflags}" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flag_w_write_strings" >&5 $as_echo "$ac_cv_c_flag_w_write_strings" >&6; } if test "x$ac_cv_c_flag_w_write_strings" = xyes; then : CFLAGS="${CFLAGS} -Wwrite-strings" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -Wunused-result" >&5 $as_echo_n "checking whether compiler understands -Wunused-result... " >&6; } if ${ac_cv_c_flag_w_unused_result+:} false; then : $as_echo_n "(cached) " >&6 else oldcflags="${CFLAGS}" CFLAGS="${CFLAGS} -Wunused-result" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main(){} _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_flag_w_unused_result=yes else ac_cv_c_flag_w_unused_result=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="${oldcflags}" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flag_w_unused_result" >&5 $as_echo "$ac_cv_c_flag_w_unused_result" >&6; } if test "x$ac_cv_c_flag_w_unused_result" = xyes; then : CFLAGS="${CFLAGS} -Wno-unused-result" fi for ac_func in kill getopt_long usleep select do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done ac_config_files="$ac_config_files Makefile src/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' :mline /\\$/{ N s,\\\n,, b mline } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote b any :quote s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\[/\\&/g s/\]/\\&/g s/\$/$$/g H :any ${ g s/^\n// s/\n/ /g p } ' DEFS=`sed -n "$ac_script" confdefs.h` ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${SOUND_AHI_TRUE}" && test -z "${SOUND_AHI_FALSE}"; then as_fn_error $? "conditional \"SOUND_AHI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_AIX_TRUE}" && test -z "${SOUND_AIX_FALSE}"; then as_fn_error $? "conditional \"SOUND_AIX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_ALSA05_TRUE}" && test -z "${SOUND_ALSA05_FALSE}"; then as_fn_error $? "conditional \"SOUND_ALSA05\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_ALSA_TRUE}" && test -z "${SOUND_ALSA_FALSE}"; then as_fn_error $? "conditional \"SOUND_ALSA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_BEOS_TRUE}" && test -z "${SOUND_BEOS_FALSE}"; then as_fn_error $? "conditional \"SOUND_BEOS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_BSD_TRUE}" && test -z "${SOUND_BSD_FALSE}"; then as_fn_error $? "conditional \"SOUND_BSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_COREAUDIO_TRUE}" && test -z "${SOUND_COREAUDIO_FALSE}"; then as_fn_error $? "conditional \"SOUND_COREAUDIO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_HPUX_TRUE}" && test -z "${SOUND_HPUX_FALSE}"; then as_fn_error $? "conditional \"SOUND_HPUX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_NETBSD_TRUE}" && test -z "${SOUND_NETBSD_FALSE}"; then as_fn_error $? "conditional \"SOUND_NETBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_OSS_TRUE}" && test -z "${SOUND_OSS_FALSE}"; then as_fn_error $? "conditional \"SOUND_OSS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_PULSEAUDIO_TRUE}" && test -z "${SOUND_PULSEAUDIO_FALSE}"; then as_fn_error $? "conditional \"SOUND_PULSEAUDIO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_QNX_TRUE}" && test -z "${SOUND_QNX_FALSE}"; then as_fn_error $? "conditional \"SOUND_QNX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_SB_TRUE}" && test -z "${SOUND_SB_FALSE}"; then as_fn_error $? "conditional \"SOUND_SB\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_SGI_TRUE}" && test -z "${SOUND_SGI_FALSE}"; then as_fn_error $? "conditional \"SOUND_SGI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_SNDIO_TRUE}" && test -z "${SOUND_SNDIO_FALSE}"; then as_fn_error $? "conditional \"SOUND_SNDIO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_SOLARIS_TRUE}" && test -z "${SOUND_SOLARIS_FALSE}"; then as_fn_error $? "conditional \"SOUND_SOLARIS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_OS2DART_TRUE}" && test -z "${SOUND_OS2DART_FALSE}"; then as_fn_error $? "conditional \"SOUND_OS2DART\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_WIN32_TRUE}" && test -z "${SOUND_WIN32_FALSE}"; then as_fn_error $? "conditional \"SOUND_WIN32\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_OSS_TRUE}" && test -z "${SOUND_OSS_FALSE}"; then as_fn_error $? "conditional \"SOUND_OSS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_ALSA_TRUE}" && test -z "${SOUND_ALSA_FALSE}"; then as_fn_error $? "conditional \"SOUND_ALSA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_PULSEAUDIO_TRUE}" && test -z "${SOUND_PULSEAUDIO_FALSE}"; then as_fn_error $? "conditional \"SOUND_PULSEAUDIO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_SNDIO_TRUE}" && test -z "${SOUND_SNDIO_FALSE}"; then as_fn_error $? "conditional \"SOUND_SNDIO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_AHI_TRUE}" && test -z "${SOUND_AHI_FALSE}"; then as_fn_error $? "conditional \"SOUND_AHI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_COREAUDIO_TRUE}" && test -z "${SOUND_COREAUDIO_FALSE}"; then as_fn_error $? "conditional \"SOUND_COREAUDIO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_NETBSD_TRUE}" && test -z "${SOUND_NETBSD_FALSE}"; then as_fn_error $? "conditional \"SOUND_NETBSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_SOLARIS_TRUE}" && test -z "${SOUND_SOLARIS_FALSE}"; then as_fn_error $? "conditional \"SOUND_SOLARIS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_HPUX_TRUE}" && test -z "${SOUND_HPUX_FALSE}"; then as_fn_error $? "conditional \"SOUND_HPUX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_AIX_TRUE}" && test -z "${SOUND_AIX_FALSE}"; then as_fn_error $? "conditional \"SOUND_AIX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_SGI_TRUE}" && test -z "${SOUND_SGI_FALSE}"; then as_fn_error $? "conditional \"SOUND_SGI\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_QNX_TRUE}" && test -z "${SOUND_QNX_FALSE}"; then as_fn_error $? "conditional \"SOUND_QNX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_ALSA05_TRUE}" && test -z "${SOUND_ALSA05_FALSE}"; then as_fn_error $? "conditional \"SOUND_ALSA05\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_WIN32_TRUE}" && test -z "${SOUND_WIN32_FALSE}"; then as_fn_error $? "conditional \"SOUND_WIN32\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_SB_TRUE}" && test -z "${SOUND_SB_FALSE}"; then as_fn_error $? "conditional \"SOUND_SB\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_BEOS_TRUE}" && test -z "${SOUND_BEOS_FALSE}"; then as_fn_error $? "conditional \"SOUND_BEOS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${SOUND_BSD_TRUE}" && test -z "${SOUND_BSD_FALSE}"; then as_fn_error $? "conditional \"SOUND_BSD\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by xmp $as_me 4.2.0, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ xmp config.status 4.2.0 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. case $CONFIG_FILES in #( *\'*) : eval set x "$CONFIG_FILES" ;; #( *) : set x $CONFIG_FILES ;; #( *) : ;; esac shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`$as_dirname -- "$am_mf" || $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` am_filepart=`$as_basename -- "$am_mf" || $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` { echo "$as_me:$LINENO: cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles" >&5 (cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE=\"gmake\" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See \`config.log' for more details" "$LINENO" 5; } fi { am_dirpart=; unset am_dirpart;} { am_filepart=; unset am_filepart;} { am_mf=; unset am_mf;} { am_rc=; unset am_rc;} rm -f conftest-deps.mk } ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi xmp-4.2.0/configure.ac0000644000000000000000000002016614442670136013321 0ustar rootrootAC_INIT([xmp], [4.2.0]) AM_SILENT_RULES([yes]) AC_CONFIG_AUX_DIR([build-aux]) 0>confdefs.h AC_ARG_ENABLE(oss, [ --disable-oss don't compile OSS support]) AC_ARG_ENABLE(alsa, [ --disable-alsa don't compile ALSA support]) AC_ARG_ENABLE(pulseaudio, [ --enable-pulseaudio compile PulseAudio support]) AC_ARG_ENABLE(sndio, [ --disable-sndio don't compile sndio support]) AC_SUBST(LD_VERSCRIPT) AC_CANONICAL_HOST AC_PROG_CC AC_PROG_CXX case "$host_os" in beos*|haiku*) AS_IF([! which "$CXX" >/dev/null 2>/dev/null], [AC_MSG_ERROR([C++ compiler required on this platform ($host_os)])]) CXXLD='$(CXX)' ;; *) # Do not error out on linking when g++ is absent. CXXLD='$(CCLD)' ;; esac AC_SUBST([CXXLD]) AC_PROG_INSTALL AM_INIT_AUTOMAKE([foreign subdir-objects]) AC_ARG_WITH([libxmp-lite], AS_HELP_STRING([--with-libxmp-lite],[build against libxmp-lite instead of libxmp]), [xmplib="$withval"],[xmplib=xmp]) case "$xmplib" in no|xmp) xmplib=xmp ;; *) xmplib=xmp-lite ;; esac old_LIBS="${LIBS}" old_CPPFLAGS="${CPPFLAGS}" PKG_CHECK_MODULES([LIBXMP], [lib$xmplib >= 4.4], AC_MSG_CHECKING(linkage to lib$xmplib) LIBS="${LIBXMP_LIBS}" CPPFLAGS="${CPPFLAGS} ${LIBXMP_CFLAGS}" AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[return xmp_set_player((char*)0,0,0);]])], [LIBS="${old_LIBS}" AC_MSG_RESULT(success)], dnl In case libxmp is a static build and depend on libm: dnl PKG_CHECK_MODULES_STATIC might not be present, so doing it dnl manually: [AC_MSG_RESULT(failed:) AC_MSG_CHECKING(linkage to lib$xmplib with -lm) LIBS="${LIBS} -lm" AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[return xmp_set_player((char*)0,0,0);]])], [LIBS="${old_LIBS} -lm" AC_MSG_RESULT(success)], [AC_MSG_RESULT(failed) AC_MSG_FAILURE(linkage to lib$xmplib failed, 1)])] ), [echo "You need libxmp version 4.4 or later to build this package"; exit 1] ) CPPFLAGS="${old_CPPFLAGS}" dnl Don't use things like /usr/etc or /usr/var fix_prefix=no if test "x$prefix" = xNONE; then fix_prefix=yes elif test "x$prefix" = x/usr -o "x$prefix" = x/usr/local; then fix_prefix=yes fi if test $fix_prefix = yes -a $sysconfdir = '${prefix}/etc'; then sysconfdir=/etc localstatedir=/var fi dnl XMP_TRY_COMPILE(,,,,,) AC_DEFUN([XMP_TRY_COMPILE],[ AC_CACHE_CHECK([$1],[$2],[ oldcflags="${CFLAGS}" CFLAGS="${CFLAGS} $3" AC_COMPILE_IFELSE([AC_LANG_SOURCE([[$4]])],[$2=yes],[$2=no],[true]) CFLAGS="${oldcflags}"]) AS_IF([test "x$$2" = xyes], [$5], [$6])]) AC_DEFUN([AC_CHECK_DEFINED],[ AS_VAR_PUSHDEF([ac_var],[ac_cv_defined_$1])dnl AC_CACHE_CHECK([for $1 defined], ac_var, AC_TRY_COMPILE(,[ #ifdef $1 int ok; #else choke me #endif ],AS_VAR_SET(ac_var, yes),AS_VAR_SET(ac_var, no))) AS_IF([test AS_VAR_GET(ac_var) != "no"], [$2], [$3])dnl AS_VAR_POPDEF([ac_var])dnl ]) AC_CHECK_HEADERS([sys/types.h unistd.h getopt.h signal.h sys/select.h sys/time.h sys/audioio.h]) case $host_os in dnl don't check half-baked termios for amiga or dos targets. amigaos*|aros*|morphos*|*djgpp) ;; *) AC_CHECK_HEADERS([termios.h]) ;; esac case "$host_cpu" in powerpc64) CFLAGS="${CFLAGS} -m64" LDFLAGS="${LDFLAGS} -m64" ;; esac AM_CONDITIONAL([SOUND_AHI], [false]) AM_CONDITIONAL([SOUND_AIX], [false]) AM_CONDITIONAL([SOUND_ALSA05], [false]) AM_CONDITIONAL([SOUND_ALSA], [false]) AM_CONDITIONAL([SOUND_BEOS], [false]) AM_CONDITIONAL([SOUND_BSD], [false]) AM_CONDITIONAL([SOUND_COREAUDIO], [false]) AM_CONDITIONAL([SOUND_HPUX], [false]) AM_CONDITIONAL([SOUND_NETBSD], [false]) AM_CONDITIONAL([SOUND_OSS], [false]) AM_CONDITIONAL([SOUND_PULSEAUDIO], [false]) AM_CONDITIONAL([SOUND_QNX], [false]) AM_CONDITIONAL([SOUND_SB], [false]) AM_CONDITIONAL([SOUND_SGI], [false]) AM_CONDITIONAL([SOUND_SNDIO], [false]) AM_CONDITIONAL([SOUND_SOLARIS], [false]) AM_CONDITIONAL([SOUND_OS2DART], [false]) AM_CONDITIONAL([SOUND_WIN32], [false]) if test "${enable_oss}" != "no"; then AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h) if test "${ac_cv_header_sys_soundcard_h}" = "yes" -o "${ac_cv_header_machine_soundcard_h}" = "yes"; then AC_DEFINE(SOUND_OSS, 1, [ ]) AM_CONDITIONAL([SOUND_OSS], [true]) fi fi AS_IF([test "$enable_alsa" = "yes"], [ PKG_CHECK_MODULES([alsa], [alsa >= 1], [enable_alsa=yes]) ], [ AS_IF([test "$enable_alsa" != "no"], [ PKG_CHECK_MODULES([alsa], [alsa >= 1], AC_CHECK_LIB(asound, snd_pcm_open, [enable_alsa=yes]), [true]) ]) ]) AS_IF([test "$enable_alsa" = "yes"], [ AC_DEFINE(SOUND_ALSA, 1, [ ]) AM_CONDITIONAL([SOUND_ALSA], [true]) ]) AS_IF([test "$enable_pulseaudio" = "yes"], [ PKG_CHECK_MODULES([pulseaudio], [libpulse-simple], [enable_pulseaudio=yes]) ], [ AS_IF([test "$enable_pulseaudio" != "no"], [ PKG_CHECK_MODULES([pulseaudio], [libpulse-simple], AC_CHECK_LIB(pulse-simple, pa_simple_new, [enable_pulseaudio=yes]), [true]) ]) ]) AS_IF([test "$enable_pulseaudio" = "yes"], [ AC_DEFINE(SOUND_PULSEAUDIO, 1, [ ]) AM_CONDITIONAL([SOUND_PULSEAUDIO], [true]) ]) if test "${enable_sndio}" != "no"; then AC_CHECK_HEADER(sndio.h) if test "${ac_cv_header_sndio_h}" = "yes"; then AC_DEFINE(SOUND_SNDIO, 1, [ ]) AM_CONDITIONAL([SOUND_SNDIO], [true]) fi fi case "${host_os}" in amigaos*|aros*|morphos*) AC_DEFINE(SOUND_AHI, 1, [ ]) AM_CONDITIONAL([SOUND_AHI], [true]) ;; darwin*) AC_CHECK_HEADERS(AudioUnit/AudioComponent.h CoreAudio/CoreAudio.h) if test "${ac_cv_header_CoreAudio_CoreAudio_h}" = "yes"; then AC_DEFINE(SOUND_COREAUDIO, 1, [ ]) AM_CONDITIONAL([SOUND_COREAUDIO], [true]) XMP_DARWIN_LDFLAGS="-framework AudioToolbox -framework AudioUnit -framework CoreServices" AC_SUBST([XMP_DARWIN_LDFLAGS]) fi ;; netbsd*) if test "${ac_cv_header_sys_audioio_h}" = "yes"; then AC_DEFINE(SOUND_NETBSD, 1, [ ]) AM_CONDITIONAL([SOUND_NETBSD], [true]) fi if test "${ac_cv_header_sys_soundcard_h}" = "yes"; then AC_CHECK_LIB(ossaudio, _oss_ioctl) fi ;; solaris*) if test "${ac_cv_header_sys_audioio_h}" = "yes"; then AC_DEFINE(SOUND_SOLARIS, 1, [ ]) AM_CONDITIONAL([SOUND_SOLARIS], [true]) fi ;; hpux*) AC_CHECK_HEADER(sys/audio.h) if test "${ac_cv_header_sys_audio_h}" = "yes"; then AC_DEFINE(SOUND_HPUX, 1, [ ]) AM_CONDITIONAL([SOUND_HPUX], [true]) fi ;; aix*) AC_CHECK_HEADER(audio.h) if test "${ac_cv_header_audio_h}" = "yes"; then AC_DEFINE(SOUND_AIX, 1, [ ]) AM_CONDITIONAL([SOUND_AIX], [true]) fi ;; irix*) AC_CHECK_HEADERS(dmedia/audio.h) if test "${ac_cv_header_dmedia_audio_h}" = "yes"; then AC_DEFINE(SOUND_SGI, 1, [ ]) AM_CONDITIONAL([SOUND_SGI], [true]) fi ;; qnx*) AC_CHECK_HEADERS(sys/audio.h) if test "${ac_cv_header_sys_audio_h}" = "yes"; then AC_DEFINE(SOUND_QNX, 1, [ ]) AM_CONDITIONAL([SOUND_QNX], [true]) fi ;; nto-qnx*) AC_CHECK_HEADERS(sys/asoundlib.h) if test "${ac_cv_header_sys_asoundlib_h}" = "yes"; then AC_DEFINE(SOUND_ALSA05, 1, [ ]) AM_CONDITIONAL([SOUND_ALSA05], [true]) fi ;; cygwin*|mingw*) AC_DEFINE(SOUND_WIN32, 1, [ ]) AM_CONDITIONAL([SOUND_WIN32], [true]) ;; *djgpp) AC_DEFINE(SOUND_SB, 1, [ ]) AM_CONDITIONAL([SOUND_SB], [true]) ;; beos*|haiku*) AC_DEFINE(SOUND_BEOS, 1, [ ]) CFLAGS="${CFLAGS} -Wno-multichar" AM_CONDITIONAL([SOUND_BEOS], [true]) ;; *) dnl Modern OpenBSD has sys/audioio.h but does not support this driver. AS_IF([test "$ac_cv_header_sys_audioio_h" = "yes"], [ AC_CHECK_MEMBER([audio_info_t.play], [ AC_DEFINE([SOUND_BSD], 1, [ ]) AM_CONDITIONAL([SOUND_BSD], [true]) ], , [[#include ]]) ]) ;; esac XMP_TRY_COMPILE(whether compiler understands -Wall, ac_cv_c_flag_w_all, -Wall,[ int main(){}], CFLAGS="${CFLAGS} -Wall") XMP_TRY_COMPILE(whether compiler understands -Wwrite-strings, ac_cv_c_flag_w_write_strings, -Wwrite-strings,[ int main(){}], CFLAGS="${CFLAGS} -Wwrite-strings") XMP_TRY_COMPILE(whether compiler understands -Wunused-result, ac_cv_c_flag_w_unused_result, -Wunused-result,[ int main(){}], CFLAGS="${CFLAGS} -Wno-unused-result") AC_CHECK_FUNCS(kill getopt_long usleep select) AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT xmp-4.2.0/Makefile.dos0000644000000000000000000000133014442670136013247 0ustar rootroot# Makefile for MS-DOS using Watcom compiler. # # wmake -f Makefile.dos # - builds using the static library xmp_static.lib # target = static # change libxmp_path as needed (or specify on the wmake cmdline) !ifndef libxmp_path libxmp_path = ../libxmp !endif CC=wcc386 # SYSTEM can be dos32a, causeway or dos4g: SYSTEM=dos32a CFLAGS = -bt=dos -fp5 -fpi87 -mf -oeatxh -w4 -zp8 -ei -q # newer OpenWatcom versions enable W303 by default. CFLAGS += -wcd=303 # -5s : Pentium stack calling conventions. # -5r : Pentium register calling conventions. CFLAGS += -5s INCLUDES = -I"$(%WATCOM)/h" # for sound_sb: CPPFLAGS+= -DSOUND_SB OS_OBJS = sound_sb.obj dosdma.obj dosirq.obj dossb.obj dosutil.obj !include watcom.mif .c: src/dos xmp-4.2.0/Makefile.w320000644000000000000000000000142714442670136013104 0ustar rootroot# Makefile for Win32 using Watcom compiler. # # wmake -f Makefile.w32 # - builds using libxmp.dll and its import lib (libxmp.lib) # # wmake -f Makefile.w32 target=static # - builds using the static library xmp_static.lib # !ifndef target target = dll !endif # change libxmp_path as needed (or specify on the wmake cmdline) !ifndef libxmp_path libxmp_path = ../libxmp !endif CC=wcc386 SYSTEM=nt CFLAGS = -bt=nt -bm -fp5 -fpi87 -mf -oeatxh -w4 -zp8 -ei -q # newer OpenWatcom versions enable W303 by default. CFLAGS += -wcd=303 # -5s : Pentium stack calling conventions. # -5r : Pentium register calling conventions. CFLAGS += -5s INCLUDES = -I"$(%WATCOM)/h/nt" -I"$(%WATCOM)/h" # for sound_win32: CPPFLAGS = -DSOUND_WIN32 OS_OBJS = sound_win32.obj LIBS = winmm.lib !include watcom.mif xmp-4.2.0/Changelog0000644000000000000000000000726414442670136012651 0ustar rootrootStable versions --------------- 4.2.0 (20230615): Changes by Özkan Sezer: - Fix OS/2 and Amiga builds. OS-specific tweaks. - DOS Sound Blaster output, adapted from mikmod. - Build system improvements. Changes by Emanuel Haupt: - Make configure detect sndio on FreeBSD Changes by Alice Rowan: - Fix mod->xxs out-of-bounds read. - Fix terminal output for MSYS2. - Fix crash-on-exit in Windows audio output. - Fixes to BSD audio output modules. Changes by Cameron Cawley: - Support compiling for Windows with OpenWatcom. - DOS Sound Blaster support using OpenWatcom. 4.1.0 (20160719): - Requires libxmp 4.4 - Add option to force tracker emulation - Add option to use simulated Amiga mixers - Add option to set the maximum number of virtual channels - Add command to switch between standard and classic mixers - Add command to display current mixer type - Fix default amplification factor - Fix module-specific configuration file options - Fix screen corruption when module uses more than 255 virtual channels (reported by Lionel Debroux) - Remove option --offset-bug-emulation 4.0.11 (20160306): - Mark surround channels in channel list - Address errors reported by Coverity Scan 4.0.10 (20141030): - Add AIFF file output driver (by Lorence Lombardo) - Add command 'h' to display help message (by Eugene Toder) - Fix sound driver deinitialization on signal (by Eugene Toder) - Adjust CoreAudio driver latency - Fix missing --all-sequences in help message 4.0.9 (20140926): - Add option '-p' to set the default pan amplitude - Add parameter 'default_pan' to configuration file - Fix library detection when cross-compiling - Fix Visual Studio 2013 build (by Stephen Leary) - Default pan amplitude set to 50% 4.0.8 (20140714): - Add command 'c' to display module comment - Add command-line option -C to display module comment - Fix ignored amplify option (by Dennis Lindroos) - Fix Win64 compatibility (by Özkan Sezer) - Fix configuration file location in Windows (by Özkan Sezer) - Fix screen corruption with large number of rows 4.0.7 (20140224): - Fix NetBSD sound driver (by shattered) - Fix Haiku sound driver - Fix info message display time - Start instrument numbering at 1 - Minor cosmetic fixes 4.0.6 (20130519): - Fix error when g++ is absent on non-BeOS (by Jan Engelhardt) - Portability fixes to build with Visual C++ 4.0.5 (20130512): - Change buildsystem to use automake (by Jan Engelhardt) - Fix loop when skipping to first file and it's not playable 4.0.4 (20130428): - Fix executable suffix in MinGW32 - Fix frame info display in Windows (reported by vaseleos0) - Fix build issues with Solaris Studio 4.0.3 (20130421): - Fix native-endian coreaudio output (reported by Misty De Meo) - Fix MinGW32 build (reported by vaseleos0) - Fix Cygwin build (reported by Benjamin Shadwick) - Fix module-specifc flags to override built-in quirks (requires libxmp 4.1 or later) - Don't place configuration file in places like /usr/local/etc New features requested by Benjamin Shadwick: - Add commands '<' and '>' to jump to previous/next sequence - Add command 'z' to toggle the subsong explorer on/off - Add option -z to play a specified sequence - Add option -Z to play all sequences in module - Add option --loop-all to loop over entire module list 4.0.2 (20130407): - Fix data type in coreaudio driver Changes by Jan Engelhardt: - give Pulseaudio higher priority than ALSA - give ALSA output higher priority than OSS - fix background process handling - sanitize background/foreground notation 4.0.1 (20130216): - fix license issues reported by Jan Engelhardt - fix pulseaudio detection (by Emanuel Haupt) 4.0.0 (20130213): - rewrite player to use libxmp 4.0 xmp-4.2.0/watcom.mif0000644000000000000000000000140514442670136013015 0ustar rootrootCPPFLAGS+= -DHAVE_SIGNAL_H -DHAVE_STRINGS_H INCLUDES+= -Isrc !ifeq target static CPPFLAGS+= -DBUILDING_STATIC LIBXMP=$(libxmp_path)/xmp_static.lib !else LIBXMP=$(libxmp_path)/libxmp.lib !endif INCLUDES+= -I"$(libxmp_path)/include" LIBS+= $(LIBXMP) .SUFFIXES: .SUFFIXES: .obj .c AOUT=xmp.exe COMPILE=$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) OBJ = commands.obj delay.obj getopt_long.obj info.obj main.obj options.obj read_config.obj sound.obj sound_aiff.obj sound_file.obj sound_null.obj sound_wav.obj terminal.obj util.obj all: $(AOUT) $(AOUT): $(OBJ) $(OS_OBJS) $(LIBXMP) wlink N $(AOUT) SYS $(SYSTEM) OP QUIET LIBR {$(LIBS)} F {$(OBJ) $(OS_OBJS)} .c: src .c.obj: $(COMPILE) -fo=$^@ $< distclean: clean .symbolic rm -f $(AOUT) *.err clean: .symbolic rm -f *.obj xmp-4.2.0/autogen.sh0000755000000000000000000000010614442670136013024 0ustar rootroot#!/bin/sh mkdir -p build-aux aclocal autoconf automake --add-missing xmp-4.2.0/Makefile.am0000644000000000000000000000027514442670136013066 0ustar rootroot# -*- Makefile -*- SUBDIRS = src EXTRA_DIST = CREDITS Changelog autogen.sh girl_from_mars.xm \ Makefile.dos Makefile.os2 Makefile.w32 watcom.mif \ vc/xmp.vcproj vc/xmp.sln xmp-4.2.0/COPYING0000644000000000000000000004317314442670136012071 0ustar rootroot 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 Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 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) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. xmp-4.2.0/INSTALL0000644000000000000000000000163614442670136012065 0ustar rootrootRequirements ------------ - Development components of the sound system to use (ALSA, Pulse Audio, etc.) are required to build sound drivers. Most Linux distributions provide these as -devel or -dev packages. - Development components of libxmp 4.3.0 or later. Libxmp can be downloaded from http://xmp.sf.net/. Building xmp ------------ In most systems just execute: $ ./configure $ make You can set CFLAGS and LIBS appropriately if libraries are installed in a nonstandard place. Run ./configure --help for a list of configurable parameters. Installation ------------ The xmp binary doesn't need a special installation procedure to run, you can just copy src/xmp to an appropriate place. To install all components run: # make install as the superuser. This will install the xmp executable and man page into directories under /usr/local or a different location selected with the --prefix option in configure. xmp-4.2.0/aclocal.m40000644000000000000000000014652114442671646012706 0ustar rootroot# generated automatically by aclocal 1.16.5 -*- Autoconf -*- # Copyright (C) 1996-2021 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # Copyright (C) 2002-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.16.5], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.16.5])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2021 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], [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. # TODO: see whether this extra hack can be removed once we start # requiring Autoconf 2.70 or later. AS_CASE([$CONFIG_FILES], [*\'*], [eval set x "$CONFIG_FILES"], [*], [set x $CONFIG_FILES]) shift # Used to flag and report bootstrapping failures. am_rc=0 for am_mf do # Strip MF so we end up with the name of the file. am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile which includes # dependency-tracking related rules and includes. # Grep'ing the whole file directly is not great: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ || continue am_dirpart=`AS_DIRNAME(["$am_mf"])` am_filepart=`AS_BASENAME(["$am_mf"])` AM_RUN_LOG([cd "$am_dirpart" \ && sed -e '/# am--include-marker/d' "$am_filepart" \ | $MAKE -f - am--depfiles]) || am_rc=$? done if test $am_rc -ne 0; then AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments for automatic dependency tracking. If GNU make was not used, consider re-running the configure script with MAKE="gmake" (or whatever is necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking).]) fi AS_UNSET([am_dirpart]) AS_UNSET([am_filepart]) AS_UNSET([am_mf]) AS_UNSET([am_rc]) rm -f conftest-deps.mk } ])# _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. # This creates each '.Po' and '.Plo' makefile fragment that we'll 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" MAKE="${MAKE-make}"])]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC]) [_AM_PROG_CC_C_O ]) # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl m4_ifdef([_$0_ALREADY_INIT], [m4_fatal([$0 expanded multiple times ]m4_defn([_$0_ALREADY_INIT]))], [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target (and possibly the TAP driver). The # system "awk" is bad on some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) # Variables for tags utilities; see am/tags.am if test -z "$CTAGS"; then CTAGS=ctags fi AC_SUBST([CTAGS]) if test -z "$ETAGS"; then ETAGS=etags fi AC_SUBST([ETAGS]) if test -z "$CSCOPE"; then CSCOPE=cscope fi AC_SUBST([CSCOPE]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl # POSIX will say in a future version that running "rm -f" with no argument # is OK; and we want to be able to make that assumption in our Makefile # recipes. So use an aggressive probe to check that the usage we want is # actually supported "in the wild" to an acceptable degree. # See automake bug#10828. # To make any issue more visible, cause the running configure to be aborted # by default if the 'rm' program in use doesn't match our expectations; the # user can still override this though. if rm -f && rm -fr && rm -rf; then : OK; else cat >&2 <<'END' Oops! Your 'rm' program seems unable to run without file operands specified on the command line, even when the '-f' option is present. This is contrary to the behaviour of most rm programs out there, and not conforming with the upcoming POSIX standard: Please tell bug-automake@gnu.org about your system, including the value of your $PATH and any error possibly output before this message. This can help us improve future automake versions. END if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then echo 'Configuration will proceed anyway, since you have set the' >&2 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 echo >&2 else cat >&2 <<'END' Aborting the configuration process, to ensure you take notice of the issue. You can download and install GNU coreutils to get an 'rm' implementation that behaves properly: . If you want to complete the configuration process using your problematic 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM to "yes", and re-run configure. END AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) fi fi dnl The trailing newline in this macro's definition is deliberate, for dnl backward compatibility and to allow trailing 'dnl'-style comments dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh+set}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check whether make has an 'include' directive that can support all # the idioms we need for our automatic dependency tracking code. AC_DEFUN([AM_MAKE_INCLUDE], [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) cat > confinc.mk << 'END' am__doit: @echo this is the am__doit target >confinc.out .PHONY: am__doit END am__include="#" am__quote= # BSD make does it like this. echo '.include "confinc.mk" # ignored' > confmf.BSD # Other make implementations (GNU, Solaris 10, AIX) do it like this. echo 'include confinc.mk # ignored' > confmf.GNU _am_result=no for s in GNU BSD; do AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) AS_CASE([$?:`cat confinc.out 2>/dev/null`], ['0:this is the am__doit target'], [AS_CASE([$s], [BSD], [am__include='.include' am__quote='"'], [am__include='include' am__quote=''])]) if test "$am__include" != "#"; then _am_result="yes ($s style)" break fi done rm -f confinc.* confmf.* AC_MSG_RESULT([${_am_result}]) AC_SUBST([am__include])]) AC_SUBST([am__quote])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_CC_C_O # --------------- # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC # to automatically call this. AC_DEFUN([_AM_PROG_CC_C_O], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([compile])dnl AC_LANG_PUSH([C])dnl AC_CACHE_CHECK( [whether $CC understands -c and -o together], [am_cv_prog_cc_c_o], [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) # Make sure it works both with $CC and with simple cc. # Following AC_PROG_CC_C_O, we do the test twice because some # compilers refuse to overwrite an existing .o file with -o, # though they will create one. am_cv_prog_cc_c_o=yes for am_i in 1 2; do if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ && test -f conftest2.$ac_objext; then : OK else am_cv_prog_cc_c_o=no break fi done rm -f core conftest* unset am_i]) if test "$am_cv_prog_cc_c_o" != yes; then # Losing compiler, so override with the script. # FIXME: It is wrong to rewrite CC. # But if we don't then we get into trouble of one sort or another. # A longer-term fix would be to have automake use am__CC in this case, # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" CC="$am_aux_dir/compile $CC" fi AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 12 (pkg-config-0.29.2) dnl Copyright © 2004 Scott James Remnant . dnl Copyright © 2012-2015 Dan Nicholson dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA dnl 02111-1307, USA. dnl dnl As a special exception to the GNU General Public License, if you dnl distribute this file as part of a program that contains a dnl configuration script generated by Autoconf, you may include it under dnl the same distribution terms that you use for the rest of that dnl program. dnl PKG_PREREQ(MIN-VERSION) dnl ----------------------- dnl Since: 0.29 dnl dnl Verify that the version of the pkg-config macros are at least dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's dnl installed version of pkg-config, this checks the developer's version dnl of pkg.m4 when generating configure. dnl dnl To ensure that this macro is defined, also add: dnl m4_ifndef([PKG_PREREQ], dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) dnl dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], [m4_define([PKG_MACROS_VERSION], [0.29.2]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) dnl ---------------------------------- dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to dnl first found in the path. Checks that the version of pkg-config found dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is dnl used since that's the first version where most current features of dnl pkg-config existed. AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])dnl PKG_PROG_PKG_CONFIG dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------------------------------- dnl Since: 0.18 dnl dnl Check to see whether a particular set of modules exists. Similar to dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) dnl only at the first occurence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl have to call PKG_CHECK_EXISTS manually AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) dnl --------------------------------------------- dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting dnl pkg_failed based on the result. m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])dnl _PKG_CONFIG dnl _PKG_SHORT_ERRORS_SUPPORTED dnl --------------------------- dnl Internal check to see if pkg-config supports short errors. 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 ])dnl _PKG_SHORT_ERRORS_SUPPORTED dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl -------------------------------------------------------------- dnl Since: 0.4.0 dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES might not happen, you should be sure to include an dnl 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 $2]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])dnl PKG_CHECK_MODULES dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], dnl [ACTION-IF-NOT-FOUND]) dnl --------------------------------------------------------------------- dnl Since: 0.29 dnl dnl Checks for existence of MODULES and gathers its build flags with dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags dnl and VARIABLE-PREFIX_LIBS from --libs. dnl dnl Note that if there is a possibility the first call to dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to dnl include an explicit call to PKG_PROG_PKG_CONFIG in your dnl configure.ac. AC_DEFUN([PKG_CHECK_MODULES_STATIC], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl _save_PKG_CONFIG=$PKG_CONFIG PKG_CONFIG="$PKG_CONFIG --static" PKG_CHECK_MODULES($@) PKG_CONFIG=$_save_PKG_CONFIG[]dnl ])dnl PKG_CHECK_MODULES_STATIC dnl PKG_INSTALLDIR([DIRECTORY]) dnl ------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable pkgconfigdir as the location where a module dnl should install pkg-config .pc files. By default the directory is dnl $libdir/pkgconfig, but the default can be changed by passing dnl DIRECTORY. The user can override through the --with-pkgconfigdir dnl parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_INSTALLDIR dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) dnl -------------------------------- dnl Since: 0.27 dnl dnl Substitutes the variable noarch_pkgconfigdir as the location where a dnl module should install arch-independent pkg-config .pc files. By dnl default the directory is $datadir/pkgconfig, but the default can be dnl changed by passing DIRECTORY. The user can override through the dnl --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ])dnl PKG_NOARCH_INSTALLDIR dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) dnl ------------------------------------------- dnl Since: 0.28 dnl dnl Retrieves the value of the pkg-config variable for the given module. AC_DEFUN([PKG_CHECK_VAR], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl _PKG_CONFIG([$1], [variable="][$3]["], [$2]) AS_VAR_COPY([$1], [pkg_cv_][$1]) AS_VAR_IF([$1], [""], [$5], [$4])dnl ])dnl PKG_CHECK_VAR xmp-4.2.0/src/0000755000000000000000000000000014442671646011624 5ustar rootrootxmp-4.2.0/src/sound.c0000644000000000000000000000505414442670136013115 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include "sound.h" LIST_HEAD(sound_driver_list); static void register_sound_driver(struct sound_driver *sd) { list_add_tail(&sd->list, &sound_driver_list); } void init_sound_drivers(void) { #ifdef SOUND_AHI register_sound_driver(&sound_ahi); #endif #ifdef SOUND_BEOS register_sound_driver(&sound_beos); #endif #ifdef SOUND_SNDIO register_sound_driver(&sound_sndio); #endif #ifdef SOUND_NETBSD register_sound_driver(&sound_netbsd); #endif #ifdef SOUND_BSD register_sound_driver(&sound_bsd); #endif #ifdef SOUND_SOLARIS register_sound_driver(&sound_solaris); #endif #ifdef SOUND_SGI register_sound_driver(&sound_sgi); #endif #ifdef SOUND_HPUX register_sound_driver(&sound_hpux); #endif #ifdef SOUND_AIX register_sound_driver(&sound_aix); #endif #ifdef SOUND_COREAUDIO register_sound_driver(&sound_coreaudio); #endif #ifdef SOUND_OS2DART register_sound_driver(&sound_os2dart); #endif #ifdef SOUND_WIN32 register_sound_driver(&sound_win32); #endif #ifdef SOUND_PULSEAUDIO register_sound_driver(&sound_pulseaudio); #endif #ifdef SOUND_ALSA register_sound_driver(&sound_alsa); #endif #ifdef SOUND_ALSA05 register_sound_driver(&sound_alsa05); #endif #ifdef SOUND_OSS register_sound_driver(&sound_oss); #endif #ifdef SOUND_QNX register_sound_driver(&sound_qnx); #endif #ifdef SOUND_SB register_sound_driver(&sound_sb); #endif register_sound_driver(&sound_wav); register_sound_driver(&sound_aiff); register_sound_driver(&sound_file); register_sound_driver(&sound_null); } struct sound_driver *select_sound_driver(struct options *options) { struct list_head *head; struct sound_driver *sd; const char *pref = options->driver_id; if (pref) { list_for_each(head, &sound_driver_list) { sd = list_entry(head, struct sound_driver, list); if (strcmp(sd->id, pref) == 0) { if (sd->init(options) == 0) { return sd; } } } } else { list_for_each(head, &sound_driver_list) { sd = list_entry(head, struct sound_driver, list); /* Probing */ if (sd->init(options) == 0) { /* found */ return sd; } } } return NULL; } /* Convert little-endian 16 bit samples to big-endian */ void convert_endian(unsigned char *p, int l) { unsigned char b; int i; for (i = 0; i < l; i++) { b = p[0]; p[0] = p[1]; p[1] = b; p += 2; } } xmp-4.2.0/src/sound_null.c0000644000000000000000000000121314442670136014140 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include "sound.h" static int init(struct options *options) { return 0; } static void play(void *b, int i) { } static void deinit(void) { } static void flush(void) { } static void onpause(void) { } static void onresume(void) { } struct sound_driver sound_null = { "null", "null output", NULL, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/xmp.10000644000000000000000000002506414442670136012512 0ustar rootroot.TH "XMP" "1" "Version 4\&.1\&.0" "Jul 2016" "Extended Module Player" .PP .SH "NAME" xmp - Extended Module Player .PP .SH "SYNOPSIS" \fBxmp\fP [\fB\-a, \-\-amplify\fP \fIfactor\fP] [\fB\-A, \-\-amiga\fP] [\fB\-b, \-\-bits\fP \fIbits\fP] [\fB\-C, \-\-show\-comments\fP] [\fB\-c, \-\-stdout\fP] [\fB\-D\fP \fIdevice-specific parameters\fP] [\fB\-d, \-\-driver\fP \fIdriver\fP] [\fB\-e, \-\-player\-mode\fP \fImode\fP] [\fB\-F, \-\-nofilter\fP] [\fB\-f, \-\-frequency\fP \fIrate\fP] [\fB\-\-fix\-sample\-loop\fP] [\fB\-h, \-\-help\fP] [\fB\-I, \-\-instrument\-path\fP] [\fB\-i, \-\-interpolation \fItype\fP] [\fB\-\-load\-only\fP] [\fB\-L, \-\-list\-formats\fP] [\fB\-l, \-\-loop\fP] [\fB\-\-loop\-all\fP] [\fB\-M, \-\-mute\fP \fIchannel-list\fP] [\fB\-m, \-\-mono\fP] [\fB\-\-mixer_voices\fP \fInum\fP] [\fB\-N, \-\-null\fP] [\fB\-\-nocmd\fP] [\fB\-o, \-\-output\-file\fP \fIfilename\fP] [\fB\-P, \-\-pan\fP \fInum\fP] [\fB\-p, \-\-default\-pan\fP \fInum\fP] [\fB\-\-probe\-only\fP] [\fB\-q, \-\-quiet\fP] [\fB\-R, \-\-random\fP] [\fB\-S, \-\-solo\fP \fIchannel-list\fP] [\fB\-s, \-\-start\fP \fIpos\fP] [\fB\-t, \-\-time\fP \fItime\fP] [\fB\-u, \-\-unsigned\fP] [\fB\-\-vblank\fP] [\fB\-V, \-\-version\fP] [\fB\-v, \-\-verbose\fP] [\fB\-Z, \-\-all\-sequences\fP] [\fB\-z, \-\-sequence\fP \fInum\fP] \fImodules\fP .PP .SH "DESCRIPTION" \fBxmp\fP is a tracked music module player\&. It plays many module formats including Fasttracker II (XM), Noise/Fast/Protracker (MOD), Scream Tracker 3 (S3M) and Impulse Tracker (IT)\&. Run \f(CWxmp \-\-list\-formats\fP for a complete list of supported formats\&. .PP .SH "OPTIONS" .IP "\fB\-a, \-\-amplify\fP \fIfactor\fP" Amplification factor for the software mixer\&. Valid amplification factors range from 0 to 3. Default is 1. \&. Warning\&: higher amplification factors may cause distorted or noisy output\&. .IP "\fB\-A, \-\-amiga\fP" Use a mixer which models the sound of an Amiga 500\&, with or without the led filter\&. .IP "\fB\-b, \-\-bits\fP \fIbits\fP" Set the software mixer resolution (8 or 16 bits)\&. If omitted, The audio device will be opened at the highest resolution available\&. .IP "\fB\-C, \-\-show\-comments\fP" Display module comment text, if any\&. .IP "\fB\-c, \-\-stdout\fP" Mix the module to stdout\&. .IP "\fB\-D\fP \fIdevice-specific parameter\fP" Pass a configuration parameter to the device driver\&. See the \fBDEVICE DRIVER PARAMETERS\fP section below for a list of known parameters\&. .IP "\fB\-d, \-\-driver\fP \fIdriver\fP" Select the output driver\&. If not specified, \fBxmp\fP will try to probe each available driver\&. .IP "\fB\-e, \-\-player\-mode\fP \fImode\fP" Force play mode or emulation of a specific tracker\&. Valid player modes are\&: \fBauto\fP (autodetection)\&, \fBmod\fP (generic mod player mode)\&, \fBnoisetracker\fP\&, \fBprotracker\fP (Protracker 1/2)\&, \fBs3m\fP (generic S3M player mode)\&, \fBst3\fP (Scream Tracker 3)\&, \fBst3gus\fP (Scream Tracker 3 with GUS card)\&, \fBxm\fP (generic XM player mode)\&, \fBft2\fP (Fasttracker II)\&, \fBit\fP (Impulse Tracker)\&, or \fBitsmp\fP (Impulse Tracker in sample mode)\&. When a specific tracker is specified, \fBxmp\fP will try to emulate quirks and bugs for accurate replay\&. Default is autodetection. .IP "\fB\-F, \-\-nofilter\fP" Disable IT lowpass filter effect and envelopes. .IP "\fB\-f, \-\-frequency\fP \fIrate\fP" Set the software mixer sampling rate in hertz\&. .IP "\fB\-\-fix\-sample\-loop\fP" Halve sample loop start values\&. Use it to work around bad conversions from 15-instrument modules and to correctly play NoisePacker v2 and certain UNIC files. .IP "\fB\-h, \-\-help\fP" Show a short summary of command-line options\&. .IP "\fB\-I, \-\-instrument\-path\fP \fIpath\fP" Set the pathname to the directory containing external samples\&. .IP "\fB\-i, \-\-interpolation\fP \fItype\fP" Select interpolation type. Available types are \fBnearest\fP for nearest-neighbor interpolation\&, \fBlinear\fP for linear interpolation\&, and \fBspline\fP for cubic spline interpolation\&. Default is cubic spline\&. .IP "\fB\-\-load\-only\fP" Load module and exit\&. .IP "\fB\-L, \-\-list\-formats\fP" List supported module formats\&. .IP "\fB\-l, \-\-loop\fP" Enable module looping\&. .IP "\fB\-\-loop\-all\fP" Loop over the entire module list\&. .IP "\fB\-M, \-\-mute\fP \fIchannel-list\fP" Mute the specified channels\&. \fIchannel-list\fP is a comma-separated list of decimal channel ranges\&. Example: 0,2-4,8-16\&. .IP "\fB\-m, \-\-mono\fP" Force mono output (default is stereo in stereo-capable devices)\&. .IP "\fB\-\-mixer\-voices\fP \fInum\fP" Set the maximum number of virtual channels (default is 128)\&. .IP "\fB\-N, \-\-null\fP" Load and mix module, but discard output data (same as \-\-device=null)\&. .IP "\fB\-\-nocmd\fP" Disable interactive commands\&. .IP "\fB\-o, \-\-output\-file\fP \fIfilename\fP" Set the output file name when mixing to raw or WAV files\&. If '-' is given as the file name, the output will be sent to stdout\&. .IP "\fB\-P, \-\-pan\fP \fInum\fP" Set the percentual panning amplitude\&. .IP "\fB\-P, \-\-default\-pan\fP \fInum\fP" Set the percentual default pan setting for modules that don't set their own pan values\&. Useful to reduce LRRL pan separation on headphones\&. This parameter does not affect the Amiga 500 classic mixer\&. .IP "\fB\-\-probe\-only\fP" Exit after probing the audio device\&. .IP "\fB\-R, \-\-random\fP" Play modules in random order\&. .IP "\fB\-r, \-\-reverse\fP" Reverse left/right stereo channels\&. .IP "\fB\-S, \-\-solo\fP \fIchannel-list\fP" Play only the specified channels\&. \fIchannel-list\fP is a comma-separated list of decimal channel ranges\&. Example: 0,2-4,8-16\&. .IP "\fB\-s, \-\-start\fP \fIpos\fP" Start playing the module from the position \fIpos\fP\&. .IP "\fB\-t, \-\-time\fP \fItime\fP" Specifies the maximum playing time to \fItime\fP seconds\&. .IP "\fB\-u, \-\-unsigned\fP" Tell the software mixer to use unsigned samples when mixing to a file (default is signed)\&. .IP "\fB\-\-vblank\fP" Force Amiga vblank-based timing (no CIA tempo setting)\&. .IP "\fB\-V, \-\-version\fP" Print version information\&. .IP "\fB\-v, \-\-verbose\fP" Verbose mode (incremental)\&. If specified more than once, the verbosity level will be increased (no messages will be displayed when the player runs in background)\&. .IP "\fB\-Z, \-\-all\-sequences\fP" Play all hidden or alternative pattern sequences (subsongs) in module\&. .IP "\fB\-z, \-\-sequence\fP \fInum\fP" Play hidden or alternative pattern sequence \fInum\fP\ (0 is the main sequence)\&. .PP .SH "DEVICE DRIVER PARAMETERS" Use the option \fB\-D\fP to send parameters directly to the device drivers\&. Multiple \fB\-D\fP options can be specified in the command line\&. .PP File output options: .IP "\fB\-D\fP \fIendian=big\fP" Generate big-endian 16-bit samples (default is the machine byte ordering)\&. .IP "\fB\-D\fP \fIendian=little\fP" Generate little-endian 16-bit samples (default is the machine byte ordering)\&. .PP ALSA driver options: .IP "\fB\-D\fP \fIbuffer=value\fP" Set buffer size in ms\&. Default value is 250. .IP "\fB\-D\fP \fIperiod=value\fP" Set period time in ms\&. Default value is 50. .IP "\fB\-D\fP \fIcard=name\fP" Choose the ALSA device to use\&. Default value is "default"\&. .PP OSS driver options: .IP "\fB\-D\fP \fIfrag=num,size\fP" Set the maximum number of fragments to \fInum\fP and the size of each fragment to \fIsize\fP bytes (must be a power of two)\&. The number and size of fragments set a tradeoff between the buffering latency and sensibility to system load\&. To get better synchronization, reduce the values\&. To avoid gaps in the sound playback, increase the values\&. .IP "\fB\-D\fP \fIdev=device_name\fP" Set the audio device to open\&. Default is /dev/dsp\&. .IP "\fB\-D\fP \fInosync\fP" Don't sync the OSS audio device between modules\&. .PP BSD driver options: .IP "\fB\-D\fP \fIgain=value\fP" Set the audio gain\&. Valid values range from 0 to 255\&. The default is 128\&. .IP "\fB\-D\fP \fIbuffer=size\fP" Set the size in bytes of the audio buffer\&. Default value is 32 Kb\&. .PP CoreAudio driver options: .IP "\fB\-D\fP \fIbuffer=value\fP" Set buffer size in ms\&. Default value is 250. .PP HP-UX and Solaris driver options: .IP "\fB\-D\fP \fIgain=value\fP" Set the audio gain\&. Valid values range from 0 to 255\&. The default is 128\&. .IP "\fB\-D\fP \fIport={s|h|l}\fP" Set the audio port\&. Valid arguments are \fIs\fP for the internal speaker, \fIh\fP for headphones and \fIl\fP for line out\&. The default is the internal speaker\&. .IP "\fB\-D\fP \fIbuffer=size\fP" Set the size in bytes of the audio buffer\&. The default value is 32 Kb\&. .PP .SH "INTERACTIVE COMMANDS" The following single key commands can be used when playing modules: .IP "\fBq, Esc\fP" Stop the currently playing module and quit the player\&. .IP "\fBf, Right\fP" Jump to the next pattern\&. .IP "\fBb, Left\fP" Jump to the previous pattern\&. .IP "\fBn, Up\fP" Jump to the next module\&. .IP "\fBp, Down\fP" Jump to the previous module\&. .IP "\fBSpace\fP" Pause or unpause module replay\&. .IP "\fB1\fP, \fB2\fP, \fB3\fP, \fB4\fP, \fB5\fP, \fB6\fP, \fB7\fP, \fB8\fP, \fB9\fP, \fB0\fP" Mute/unmute channels 1 to 10\&. .IP "\fB!\fP" Unmute all channels\&. .IP "\fBh\fP, \fB?\fP" Display available commands\&. .IP "\fBX\fP" Display current mixer type\&. .IP "\fBZ\fP" Display current sequence\&. .IP "\fBz\fP" Toggle subsong explorer mode\&. .IP "\fBl\fP" Toggle module/sequence looping\&. .IP "\fBm\fP" Display module information\&. .IP "\fBi\fP" Display combined instrument/sample list\&. .IP "\fBI\fP" Display instrument list\&. .IP "\fBS\fP" Display sample list\&. .IP "\fBc\fP" Display comment\&, if any\&. .IP "\fB<\fP" Change to previous sequence (subsong)\&. .IP "\fB>\fP" Change to next sequence (subsong)\&. .PP Interactive mode can be disabled using the \fB\-\-nocmd\fP command line option\&. .PP .SH "EXAMPLES" Play module and save output in a .wav file\&: .IP "" \f(CWxmp \-ofilename.wav module\&.mod\fP .PP Play module muting channels 0 to 3 and 6\&: .IP "" \f(CWxmp \-\-mute=0\-3,6 module\&.mod\&.gz\fP .PP Play modules in /dev/dsp using the default device settings (unsigned 8bit, 8 kHz mono): .IP "" \f(CWxmp \-o/dev/dsp \-f8000 \-m \-b8 \-u module\&.lha\fP .PP Play all XM modules in the /mod directory and all subdirectories in random order, ignoring any configuration set in the xmp\&.conf file\&: .IP "" \f(CWxmp \-\-norc \-R `find /mod \-name "*\&.xm" \-print`\fP .PP .SH "FILES" \f(CW/etc/xmp/xmp\&.conf\&, $HOME/\&.xmp/xmp\&.conf\&, /etc/xmp/modules\&.conf\&, $HOME/\&.xmp/modules\&.conf\fP .PP .SH "AUTHORS" Claudio Matsuoka and Hipolito Carraro Jr\&. .PP xmp-4.2.0/src/sound_bsd.c0000644000000000000000000000410414442670136013740 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include #include #include #include #include #include #include #include "sound.h" static int audio_fd; static int init(struct options *options) { char **parm = options->driver_parm; audio_info_t ainfo; int gain = 128; int bsize = 32 * 1024; parm_init(parm); chkparm1("gain", gain = strtoul(token, NULL, 0)); chkparm1("buffer", bsize = strtoul(token, NULL, 0)); parm_end(); if (gain < AUDIO_MIN_GAIN) gain = AUDIO_MIN_GAIN; if (gain > AUDIO_MAX_GAIN) gain = AUDIO_MAX_GAIN; if ((audio_fd = open("/dev/sound", O_WRONLY)) == -1) return -1; AUDIO_INITINFO(&ainfo); ainfo.play.sample_rate = options->rate; ainfo.play.channels = options->format & XMP_FORMAT_MONO ? 1 : 2; ainfo.play.gain = gain; ainfo.play.buffer_size = bsize; if (options->format & XMP_FORMAT_8BIT) { ainfo.play.precision = 8; ainfo.play.encoding = AUDIO_ENCODING_ULINEAR; options->format |= XMP_FORMAT_UNSIGNED; } else { ainfo.play.precision = 16; ainfo.play.encoding = AUDIO_ENCODING_SLINEAR; options->format &= ~XMP_FORMAT_UNSIGNED; } if (ioctl(audio_fd, AUDIO_SETINFO, &ainfo) == -1) { close(audio_fd); return -1; } return 0; } static void play(void *b, int i) { int j; while (i) { if ((j = write(audio_fd, b, i)) > 0) { i -= j; b = (char *)b + j; } else break; } } static void deinit(void) { close(audio_fd); } static void flush(void) { } static void onpause(void) { } static void onresume(void) { } static const char *const help[] = { "gain=val", "Audio output gain (0 to 255)", "buffer=val", "Audio buffer size (default is 32768)", NULL }; struct sound_driver sound_bsd = { "bsd", "BSD PCM audio", help, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/sound_sb.c0000644000000000000000000000732614442670136013605 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2021 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ /* SoundBlaster/Pro/16/AWE32 output driver for DOS from libMikMod, * authored by Andrew Zabolotny , with further SB16 * fixes by O. Sezer . * Timer callback functionality replaced by a push mechanism. */ #include #include "dos/dossb.h" #include "sound.h" /* The last buffer byte filled with sound */ static unsigned int buff_tail = 0; static int write_sb_output(char *data, unsigned int siz) { unsigned int dma_size, dma_pos; unsigned int cnt; sb_query_dma(&dma_size, &dma_pos); /* There isn't much sense in filling less than 256 bytes */ dma_pos &= ~255; /* If nothing to mix, quit */ if (buff_tail == dma_pos) return 0; /* If DMA pointer still didn't wrapped around ... */ if (dma_pos > buff_tail) { if ((cnt = dma_pos - buff_tail) > siz) cnt = siz; memcpy(sb.dma_buff->linear + buff_tail, data, cnt); buff_tail += cnt; /* If we arrived right to the DMA buffer end, jump to the beginning */ if (buff_tail >= dma_size) buff_tail = 0; } else { /* If wrapped around, fill first to the end of buffer */ if ((cnt = dma_size - buff_tail) > siz) cnt = siz; memcpy(sb.dma_buff->linear + buff_tail, data, cnt); buff_tail += cnt; siz -= cnt; if (!siz) return cnt; /* Now fill from buffer beginning to current DMA pointer */ if (dma_pos > siz) dma_pos = siz; data += cnt; cnt += dma_pos; memcpy(sb.dma_buff->linear, data, dma_pos); buff_tail = dma_pos; } return cnt; } static int init(struct options *options) { const char *card = NULL; const char *mode = NULL; int bits = 0; if (!sb_open()) { fprintf(stderr, "Sound Blaster initialization failed.\n"); return -1; } if (options->rate < 4000) options->rate = 4000; if (sb.caps & SBMODE_16BITS) { card = "16"; mode = "stereo"; bits = 16; options->format &= ~XMP_FORMAT_8BIT; } else { options->format |= XMP_FORMAT_8BIT|XMP_FORMAT_UNSIGNED; } if (sb.caps & SBMODE_STEREO) { if (!card) { card = "Pro"; mode = "stereo"; bits = 8; } if (options->rate > sb.maxfreq_stereo) options->rate = sb.maxfreq_stereo; options->format &= ~XMP_FORMAT_MONO; } else { mode = "mono"; card = (sb.dspver < SBVER_20)? "1" : "2"; bits = 8; if (options->rate > sb.maxfreq_mono) options->rate = sb.maxfreq_mono; options->format |= XMP_FORMAT_MONO; } /* Enable speaker output */ sb_output(TRUE); /* Set our routine to be called during SB IRQs */ buff_tail = 0; sb.timer_callback = NULL;/* see above */ /* Start cyclic DMA transfer */ if (!sb_start_dma(((sb.caps & SBMODE_16BITS) ? SBMODE_16BITS | SBMODE_SIGNED : 0) | (sb.caps & SBMODE_STEREO), options->rate)) { sb_output(FALSE); sb_close(); fprintf(stderr, "Sound Blaster: DMA start failed.\n"); return -1; } printf("Sound Blaster %s or compatible (%d bit, %s, %u Hz)\n", card, bits, mode, options->rate); return 0; } static void deinit(void) { sb.timer_callback = NULL; sb_output(FALSE); sb_stop_dma(); sb_close(); } static void play(void *data, int siz) { int i; for (;;) { i = write_sb_output((char *)data, siz); if ((siz -= i) <= 0) return; data = (char *)data + i; /*delay_ms(1);*/ } } static void flush(void) { } static void onpause(void) { const int silence = (sb.caps & SBMODE_16BITS) ? 0 : 0x80; memset(sb.dma_buff->linear, silence, sb.dma_buff->size); } static void onresume(void) { } struct sound_driver sound_sb = { "sb", "Sound Blaster for DOS", NULL, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/xmp_version.h0000644000000000000000000000005714442670136014341 0ustar rootroot#ifndef VERSION #define VERSION "4.2.0" #endif xmp-4.2.0/src/getopt_long.h0000644000000000000000000000517314442670136014315 0ustar rootroot/* $OpenBSD: getopt.h,v 1.3 2013/11/22 21:32:49 millert Exp $ */ /* $NetBSD: getopt.h,v 1.4 2000/07/07 10:43:54 ad Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Dieter Baron and Thomas Klausner. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. 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. */ #ifndef _GETOPT_H_ #define _GETOPT_H_ /* * GNU-like getopt_long() */ #define no_argument 0 #define required_argument 1 #define optional_argument 2 struct option { /* name of long option */ const char *name; /* * one of no_argument, required_argument, and optional_argument: * whether option takes an argument */ int has_arg; /* if not NULL, set *flag to val when option found */ int *flag; /* if flag not NULL, value to set *flag to; else return value */ int val; }; #if defined(__cplusplus) extern "C" { #endif int getopt_long(int, char * const *, const char *, const struct option *, int *); int getopt_long_only(int, char * const *, const char *, const struct option *, int *); #ifndef _GETOPT_DEFINED_ #define _GETOPT_DEFINED_ int getopt(int, char * const *, const char *); extern char *optarg; /* getopt(3) external variables */ extern int opterr; extern int optind; extern int optopt; extern int optreset; #endif #if defined(__cplusplus) } #endif #endif /* !_GETOPT_H_ */ xmp-4.2.0/src/Makefile.in0000644000000000000000000010611214442671646013672 0ustar rootroot# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2021 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@ # -*- Makefile -*- VPATH = @srcdir@ am__is_gnu_make = { \ if test -z '$(MAKELEVEL)'; then \ false; \ elif test -n '$(MAKE_HOST)'; then \ true; \ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ true; \ else \ false; \ fi; \ } am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = xmp$(EXEEXT) @SOUND_OSS_TRUE@am__append_1 = sound_oss.c @SOUND_ALSA_TRUE@am__append_2 = sound_alsa.c @SOUND_ALSA_TRUE@am__append_3 = ${alsa_LIBS} @SOUND_PULSEAUDIO_TRUE@am__append_4 = sound_pulseaudio.c @SOUND_PULSEAUDIO_TRUE@am__append_5 = ${pulseaudio_LIBS} @SOUND_AHI_TRUE@am__append_6 = sound_ahi.c @SOUND_COREAUDIO_TRUE@am__append_7 = sound_coreaudio.c @SOUND_SNDIO_TRUE@am__append_8 = sound_sndio.c @SOUND_SNDIO_TRUE@am__append_9 = -lsndio @SOUND_BSD_TRUE@am__append_10 = sound_bsd.c @SOUND_NETBSD_TRUE@am__append_11 = sound_netbsd.c @SOUND_SOLARIS_TRUE@am__append_12 = sound_solaris.c @SOUND_HPUX_TRUE@am__append_13 = sound_hpux.c @SOUND_AIX_TRUE@am__append_14 = sound_aix.c @SOUND_SGI_TRUE@am__append_15 = sound_sgi.c @SOUND_SGI_TRUE@am__append_16 = -laudio @SOUND_SB_TRUE@am__append_17 = dos/dosdma.c dos/dosirq.c dos/dossb.c dos/dosutil.c sound_sb.c @SOUND_QNX_TRUE@am__append_18 = sound_qnx.c @SOUND_ALSA05_TRUE@am__append_19 = sound_alsa05.c @SOUND_ALSA05_TRUE@am__append_20 = -lasound @SOUND_WIN32_TRUE@am__append_21 = sound_win32.c @SOUND_WIN32_TRUE@am__append_22 = -lwinmm @SOUND_BEOS_TRUE@am__append_23 = sound_beos.cpp @SOUND_BEOS_TRUE@am__append_24 = -lmedia -lbe @SOUND_OS2DART_TRUE@am__append_25 = sound_dart.c @SOUND_OS2DART_TRUE@am__append_26 = -lmmpm2 subdir = src ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \ "$(DESTDIR)$(pkgsysconfdir)" PROGRAMS = $(bin_PROGRAMS) am__xmp_SOURCES_DIST = commands.c common.h delay.c getopt_long.h \ list.h getopt_long.c info.c main.c options.c read_config.c \ sound.c sound.h sound_file.c sound_null.c sound_wav.c \ sound_aiff.c terminal.c util.c xmp_version.h sound_oss.c \ sound_alsa.c sound_pulseaudio.c sound_ahi.c sound_coreaudio.c \ sound_sndio.c sound_bsd.c sound_netbsd.c sound_solaris.c \ sound_hpux.c sound_aix.c sound_sgi.c dos/dosdma.c dos/dosirq.c \ dos/dossb.c dos/dosutil.c sound_sb.c sound_qnx.c \ sound_alsa05.c sound_win32.c sound_beos.cpp sound_dart.c @SOUND_OSS_TRUE@am__objects_1 = sound_oss.$(OBJEXT) @SOUND_ALSA_TRUE@am__objects_2 = sound_alsa.$(OBJEXT) @SOUND_PULSEAUDIO_TRUE@am__objects_3 = sound_pulseaudio.$(OBJEXT) @SOUND_AHI_TRUE@am__objects_4 = sound_ahi.$(OBJEXT) @SOUND_COREAUDIO_TRUE@am__objects_5 = sound_coreaudio.$(OBJEXT) @SOUND_SNDIO_TRUE@am__objects_6 = sound_sndio.$(OBJEXT) @SOUND_BSD_TRUE@am__objects_7 = sound_bsd.$(OBJEXT) @SOUND_NETBSD_TRUE@am__objects_8 = sound_netbsd.$(OBJEXT) @SOUND_SOLARIS_TRUE@am__objects_9 = sound_solaris.$(OBJEXT) @SOUND_HPUX_TRUE@am__objects_10 = sound_hpux.$(OBJEXT) @SOUND_AIX_TRUE@am__objects_11 = sound_aix.$(OBJEXT) @SOUND_SGI_TRUE@am__objects_12 = sound_sgi.$(OBJEXT) am__dirstamp = $(am__leading_dot)dirstamp @SOUND_SB_TRUE@am__objects_13 = dos/dosdma.$(OBJEXT) \ @SOUND_SB_TRUE@ dos/dosirq.$(OBJEXT) dos/dossb.$(OBJEXT) \ @SOUND_SB_TRUE@ dos/dosutil.$(OBJEXT) sound_sb.$(OBJEXT) @SOUND_QNX_TRUE@am__objects_14 = sound_qnx.$(OBJEXT) @SOUND_ALSA05_TRUE@am__objects_15 = sound_alsa05.$(OBJEXT) @SOUND_WIN32_TRUE@am__objects_16 = sound_win32.$(OBJEXT) @SOUND_BEOS_TRUE@am__objects_17 = sound_beos.$(OBJEXT) @SOUND_OS2DART_TRUE@am__objects_18 = sound_dart.$(OBJEXT) am_xmp_OBJECTS = commands.$(OBJEXT) delay.$(OBJEXT) \ getopt_long.$(OBJEXT) info.$(OBJEXT) main.$(OBJEXT) \ options.$(OBJEXT) read_config.$(OBJEXT) sound.$(OBJEXT) \ sound_file.$(OBJEXT) sound_null.$(OBJEXT) sound_wav.$(OBJEXT) \ sound_aiff.$(OBJEXT) terminal.$(OBJEXT) util.$(OBJEXT) \ $(am__objects_1) $(am__objects_2) $(am__objects_3) \ $(am__objects_4) $(am__objects_5) $(am__objects_6) \ $(am__objects_7) $(am__objects_8) $(am__objects_9) \ $(am__objects_10) $(am__objects_11) $(am__objects_12) \ $(am__objects_13) $(am__objects_14) $(am__objects_15) \ $(am__objects_16) $(am__objects_17) $(am__objects_18) xmp_OBJECTS = $(am_xmp_OBJECTS) am__DEPENDENCIES_1 = @SOUND_ALSA_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) @SOUND_PULSEAUDIO_TRUE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) xmp_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) \ $(am__DEPENDENCIES_3) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) xmp_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(xmp_LDFLAGS) \ $(LDFLAGS) -o $@ AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/commands.Po ./$(DEPDIR)/delay.Po \ ./$(DEPDIR)/getopt_long.Po ./$(DEPDIR)/info.Po \ ./$(DEPDIR)/main.Po ./$(DEPDIR)/options.Po \ ./$(DEPDIR)/read_config.Po ./$(DEPDIR)/sound.Po \ ./$(DEPDIR)/sound_ahi.Po ./$(DEPDIR)/sound_aiff.Po \ ./$(DEPDIR)/sound_aix.Po ./$(DEPDIR)/sound_alsa.Po \ ./$(DEPDIR)/sound_alsa05.Po ./$(DEPDIR)/sound_beos.Po \ ./$(DEPDIR)/sound_bsd.Po ./$(DEPDIR)/sound_coreaudio.Po \ ./$(DEPDIR)/sound_dart.Po ./$(DEPDIR)/sound_file.Po \ ./$(DEPDIR)/sound_hpux.Po ./$(DEPDIR)/sound_netbsd.Po \ ./$(DEPDIR)/sound_null.Po ./$(DEPDIR)/sound_oss.Po \ ./$(DEPDIR)/sound_pulseaudio.Po ./$(DEPDIR)/sound_qnx.Po \ ./$(DEPDIR)/sound_sb.Po ./$(DEPDIR)/sound_sgi.Po \ ./$(DEPDIR)/sound_sndio.Po ./$(DEPDIR)/sound_solaris.Po \ ./$(DEPDIR)/sound_wav.Po ./$(DEPDIR)/sound_win32.Po \ ./$(DEPDIR)/terminal.Po ./$(DEPDIR)/util.Po \ dos/$(DEPDIR)/dosdma.Po dos/$(DEPDIR)/dosirq.Po \ dos/$(DEPDIR)/dossb.Po dos/$(DEPDIR)/dosutil.Po am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) AM_V_CXX = $(am__v_CXX_@AM_V@) am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) am__v_CXX_0 = @echo " CXX " $@; am__v_CXX_1 = CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) am__v_CXXLD_0 = @echo " CXXLD " $@; am__v_CXXLD_1 = SOURCES = $(xmp_SOURCES) DIST_SOURCES = $(am__xmp_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man1dir = $(mandir)/man1 NROFF = nroff MANS = $(man_MANS) DATA = $(pkgsysconf_DATA) am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` am__DIST_COMMON = $(srcdir)/Makefile.in \ $(top_srcdir)/build-aux/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CSCOPE = @CSCOPE@ CTAGS = @CTAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CXXLD = @CXXLD@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LD_VERSCRIPT = @LD_VERSCRIPT@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBXMP_CFLAGS = @LIBXMP_CFLAGS@ LIBXMP_LIBS = @LIBXMP_LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ XMP_DARWIN_LDFLAGS = @XMP_DARWIN_LDFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ alsa_CFLAGS = @alsa_CFLAGS@ alsa_LIBS = @alsa_LIBS@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ pulseaudio_CFLAGS = @pulseaudio_CFLAGS@ pulseaudio_LIBS = @pulseaudio_LIBS@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AM_CPPFLAGS = -DSYSCONFDIR=\"${sysconfdir}/${PACKAGE_NAME}\" ${LIBXMP_CFLAGS} \ ${alsa_CFLAGS} ${pulseaudio_CFLAGS} AM_CFLAGS = -Wall xmp_SOURCES = commands.c common.h delay.c getopt_long.h list.h \ getopt_long.c info.c main.c options.c read_config.c sound.c \ sound.h sound_file.c sound_null.c sound_wav.c sound_aiff.c \ terminal.c util.c xmp_version.h $(am__append_1) \ $(am__append_2) $(am__append_4) $(am__append_6) \ $(am__append_7) $(am__append_8) $(am__append_10) \ $(am__append_11) $(am__append_12) $(am__append_13) \ $(am__append_14) $(am__append_15) $(am__append_17) \ $(am__append_18) $(am__append_19) $(am__append_21) \ $(am__append_23) $(am__append_25) xmp_LDADD = ${LIBXMP_LIBS} $(am__append_3) $(am__append_5) \ $(am__append_9) $(am__append_16) $(am__append_20) \ $(am__append_22) $(am__append_24) $(am__append_26) xmp_LDFLAGS = ${XMP_DARWIN_LDFLAGS} man_MANS = xmp.1 pkgsysconfdir = ${sysconfdir}/${PACKAGE_NAME} pkgsysconf_DATA = modules.conf xmp.conf EXTRA_DIST = ${man_MANS} ${pkgsysconf_DATA} \ dos/dosdma.h dos/dosirq.h dos/dossb.h dos/dosutil.h all: all-am .SUFFIXES: .SUFFIXES: .c .cpp .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/Makefile 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__maybe_remake_depfiles)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) dos/$(am__dirstamp): @$(MKDIR_P) dos @: > dos/$(am__dirstamp) dos/$(DEPDIR)/$(am__dirstamp): @$(MKDIR_P) dos/$(DEPDIR) @: > dos/$(DEPDIR)/$(am__dirstamp) dos/dosdma.$(OBJEXT): dos/$(am__dirstamp) \ dos/$(DEPDIR)/$(am__dirstamp) dos/dosirq.$(OBJEXT): dos/$(am__dirstamp) \ dos/$(DEPDIR)/$(am__dirstamp) dos/dossb.$(OBJEXT): dos/$(am__dirstamp) dos/$(DEPDIR)/$(am__dirstamp) dos/dosutil.$(OBJEXT): dos/$(am__dirstamp) \ dos/$(DEPDIR)/$(am__dirstamp) xmp$(EXEEXT): $(xmp_OBJECTS) $(xmp_DEPENDENCIES) $(EXTRA_xmp_DEPENDENCIES) @rm -f xmp$(EXEEXT) $(AM_V_CXXLD)$(xmp_LINK) $(xmp_OBJECTS) $(xmp_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) -rm -f dos/*.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/commands.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/delay.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt_long.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/info.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/options.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/read_config.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_ahi.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_aiff.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_aix.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_alsa.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_alsa05.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_beos.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_bsd.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_coreaudio.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_dart.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_file.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_hpux.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_netbsd.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_null.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_oss.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_pulseaudio.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_qnx.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_sb.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_sgi.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_sndio.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_solaris.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_wav.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sound_win32.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/terminal.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@dos/$(DEPDIR)/dosdma.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@dos/$(DEPDIR)/dosirq.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@dos/$(DEPDIR)/dossb.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@dos/$(DEPDIR)/dosutil.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @echo '# dummy' >$@-t && $(am__mv) $@-t $@ am--depfiles: $(am__depfiles_remade) .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cpp.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` install-man1: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) install-pkgsysconfDATA: $(pkgsysconf_DATA) @$(NORMAL_INSTALL) @list='$(pkgsysconf_DATA)'; test -n "$(pkgsysconfdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgsysconfdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgsysconfdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgsysconfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgsysconfdir)" || exit $$?; \ done uninstall-pkgsysconfDATA: @$(NORMAL_UNINSTALL) @list='$(pkgsysconf_DATA)'; test -n "$(pkgsysconfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgsysconfdir)'; $(am__uninstall_files_from_dir) ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am distdir-am: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(MANS) $(DATA) installdirs: for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pkgsysconfdir)"; 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: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -rm -f dos/$(DEPDIR)/$(am__dirstamp) -rm -f dos/$(am__dirstamp) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -f ./$(DEPDIR)/commands.Po -rm -f ./$(DEPDIR)/delay.Po -rm -f ./$(DEPDIR)/getopt_long.Po -rm -f ./$(DEPDIR)/info.Po -rm -f ./$(DEPDIR)/main.Po -rm -f ./$(DEPDIR)/options.Po -rm -f ./$(DEPDIR)/read_config.Po -rm -f ./$(DEPDIR)/sound.Po -rm -f ./$(DEPDIR)/sound_ahi.Po -rm -f ./$(DEPDIR)/sound_aiff.Po -rm -f ./$(DEPDIR)/sound_aix.Po -rm -f ./$(DEPDIR)/sound_alsa.Po -rm -f ./$(DEPDIR)/sound_alsa05.Po -rm -f ./$(DEPDIR)/sound_beos.Po -rm -f ./$(DEPDIR)/sound_bsd.Po -rm -f ./$(DEPDIR)/sound_coreaudio.Po -rm -f ./$(DEPDIR)/sound_dart.Po -rm -f ./$(DEPDIR)/sound_file.Po -rm -f ./$(DEPDIR)/sound_hpux.Po -rm -f ./$(DEPDIR)/sound_netbsd.Po -rm -f ./$(DEPDIR)/sound_null.Po -rm -f ./$(DEPDIR)/sound_oss.Po -rm -f ./$(DEPDIR)/sound_pulseaudio.Po -rm -f ./$(DEPDIR)/sound_qnx.Po -rm -f ./$(DEPDIR)/sound_sb.Po -rm -f ./$(DEPDIR)/sound_sgi.Po -rm -f ./$(DEPDIR)/sound_sndio.Po -rm -f ./$(DEPDIR)/sound_solaris.Po -rm -f ./$(DEPDIR)/sound_wav.Po -rm -f ./$(DEPDIR)/sound_win32.Po -rm -f ./$(DEPDIR)/terminal.Po -rm -f ./$(DEPDIR)/util.Po -rm -f dos/$(DEPDIR)/dosdma.Po -rm -f dos/$(DEPDIR)/dosirq.Po -rm -f dos/$(DEPDIR)/dossb.Po -rm -f dos/$(DEPDIR)/dosutil.Po -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-man install-pkgsysconfDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man1 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/commands.Po -rm -f ./$(DEPDIR)/delay.Po -rm -f ./$(DEPDIR)/getopt_long.Po -rm -f ./$(DEPDIR)/info.Po -rm -f ./$(DEPDIR)/main.Po -rm -f ./$(DEPDIR)/options.Po -rm -f ./$(DEPDIR)/read_config.Po -rm -f ./$(DEPDIR)/sound.Po -rm -f ./$(DEPDIR)/sound_ahi.Po -rm -f ./$(DEPDIR)/sound_aiff.Po -rm -f ./$(DEPDIR)/sound_aix.Po -rm -f ./$(DEPDIR)/sound_alsa.Po -rm -f ./$(DEPDIR)/sound_alsa05.Po -rm -f ./$(DEPDIR)/sound_beos.Po -rm -f ./$(DEPDIR)/sound_bsd.Po -rm -f ./$(DEPDIR)/sound_coreaudio.Po -rm -f ./$(DEPDIR)/sound_dart.Po -rm -f ./$(DEPDIR)/sound_file.Po -rm -f ./$(DEPDIR)/sound_hpux.Po -rm -f ./$(DEPDIR)/sound_netbsd.Po -rm -f ./$(DEPDIR)/sound_null.Po -rm -f ./$(DEPDIR)/sound_oss.Po -rm -f ./$(DEPDIR)/sound_pulseaudio.Po -rm -f ./$(DEPDIR)/sound_qnx.Po -rm -f ./$(DEPDIR)/sound_sb.Po -rm -f ./$(DEPDIR)/sound_sgi.Po -rm -f ./$(DEPDIR)/sound_sndio.Po -rm -f ./$(DEPDIR)/sound_solaris.Po -rm -f ./$(DEPDIR)/sound_wav.Po -rm -f ./$(DEPDIR)/sound_win32.Po -rm -f ./$(DEPDIR)/terminal.Po -rm -f ./$(DEPDIR)/util.Po -rm -f dos/$(DEPDIR)/dosdma.Po -rm -f dos/$(DEPDIR)/dosirq.Po -rm -f dos/$(DEPDIR)/dossb.Po -rm -f dos/$(DEPDIR)/dosutil.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-man \ uninstall-pkgsysconfDATA uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-binPROGRAMS install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-man1 install-pdf install-pdf-am \ install-pkgsysconfDATA install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \ uninstall-am uninstall-binPROGRAMS uninstall-man \ uninstall-man1 uninstall-pkgsysconfDATA .PRECIOUS: Makefile # 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: xmp-4.2.0/src/sound_oss.c0000644000000000000000000001025014442670136013773 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ /* * devfs /dev/sound/dsp support by Dirk Jagdmann * resume/onpause by Test Rat */ #include #include #include #include #include #include #include #include #if defined(HAVE_SYS_SOUNDCARD_H) #include #elif defined(HAVE_MACHINE_SOUNDCARD_H) #include #endif #include "sound.h" #ifndef AFMT_U16_NE # if AFMT_S16_NE == AFMT_S16_LE # define AFMT_U16_NE AFMT_U16_LE # else # define AFMT_U16_NE AFMT_U16_BE # endif #endif static int audio_fd; static int fragnum, fragsize; static int do_sync = 1; static int to_fmt(int format) { int fmt; if (format & XMP_FORMAT_8BIT) fmt = AFMT_U8 | AFMT_S8; else { fmt = AFMT_S16_NE | AFMT_U16_NE; } if (format & XMP_FORMAT_UNSIGNED) fmt &= AFMT_U8 | AFMT_U16_LE | AFMT_U16_BE; else fmt &= AFMT_S8 | AFMT_S16_LE | AFMT_S16_BE; return fmt; } static int from_fmt(int fmt) { int format = 0; if (!(fmt & (AFMT_S16_LE | AFMT_S16_BE | AFMT_U16_LE | AFMT_U16_BE))) { format |= XMP_FORMAT_8BIT; } if (fmt & (AFMT_U8 | AFMT_U16_LE | AFMT_U16_BE)) { format |= XMP_FORMAT_UNSIGNED; } return format; } static void setaudio(int *rate, int *format) { static int fragset = 0; int frag = 0; int fmt; frag = (fragnum << 16) + fragsize; fmt = to_fmt(*format); ioctl(audio_fd, SNDCTL_DSP_SETFMT, &fmt); *format = from_fmt(fmt); fmt = !(*format & XMP_FORMAT_MONO); ioctl(audio_fd, SNDCTL_DSP_STEREO, &fmt); if (fmt) { *format &= ~XMP_FORMAT_MONO; } else { *format |= XMP_FORMAT_MONO; } ioctl(audio_fd, SNDCTL_DSP_SPEED, rate); /* Set the fragments only once */ if (!fragset) { if (fragnum && fragsize) ioctl(audio_fd, SNDCTL_DSP_SETFRAGMENT, &frag); fragset++; } } static int init(struct options *options) { char **parm = options->driver_parm; static const char *dev_audio[] = { #ifdef DEVOSSAUDIO DEVOSSAUDIO, /* pkgsrc */ #endif "/dev/dsp", "/dev/sound/dsp", "/dev/audio" /* NetBSD and SunOS */ }; audio_buf_info info; static char buf[80]; int i; fragnum = 16; /* default number of fragments */ i = 1024; /* default size of fragment */ parm_init(parm); chkparm2("frag", "%d,%d", &fragnum, &i); chkparm1("dev", dev_audio[0] = token); chkparm0("nosync", do_sync = 0); parm_end(); for (fragsize = 0; i >>= 1; fragsize++) ; if (fragsize < 4) fragsize = 4; for (i = 0; i < sizeof(dev_audio) / sizeof(dev_audio[0]); i++) if ((audio_fd = open(dev_audio[i], O_WRONLY)) >= 0) break; if (audio_fd < 0) return -1; setaudio(&options->rate, &options->format); if (ioctl(audio_fd, SNDCTL_DSP_GETOSPACE, &info) == 0) { snprintf(buf, 80, "%s [%d fragments of %d bytes]", sound_oss.description, info.fragstotal, info.fragsize); sound_oss.description = buf; } return 0; } /* Build and write one tick (one PAL frame or 1/50 s in standard vblank * timed mods) of audio data to the output device. */ static void play(void *b, int i) { int j; while (i) { if ((j = write(audio_fd, b, i)) > 0) { i -= j; b = (char *)b + j; } else break; }; } static void deinit(void) { ioctl(audio_fd, SNDCTL_DSP_RESET, NULL); close(audio_fd); } static void flush(void) { } static void onpause(void) { #ifdef SNDCTL_DSP_SETTRIGGER int trig = 0; ioctl(audio_fd, SNDCTL_DSP_SETTRIGGER, &trig); #else ioctl(audio_fd, SNDCTL_DSP_RESET, NULL); #endif if (do_sync) ioctl(audio_fd, SNDCTL_DSP_SYNC, NULL); } static void onresume(void) { #ifdef SNDCTL_DSP_SETTRIGGER int trig = PCM_ENABLE_OUTPUT; ioctl(audio_fd, SNDCTL_DSP_SETTRIGGER, &trig); #endif } static const char *const help[] = { "frag=num,size", "Set the number and size of fragments", "dev=", "Audio device to use (default /dev/dsp)", "nosync", "Don't flush OSS buffers between modules", NULL }; struct sound_driver sound_oss = { "oss", "OSS PCM audio", help, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/options.c0000644000000000000000000002563614442670136013470 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #if defined(HAVE_GETOPT_H) && defined(HAVE_GETOPT_LONG) #include #else #include "getopt_long.h" #endif #include "common.h" #include "sound.h" #include "list.h" #include "xmp_version.h" extern struct list_head sound_driver_list; enum { OPT_FX9BUG = 0x105, OPT_PROBEONLY, OPT_LOADONLY, OPT_NOCMD, OPT_VBLANK, OPT_FIXLOOP, OPT_NORC, OPT_LOOPALL, OPT_NUMVOICES, }; struct player_mode pmode[] = { { "auto", "Autodetect", XMP_MODE_AUTO }, { "mod", "Generic MOD player", XMP_MODE_MOD }, { "noisetracker", "Noisetracker", XMP_MODE_NOISETRACKER }, { "protracker", "Protracker 2", XMP_MODE_PROTRACKER }, { "s3m", "Generic S3M player", XMP_MODE_S3M }, { "st3", "Scream Tracker 3", XMP_MODE_ST3 }, { "st3gus", "Scream Tracker 3 with GUS", XMP_MODE_ST3GUS }, { "xm", "Generic XM player", XMP_MODE_XM }, { "ft2", "Fasttracker II", XMP_MODE_FT2 }, { "it", "Impulse Tracker", XMP_MODE_IT }, { "itsmp", "Impulse Tracker sample mode", XMP_MODE_ITSMP }, { NULL, NULL, 0 } }; static void usage(char *s, struct options *options) { struct list_head *head; struct sound_driver *sd; struct player_mode *pm; const char *const *hlp; printf("Usage: %s [options] [modules]\n", s); printf("\nAvailable drivers:\n"); list_for_each(head, &sound_driver_list) { sd = list_entry(head, struct sound_driver, list); printf(" %s (%s)\n", sd->id, sd->description); } list_for_each(head, &sound_driver_list) { sd = list_entry(head, struct sound_driver, list); if (sd->help) printf("\n%s options:\n", sd->description); for (hlp = sd->help; hlp && *hlp; hlp += 2) printf(" -D%-20.20s %s\n", hlp[0], hlp[1]); } printf("\nAvailable player modes:\n"); for (pm = pmode; pm->name != NULL; pm++) { printf(" %-22.22s %s\n", pm->name, pm->desc); } printf("\nPlayer control options:\n" " -D parameter[=val] Pass configuration parameter to the output driver\n" " -d --driver name Force output to the specified device\n" " -e --player-mode mode Force tracker emulation (default auto)\n" " --fix-sample-loops Use sample loop start /2 in MOD/UNIC/NP3\n" " -l --loop Enable module looping\n" " --loop-all Loop over entire module list\n" " -M --mute ch-list Mute the specified channels\n" " --nocmd Disable interactive commands\n" " --norc Don't read configuration files\n" " -R --random Random order playing\n" " -S --solo ch-list Set channels to solo mode\n" " -s --start num Start from the specified order\n" " -t --time num Maximum playing time in seconds\n" " -U --loop-until num Loop until time in seconds exceeded\n" " --vblank Force vblank timing in Amiga modules\n" " -Z --all-sequences Play all sequences (subsongs) in module\n" " -z --sequence num Play the specified sequence (0=main)\n" "\nMixer options:\n" " -A --amiga Use Paula simulation mixer in Amiga formats\n" " -a --amplify {0|1|2|3} Amplification factor: 0=Normal, 1=x2, 2=x4, 3=x8\n" " -b --bits {8|16} Software mixer resolution (8 or 16 bits)\n" " -c --stdout Mix the module to stdout\n" " -f --frequency rate Sampling rate in hertz (default 44100)\n" " -i --interpolation {nearest|linear|spline}\n" " Select interpolation type (default spline)\n" " --mixer-voices num Maximum number of mixer voices (default %d)\n" " -m --mono Mono output\n" " -n --null Use null output driver (same as --driver=null)\n" " -F --nofilter Disable IT lowpass filters\n" " -o --output-file name Mix the module to file ('-' for stdout)\n" " -P --pan pan Percentual pan separation\n" " -p --default-pan Percentual default pan setting (default %d%%)\n" " -r --reverse Reverse left/right stereo channels\n" " -u --unsigned Set the mixer to use unsigned samples\n" "\nEnvironment options:\n" " -I --instrument-path Set pathname to external samples\n" "\nInformation options:\n" " -C --show-comment Display the module comment text, if any\n" " -h --help Display a summary of the command line options\n" " -L --list-formats List supported module formats\n" " --probe-only Probe audio device and exit\n" " --load-only Load module and exit\n" " -q --quiet Quiet mode (verbosity level = 0)\n" " -V --version Print version information\n" " -v --verbose Verbose mode (incremental)\n", options->numvoices, options->defpan); } static const struct option lopt[] = { { "amiga", 0, 0, 'A' }, { "amplify", 1, 0, 'a' }, { "bits", 1, 0, 'b' }, { "driver", 1, 0, 'd' }, { "default-pan", 1, 0, 'p' }, { "fix-sample-loops", 0, 0, OPT_FIXLOOP }, { "frequency", 1, 0, 'f' }, { "help", 0, 0, 'h' }, { "instrument-path", 1, 0, 'I' }, { "interpolation", 1, 0, 'i' }, { "list-formats", 0, 0, 'L' }, { "loop", 0, 0, 'l' }, { "loop-all", 0, 0, OPT_LOOPALL }, { "loop-until", 1, 0, 'U' }, { "mixer-voices", 1, 0, OPT_NUMVOICES }, { "mono", 0, 0, 'm' }, { "mute", 1, 0, 'M' }, { "null", 0, 0, 'N' }, { "nocmd", 0, 0, OPT_NOCMD }, { "norc", 0, 0, OPT_NORC }, { "nofilter", 0, 0, 'F' }, /* { "offset-bug-emulation",0, 0, OPT_FX9BUG }, */ { "output-file", 1, 0, 'o' }, { "pan", 1, 0, 'P' }, { "player-mode", 1, 0, 'e' }, { "probe-only", 0, 0, OPT_PROBEONLY }, { "load-only", 0, 0, OPT_LOADONLY }, { "quiet", 0, 0, 'q' }, { "random", 0, 0, 'R' }, { "reverse", 0, 0, 'r' }, { "show-comment", 0, 0, 'C' }, { "solo", 1, 0, 'S' }, { "start", 1, 0, 's' }, { "stdout", 0, 0, 'c' }, { "tempo", 1, 0, 'T' }, { "time", 1, 0, 't' }, { "unsigned", 0, 0, 'u' }, { "vblank", 0, 0, OPT_VBLANK }, { "version", 0, 0, 'V' }, { "verbose", 0, 0, 'v' }, { "all-sequences", 1, 0, 'Z' }, { "sequence", 1, 0, 'z' }, { NULL, 0, 0, 0 } }; static char *token; void get_options(int argc, char **argv, struct options *options) { struct player_mode *pm; int optidx = 0; int o; char const* driver_guess = NULL; #define OPTIONS "Aa:b:CcD:d:e:Ff:hI:i:LlM:mNo:P:p:qRrS:s:T:t:U:uVvZz:" while ((o = getopt_long(argc, argv, OPTIONS, lopt, &optidx)) != -1) { switch (o) { case 'A': options->amiga_mixer = 1; break; case 'a': options->amplify = atoi(optarg); break; case 'b': if (atoi(optarg) == 8) { options->format |= XMP_FORMAT_8BIT; } break; case 'C': options->show_comment = 1; break; case 'c': driver_guess = "file"; options->out_file = "-"; break; case 'D': if (options->dparm < MAX_DRV_PARM) options->driver_parm[options->dparm++] = optarg; break; case 'd': options->driver_id = optarg; break; case 'e': for (pm = pmode; pm->name != NULL; pm++) { if (!strcmp(optarg, pm->name)) { options->player_mode = pm->mode; break; } options->player_mode = -1; } break; case 'F': options->dsp &= ~XMP_DSP_LOWPASS; break; case 'f': options->rate = strtoul(optarg, NULL, 0); break; case OPT_FIXLOOP: options->fixloop = 1; break; case 'I': options->ins_path = optarg; break; case 'i': if (!strcmp(optarg, "nearest")) { options->interp = XMP_INTERP_NEAREST; } else if (!strcmp(optarg, "linear")) { options->interp = XMP_INTERP_LINEAR; } else if (!strcmp(optarg, "spline")) { options->interp = XMP_INTERP_SPLINE; } else { options->interp = -1; } break; case OPT_LOADONLY: options->info = 1; options->silent = 1; break; case 'L': { const char* const * list; int i; list = xmp_get_format_list(); for (i = 0; list[i] != NULL; i++) { printf("%d:%s\n", i + 1, list[i]); } exit(EXIT_SUCCESS); break; } case 'l': options->loop = 1; break; case OPT_LOOPALL: options->loop = 2; break; case OPT_NUMVOICES: options->numvoices = strtoul(optarg, NULL, 0); break; case 'm': options->format |= XMP_FORMAT_MONO; break; case 'N': options->silent = 1; break; case OPT_NOCMD: options->nocmd = 1; break; case OPT_NORC: options->norc = 1; break; case 'o': options->out_file = optarg; if (strlen(optarg) >= 4 && !xmp_strcasecmp(optarg + strlen(optarg) - 4, ".wav")) { driver_guess = "wav"; } else if (strlen(optarg) >= 5 && !xmp_strcasecmp(optarg + strlen(optarg) - 5, ".aiff")) { driver_guess = "aiff"; } else { driver_guess = "file"; } break; /* case OPT_FX9BUG: options->fx9bug = 1; break; */ case 'P': options->mix = strtoul(optarg, NULL, 0); if (options->mix < 0) options->mix = 0; if (options->mix > 100) options->mix = 100; break; case 'p': options->defpan = strtoul(optarg, NULL, 0); if (options->defpan < 0) options->defpan = 0; if (options->defpan > 100) options->defpan = 100; break; case OPT_PROBEONLY: options->probeonly = 1; break; case 'q': options->verbose = 0; break; case 'R': options->random = 1; break; case 'r': options->reverse = 1; break; case 'M': case 'S': if (o == 'S') { memset(options->mute, 1, XMP_MAX_CHANNELS); } token = strtok(optarg, ","); while (token) { int a, b; char buf[40]; memset(buf, 0, 40); if (strchr(token, '-')) { b = strcspn(token, "-"); strncpy(buf, token, b); a = atoi(buf); strncpy(buf, token + b + 1, strlen(token) - b - 1); b = atoi(buf); } else { a = b = atoi(token); } for (; b >= a; b--) { if (b < XMP_MAX_CHANNELS) options->mute[b] = (o == 'M'); } token = strtok(NULL, ","); } break; case 's': options->start = strtoul(optarg, NULL, 0); break; case 't': options->max_time = strtoul(optarg, NULL, 0) * 1000; break; case 'u': options->format |= XMP_FORMAT_UNSIGNED; break; case 'U': options->loop_time = strtoul(optarg, NULL, 0) * 1000; break; case OPT_VBLANK: options->vblank = 1; break; case 'V': puts("Extended Module Player " VERSION); exit(0); case 'v': options->verbose++; break; case 'Z': options->explore = 1; break; case 'z': options->sequence = strtoul(optarg, NULL, 0); break; case 'h': usage(argv[0], options); /* fall through */ default: exit(-1); } } /* Set limits */ if (options->rate < 1000) options->rate = 1000; /* Min. rate 1 kHz */ if (options->rate > 48000) options->rate = 48000; /* Max. rate 48 kHz */ /* apply guess if no driver selected */ if (!options->driver_id) options->driver_id = driver_guess; } xmp-4.2.0/src/sound_dart.c0000644000000000000000000001231114442670136014121 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ /* * This should work for OS/2 Dart * History: * 1.0 - By Kevin Langman */ #undef VERSION /* stop conflict with os2medef.h */ #include #include #define INCL_DOS #define INCL_DOSERRORS #include #include #include #include #include "sound.h" #define BUFFERCOUNT 4 #define BUF_MIN 8 #define BUF_MAX 32 static MCI_MIX_BUFFER MixBuffers[BUFFERCOUNT]; static MCI_MIXSETUP_PARMS MixSetupParms; static MCI_BUFFER_PARMS BufferParms; static MCI_GENERIC_PARMS GenericParms; static ULONG DeviceID = 0; static int bsize = 16; static short next = 2; static short ready = 1; static HMTX mutex; /* Buffer update thread (created and called by DART) */ static LONG APIENTRY OS2_Dart_UpdateBuffers (ULONG ulStatus, PMCI_MIX_BUFFER pBuffer, ULONG ulFlags) { if ((ulFlags == MIX_WRITE_COMPLETE) || ((ulFlags == (MIX_WRITE_COMPLETE | MIX_STREAM_ERROR)) && (ulStatus == ERROR_DEVICE_UNDERRUN))) { DosRequestMutexSem(mutex, SEM_INDEFINITE_WAIT); ready++; DosReleaseMutexSem(mutex); } return (TRUE); } static int init(struct options *options) { char **parm = options->driver_parm; char sharing = 0; int device = 0; int flags; int i; MCI_AMP_OPEN_PARMS AmpOpenParms; parm_init(parm); chkparm1("sharing", sharing = *token); chkparm1("device", device = atoi(token)); chkparm1("buffer", bsize = strtoul(token, NULL, 0)); parm_end(); if (DosCreateMutexSem(NULL, &mutex, 0, 0) != NO_ERROR) return -1; if ((bsize < BUF_MIN || bsize > BUF_MAX) && bsize != 0) { bsize = 16 * 1024; } else { bsize *= 1024; } MixBuffers[0].pBuffer = NULL; /* marker */ memset(&GenericParms, 0, sizeof(MCI_GENERIC_PARMS)); /* open AMP device */ memset(&AmpOpenParms, 0, sizeof(MCI_AMP_OPEN_PARMS)); AmpOpenParms.usDeviceID = 0; AmpOpenParms.pszDeviceType = (PSZ) MAKEULONG(MCI_DEVTYPE_AUDIO_AMPMIX, (USHORT) device); flags = MCI_WAIT | MCI_OPEN_TYPE_ID; if (sharing == 'Y' || sharing == 'y') { flags = flags | MCI_OPEN_SHAREABLE; } if (mciSendCommand(0, MCI_OPEN, flags, (PVOID) & AmpOpenParms, 0) != MCIERR_SUCCESS) { return -1; } DeviceID = AmpOpenParms.usDeviceID; /* setup playback parameters */ memset(&MixSetupParms, 0, sizeof(MCI_MIXSETUP_PARMS)); MixSetupParms.ulBitsPerSample = options->format & XMP_FORMAT_8BIT ? 8 : 16; MixSetupParms.ulFormatTag = MCI_WAVE_FORMAT_PCM; MixSetupParms.ulSamplesPerSec = options->rate; MixSetupParms.ulChannels = options->format & XMP_FORMAT_MONO ? 1 : 2; MixSetupParms.ulFormatMode = MCI_PLAY; MixSetupParms.ulDeviceType = MCI_DEVTYPE_WAVEFORM_AUDIO; MixSetupParms.pmixEvent = OS2_Dart_UpdateBuffers; if (mciSendCommand(DeviceID, MCI_MIXSETUP, MCI_WAIT | MCI_MIXSETUP_INIT, (PVOID) & MixSetupParms, 0) != MCIERR_SUCCESS) { mciSendCommand(DeviceID, MCI_CLOSE, MCI_WAIT, (PVOID) & GenericParms, 0); return -1; } /* take in account the DART suggested buffer size... */ if (bsize == 0) { bsize = MixSetupParms.ulBufferSize; } /*printf("Dart Buffer Size = %d\n", bsize);*/ BufferParms.ulNumBuffers = BUFFERCOUNT; BufferParms.ulBufferSize = bsize; BufferParms.pBufList = MixBuffers; if (mciSendCommand(DeviceID, MCI_BUFFER, MCI_WAIT | MCI_ALLOCATE_MEMORY, (PVOID) & BufferParms, 0) != MCIERR_SUCCESS) { mciSendCommand(DeviceID, MCI_CLOSE, MCI_WAIT, (PVOID) & GenericParms, 0); return -1; } for (i = 0; i < BUFFERCOUNT; i++) { MixBuffers[i].ulBufferLength = bsize; } /* Start Playback */ memset(MixBuffers[0].pBuffer, /*32767 */ 0, bsize); memset(MixBuffers[1].pBuffer, /*32767 */ 0, bsize); MixSetupParms.pmixWrite(MixSetupParms.ulMixHandle, MixBuffers, 2); return 0; } static void play(void *b, int i) { static int index = 0; if (index + i > bsize) { do { DosRequestMutexSem(mutex, SEM_INDEFINITE_WAIT); if (ready != 0) { DosReleaseMutexSem(mutex); break; } DosReleaseMutexSem(mutex); DosSleep(20); } while (TRUE); MixBuffers[next].ulBufferLength = index; MixSetupParms.pmixWrite(MixSetupParms.ulMixHandle, &(MixBuffers[next]), 1); ready--; next++; index = 0; if (next == BUFFERCOUNT) { next = 0; } } memcpy(&((char *)MixBuffers[next].pBuffer)[index], b, i); index += i; } static void deinit(void) { if (MixBuffers[0].pBuffer) { mciSendCommand(DeviceID, MCI_BUFFER, MCI_WAIT | MCI_DEALLOCATE_MEMORY, &BufferParms, 0); MixBuffers[0].pBuffer = NULL; } if (DeviceID) { mciSendCommand(DeviceID, MCI_CLOSE, MCI_WAIT, (PVOID) & GenericParms, 0); DeviceID = 0; } } static void flush(void) { } static void onpause(void) { } static void onresume(void) { } static const char *const help[] = { "sharing={Y,N}", "Device Sharing (default is N)", "device=val", "OS/2 Audio Device (default is 0 auto-detect)", "buffer=val", "Audio buffer size (default is 16)", NULL }; struct sound_driver sound_os2dart = { "dart", "OS/2 Direct Audio Realtime", help, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/sound_qnx.c0000644000000000000000000000417614442670136014007 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ /* * Based on the QNX4 port of nspmod by Mike Gorchak */ #include #include #include "sound.h" static int fd_audio; static int init(struct options *options) { char **parm = options->driver_parm; int rc, rate, bits, stereo, bsize; const char *dev; parm_init(parm); chkparm1("dev", dev = token); chkparm1("buffer", bsize = strtoul(token, NULL, 0)); parm_end(); rate = options->rate; bits = options->format & XMP_FORMAT_8BIT ? 8 : 16; stereo = 1; bufsize = 32 * 1024; fd_audio = open(dev, O_WRONLY); if (fd_audio < 0) { fprintf(stderr, "can't open audio device\n"); return -1; } if (options->outfmt & XMP_FORMAT_MONO) stereo = 0; if (ioctl(fd_audio, SOUND_PCM_WRITE_BITS, &bits) < 0) { perror("can't set resolution"); goto error; } if (ioctl(fd, SNDCTL_DSP_STEREO, &stereo) < 0) { perror("can't set channels"); goto error; } if (ioctl(fd, SNDCTL_DSP_SPEED, &rate) < 0) { perror("can't set rate"); goto error; } if (ioctl(fd, SNDCTL_DSP_GETBLKSIZE, &buf.size) < 0) { perror("can't set rate"); goto error; } if (ioctl(fd, SNDCTL_DSP_GETBLKSIZE, &bufsize) < 0) { perror("can't set buffer"); goto error; } return 0; error: close(fd_audio); return -1; } static void play(void *b, int i) { int j; do { if ((j = write(fd_audio, b, i)) > 0) { i -= j; b = (char *)b + j; } else { break; } } while (i); } static void deinit(void) { close(fd_audio); } static void flush(void) { ioctl(fd, SNDCTL_DSP_SYNC, NULL); } static void onpause(void) { } static void onresume(void) { } static const char *const help[] = { "dev=", "Audio device name (default is /dev/dsp)", "buffer=val", "Audio buffer size (default is 32768)", NULL }; struct sound_driver sound_qnx = { "QNX", "QNX PCM audio", help, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/sound_hpux.c0000644000000000000000000000600514442670136014156 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ /* Tested on a 9000/710 running HP-UX 9.05 with 8 kHz, 16 bit mono output. */ #include #include #include #include #include #include #include "sound.h" static int audio_fd; /* Standard sampling rates */ static const int srate[] = { 44100, 32000, 22050, 16000, 11025, 8000, 0 }; static int init(struct options *options) { char **parm = options->driver_parm; int flags; int gain = 128; int bsize = 32 * 1024; int port = AUDIO_OUT_SPEAKER; int nch = options->format & XMP_FORMAT_MONO ? 1 : 2; struct audio_gains agains; struct audio_describe adescribe; int i; parm_init(parm); chkparm1("gain", gain = strtoul(token, NULL, 0)); chkparm1("buffer", bsize = strtoul(token, NULL, 0)); chkparm1("port", port = (int)*token) parm_end(); switch (port) { case 'h': port = AUDIO_OUT_HEADPHONE; break; case 'l': port = AUDIO_OUT_LINE; break; default: port = AUDIO_OUT_SPEAKER; } if ((audio_fd = open("/dev/audio", O_WRONLY)) == -1) goto err; if ((flags = fcntl(audio_fd, F_GETFL, 0)) < 0) goto err1; flags |= O_NDELAY; if ((flags = fcntl(audio_fd, F_SETFL, flags)) < 0) goto err1; options->format &= ~XMP_FORMAT_8BIT; if (ioctl(audio_fd, AUDIO_SET_DATA_FORMAT, AUDIO_FORMAT_LINEAR16BIT) == -1) goto err1; if (ioctl(audio_fd, AUDIO_SET_CHANNELS, nch) == -1) { options->format ^= XMP_FORMAT_MONO; nch = options->format & XMP_FORMAT_MONO ? 1 : 2; if (ioctl(audio_fd, AUDIO_SET_CHANNELS, nch) == -1) { goto err1; } } ioctl(audio_fd, AUDIO_SET_OUTPUT, port); for (i = 0; ; i++) { if (ioctl(audio_fd, AUDIO_SET_SAMPLE_RATE, options->rate) == 0) break; if ((options->rate = srate[i]) == 0) goto err1; } if (ioctl(audio_fd, AUDIO_DESCRIBE, &adescribe) == -1) goto err1; if (ioctl(audio_fd, AUDIO_GET_GAINS, &agains) == -1) goto err1; agains.transmit_gain = adescribe.min_transmit_gain + (adescribe.max_transmit_gain - adescribe.min_transmit_gain) * gain / 256; if (ioctl(audio_fd, AUDIO_SET_GAINS, &agains) == -1) goto err1; ioctl(audio_fd, AUDIO_SET_TXBUFSIZE, bsize); return 0; err1: close(audio_fd); err: return -1; } static void play(void *b, int i) { int j; while (i) { if ((j = write(audio_fd, b, i)) > 0) { i -= j; b = (char *)b + j; } else break; } } static void deinit(void) { close(audio_fd); } static void flush(void) { } static void onpause(void) { } static void onresume(void) { } static const char *const help[] = { "gain=val", "Audio output gain (0 to 255)", "port={s|h|l}", "Audio port (s[peaker], h[eadphones], l[ineout])", "buffer=val", "Audio buffer size", NULL }; struct sound_driver sound_hpux = { "hpux", "HP-UX PCM audio", help, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/getopt_long.c0000644000000000000000000003440014442670136014303 0ustar rootroot/* $OpenBSD: getopt_long.c,v 1.32 2020/05/27 22:25:09 schwarze Exp $ */ /* $NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $ */ /* * Copyright (c) 2002 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * Sponsored in part by the Defense Advanced Research Projects * Agency (DARPA) and Air Force Research Laboratory, Air Force * Materiel Command, USAF, under agreement number F39502-99-1-0512. */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Dieter Baron and Thomas Klausner. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. 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. */ #include "getopt_long.h" #ifndef HAVE_GETOPT_LONG #include #include #include #include int opterr = 1; /* if error message should be printed */ int optind = 1; /* index into parent argv vector */ int optopt = '?'; /* character checked for validity */ /* initialize these two too to avoid symbol clashes from system libc: */ int optreset = 0; /* reset getopt */ char *optarg = NULL; /* argument associated with option */ #define PRINT_ERROR ((opterr) && (*options != ':')) #define FLAG_PERMUTE 0x01 /* permute non-options to the end of argv */ #define FLAG_ALLARGS 0x02 /* treat non-options as args to option "-1" */ #define FLAG_LONGONLY 0x04 /* operate as getopt_long_only */ /* return values */ #define BADCH (int)'?' #define BADARG ((*options == ':') ? (int)':' : (int)'?') #define INORDER (int)1 static char EMSG[] = {0,0,0,0}; /* #define EMSG "" */ static int getopt_internal(int, char * const *, const char *, const struct option *, int *, int); static int parse_long_options(char * const *, const char *, const struct option *, int *, int, int); static int gcd(int, int); static void permute_args(int, int, int, char * const *); static char *place = EMSG; /* option letter processing */ /* XXX: set optreset to 1 rather than these two */ static int nonopt_start = -1; /* first non option argument (for permute) */ static int nonopt_end = -1; /* first option after non options (for permute) */ /* Error messages */ static const char recargchar[] = "option requires an argument -- %c"; static const char recargstring[] = "option requires an argument -- %s"; static const char ambig[] = "ambiguous option -- %.*s"; static const char noarg[] = "option doesn't take an argument -- %.*s"; static const char illoptchar[] = "unknown option -- %c"; static const char illoptstring[] = "unknown option -- %s"; /* * Compute the greatest common divisor of a and b. */ static int gcd(int a, int b) { int c; c = a % b; while (c != 0) { a = b; b = c; c = a % b; } return (b); } /* * Exchange the block from nonopt_start to nonopt_end with the block * from nonopt_end to opt_end (keeping the same order of arguments * in each block). */ static void permute_args(int panonopt_start, int panonopt_end, int opt_end, char * const *nargv) { int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos; char *swap; /* * compute lengths of blocks and number and size of cycles */ nnonopts = panonopt_end - panonopt_start; nopts = opt_end - panonopt_end; ncycle = gcd(nnonopts, nopts); cyclelen = (opt_end - panonopt_start) / ncycle; for (i = 0; i < ncycle; i++) { cstart = panonopt_end+i; pos = cstart; for (j = 0; j < cyclelen; j++) { if (pos >= panonopt_end) pos -= nnonopts; else pos += nopts; swap = nargv[pos]; ((char **)nargv)[pos] = nargv[cstart]; ((char **)nargv)[cstart] = swap; } } } /* * parse_long_options -- * Parse long options in argc/argv argument vector. * Returns -1 if short_too is set and the option does not match long_options. */ static int parse_long_options(char * const *nargv, const char *options, const struct option *long_options, int *idx, int short_too, int flags) { char *current_argv, *has_equal; size_t current_argv_len; int i, match, exact_match, second_partial_match; current_argv = place; match = -1; exact_match = 0; second_partial_match = 0; optind++; if ((has_equal = strchr(current_argv, '=')) != NULL) { /* argument found (--option=arg) */ current_argv_len = has_equal - current_argv; has_equal++; } else current_argv_len = strlen(current_argv); for (i = 0; long_options[i].name; i++) { /* find matching long option */ if (strncmp(current_argv, long_options[i].name, current_argv_len)) continue; if (strlen(long_options[i].name) == current_argv_len) { /* exact match */ match = i; exact_match = 1; break; } /* * If this is a known short option, don't allow * a partial match of a single character. */ if (short_too && current_argv_len == 1) continue; if (match == -1) /* first partial match */ match = i; else if ((flags & FLAG_LONGONLY) || long_options[i].has_arg != long_options[match].has_arg || long_options[i].flag != long_options[match].flag || long_options[i].val != long_options[match].val) second_partial_match = 1; } if (!exact_match && second_partial_match) { /* ambiguous abbreviation */ if (PRINT_ERROR) fprintf(stderr, ambig, (int)current_argv_len, current_argv); optopt = 0; return (BADCH); } if (match != -1) { /* option found */ if (long_options[match].has_arg == no_argument && has_equal) { if (PRINT_ERROR) fprintf(stderr, noarg, (int)current_argv_len, current_argv); /* * XXX: GNU sets optopt to val regardless of flag */ if (long_options[match].flag == NULL) optopt = long_options[match].val; else optopt = 0; return (BADARG); } if (long_options[match].has_arg == required_argument || long_options[match].has_arg == optional_argument) { if (has_equal) optarg = has_equal; else if (long_options[match].has_arg == required_argument) { /* * optional argument doesn't use next nargv */ optarg = nargv[optind++]; } } if ((long_options[match].has_arg == required_argument) && (optarg == NULL)) { /* * Missing argument; leading ':' indicates no error * should be generated. */ if (PRINT_ERROR) fprintf(stderr, recargstring, current_argv); /* * XXX: GNU sets optopt to val regardless of flag */ if (long_options[match].flag == NULL) optopt = long_options[match].val; else optopt = 0; --optind; return (BADARG); } } else { /* unknown option */ if (short_too) { --optind; return (-1); } if (PRINT_ERROR) fprintf(stderr, illoptstring, current_argv); optopt = 0; return (BADCH); } if (idx) *idx = match; if (long_options[match].flag) { *long_options[match].flag = long_options[match].val; return (0); } else return (long_options[match].val); } /* * getopt_internal -- * Parse argc/argv argument vector. Called by user level routines. */ static int getopt_internal(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx, int flags) { char *oli; /* option letter list index */ int optchar, short_too; static int posixly_correct = -1; if (options == NULL) return (-1); /* * XXX Some GNU programs (like cvs) set optind to 0 instead of * XXX using optreset. Work around this braindamage. */ if (optind == 0) optind = optreset = 1; /* * Disable GNU extensions if POSIXLY_CORRECT is set or options * string begins with a '+'. */ if (posixly_correct == -1 || optreset) posixly_correct = (getenv("POSIXLY_CORRECT") != NULL); if (*options == '-') flags |= FLAG_ALLARGS; else if (posixly_correct || *options == '+') flags &= ~FLAG_PERMUTE; if (*options == '+' || *options == '-') options++; optarg = NULL; if (optreset) nonopt_start = nonopt_end = -1; start: if (optreset || !*place) { /* update scanning pointer */ optreset = 0; if (optind >= nargc) { /* end of argument vector */ place = EMSG; if (nonopt_end != -1) { /* do permutation, if we have to */ permute_args(nonopt_start, nonopt_end, optind, nargv); optind -= nonopt_end - nonopt_start; } else if (nonopt_start != -1) { /* * If we skipped non-options, set optind * to the first of them. */ optind = nonopt_start; } nonopt_start = nonopt_end = -1; return (-1); } if (*(place = nargv[optind]) != '-' || (place[1] == '\0' && strchr(options, '-') == NULL)) { place = EMSG; /* found non-option */ if (flags & FLAG_ALLARGS) { /* * GNU extension: * return non-option as argument to option 1 */ optarg = nargv[optind++]; return (INORDER); } if (!(flags & FLAG_PERMUTE)) { /* * If no permutation wanted, stop parsing * at first non-option. */ return (-1); } /* do permutation */ if (nonopt_start == -1) nonopt_start = optind; else if (nonopt_end != -1) { permute_args(nonopt_start, nonopt_end, optind, nargv); nonopt_start = optind - (nonopt_end - nonopt_start); nonopt_end = -1; } optind++; /* process next argument */ goto start; } if (nonopt_start != -1 && nonopt_end == -1) nonopt_end = optind; /* * If we have "-" do nothing, if "--" we are done. */ if (place[1] != '\0' && *++place == '-' && place[1] == '\0') { optind++; place = EMSG; /* * We found an option (--), so if we skipped * non-options, we have to permute. */ if (nonopt_end != -1) { permute_args(nonopt_start, nonopt_end, optind, nargv); optind -= nonopt_end - nonopt_start; } nonopt_start = nonopt_end = -1; return (-1); } } /* * Check long options if: * 1) we were passed some * 2) the arg is not just "-" * 3) either the arg starts with -- we are getopt_long_only() */ if (long_options != NULL && place != nargv[optind] && (*place == '-' || (flags & FLAG_LONGONLY))) { short_too = 0; if (*place == '-') place++; /* --foo long option */ else if (*place != ':' && strchr(options, *place) != NULL) short_too = 1; /* could be short option too */ optchar = parse_long_options(nargv, options, long_options, idx, short_too, flags); if (optchar != -1) { place = EMSG; return (optchar); } } if ((optchar = (int)*place++) == (int)':' || (oli = strchr(options, optchar)) == NULL) { if (!*place) ++optind; if (PRINT_ERROR) fprintf(stderr, illoptchar, optchar); optopt = optchar; return (BADCH); } if (long_options != NULL && optchar == 'W' && oli[1] == ';') { /* -W long-option */ if (*place) /* no space */ /* NOTHING */; else if (++optind >= nargc) { /* no arg */ place = EMSG; if (PRINT_ERROR) fprintf(stderr, recargchar, optchar); optopt = optchar; return (BADARG); } else /* white space */ place = nargv[optind]; optchar = parse_long_options(nargv, options, long_options, idx, 0, flags); place = EMSG; return (optchar); } if (*++oli != ':') { /* doesn't take argument */ if (!*place) ++optind; } else { /* takes (optional) argument */ optarg = NULL; if (*place) /* no white space */ optarg = place; else if (oli[1] != ':') { /* arg not optional */ if (++optind >= nargc) { /* no arg */ place = EMSG; if (PRINT_ERROR) fprintf(stderr, recargchar, optchar); optopt = optchar; return (BADARG); } else optarg = nargv[optind]; } place = EMSG; ++optind; } /* dump back option letter */ return (optchar); } /* * getopt -- * Parse argc/argv argument vector. */ int getopt(int nargc, char * const *nargv, const char *options) { /* * We don't pass FLAG_PERMUTE to getopt_internal() since * the BSD getopt(3) (unlike GNU) has never done this. * * Furthermore, since many privileged programs call getopt() * before dropping privileges it makes sense to keep things * as simple (and bug-free) as possible. */ return (getopt_internal(nargc, nargv, options, NULL, NULL, 0)); } /* * getopt_long -- * Parse argc/argv argument vector. */ int getopt_long(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx) { return (getopt_internal(nargc, nargv, options, long_options, idx, FLAG_PERMUTE)); } /* * getopt_long_only -- * Parse argc/argv argument vector. */ int getopt_long_only(int nargc, char * const *nargv, const char *options, const struct option *long_options, int *idx) { return (getopt_internal(nargc, nargv, options, long_options, idx, FLAG_PERMUTE|FLAG_LONGONLY)); } #endif /* HAVE_GETOPT_LONG */ xmp-4.2.0/src/delay.c0000644000000000000000000001003314442670136013054 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include "common.h" #if defined(_WIN32) #include void delay_ms(unsigned int msec) { Sleep(msec); } #elif defined(__OS2__)||defined(__EMX__) #define INCL_DOSPROCESS #include void delay_ms(unsigned int msec) { DosSleep(msec); } #elif defined(_DOS) #include void delay_ms(unsigned int msec) { delay(msec); /* doesn't seem to use int 15h. */ } #elif defined(XMP_AMIGA) #ifdef __amigaos4__ #define __USE_INLINE__ #else #endif #include #include #include #include #include #include struct MsgPort *timerport; #ifdef __amigaos4__ struct TimeRequest *timerio; struct TimerIFace *ITimer; #else struct timerequest *timerio; #endif #ifdef __amigaos4__ struct Device *TimerBase = NULL; #elif defined(__MORPHOS__) || defined(__VBCC__) struct Library *TimerBase = NULL; #else struct Device *TimerBase = NULL; #endif static void amiga_atexit (void) { #ifdef __amigaos4__ if (ITimer) { DropInterface((struct Interface *)ITimer); } #endif if (TimerBase) { WaitIO((struct IORequest *) timerio); CloseDevice((struct IORequest *) timerio); DeleteIORequest((struct IORequest *) timerio); DeleteMsgPort(timerport); TimerBase = NULL; } } void amiga_inittimer (void) { timerport = CreateMsgPort(); if (timerport != NULL) { #if defined(__amigaos4__) timerio = (struct TimeRequest *) CreateIORequest(timerport, sizeof(struct TimeRequest)); #else timerio = (struct timerequest *) CreateIORequest(timerport, sizeof(struct timerequest)); #endif if (timerio != NULL) { if (OpenDevice((STRPTR) TIMERNAME, UNIT_MICROHZ, (struct IORequest *) timerio, 0) == 0) { #if defined(__amigaos4__) TimerBase = timerio->Request.io_Device; ITimer = (struct TimerIFace *) GetInterface(TimerBase, "main", 1, NULL); #elif defined(__MORPHOS__) || defined(__VBCC__) TimerBase = (struct Library *)timerio->tr_node.io_Device; #else TimerBase = timerio->tr_node.io_Device; #endif } else { DeleteIORequest((struct IORequest *)timerio); DeleteMsgPort(timerport); } } else { DeleteMsgPort(timerport); } } if (!TimerBase) { fprintf(stderr, "Can't open timer.device\n"); exit (-1); } /* 1us wait, for timer cleanup success */ #if defined(__amigaos4__) timerio->Request.io_Command = TR_ADDREQUEST; timerio->Time.Seconds = 0; timerio->Time.Microseconds = 1; #else timerio->tr_node.io_Command = TR_ADDREQUEST; timerio->tr_time.tv_secs = 0; timerio->tr_time.tv_micro = 1; #endif SendIO((struct IORequest *) timerio); WaitIO((struct IORequest *) timerio); atexit (amiga_atexit); } void amiga_getsystime(void *tv) { #ifdef __amigaos4__ GetSysTime((struct TimeVal *)tv); #else GetSysTime((struct timeval *)tv); #endif } void delay_ms(unsigned int msec) { #if defined(__amigaos4__) timerio->Request.io_Command = TR_ADDREQUEST; timerio->Time.Seconds = msec / 1000000; timerio->Time.Microseconds = msec % 1000000; #else timerio->tr_node.io_Command = TR_ADDREQUEST; timerio->tr_time.tv_secs = msec / 1000000; timerio->tr_time.tv_micro = msec % 1000000; #endif SendIO((struct IORequest *) timerio); WaitIO((struct IORequest *) timerio); } #elif defined(HAVE_USLEEP) #include void delay_ms(unsigned int msec) { usleep(msec * 1000); } #elif defined(HAVE_SELECT) #ifdef HAVE_SYS_SELECT_H # include #else # ifdef HAVE_SYS_TIME_H # include # endif # ifdef HAVE_SYS_TYPES_H # include # endif # ifdef HAVE_UNISTD_H # include # endif #endif #include void delay_ms(unsigned int msec) { struct timeval tv; long usec; usec = msec * 1000; tv.tv_sec = usec / 1000000; tv.tv_usec = usec % 1000000; select(0, NULL, NULL, NULL, &tv); } #else #error Missing implementation of delay_ms() #endif xmp-4.2.0/src/xmp.conf0000644000000000000000000000635314442670136013277 0ustar rootroot########################################################################## #### #### Extended Module Player configuration file #### xmp will read this file from /etc/xmp/xmp.conf or #### $HOME/.xmp/xmp.conf #### #### An argument is assumed "yes" when the first character #### is either 'y' or 'o'. #### ########################################################################## ########################################################################## #### #### DRIVER PARAMETERS #### ########################################################################## # driver = # Output device to be used # #driver = alsa # ALSA driver # # Set the audio buffer size in ms # #buffer = 250 # # Set the period in ms # #period = 50 # # Set the card name # #card = default # OSS driver # # Set the number and size in bytes of audio buffer fragments. The size must # be a power of two. # #frag = 16,2048 # Solaris or HP-UX driver # # Set the output audio gain (0 to 255) # #gain = 180 # # Set the audio port. Valid values are s[peaker], h[eadphones] and l[ineout]. # #port = speaker # # Set the audio buffer size # #buffer = 32768 ########################################################################## #### #### SOFTWARE MIXER SETTINGS #### The following parameters affect the software mixer only #### ########################################################################## # amplify = <0|1|2|3> # Amplification factor. Default is 1 (normal) # #amplify = 1 # amiga = # Enable Amiga simulation mixer for Amiga 4-channel modules. The mixer is # modeled after an Amiga 500 with led filter option. Default is disabled. # #amiga = no # srate = # Sampling rate in hertz. Default is 44100 Hz. # #srate = 44100 # bits = # Output resolution for the software mixer. Default is 16 bits. # #bits = 16 # interpolation = # Select sample interpolation method. Default is spline. # #interpolation = spline # mixer_voices = # Set the maximum number of virtual channels. Default is 128. # #mixer_voices = 128 ########################################################################## #### #### EFFECTS #### ########################################################################## # filter = # Enable/disable lowpass filtering in IT files. Default is on. # # filter = nyet ########################################################################## #### #### ENVIRONMENT SETTINGS #### ########################################################################## # instrument_path = # Set the pathname to the directory containing external samples for # certain formats (e.g. MED2) # #instrument_path = /home/claudio/amiga/MED-1.12/Instruments ########################################################################## #### #### PLAYER SETTINGS #### ########################################################################## # mono = # Force mono output. Default is no. # #mono = never! # reverse = # Reverse left/right stereo channels. Default is off. # #reverse = are you kidding? # mix = # Percentual stereo mixing. Default is 100%. # #mix = 100 # default_pan = # Default pan setting for modules with L/R channels. Default is 50% # (does not affect the Amiga classic mixer) # #default_pan = 50 xmp-4.2.0/src/sound_file.c0000644000000000000000000000265714442670136014122 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include "sound.h" static FILE *fd; static long size; static int swap_endian; static int init(struct options *options) { char **parm = options->driver_parm; swap_endian = 0; parm_init(parm); chkparm1("endian", swap_endian = (is_big_endian() ^ strcmp(token, "big"))); parm_end(); if (options->out_file == NULL) { options->out_file = "out.raw"; } if (strcmp(options->out_file, "-")) { fd = fopen(options->out_file, "wb"); if (fd == NULL) return -1; } else { fd = stdout; } return 0; } static void play(void *b, int len) { if (swap_endian) { convert_endian((unsigned char *)b, len); } fwrite(b, 1, len, fd); size += len; } static void deinit(void) { if (fd && fd != stdout) { fclose(fd); } fd = NULL; } static void flush(void) { if (fd) { fflush(fd); } } static void onpause(void) { } static void onresume(void) { } static const char * const help[] = { "endian=big", "Force big-endian 16-bit samples", "endian=little", "Force little-endian 16-bit samples", NULL }; struct sound_driver sound_file = { "file", "Raw file writer", help, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/sound_coreaudio.c0000644000000000000000000001454614442670136015155 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include #include #include "sound.h" static AudioUnit au; #ifndef HAVE_AUDIOUNIT_AUDIOCOMPONENT_H #define AudioComponent Component #define AudioComponentDescription ComponentDescription #define AudioComponentFindNext FindNextComponent #define AudioComponentInstanceNew OpenAComponent #define AudioComponentInstanceDispose CloseComponent #endif /* * CoreAudio helpers by Timothy J. Wood from mplayer/libao * The player fills a ring buffer, OSX retrieves data from the buffer */ static int paused; static unsigned char *buffer; static int buffer_len; static int buf_write_pos; static int buf_read_pos; static int num_chunks; static int chunk_size; static int packet_size; /* return minimum number of free bytes in buffer, value may change between * two immediately following calls, and the real number of free bytes * might actually be larger! */ static int buf_free(void) { int free = buf_read_pos - buf_write_pos - chunk_size; if (free < 0) free += buffer_len; return free; } /* return minimum number of buffered bytes, value may change between * two immediately following calls, and the real number of buffered bytes * might actually be larger! */ static int buf_used(void) { int used = buf_write_pos - buf_read_pos; if (used < 0) used += buffer_len; return used; } /* add data to ringbuffer */ static int write_buffer(unsigned char *data, int len) { int first_len = buffer_len - buf_write_pos; int free = buf_free(); if (len > free) len = free; if (first_len > len) first_len = len; /* till end of buffer */ memcpy(buffer + buf_write_pos, data, first_len); if (len > first_len) { /* we have to wrap around */ /* remaining part from beginning of buffer */ memcpy(buffer, data + first_len, len - first_len); } buf_write_pos = (buf_write_pos + len) % buffer_len; return len; } /* remove data from ringbuffer */ static int read_buffer(unsigned char *data, int len) { int first_len = buffer_len - buf_read_pos; int buffered = buf_used(); if (len > buffered) len = buffered; if (first_len > len) first_len = len; /* till end of buffer */ memcpy(data, buffer + buf_read_pos, first_len); if (len > first_len) { /* we have to wrap around */ /* remaining part from beginning of buffer */ memcpy(data + first_len, buffer, len - first_len); } buf_read_pos = (buf_read_pos + len) % buffer_len; return len; } static OSStatus render_proc(void *inRefCon, AudioUnitRenderActionFlags *inActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumFrames, AudioBufferList *ioData) { int amt = buf_used(); int req = inNumFrames * packet_size; if (amt > req) amt = req; read_buffer((unsigned char *)ioData->mBuffers[0].mData, amt); ioData->mBuffers[0].mDataByteSize = amt; return noErr; } /* * end of CoreAudio helpers */ static int init(struct options *options) { AudioStreamBasicDescription ad; AudioComponent comp; AudioComponentDescription cd; AURenderCallbackStruct rc; OSStatus status; UInt32 size, max_frames; int latency = 250; char **parm = options->driver_parm; parm_init(parm); chkparm1("buffer", latency = strtoul(token, NULL, 0)); parm_end(); if (latency < 20) latency = 20; ad.mSampleRate = options->rate; ad.mFormatID = kAudioFormatLinearPCM; ad.mFormatFlags = kAudioFormatFlagIsPacked | kAudioFormatFlagsNativeEndian; if (~options->format & XMP_FORMAT_UNSIGNED) { ad.mFormatFlags |= kAudioFormatFlagIsSignedInteger; } ad.mChannelsPerFrame = options->format & XMP_FORMAT_MONO ? 1 : 2; ad.mBitsPerChannel = options->format & XMP_FORMAT_8BIT ? 8 : 16; if (options->format & XMP_FORMAT_8BIT) { ad.mBytesPerFrame = ad.mChannelsPerFrame; } else { ad.mBytesPerFrame = 2 * ad.mChannelsPerFrame; } ad.mBytesPerPacket = ad.mBytesPerFrame; ad.mFramesPerPacket = 1; packet_size = ad.mFramesPerPacket * ad.mChannelsPerFrame * (ad.mBitsPerChannel / 8); cd.componentType = kAudioUnitType_Output; cd.componentSubType = kAudioUnitSubType_DefaultOutput; cd.componentManufacturer = kAudioUnitManufacturer_Apple; cd.componentFlags = 0; cd.componentFlagsMask = 0; if ((comp = AudioComponentFindNext(NULL, &cd)) == NULL) goto err; if ((status = AudioComponentInstanceNew(comp, &au))) goto err1; if ((status = AudioUnitInitialize(au))) goto err1; if ((status = AudioUnitSetProperty(au, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &ad, sizeof(ad)))) goto err1; size = sizeof(UInt32); if ((status = AudioUnitGetProperty(au, kAudioDevicePropertyBufferSize, kAudioUnitScope_Input, 0, &max_frames, &size))) goto err1; chunk_size = max_frames; num_chunks = (options->rate * ad.mBytesPerFrame * latency / 1000 + chunk_size - 1) / chunk_size; buffer_len = (num_chunks + 1) * chunk_size; if ((buffer = calloc(num_chunks + 1, chunk_size)) == NULL) goto err; rc.inputProc = render_proc; rc.inputProcRefCon = 0; buf_read_pos = 0; buf_write_pos = 0; paused = 1; if ((status = AudioUnitSetProperty(au, kAudioUnitProperty_SetRenderCallback, kAudioUnitScope_Input, 0, &rc, sizeof(rc)))) goto err2; return 0; err2: free(buffer); err1: fprintf(stderr, "initialization error: %d\n", (int)status); err: return -1; } /* Build and write one tick (one PAL frame or 1/50 s in standard vblank * timed mods) of audio data to the output device. */ static void play(void *b, int i) { int j = 0; /* block until we have enough free space in the buffer */ while (buf_free() < i) delay_ms(100); while (i) { if ((j = write_buffer(b, i)) > 0) { i -= j; b = (char *)b + j; } else break; } if (paused) { AudioOutputUnitStart(au); paused = 0; } } static void deinit(void) { AudioOutputUnitStop(au); AudioUnitUninitialize(au); AudioComponentInstanceDispose(au); free(buffer); } static void flush(void) { } static void onpause(void) { AudioOutputUnitStop(au); } static void onresume(void) { AudioOutputUnitStart(au); } struct sound_driver sound_coreaudio = { "coreaudio", "CoreAudio sound output", NULL, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/read_config.c0000644000000000000000000001564614442670136014235 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include #include #include "common.h" #if !defined(SYSCONFDIR) #define SYSCONFDIR "." #endif #if defined(_MSC_VER) || defined(__WATCOMC__) || defined(__EMX__) #define XMP_MAXPATH _MAX_PATH #elif defined(PATH_MAX) #define XMP_MAXPATH PATH_MAX #else #define XMP_MAXPATH 1024 #endif static char driver[32]; static char instrument_path[256]; static void delete_spaces(char *s) { while (*s) { if (*s == ' ' || *s == '\t') { memmove(s, s + 1, strlen(s)); } else { s++; } } } static int get_yesno(char *s) { return !(strncmp(s, "y", 1) && strncmp(s, "o", 1)); } int read_config(struct options *o) { FILE *rc; char myrc[XMP_MAXPATH]; char *hash, *var, *val, line[256]; char cparm[512]; #if defined(__OS2__) || defined(__EMX__) const char *home = getenv("HOME"); if (!home) home = "C:"; snprintf(myrc, XMP_MAXPATH, "%s\\xmp.conf", home); if ((rc = fopen(myrc, "r")) == NULL) { if ((rc = fopen("xmp.conf", "r")) == NULL) { return -1; } } #elif defined(XMP_AMIGA) strncpy(myrc, "PROGDIR:xmp.conf", XMP_MAXPATH); if ((rc = fopen(myrc, "r")) == NULL) return -1; #elif defined _WIN32 const char *home = getenv("USERPROFILE"); if (!home) home = "C:"; snprintf(myrc, XMP_MAXPATH, "%s/xmp.conf", home); if ((rc = fopen(myrc, "r")) == NULL) return -1; #else char *home = getenv("HOME"); snprintf(myrc, XMP_MAXPATH, "%s/.xmp/xmp.conf", home); if ((rc = fopen(myrc, "r")) == NULL) { strncpy(myrc, SYSCONFDIR "/xmp.conf", XMP_MAXPATH); if ((rc = fopen(myrc, "r")) == NULL) { return -1; } } #endif while (!feof(rc)) { memset(line, 0, 256); if (fscanf(rc, "%255[^\n]", line) < 0 || fgetc(rc) < 0) { break; } /* Delete comments */ if ((hash = strchr(line, '#'))) *hash = 0; delete_spaces(line); if (!(var = strtok(line, "=\n"))) { continue; } val = strtok(NULL, " \t\n"); #define getval_yn(x,w,y) { \ if (!strcmp(var,x)) { if (get_yesno (val)) w |= (y); \ else w &= ~(y); \ continue; } } #define getval_tristate(x,w) { \ if (!strcmp(var,x)) { if (get_yesno (val)) w = 1; \ else w = -1; \ continue; } } #define getval_no(x,y) { \ if (!strcmp(var,x)) { y = atoi (val); continue; } } getval_yn("8bit", o->format, XMP_FORMAT_8BIT); getval_yn("mono", o->format, XMP_FORMAT_MONO); getval_yn("filter", o->dsp, XMP_DSP_LOWPASS); getval_yn("loop", o->loop, 1); getval_yn("reverse", o->reverse, 1); getval_no("amplify", o->amplify); getval_no("mix", o->mix); getval_no("mixer_voices", o->numvoices); getval_no("default_pan", o->defpan); /*getval_no("chorus", o->chorus); getval_no("reverb", o->reverb);*/ getval_no("srate", o->rate); /*getval_no("time", o->time); getval_no("verbosity", o->verbosity);*/ getval_yn("amiga", o->amiga_mixer, 1); if (!strcmp(var, "driver")) { strncpy(driver, val, 31); o->driver_id = driver; continue; } if (!strcmp(var, "interpolation")) { if (!strcmp(val, "nearest")) { o->interp = XMP_INTERP_NEAREST; } else if (!strcmp(val, "linear")) { o->interp = XMP_INTERP_LINEAR; } else if (!strcmp(val, "spline")) { o->interp = XMP_INTERP_SPLINE; } else { fprintf(stderr, "%s: unknown interpolation " "type \"%s\"\n", myrc, val); } } if (!strcmp(var, "bits")) { if (atoi(val) == 8) o->format = XMP_FORMAT_8BIT;; continue; } if (!strcmp(var, "instrument_path")) { strncpy(instrument_path, val, 255); instrument_path[255] = 0; o->ins_path = instrument_path; continue; } /* If the line doesn't match any of the previous parameters, * send it to the device driver */ if (o->dparm < MAX_DRV_PARM) { snprintf(cparm, 512, "%s=%s", var, val); o->driver_parm[o->dparm++] = xmp_strdup(cparm); } } fclose(rc); return 0; } static int compare_md5(const unsigned char *d, const char *digest) { int i; for (i = 0; i < 16 && *digest; i++, digest += 2) { char hex[3]; hex[0] = digest[0]; hex[1] = digest[1]; hex[2] = 0; if (d[i] != strtoul(hex, NULL, 16)) return -1; } return 0; } static void parse_modconf(struct options *o, const char *confname, const unsigned char *md5) { FILE *rc; char *hash, *var, *val, line[256]; struct player_mode *pm; int active = 0; int mono = 0; if ((rc = fopen(confname, "r")) == NULL) return; while (!feof(rc)) { memset(line, 0, 256); if (fscanf(rc, "%255[^\n]", line) < 0 || fgetc(rc) < 0) { break; } /* Delete comments */ if ((hash = strchr(line, '#'))) *hash = 0; if (line[0] == '[') { if (compare_md5(md5, line + 1) == 0) { active = 1; } else { active = 0; } continue; } if (!active) { continue; } delete_spaces(line); if (!(var = strtok(line, "=\n"))) { continue; } val = strtok(NULL, " \t\n"); getval_yn("filter", o->dsp, XMP_DSP_LOWPASS); getval_yn("loop", o->loop, 1); getval_yn("mono", mono, 1); getval_yn("reverse", o->reverse, 1); getval_no("amplify", o->amplify); getval_no("mix", o->mix); getval_no("mixer_voices", o->numvoices); getval_tristate("fixloop", o->fixloop); getval_tristate("fx9bug", o->fx9bug); getval_tristate("vblank", o->vblank); getval_tristate("amiga", o->amiga_mixer); if (!strcmp(var, "interpolation")) { if (!strcmp(val, "nearest")) { o->interp = XMP_INTERP_NEAREST; } else if (!strcmp(val, "linear")) { o->interp = XMP_INTERP_LINEAR; } else if (!strcmp(val, "spline")) { o->interp = XMP_INTERP_SPLINE; } else { fprintf(stderr, "%s: unknown interpolation " "type \"%s\"\n", confname, val); } } if (!strcmp(var, "mode")) { for (pm = pmode; pm->name != NULL; pm++) { if (!strcmp(val, pm->name)) { o->player_mode = pm->mode; break; } fprintf(stderr, "%s: unknown player mode " "\"%s\"\n", confname, val); } } fprintf(stderr, "%s: unknown option \"%s\"\n", confname, var); } if (mono) { o->mix = 0; } fclose(rc); } void read_modconf(struct options *o, const unsigned char *md5) { #if defined(__OS2__) || defined(__EMX__) char myrc[XMP_MAXPATH]; const char *home = getenv("HOME"); if (!home) home = "C:"; snprintf(myrc, XMP_MAXPATH, "%s\\modules.conf", home); parse_modconf(o, "xmp-modules.conf", md5); parse_modconf(o, myrc, md5); #elif defined(XMP_AMIGA) parse_modconf(o, "PROGDIR:modules.conf", md5); #elif defined _WIN32 char myrc[XMP_MAXPATH]; const char *home = getenv("USERPROFILE"); if (!home) home = "C:"; snprintf(myrc, XMP_MAXPATH, "%s/modules.conf", home); parse_modconf(o, myrc, md5); #else char myrc[XMP_MAXPATH]; char *home = getenv("HOME"); snprintf(myrc, XMP_MAXPATH, "%s/.xmp/modules.conf", home); parse_modconf(o, SYSCONFDIR "/modules.conf", md5); parse_modconf(o, myrc, md5); #endif } xmp-4.2.0/src/sound_aiff.c0000644000000000000000000000607614442670136014107 0ustar rootroot/* Amiga AIFF driver for Extended Module Player * Copyright (C) 2014 Lorence Lombardo * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include "sound.h" typedef struct { /* Exponent, bit #15 is sign bit for mantissa */ unsigned short exponent; /* 64 bit mantissa */ unsigned long mantissa[2]; } extended; static FILE *fd; static int channels; static int bits; static int swap_endian; static long size; static void ulong2extended(unsigned long in, extended *ex) { int exponent = 31 + 16383; while (!(in & 0x80000000)) { exponent--; in <<= 1; } ex->exponent = exponent; ex->mantissa[0] = in; ex->mantissa[1] = 0; } static inline void write8(FILE *f, unsigned char c) { fwrite(&c, 1, 1, f); } static void write32b(FILE *f, unsigned long w) { write8(f, (w & 0xff000000) >> 24); write8(f, (w & 0x00ff0000) >> 16); write8(f, (w & 0x0000ff00) >> 8); write8(f, w & 0x000000ff); } static int init(struct options *options) { char hed[54] = { 'F', 'O', 'R', 'M', 0, 0, 0, 0, 'A', 'I', 'F', 'F', /* COMM chunk */ 'C', 'O', 'M', 'M', 0, 0, 0, 18, 0, 0, /* channels */ 0, 0, 0, 0, /* frames */ 0, 0, /* bits */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* rate (extended format) */ /* SSND chunk */ 'S', 'S', 'N', 'D', 0, 0, 0, 0, 0, 0, 0, 0, /* offset */ 0, 0, 0, 0 /* block size */ }; extended ex; swap_endian = !is_big_endian(); channels = options->format & XMP_FORMAT_MONO ? 1 : 2; bits = options->format & XMP_FORMAT_8BIT ? 8 : 16; size = 0; ulong2extended(options->rate, &ex); hed[21] = channels; hed[27] = bits; hed[28] = (ex.exponent & 0xff00) >> 8; hed[29] = ex.exponent & 0x00ff; hed[30] = (ex.mantissa[0] & 0xff000000) >> 24; hed[31] = (ex.mantissa[0] & 0x00ff0000) >> 16; hed[32] = (ex.mantissa[0] & 0x0000ff00) >> 8; hed[33] = ex.mantissa[0] & 0x000000ff; if (options->out_file == NULL) { options->out_file = "out.aiff"; } if (strcmp(options->out_file, "-")) { fd = fopen(options->out_file, "wb"); if (fd == NULL) return -1; } else { fd = stdout; } fwrite(hed, 1, 54, fd); return 0; } static void play(void *b, int len) { if (swap_endian && bits == 16) { convert_endian((unsigned char *)b, len); } fwrite(b, 1, len, fd); size += len; } static void deinit(void) { if (size > 54) { if (fseek(fd, 4, SEEK_SET) == 0) { /* FORM chunk size */ write32b(fd, size - 8); } if (fseek(fd, 22, SEEK_SET) == 0) { /* COMM frames */ unsigned long tmp = (size - 54) / (bits / 8) / channels; write32b(fd, tmp); } if (fseek(fd, 42, SEEK_SET) == 0) { /* SSND chunk size */ write32b(fd, size - 48); /* minus header + 8 */ } } if (fd && fd != stdout) { fclose(fd); } fd = NULL; } static void flush(void) { if (fd) { fflush(fd); } } static void onpause(void) { } static void onresume(void) { } struct sound_driver sound_aiff = { "aiff", "AIFF writer", NULL, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/sound_solaris.c0000644000000000000000000001046414442670136014652 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ /* CS4231 code tested on Sparc 20 and Ultra 1 running Solaris 2.5.1 * with mono/stereo, 16 bit, 22.05 kHz and 44.1 kHz using the internal * speaker and headphones. * * AMD 7930 code tested on Axil 240 running Solaris 2.5.1 and an Axil * 220 running Linux 2.0.33. */ /* Fixed and improved by Keith Hargrove * Wed, 30 Jun 1999 14:23:52 -0700 (PDT) */ #include #include #include #include #include #include #include #if defined(HAVE_SYS_AUDIOIO_H) #include #elif defined(HAVE_SYS_AUDIO_IO_H) #include #elif defined(HAVE_SUN_AUDIOIO_H) #include #endif #include /* This is for Linux on Sparc */ #if defined(HAVE_SBUS_AUDIO_AUDIO_H) #include #endif #include "sound.h" static int audio_fd; static int audioctl_fd; static int init(struct options *options) { char **parm = options->driver_parm; audio_info_t ainfo, ainfo2; int gain; int bsize = 32 * 1024; int port; AUDIO_INITINFO(&ainfo); if ((audio_fd = open("/dev/audio", O_WRONLY)) == -1) return -1; /* try to open audioctl device */ if ((audioctl_fd = open("/dev/audioctl", O_RDWR)) < 0) { fprintf(stderr, "couldn't open audioctl device\n"); close(audio_fd); return -1; } /* sleep(2); -- Really needed? */ /* empty buffers before change config */ ioctl(audio_fd, AUDIO_DRAIN, 0); /* drain everything out */ ioctl(audio_fd, I_FLUSH, FLUSHRW); /* flush everything */ ioctl(audioctl_fd, I_FLUSH, FLUSHRW); /* flush everything */ /* get audio parameters. */ if (ioctl(audioctl_fd, AUDIO_GETINFO, &ainfo) < 0) { fprintf(stderr, "AUDIO_GETINFO failed!\n"); close(audio_fd); close(audioctl_fd); return -1; } close(audioctl_fd); /* KH: Sun Dbri doesn't support 8bits linear. I dont muck with the gain * or the port setting. I hate when a program does that. There is * nothing more frustrating then having a program change your volume * and change from external speakers to the tiny one */ gain = ainfo.play.gain; port = ainfo.play.port; parm_init(parm); chkparm1("gain", gain = strtoul(token, NULL, 0)); chkparm1("buffer", bsize = strtoul(token, NULL, 0)); chkparm1("port", port = (int)*token) parm_end(); switch (port) { case 'h': port = AUDIO_HEADPHONE; break; case 'l': port = AUDIO_LINE_OUT; break; case 's': port = AUDIO_SPEAKER; } if (gain < AUDIO_MIN_GAIN) gain = AUDIO_MIN_GAIN; if (gain > AUDIO_MAX_GAIN) gain = AUDIO_MAX_GAIN; AUDIO_INITINFO(&ainfo); /* For CS4231 */ AUDIO_INITINFO(&ainfo2); /* For AMD 7930 if needed */ ainfo.play.sample_rate = options->rate; ainfo.play.channels = options->format & XMP_FORMAT_MONO ? 1 : 2; ainfo.play.precision = options->format & XMP_FORMAT_8BIT ? 8 : 16; ainfo.play.encoding = AUDIO_ENCODING_LINEAR; ainfo2.play.gain = ainfo.play.gain = gain; ainfo2.play.port = ainfo.play.port = port; ainfo2.play.buffer_size = ainfo.play.buffer_size = bsize; if (ioctl(audio_fd, AUDIO_SETINFO, &ainfo) == -1) { /* CS4231 initialization Failed, perhaps we have an AMD 7930 */ if (ioctl(audio_fd, AUDIO_SETINFO, &ainfo2) == -1) { close(audio_fd); return -1; } /* Sorry, AMD7930 uLaw not supported anymore */ /* sound_solaris.description = "Solaris AMD7930 PCM audio"; */ return -1; } else { /* sound_solaris.description = "Solaris CS4231 PCM audio"; */ } return 0; } static void play(void *b, int i) { int j; while (i) { if ((j = write(audio_fd, b, i)) > 0) { i -= j; b = (char *)b + j; } else break; } } static void deinit(void) { close(audio_fd); } static void flush(void) { } static void onpause(void) { } static void onresume(void) { } static const char *const help[] = { "gain=val", "Audio output gain (0 to 255)", "port={s|h|l}", "Audio port (s[peaker], h[eadphones], l[ineout])", "buffer=val", "Audio buffer size (default is 32768)", NULL }; struct sound_driver sound_solaris = { "solaris", "Solaris PCM audio", help, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/main.c0000644000000000000000000003205514442670136012712 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include "common.h" #include #include #include #ifdef HAVE_SIGNAL_H #include #endif #ifdef HAVE_SYS_TIME_H #include #endif #if defined(XMP_AMIGA) #include #include #endif #if defined(__WATCOMC__) #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif #ifdef HAVE_UNISTD_H #include #endif #include #if defined(HAVE_GETOPT_H) && defined(HAVE_GETOPT_LONG) #include #else #include "getopt_long.h" #endif #include #include "sound.h" #include "xmp_version.h" #ifdef _WIN32 #include #endif static struct sound_driver *sound; static unsigned int foreground_in, foreground_out; static int refresh_status; #ifdef HAVE_SIGNAL_H static void cleanup(int sig) { signal(SIGTERM, SIG_DFL); signal(SIGINT, SIG_DFL); #ifdef SIGQUIT signal(SIGQUIT, SIG_DFL); #endif signal(SIGFPE, SIG_DFL); signal(SIGSEGV, SIG_DFL); /* Don't deinit from signal handler * (https://github.com/cmatsuoka/xmp-cli/issues/5) * sound->deinit(); */ reset_tty(); signal(sig, SIG_DFL); #ifdef HAVE_KILL kill(getpid(), sig); #endif } #endif #ifdef SIGTSTP static void sigtstp_handler(int n) { report("\n"); signal(SIGTSTP, SIG_DFL); #ifdef HAVE_KILL kill(getpid(), SIGTSTP); #endif } static void sigcont_handler(int sig) { #ifdef HAVE_TERMIOS_H unsigned int old_in = foreground_in; foreground_in = tcgetpgrp(STDIN_FILENO) == getpgrp(); foreground_out = tcgetpgrp(STDERR_FILENO) == getpgrp(); if (old_in != foreground_in) { /* Only call if it was not already prepared */ set_tty(); } #else foreground_in = foreground_out = 1; #if defined(XMP_AMIGA) set_tty(); /* amiga version -- sets stdin to raw mode. */ #endif #endif if (sig != 0) refresh_status = 1; signal(SIGCONT, sigcont_handler); signal(SIGTSTP, sigtstp_handler); } #endif static void show_info(int what, const struct xmp_module_info *mi, int mode) { report("\r%78.78s\n", " "); switch (what) { case '?': info_help(); break; case 'i': info_ins_smp(mi); break; case 'I': info_instruments(mi); break; case 'S': info_samples(mi); break; case 'c': info_comment(mi); break; case 'm': info_mod(mi, mode); break; } } static void shuffle(int argc, char **argv) { int i, j; char *x; for (i = 1; i < argc; i++) { j = 1 + rand() % (argc - 1); x = argv[i]; argv[i] = argv[j]; argv[j] = x; } } static void check_pause(xmp_context xc, struct control *ctl, const struct xmp_module_info *mi, const struct xmp_frame_info *fi, int verbose) { if (ctl->pause) { sound->pause(); if (verbose) { info_frame(mi, fi, ctl, 1); } while (ctl->pause) { delay_ms(100); read_command(xc, mi, ctl); if (ctl->display) { if (verbose) { int mode = xmp_get_player(xc, XMP_PLAYER_MODE); show_info(ctl->display, mi, mode); info_frame(mi, fi, ctl, 1); } ctl->display = 0; } } sound->resume(); } } static void get_mixer_type(int t, struct options *opt, char *buf, size_t size) { const char *fmt; fmt = opt->format & XMP_FORMAT_MONO ? "mono" : "stereo"; switch (t) { case XMP_MIXER_STANDARD: { const char *itp; switch (opt->interp) { case XMP_INTERP_NEAREST: itp = "non-interpolated"; break; case XMP_INTERP_LINEAR: itp = "linear interpolated"; break; case XMP_INTERP_SPLINE: itp = "cubic spline interpolated"; break; default: itp = "unknown interpolation"; } snprintf(buf, size, "%s %s mixer", fmt, itp); break; } case XMP_MIXER_A500: snprintf(buf, size, "Amiga 500 %s mixer", fmt); break; case XMP_MIXER_A500F: snprintf(buf, size, "Amiga 500 %s mixer (led filter: on)", fmt); break; default: snprintf(buf, size, "unknown %s mixer", fmt); } } static void load_error(const char *name, const char *filename, int val) { const char *msg; val = -val; switch (val) { case XMP_ERROR_FORMAT: msg = "Unrecognized file format"; break; case XMP_ERROR_DEPACK: msg = "Error depacking file"; break; case XMP_ERROR_LOAD: msg = "Error loading module"; break; case XMP_ERROR_SYSTEM: msg = strerror(errno); break; default: msg = "Unknown error"; } fprintf(stderr, "%s: %s: %s\n", name, filename, msg); } int main(int argc, char **argv) { xmp_context xc; struct xmp_module_info mi; struct xmp_frame_info fi; struct options opt, save_opt; struct control control; int i; int first; int skipprev; FILE *f = NULL; int val, lf_flag; int flags; int played; #if defined(_WIN32) setvbuf(stderr, NULL, _IONBF, 0); srand(GetTickCount()); #elif defined(__WATCOMC__) srand(time(NULL)); #elif defined(__amigaos4__) struct TimeVal tv; amiga_inittimer(); amiga_getsystime(&tv); srand(tv.Microseconds); #elif defined(XMP_AMIGA) struct timeval tv; amiga_inittimer(); amiga_getsystime(&tv); srand(tv.tv_micro); #else struct timeval tv; gettimeofday(&tv, NULL); srand(tv.tv_usec); #endif init_sound_drivers(); memset(&opt, 0, sizeof (struct options)); memset(&control, 0, sizeof (struct control)); /* set defaults */ opt.verbose = 1; opt.rate = 44100; opt.mix = -1; opt.defpan = 50; opt.numvoices = 128; opt.driver_id = NULL; opt.interp = XMP_INTERP_SPLINE; opt.dsp = XMP_DSP_LOWPASS; opt.player_mode = XMP_MODE_AUTO; opt.amplify = 1; /* read configuration file */ if (!opt.norc) { read_config(&opt); } get_options(argc, argv, &opt); if (!opt.probeonly && optind >= argc) { fprintf(stderr, "%s: no modules to play\n" "Use `%s --help' for more information.\n", argv[0], argv[0]); exit(EXIT_FAILURE); } if (opt.interp < 0) { fprintf(stderr, "%s: unknown interpolation type\n" "Use `%s --help' for more information.\n", argv[0], argv[0]); exit(EXIT_FAILURE); } if (opt.player_mode < 0) { fprintf(stderr, "%s: unknown player mode\n" "Use `%s --help' for more information.\n", argv[0], argv[0]); exit(EXIT_FAILURE); } if (opt.silent) { opt.driver_id = "null"; } sound = select_sound_driver(&opt); if (sound == NULL) { fprintf(stderr, "%s: can't initialize sound", argv[0]); if (opt.driver_id != NULL) { fprintf(stderr, " (driver = %s)", opt.driver_id); } fprintf(stderr, "\n"); if (f != NULL) { fclose(f); } exit(EXIT_FAILURE); } if (opt.verbose > 0) { report("Extended Module Player " VERSION "\n" "Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr\n"); report("Using %s\n", sound->description); report("Mixer set to %d Hz, %dbit, %s%s%s\n", opt.rate, opt.format & XMP_FORMAT_8BIT ? 8 : 16, opt.interp == XMP_INTERP_LINEAR ? "linear interpolated " : opt.interp == XMP_INTERP_SPLINE ? "cubic spline interpolated " : "", opt.format & XMP_FORMAT_MONO ? "mono" : "stereo", opt.dsp & XMP_DSP_LOWPASS ? "" : " (no filter)"); report("Press 'h' for help\n\n"); } if (opt.probeonly) { exit(EXIT_SUCCESS); } #ifdef HAVE_SIGNAL_H signal(SIGTERM, cleanup); signal(SIGINT, cleanup); signal(SIGFPE, cleanup); signal(SIGSEGV, cleanup); #ifdef SIGQUIT signal(SIGQUIT, cleanup); #endif #ifdef SIGTSTP signal(SIGCONT, sigcont_handler); signal(SIGTSTP, sigtstp_handler); sigcont_handler(0); #endif #endif xc = xmp_create_context(); if (xc == NULL) { perror(argv[0]); exit(EXIT_FAILURE); } skipprev = 0; if (opt.ins_path) { xmp_set_instrument_path(xc, opt.ins_path); } lf_flag = 0; memcpy(&save_opt, &opt, sizeof (struct options)); control.loop = opt.loop; control.explore = opt.explore; control.amiga_mixer = opt.amiga_mixer; first = optind; play_all: if (opt.random) { shuffle(argc - optind + 1, &argv[optind - 1]); } for (played = 0; optind < argc; optind++) { memcpy(&opt, &save_opt, sizeof (struct options)); if (opt.verbose > 0) { if (lf_flag) report("\n"); lf_flag = 1; report("Loading %s (%d of %d)\n", argv[optind], optind - first + 1, argc - first); } /* these must be set before loading the module */ xmp_set_player(xc, XMP_PLAYER_DEFPAN, opt.defpan); /* load module */ val = xmp_load_module(xc, argv[optind]); if (val < 0) { load_error(argv[0], argv[optind], val); if (skipprev) { optind -= 2; if (optind < (first - 1)) { optind += 2; skipprev = 0; } } continue; } xmp_get_module_info(xc, &mi); if (!opt.norc) { read_modconf(&opt, mi.md5); } /* these must be set before xmp_start_player() */ xmp_set_player(xc, XMP_PLAYER_VOICES, opt.numvoices); /* check sequence */ if (opt.sequence) { if (opt.sequence < mi.num_sequences) { if (mi.seq_data[opt.sequence].duration > 0) { opt.start = mi.seq_data[opt.sequence].entry_point; } } else { fprintf(stderr, "%s: sequence %d doesn't exist in this module\n", argv[0], opt.sequence); if (skipprev) { optind -= 2; if (optind < first) { optind += 2; } } continue; } } control.sequence = opt.sequence; skipprev = 0; control.time = 0.0; /* Play module */ if (xmp_start_player(xc, opt.rate, opt.format) == 0) { xmp_set_player(xc, XMP_PLAYER_INTERP, opt.interp); xmp_set_player(xc, XMP_PLAYER_DSP, opt.dsp); if (opt.player_mode != XMP_MODE_AUTO) { xmp_set_player(xc, XMP_PLAYER_MODE, opt.player_mode); } played = 1; xmp_set_player(xc, XMP_PLAYER_AMP, opt.amplify); if (opt.mix >= 0) { xmp_set_player(xc, XMP_PLAYER_MIX, opt.mix); } if (opt.reverse) { int mix; mix = xmp_get_player(xc, XMP_PLAYER_MIX); xmp_set_player(xc, XMP_PLAYER_MIX, -mix); } xmp_set_position(xc, opt.start); /* Mute channels */ for (i = 0; i < XMP_MAX_CHANNELS; i++) { xmp_channel_mute(xc, i, opt.mute[i]); } /* Set player flags */ #define set_flag(x,y,z) do { \ if ((y) > 0) (x) |= (z); \ else if ((y) < 0) (x) &= ~ (z); \ } while (0) flags = xmp_get_player(xc, XMP_PLAYER_CFLAGS); set_flag(flags, opt.vblank, XMP_FLAGS_VBLANK); set_flag(flags, opt.fx9bug, XMP_FLAGS_FX9BUG); set_flag(flags, opt.fixloop, XMP_FLAGS_FIXLOOP); set_flag(flags, control.amiga_mixer, XMP_FLAGS_A500); xmp_set_player(xc, XMP_PLAYER_CFLAGS, flags); /* Show module data */ if (opt.verbose > 0) { int mode = xmp_get_player(xc, XMP_PLAYER_MODE); info_mod(&mi, mode); } if (opt.verbose > 1) { info_instruments(&mi); } if (opt.show_comment) { if (mi.comment != NULL) { report("\n"); info_comment(&mi); } } /* Play sequence */ refresh_status = 1; info_frame_init(); fi.loop_count = 0; play_sequence: while (!opt.info && xmp_play_frame(xc) == 0) { int old_loop = fi.loop_count; xmp_get_frame_info(xc, &fi); control.mixer_type = xmp_get_player( xc, XMP_PLAYER_MIXER_TYPE); /* Check loop */ if (old_loop != fi.loop_count) { if (control.loop == 1 || (opt.loop_time > 0 && control.time < opt.loop_time)) { info_message("Loop sequence %d", control.sequence); } else { break; } } #ifdef SIGTSTP sigcont_handler(0); #else foreground_in = foreground_out = 1; #endif if (foreground_out && opt.verbose > 0) { info_frame(&mi, &fi, &control, refresh_status); refresh_status = 0; } control.time += 1.0 * fi.frame_time / 1000; sound->play(fi.buffer, fi.buffer_size); if (foreground_in && !opt.nocmd) { read_command(xc, &mi, &control); if (control.display) { int mode = xmp_get_player(xc, XMP_PLAYER_MODE); show_info(control.display, &mi, mode); control.display = 0; refresh_status = 1; } switch (control.cur_info) { case 'X': { char buf[80]; get_mixer_type(control.mixer_type, &opt, buf, 80); info_message("Mixer type: %s", buf); control.cur_info = 0; break; } case 'Z': info_message("Current sequence: %d (start at position %02X)", control.sequence, mi.seq_data[control.sequence].entry_point); control.cur_info = 0; break; } } /* Check maximum replay time */ if (opt.max_time > 0 && control.time > opt.max_time) { break; } check_pause(xc, &control, &mi, &fi, opt.verbose); opt.start = 0; } /* Subsong explorer */ if (control.explore && control.skip == 0) { control.sequence++; if (control.sequence < mi.num_sequences) { xmp_set_position(xc, mi.seq_data [control.sequence].entry_point); info_message("Playing sequence %d", control.sequence); goto play_sequence; } } xmp_end_player(xc); } xmp_release_module(xc); if (!opt.info) { report("\n"); } if (control.skip == -1) { optind -= optind > first ? 2 : 1; skipprev = 1; } else if (control.skip == -2) { goto end; } control.skip = 0; } if (control.loop == 2 && played) { info_message("Restart module list"); optind = first; goto play_all; } sound->flush(); end: xmp_free_context(xc); if (foreground_in) reset_tty(); sound->deinit(); return 0; } xmp-4.2.0/src/sound_alsa.c0000644000000000000000000000602214442670136014111 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include "sound.h" static snd_pcm_t *pcm_handle; static int init(struct options *options) { char **parm = options->driver_parm; snd_pcm_hw_params_t *hwparams; int ret; unsigned int channels; snd_pcm_format_t fmt; unsigned int btime = 250000; /* 250ms */ unsigned int ptime = 50000; /* 50ms */ const char *card_name = "default"; unsigned int rate = options->rate; int format = options->format; parm_init(parm); chkparm1("buffer", btime = 1000 * strtoul(token, NULL, 0)); chkparm1("period", btime = 1000 * strtoul(token, NULL, 0)); chkparm1("card", card_name = token); parm_end(); if ((ret = snd_pcm_open(&pcm_handle, card_name, SND_PCM_STREAM_PLAYBACK, 0)) < 0) { fprintf(stderr, "Unable to initialize ALSA pcm device %s: %s\n", card_name, snd_strerror(ret)); return -1; } channels = format & XMP_FORMAT_MONO ? 1 : 2; if (format & XMP_FORMAT_UNSIGNED) { fmt = format & XMP_FORMAT_8BIT ? SND_PCM_FORMAT_U8 : SND_PCM_FORMAT_U16; } else { fmt = format & XMP_FORMAT_8BIT ? SND_PCM_FORMAT_S8 : SND_PCM_FORMAT_S16; } snd_pcm_hw_params_alloca(&hwparams); snd_pcm_hw_params_any(pcm_handle, hwparams); snd_pcm_hw_params_set_access(pcm_handle, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED); snd_pcm_hw_params_set_format(pcm_handle, hwparams, fmt); snd_pcm_hw_params_set_rate_near(pcm_handle, hwparams, &rate, 0); snd_pcm_hw_params_set_channels_near(pcm_handle, hwparams, &channels); snd_pcm_hw_params_set_buffer_time_near(pcm_handle, hwparams, &btime, 0); snd_pcm_hw_params_set_period_time_near(pcm_handle, hwparams, &ptime, 0); snd_pcm_nonblock(pcm_handle, 0); if ((ret = snd_pcm_hw_params(pcm_handle, hwparams)) < 0) { fprintf(stderr, "Unable to set ALSA output parameters: %s\n", snd_strerror(ret)); return -1; } if ((ret = snd_pcm_prepare(pcm_handle)) < 0) { fprintf(stderr, "Unable to prepare ALSA: %s\n", snd_strerror(ret)); return -1; } if (channels == 1) { format |= XMP_FORMAT_MONO; } else { format &= ~XMP_FORMAT_MONO; } options->rate = rate; options->format = format; return 0; } static void play(void *b, int i) { int frames = snd_pcm_bytes_to_frames(pcm_handle, i); if (snd_pcm_writei(pcm_handle, b, frames) < 0) { snd_pcm_prepare(pcm_handle); } } static void deinit(void) { snd_pcm_close(pcm_handle); } static void flush(void) { snd_pcm_drain(pcm_handle); } static void onpause(void) { } static void onresume(void) { } static const char *const help[] = { "buffer=num", "Set the ALSA buffer time in milliseconds", "period=num", "Set the ALSA period time in milliseconds", "card ", "Select sound card to use", NULL }; struct sound_driver sound_alsa = { "alsa", "ALSA PCM audio", help, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/sound_win32.c0000644000000000000000000000753014442670136014140 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ /* * Based on Bjornar Henden's driver for Mikmod */ #include #include #include "sound.h" #if defined(_MSC_VER) && (_MSC_VER < 1300) typedef DWORD DWORD_PTR; #endif #define MAXBUFFERS 32 /* max number of buffers */ #define BUFFERSIZE 120 /* buffer size in ms */ /* frame rate = (50 * bpm / 125) Hz */ /* frame size = (sampling rate * channels * size) / frame rate */ #define OUT_MAXLEN 0x8000 static HWAVEOUT hwaveout; static WAVEHDR header[MAXBUFFERS]; static LPSTR buffer[MAXBUFFERS]; /* pointers to buffers */ static WORD freebuffer; /* */ static WORD nextbuffer; /* next buffer to be mixed */ static int num_buffers; static void show_error(int res) { const char *msg; switch (res) { case MMSYSERR_ALLOCATED: msg = "Device is already open"; break; case MMSYSERR_BADDEVICEID: msg = "Device is out of range"; break; case MMSYSERR_NODRIVER: msg = "No audio driver in this system"; break; case MMSYSERR_NOMEM: msg = "Unable to allocate sound memory"; break; case WAVERR_BADFORMAT: msg = "Audio format not supported"; break; case WAVERR_SYNC: msg = "The device is synchronous"; break; default: msg = "Unknown media error"; } fprintf(stderr, "Error: %s", msg); } static void CALLBACK wave_callback(HWAVEOUT hwo, UINT uMsg, DWORD_PTR dwInstance, DWORD_PTR dwParam1, DWORD_PTR dwParam2) { if (uMsg == WOM_DONE) { freebuffer++; freebuffer %= num_buffers; } } static int init(struct options *options) { char **parm = options->driver_parm; MMRESULT res; WAVEFORMATEX wfe; int i; num_buffers = 10; parm_init(parm); chkparm1("buffers", num_buffers = strtoul(token, NULL, 0)); parm_end(); if (num_buffers > MAXBUFFERS) num_buffers = MAXBUFFERS; if (!waveOutGetNumDevs()) return -1; wfe.wFormatTag = WAVE_FORMAT_PCM; wfe.wBitsPerSample = options->format & XMP_FORMAT_8BIT ? 8 : 16; wfe.nChannels = options->format & XMP_FORMAT_MONO ? 1 : 2; wfe.nSamplesPerSec = options->rate; wfe.nAvgBytesPerSec = wfe.nSamplesPerSec * wfe.nChannels * wfe.wBitsPerSample / 8; wfe.nBlockAlign = wfe.nChannels * wfe.wBitsPerSample / 8; res = waveOutOpen(&hwaveout, WAVE_MAPPER, &wfe, (DWORD_PTR) wave_callback, 0, CALLBACK_FUNCTION); if (res != MMSYSERR_NOERROR) { show_error(res); return -1; } waveOutReset(hwaveout); for (i = 0; i < num_buffers; i++) { buffer[i] = (LPSTR) malloc(OUT_MAXLEN); header[i].lpData = buffer[i]; if (!buffer[i] || res != MMSYSERR_NOERROR) { show_error(res); return -1; } } freebuffer = nextbuffer = 0; return 0; } static void play(void *b, int len) { memcpy(buffer[nextbuffer], b, len); while ((nextbuffer + 1) % num_buffers == freebuffer) Sleep(10); header[nextbuffer].dwBufferLength = len; waveOutPrepareHeader(hwaveout, &header[nextbuffer], sizeof(WAVEHDR)); waveOutWrite(hwaveout, &header[nextbuffer], sizeof(WAVEHDR)); nextbuffer++; nextbuffer %= num_buffers; } static void deinit(void) { int i; if (hwaveout) { waveOutReset(hwaveout); for (i = 0; i < num_buffers; i++) { if (header[i].dwFlags & WHDR_PREPARED) waveOutUnprepareHeader(hwaveout, &header[i], sizeof(WAVEHDR)); free(buffer[i]); } while (waveOutClose(hwaveout) == WAVERR_STILLPLAYING) Sleep(10); hwaveout = NULL; } } static void flush(void) { } static void onpause(void) { } static void onresume(void) { } static const char *const help[] = { "buffers=val", "Number of buffers (default 10)", NULL }; struct sound_driver sound_win32 = { "win32", "Windows WinMM sound output", help, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/modules.conf0000644000000000000000000000174214442670136014140 0ustar rootroot# Configuration for specific modules # xmp will look for this file in /etc/xmp/modules.conf and # $HOME/.xmp/modules.conf (both files will be read). # # Format is: # # [MD5sum] # amplify = <0|1|2|3> Amplification factor (default is 1) # amiga = yes/no Enable Amiga simulation mixer if available # filter = yes/no Enable filters (affects IT only) # fixloop = yes/no Use sample loop start value / 2 # interpolation = Software mixer interpolation # loop = yes/no Loop module # mode = Force tracker emulation # mono = yes/no Mono output # mix = value Stereo channel separation (0 - 100) # mixer_voices = value Maximum number of virtual channels # reverse = yes/no Reverse L/R stereo channels # vblank = yes/no Force vblank timing instead of CIA # "No Mercy" by Alf/VTL (added by Martin Willers) #[366ec0fa962aebee034aa2dbaa49aaea] #mode = protracker xmp-4.2.0/src/dos/0000755000000000000000000000000014442671646012411 5ustar rootrootxmp-4.2.0/src/dos/dosdma.c0000644000000000000000000001145614442670136014024 0ustar rootroot/* Implementation of DOS DMA routines, from libMikMod. * Copyright (C) 1999 by Andrew Zabolotny * * Extended Module Player * Copyright (C) 1996-2021 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #ifdef __DJGPP__ #include #endif #include "dosdma.h" __dma_regs dma[8] = { /* *INDENT-OFF* */ {DMA_ADDR_0, DMA_PAGE_0, DMA_SIZE_0, DMA1_MASK_REG, DMA1_CLEAR_FF_REG, DMA1_MODE_REG}, {DMA_ADDR_1, DMA_PAGE_1, DMA_SIZE_1, DMA1_MASK_REG, DMA1_CLEAR_FF_REG, DMA1_MODE_REG}, {DMA_ADDR_2, DMA_PAGE_2, DMA_SIZE_2, DMA1_MASK_REG, DMA1_CLEAR_FF_REG, DMA1_MODE_REG}, {DMA_ADDR_3, DMA_PAGE_3, DMA_SIZE_3, DMA1_MASK_REG, DMA1_CLEAR_FF_REG, DMA1_MODE_REG}, {DMA_ADDR_4, 0, DMA_SIZE_4, DMA2_MASK_REG, DMA2_CLEAR_FF_REG, DMA2_MODE_REG}, {DMA_ADDR_5, DMA_PAGE_5, DMA_SIZE_5, DMA2_MASK_REG, DMA2_CLEAR_FF_REG, DMA2_MODE_REG}, {DMA_ADDR_6, DMA_PAGE_6, DMA_SIZE_6, DMA2_MASK_REG, DMA2_CLEAR_FF_REG, DMA2_MODE_REG}, {DMA_ADDR_7, DMA_PAGE_7, DMA_SIZE_7, DMA2_MASK_REG, DMA2_CLEAR_FF_REG, DMA2_MODE_REG} /* *INDENT-ON* */ }; static int __initialized = 0; static int __buffer_count = 0; int dma_initialize() { #ifdef __DJGPP__ if (!__djgpp_nearptr_enable()) return 0; /* Trick: Avoid re-setting DS selector limit on each memory allocation call */ __djgpp_selector_limit = 0xffffffff; #endif if (dpmi_lock_linear_region_base(dma, sizeof(dma))) return 0; return (__initialized = 1); } void dma_finalize() { if (!__initialized) return; dpmi_unlock_linear_region_base(dma, sizeof(dma)); #ifdef __DJGPP__ __djgpp_nearptr_disable(); #endif } dma_buffer *dma_allocate(unsigned int channel, unsigned int size) { int parsize = (size + 15) >> 4; /* size in paragraphs */ int par = 0; /* Real-mode paragraph */ int selector = 0; /* Protected-mode selector */ int mask = channel <= 3 ? 0xfff : 0x1fff; /* Alignment mask in para. */ int allocsize = parsize; /* Allocated size in paragraphs */ int count; /* Try count */ int bound = 0; /* Nearest bound address */ int maxsize; /* Maximal possible block size */ dma_buffer *buffer = NULL; if (!dma_initialize()) return NULL; /* Loop until we'll get a properly aligned memory block */ for (count = 8; count; count--) { int resize = (selector != 0); /* Try first to resize (possibly previously) allocated block */ if (resize) { maxsize = (bound + parsize) - par; if (maxsize > parsize * 2) maxsize = parsize * 2; if (maxsize == allocsize) resize = 0; else { allocsize = maxsize; if (dpmi_resize_dos_memory(selector, allocsize, &maxsize) != 0) resize = 0; } } if (!resize) { if (selector) dpmi_free_dos_memory(selector), selector = 0; par = dpmi_allocate_dos_memory(allocsize, &selector); } if ((par == 0) || (par == -1)) goto exit; /* If memory block contains a properly aligned portion, quit loop */ bound = (par + mask + 1) & ~mask; if (par + parsize <= bound) break; if (bound + parsize <= par + allocsize) { par = bound; break; } } if (!count) { dpmi_free_dos_memory(selector); goto exit; } buffer = (dma_buffer *) malloc(sizeof(dma_buffer)); #ifdef __DJGPP__ buffer->linear = (unsigned char *)(__djgpp_conventional_base + bound * 16); #else buffer->linear = (unsigned char *)(bound * 16); #endif buffer->physical = bound * 16; buffer->size = parsize * 16; buffer->selector = selector; buffer->channel = channel; /* Don't pay attention to return code since under plain DOS it often returns error (at least under HIMEM/CWSDPMI and EMM386/DPMI) */ dpmi_lock_linear_region(buffer->physical, buffer->size); /* Lock the DMA buffer control structure as well */ if (dpmi_lock_linear_region_base(buffer, sizeof(dma_buffer))) { dpmi_unlock_linear_region(buffer->physical, buffer->size); dpmi_free_dos_memory(selector); free(buffer); buffer = NULL; goto exit; } exit: if (buffer) __buffer_count++; else if (--__buffer_count == 0) dma_finalize(); return buffer; } void dma_free(dma_buffer * buffer) { if (!buffer) return; dpmi_unlock_linear_region(buffer->physical, buffer->size); dpmi_free_dos_memory(buffer->selector); free(buffer); if (--__buffer_count == 0) dma_finalize(); } void dma_start(dma_buffer * buffer, unsigned long count, unsigned char mode) { /* Disable interrupts */ int old_ints = disable(); dma_disable(buffer->channel); dma_set_mode(buffer->channel, mode); dma_clear_ff(buffer->channel); dma_set_addr(buffer->channel, buffer->physical); dma_clear_ff(buffer->channel); dma_set_count(buffer->channel, count); dma_enable(buffer->channel); /* Re-enable interrupts */ if (old_ints) enable(); } xmp-4.2.0/src/dos/dossb.c0000644000000000000000000002736514442670136013675 0ustar rootroot/* Sound Blaster I/O routines, common for SB8, SBPro, and SB16, * from libMikMod. Written by Andrew Zabolotny * Further bug fixes by O. Sezer * * Extended Module Player * Copyright (C) 1996-2021 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include #ifdef __DJGPP__ #include #include #include #include #else #define _farsetsel(seg) #define _farnspeekl(addr) (*((unsigned long *)(addr))) #endif #include "dossb.h" /********************************************* Private variables/routines *****/ __sb_state sb; /* Wait for SoundBlaster for some time */ _func_noinline _func_noclone void __sb_wait() { inportb(SB_DSP_RESET); inportb(SB_DSP_RESET); inportb(SB_DSP_RESET); inportb(SB_DSP_RESET); inportb(SB_DSP_RESET); inportb(SB_DSP_RESET); } #if defined(__WATCOMC__) static void nop (void); #pragma aux nop = "nop" #else #define nop() #endif static void INTERRUPT_ATTRIBUTES NO_REORDER sb_irq() { /* Make sure its not a spurious IRQ */ if (!irq_check(sb.irq_handle)) return; sb.irqcount++; /* Acknowledge DMA transfer is complete */ if (sb.mode & SBMODE_16BITS) __sb_dsp_ack_dma16(); else __sb_dsp_ack_dma8(); /* SoundBlaster 1.x cannot do autoinit ... */ if (sb.dspver < SBVER_20) __sb_dspreg_outwlh(SBDSP_DMA_PCM8, (sb.dma_buff->size >> 1) - 1); /* Send EOI */ irq_ack(sb.irq_handle); enable(); if (sb.timer_callback) sb.timer_callback(); } static void NO_REORDER INTERRUPT_ATTRIBUTES sb_irq_end() { nop(); } static boolean __sb_reset() { /* Disable the output */ sb_output(FALSE); /* Clear pending ints if any */ __sb_dsp_ack_dma8(); __sb_dsp_ack_dma16(); /* Reset the DSP */ outportb(SB_DSP_RESET, SBM_DSP_RESET); __sb_wait(); __sb_wait(); outportb(SB_DSP_RESET, 0); /* Now wait for AA coming from datain port */ if (__sb_dsp_in() != 0xaa) return FALSE; /* Finally, get the DSP version */ if ((sb.dspver = __sb_dsp_version()) == 0xffff) return FALSE; /* Check again */ if (sb.dspver != __sb_dsp_version()) return FALSE; return TRUE; } /***************************************************** SB detection stuff *****/ static int __sb_irq_irqdetect(int irqno) { __sb_dsp_ack_dma8(); return 1; } static void INTERRUPT_ATTRIBUTES NO_REORDER __sb_irq_dmadetect() { /* Make sure its not a spurious IRQ */ if (!irq_check(sb.irq_handle)) return; sb.irqcount++; /* Acknowledge DMA transfer is complete */ if (sb.mode & SBMODE_16BITS) __sb_dsp_ack_dma16(); else __sb_dsp_ack_dma8(); /* Send EOI */ irq_ack(sb.irq_handle); } static void INTERRUPT_ATTRIBUTES NO_REORDER __sb_irq_dmadetect_end() { nop(); } static boolean __sb_detect() { /* First find the port number */ if (!sb.port) { int i; for (i = 5; i >= 0; i--) { sb.port = 0x210 + i * 0x10; if (__sb_reset()) break; } if (i < 0) { sb.port = 0; return FALSE; } } /* Now detect the IRQ and DMA numbers */ if (!sb.irq) { unsigned int irqmask, sbirqmask, sbirqcount; unsigned long timer; /* IRQ can be one of 2,3,5,7,10 */ irq_detect_start(0x04ac, __sb_irq_irqdetect); /* Prepare timeout counter */ _farsetsel(_dos_ds); timer = _farnspeekl(0x46c); sbirqmask = 0; sbirqcount = 10; /* Emit 10 SB irqs */ /* Tell SoundBlaster to emit IRQ for 8-bit transfers */ __sb_dsp_out(SBDSP_GEN_IRQ8); __sb_wait(); for (;;) { irq_detect_get(0, &irqmask); if (irqmask) { sbirqmask |= irqmask; if (!--sbirqcount) break; __sb_dsp_out(SBDSP_GEN_IRQ8); } if (_farnspeekl(0x46c) - timer >= 9) /* Wait ~1/2 secs */ break; } if (sbirqmask) for (sb.irq = 15; sb.irq > 0; sb.irq--) if (irq_detect_get(sb.irq, &irqmask) == 10) break; irq_detect_end(); if (!sb.irq) return FALSE; } /* Detect the 8-bit and 16-bit DMAs */ if (!sb.dma8 || ((sb.dspver >= SBVER_16) && !sb.dma16)) { static int __dma8[] = { 0, 1, 3 }; static int __dma16[] = { 5, 6, 7 }; int *dma; sb_output(FALSE); /* Temporary hook SB IRQ */ sb.irq_handle = irq_hook(sb.irq, __sb_irq_dmadetect, __sb_irq_dmadetect_end); irq_enable(sb.irq_handle); if (sb.irq > 7) _irq_enable(2); /* Start a short DMA transfer and check if IRQ happened */ for (;;) { int i, oldcount; unsigned int timer; if (!sb.dma8) dma = &sb.dma8; else if ((sb.dspver >= SBVER_16) && !sb.dma16) dma = &sb.dma16; else break; for (i = 0; i < 3; i++) { boolean success = 1; *dma = (dma == &sb.dma8) ? __dma8[i] : __dma16[i]; oldcount = sb.irqcount; dma_disable(*dma); dma_set_mode(*dma, DMA_MODE_WRITE); dma_clear_ff(*dma); dma_set_count(*dma, 2); dma_enable(*dma); __sb_dspreg_out(SBDSP_SET_TIMING, 206); /* 20KHz */ if (dma == &sb.dma8) { sb.mode = 0; __sb_dspreg_outwlh(SBDSP_DMA_PCM8, 1); } else { sb.mode = SBMODE_16BITS; __sb_dspreg_out(SBDSP_DMA_GENERIC16, 0); __sb_dsp_out(0); __sb_dsp_out(1); } _farsetsel(_dos_ds); timer = _farnspeekl(0x46c); while (oldcount == sb.irqcount) if (_farnspeekl(0x46c) - timer >= 2) { success = 0; break; } dma_disable(*dma); if (success) break; *dma = 0; } if (!*dma) break; } irq_unhook(sb.irq_handle); sb.irq_handle = NULL; if (!sb.dma8 || ((sb.dspver >= SBVER_16) && !sb.dma16)) return FALSE; } return TRUE; } /*************************************************** High-level interface *****/ /* Detect whenever SoundBlaster is present and fill "sb" structure */ boolean sb_detect() { char *env; /* Try to find the port and DMA from environment */ env = getenv("BLASTER"); while (env && *env) { /* Skip whitespace */ while ((*env == ' ') || (*env == '\t')) env++; if (!*env) break; switch (*env++) { case 'A': case 'a': if (!sb.port) sb.port = strtol(env, &env, 16); break; case 'E': case 'e': if (!sb.aweport) sb.aweport = strtol(env, &env, 16); break; case 'I': case 'i': if (!sb.irq) sb.irq = strtol(env, &env, 10); break; case 'D': case 'd': if (!sb.dma8) sb.dma8 = strtol(env, &env, 10); break; case 'H': case 'h': if (!sb.dma16) sb.dma16 = strtol(env, &env, 10); break; default: /* Skip other values (H == MIDI, T == model, any other?) */ while (*env && (*env != ' ') && (*env != '\t')) env++; break; } } /* Try to detect missing sound card parameters */ __sb_detect(); if (!sb.port || !sb.irq || !sb.dma8) return FALSE; if (!__sb_reset()) return FALSE; if ((sb.dspver >= SBVER_16) && !sb.dma16) return FALSE; if (sb.dspver >= SBVER_PRO) sb.caps |= SBMODE_STEREO; if (sb.dspver >= SBVER_16 && sb.dma16) sb.caps |= SBMODE_16BITS; if (sb.dspver < SBVER_20) sb.maxfreq_mono = 22222; else sb.maxfreq_mono = 45454; if (sb.dspver <= SBVER_16) sb.maxfreq_stereo = 22727; else sb.maxfreq_stereo = 45454; sb.ok = 1; return TRUE; } /* Reset SoundBlaster */ void sb_reset() { sb_stop_dma(); __sb_reset(); } /* Start working with SoundBlaster */ boolean sb_open() { if (!sb.ok) if (!sb_detect()) return FALSE; if (sb.open) return FALSE; /* Now lock the sb structure in memory */ if (dpmi_lock_linear_region_base(&sb, sizeof(sb))) return FALSE; /* Hook the SB IRQ */ sb.irq_handle = irq_hook(sb.irq, sb_irq, sb_irq_end); if (!sb.irq_handle) { dpmi_unlock_linear_region_base(&sb, sizeof(sb)); return FALSE; } /* Enable the interrupt */ irq_enable(sb.irq_handle); if (sb.irq > 7) _irq_enable(2); sb.open++; return TRUE; } /* Finish working with SoundBlaster */ boolean sb_close() { if (!sb.open) return FALSE; sb.open--; /* Stop/free DMA buffer */ sb_stop_dma(); /* Unhook IRQ */ irq_unhook(sb.irq_handle); sb.irq_handle = NULL; /* Unlock the sb structure */ dpmi_unlock_linear_region_base(&sb, sizeof(sb)); return TRUE; } /* Enable/disable stereo DSP mode */ /* Enable/disable speaker output */ void sb_output(boolean enable) { __sb_dsp_out(enable ? SBDSP_SPEAKER_ENA : SBDSP_SPEAKER_DIS); } /* Start playing from DMA buffer */ boolean sb_start_dma(unsigned char mode, unsigned int freq) { int dmachannel = (mode & SBMODE_16BITS) ? sb.dma16 : sb.dma8; int dmabuffsize; unsigned int tc = 0; /* timing constant (<=sbpro only) */ /* Stop DMA transfer if it is enabled */ sb_stop_dma(); /* Sanity check */ if ((mode & SBMODE_MASK & sb.caps) != (mode & SBMODE_MASK)) return FALSE; /* Check this SB can perform at requested frequency */ if (((mode & SBMODE_STEREO) && (freq > sb.maxfreq_stereo)) || (!(mode & SBMODE_STEREO) && (freq > sb.maxfreq_mono))) return FALSE; /* Check the timing constant here to avoid failing later */ if (sb.dspver < SBVER_16) { /* SBpro cannot do signed transfer */ if (mode & SBMODE_SIGNED) return FALSE; /* Old SBs have a different way on setting DMA timing constant */ tc = freq; if (mode & SBMODE_STEREO) tc *= 2; tc = 1000000 / tc; if (tc > 255) return FALSE; } sb.mode = mode; /* Get a DMA buffer enough for a 1/4sec interval... 4K <= dmasize <= 32K */ dmabuffsize = freq; if (mode & SBMODE_STEREO) dmabuffsize *= 2; if (mode & SBMODE_16BITS) dmabuffsize *= 2; dmabuffsize >>= 2; if (dmabuffsize < 4096) dmabuffsize = 4096; if (dmabuffsize > 32768) dmabuffsize = 32768; dmabuffsize = (dmabuffsize + 255) & 0xffffff00; sb.dma_buff = dma_allocate(dmachannel, dmabuffsize); if (!sb.dma_buff) return FALSE; /* Fill DMA buffer with silence */ dmabuffsize = sb.dma_buff->size; if (mode & SBMODE_SIGNED) memset(sb.dma_buff->linear, 0, dmabuffsize); else memset(sb.dma_buff->linear, 0x80, dmabuffsize); /* Prime DMA for transfer */ dma_start(sb.dma_buff, dmabuffsize, DMA_MODE_WRITE | DMA_MODE_AUTOINIT); /* Tell SoundBlaster to start transfer */ if (sb.dspver >= SBVER_16) { /* SB16 */ __sb_dspreg_outwhl(SBDSP_SET_RATE, freq); /* Start DMA->DAC transfer */ __sb_dspreg_out(SBM_GENDAC_AUTOINIT | SBM_GENDAC_FIFO | ((mode & SBMODE_16BITS) ? SBDSP_DMA_GENERIC16 : SBDSP_DMA_GENERIC8), ((mode & SBMODE_SIGNED) ? SBM_GENDAC_SIGNED : 0) | ((mode & SBMODE_STEREO) ? SBM_GENDAC_STEREO : 0)); /* Write the length of transfer */ dmabuffsize = (dmabuffsize >> 2) - 1; __sb_dsp_out(dmabuffsize); __sb_dsp_out(dmabuffsize >> 8); } else { __sb_dspreg_out(SBDSP_SET_TIMING, 256 - tc); dmabuffsize = (dmabuffsize >> 1) - 1; if (sb.dspver >= SBVER_20) { /* SB 2.0/Pro */ /* Set stereo mode */ __sb_stereo((mode & SBMODE_STEREO) ? TRUE : FALSE); __sb_dspreg_outwlh(SBDSP_SET_DMA_BLOCK, dmabuffsize); if (sb.dspver >= SBVER_PRO) __sb_dsp_out(SBDSP_HS_DMA_DAC8_AUTO); else __sb_dsp_out(SBDSP_DMA_PCM8_AUTO); } else { /* Original SB */ /* Start DMA->DAC transfer */ __sb_dspreg_outwlh(SBDSP_DMA_PCM8, dmabuffsize); } } return TRUE; } /* Stop playing from DMA buffer */ void sb_stop_dma() { if (!sb.dma_buff) return; if (sb.mode & SBMODE_16BITS) __sb_dsp_out(SBDSP_DMA_HALT16); else __sb_dsp_out(SBDSP_DMA_HALT8); dma_disable(sb.dma_buff->channel); dma_free(sb.dma_buff); sb.dma_buff = NULL; } /* Query current position/total size of the DMA buffer */ void sb_query_dma(unsigned int *dma_size, unsigned int *dma_pos) { unsigned int dma_left; *dma_size = sb.dma_buff->size; /* It can happen we try to read DMA count when HI/LO bytes will be inconsistent */ for (;;) { unsigned int dma_left_test; dma_clear_ff(sb.dma_buff->channel); dma_left_test = dma_get_count(sb.dma_buff->channel); dma_left = dma_get_count(sb.dma_buff->channel); if ((dma_left >= dma_left_test) && (dma_left - dma_left_test < 10)) break; } *dma_pos = *dma_size - dma_left; } xmp-4.2.0/src/dos/dosirq.h0000644000000000000000000001041514442670136014055 0ustar rootroot/* Interface for DOS IRQ routines, from libMikMod. * Copyright (C) 1999 by Andrew Zabolotny * * Extended Module Player * Copyright (C) 1996-2021 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #ifndef __DOSIRQ_H__ #define __DOSIRQ_H__ #include "dosutil.h" #define PIC1_BASE 0x20 /* PIC1 base */ #define PIC2_BASE 0xA0 /* PIC2 base */ #if defined(__GNUC__) && (__GNUC__ >= 5) #define NO_REORDER __attribute__((no_reorder,no_icf,noinline,noclone)) #else #define NO_REORDER #endif #ifdef __WATCOMC__ #define INTERRUPT_ATTRIBUTES __interrupt __far #else #define INTERRUPT_ATTRIBUTES #endif typedef void (INTERRUPT_ATTRIBUTES *irq_handler) (); struct irq_handle { irq_handler c_handler; /* The real interrupt handler */ unsigned long handler_size; /* The size of interrupt handler */ #ifdef __DJGPP__ unsigned long handler; /* Interrupt wrapper address */ unsigned long prev_selector; /* Selector of previous handler */ unsigned long prev_offset; /* Offset of previous handler */ #else irq_handler prev_vect; /* The previous interrupt handler */ #endif unsigned char irq_num; /* IRQ number */ unsigned char int_num; /* Interrupt number */ unsigned char pic_base; /* PIC base (0x20 or 0xA0) */ unsigned char pic_mask; /* Old PIC mask state */ }; /* Return the enabled state for specific IRQ */ static inline unsigned char irq_state(struct irq_handle * irq) { return ((~inportb(irq->pic_base + 1)) & (0x01 << (irq->irq_num & 7))); } /* Acknowledge the end of interrupt */ static inline void _irq_ack(int irqno) { outportb(irqno > 7 ? PIC2_BASE : PIC1_BASE, 0x60 | (irqno & 7)); /* For second controller we also should acknowledge first controller */ if (irqno > 7) outportb(PIC1_BASE, 0x20); /* 0x20, 0x62? */ } /* Acknowledge the end of interrupt */ static inline void irq_ack(struct irq_handle * irq) { outportb(irq->pic_base, 0x60 | (irq->irq_num & 7)); /* For second controller we also should acknowledge first controller */ if (irq->pic_base != PIC1_BASE) outportb(PIC1_BASE, 0x20); /* 0x20, 0x62? */ } /* Mask (disable) the particular IRQ given his ordinal */ static inline void _irq_disable(int irqno) { unsigned int port_no = (irqno < 8 ? PIC1_BASE : PIC2_BASE) + 1; outportb(port_no, inportb(port_no) | (1 << (irqno & 7))); } /* Unmask (enable) the particular IRQ given its ordinal */ static inline void _irq_enable(int irqno) { unsigned int port_no = (irqno < 8 ? PIC1_BASE : PIC2_BASE) + 1; outportb(port_no, inportb(port_no) & ~(1 << (irqno & 7))); } /* Mask (disable) the particular IRQ given its irq_handle structure */ static inline void irq_disable(struct irq_handle * irq) { outportb(irq->pic_base + 1, inportb(irq->pic_base + 1) | (1 << (irq->irq_num & 7))); } /* Unmask (enable) the particular IRQ given its irq_handle structure */ static inline void irq_enable(struct irq_handle * irq) { outportb(irq->pic_base + 1, inportb(irq->pic_base + 1) & ~(1 << (irq->irq_num & 7))); } /* Check if a specific IRQ is pending: return 0 is no */ static inline int irq_check(struct irq_handle * irq) { outportb(irq->pic_base, 0x0B); /* Read IRR vector */ return (inportb(irq->pic_base) & (1 << (irq->irq_num & 7))); } /* Hook a specific IRQ; NOTE: IRQ is disabled upon return, irq_enable() it */ extern struct irq_handle *irq_hook(int irqno, irq_handler handler, irq_handler end); /* Unhook a previously hooked IRQ */ extern void irq_unhook(struct irq_handle * irq); /* Start IRQ detection process (IRQ list is given with irq mask) */ /* irq_confirm should return "1" if the IRQ really comes from the device */ extern void irq_detect_start(unsigned int irqs, int (*irq_confirm) (int irqno)); /* Finish IRQ detection process */ extern void irq_detect_end(); /* Get the count of specific irqno that happened */ extern int irq_detect_get(int irqno, unsigned int *irqmask); /* Clear IRQ counters */ extern void irq_detect_clear(); /* The size of interrupt stack */ extern unsigned int __irq_stack_size; /* The number of nested interrupts that can be handled */ extern unsigned int __irq_stack_count; #endif /* __DOSIRQ_H__ */ xmp-4.2.0/src/dos/dosutil.c0000644000000000000000000000753614442670136014244 0ustar rootroot/* DOS glue code for DJGPP / Watcom compatibility * Written by Cameron Cawley * * Extended Module Player * Copyright (C) 1996-2021 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include "dosutil.h" #if defined(__DJGPP__) #include #include #include /* BUG WARNING: there is an error in DJGPP libraries <= 2.01: * src/libc/dpmi/api/d0102.s loads the selector and allocsize * arguments in the wrong order. DJGPP >= 2.02 have it fixed. */ #if (!defined(__DJGPP_MINOR__) || (__DJGPP_MINOR__+0) < 2) #error __dpmi_resize_dos_memory() from DJGPP <= 2.01 is broken! #endif int dpmi_allocate_dos_memory(int paragraphs, int *ret_selector_or_max) { return __dpmi_allocate_dos_memory(paragraphs, ret_selector_or_max); } int dpmi_free_dos_memory(int selector) { return __dpmi_free_dos_memory(selector); } int dpmi_resize_dos_memory(int selector, int newpara, int *ret_max) { return __dpmi_resize_dos_memory(selector, newpara, ret_max); } int dpmi_lock_linear_region(unsigned long address, unsigned long size) { __dpmi_meminfo info; info.address = address; info.size = size; return __dpmi_lock_linear_region(&info); } int dpmi_unlock_linear_region(unsigned long address, unsigned long size) { __dpmi_meminfo info; info.address = address; info.size = size; return __dpmi_unlock_linear_region(&info); } int dpmi_lock_linear_region_base(void *address, unsigned long size) { return dpmi_lock_linear_region(__djgpp_base_address + (unsigned long)address, size); } int dpmi_unlock_linear_region_base(void *address, unsigned long size) { return dpmi_unlock_linear_region(__djgpp_base_address + (unsigned long)address, size); } #elif defined(__WATCOMC__) #include int dpmi_allocate_dos_memory(int paragraphs, int *ret_selector_or_max) { union REGS r; r.x.eax = 0x0100; /* DPMI allocate DOS memory */ r.x.ebx = paragraphs; /* Number of paragraphs */ int386 (0x31, &r, &r); if (r.w.cflag & 1) return (-1); *ret_selector_or_max = r.w.dx; return (r.w.ax); /* Return segment address */ } int dpmi_free_dos_memory(int selector) { union REGS r; r.x.eax = 0x101; /* DPMI free DOS memory */ r.x.edx = selector; /* Selector to free */ int386 (0x31, &r, &r); return (r.w.cflag & 1) ? -1 : 0; } int dpmi_resize_dos_memory(int selector, int newpara, int *ret_max) { union REGS r; r.x.eax = 0x0102; /* DPMI resize DOS memory */ r.x.ebx = newpara; /* Number of paragraphs */ r.x.edx = selector; /* Selector to free */ int386 (0x31, &r, &r); if (r.w.cflag & 1) { *ret_max = r.x.ebx; return (-1); } return 0; } int dpmi_lock_linear_region(unsigned long address, unsigned long size) { union REGS r; r.w.ax = 0x600; /* DPMI Lock Linear Region */ r.w.bx = (address >> 16); /* Linear address in BX:CX */ r.w.cx = (address & 0xFFFF); r.w.si = (size >> 16); /* Length in SI:DI */ r.w.di = (size & 0xFFFF); int386 (0x31, &r, &r); return (r.w.cflag & 1) ? -1 : 0; } int dpmi_unlock_linear_region(unsigned long address, unsigned long size) { union REGS r; r.w.ax = 0x601; /* DPMI Unlock Linear Region */ r.w.bx = (address >> 16); /* Linear address in BX:CX */ r.w.cx = (address & 0xFFFF); r.w.si = (size >> 16); /* Length in SI:DI */ r.w.di = (size & 0xFFFF); int386 (0x31, &r, &r); return (r.w.cflag & 1) ? -1 : 0; } int dpmi_lock_linear_region_base(void *address, unsigned long size) { return dpmi_lock_linear_region((unsigned long)address, size); } int dpmi_unlock_linear_region_base(void *address, unsigned long size) { return dpmi_unlock_linear_region((unsigned long)address, size); } #endif xmp-4.2.0/src/dos/dosirq.c0000644000000000000000000002311114442670136014045 0ustar rootroot/* Implementation of DOS IRQ routines, from libMikMod. Copyright (C) 1999 by Andrew Zabolotny * * Extended Module Player * Copyright (C) 1996-2021 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include #ifdef __DJGPP__ #include #include #include #endif #include "dosirq.h" #if defined(__DJGPP__) unsigned int __irq_stack_size = 0x4000; unsigned int __irq_stack_count = 1; static void __int_stub_template (void) { /* *INDENT-OFF* */ asm(" pushal\n" " pushl %ds\n" " pushl %es\n" " pushl %fs\n" " pushl %gs\n" " movw $0x1234,%ax\n" /* Get DPMI data selector */ " movw %ax,%ds\n" /* Set DS and ES to data selector */ " movw %ax,%es\n" " movl $0x12345678,%ebx\n" /* Interrupt stack top */ " movl (%ebx),%ecx\n" " movl %ecx,%edx\n" " subl $0x12345678,%ecx\n" /* Subtract irq_stack_count */ " movl %ecx,(%ebx)\n" " movw %ss,%si\n" /* Save old SS:ESP */ " movl %esp,%edi\n" " movl %edx,%esp\n" /* Set SS:ESP to interrupt stack */ " movw %ax,%ss\n" " pushl %esi\n" " pushl %edi\n" " pushl %ebx\n" " pushl %edx\n" " call 1f\n" /* Call user interrupt handler */ "1: popl %edx\n" " popl %ebx\n" " movl %edx,(%ebx)\n" " popl %edi\n" " popl %esi\n" " movl %edi,%esp\n" /* Restore old SS:ESP */ " movw %si,%ss\n" " popl %gs\n" " popl %fs\n" " popl %es\n" " popl %ds\n" " popal\n" " iret\n"); /* *INDENT-ON* */ } static int _allocate_iret_wrapper(_go32_dpmi_seginfo * info) { unsigned char *irqtpl = (unsigned char *)__int_stub_template; unsigned char *irqend, *irqwrapper, *tmp; __dpmi_meminfo handler_info; unsigned int wrappersize; /* First, skip until pushal */ while (*irqtpl != 0x60) irqtpl++; /* Now find the iret */ irqend = irqtpl; while (*irqend++ != 0xcf); wrappersize = 4 + __irq_stack_size * __irq_stack_count + 4 + ((long)irqend - (long)irqtpl); irqwrapper = (unsigned char *) malloc(wrappersize); /* Lock the wrapper */ handler_info.address = __djgpp_base_address + (unsigned long)irqwrapper; handler_info.size = wrappersize; if (__dpmi_lock_linear_region(&handler_info)) { free(irqwrapper); return -1; } /* First comes the interrupt wrapper size */ *(unsigned long *)irqwrapper = wrappersize; /* Next comes the interrupt stack */ tmp = irqwrapper + 4 + __irq_stack_size * __irq_stack_count; /* The following dword is interrupt stack pointer */ *((void **)tmp) = tmp; tmp += 4; /* Now comes the interrupt wrapper itself */ memcpy(tmp, irqtpl, irqend - irqtpl); *(unsigned short *)(tmp + 9) = _my_ds(); *(unsigned long *)(tmp + 16) = (unsigned long)tmp - 4; *(unsigned long *)(tmp + 26) = __irq_stack_size; *(unsigned long *)(tmp + 46) = info->pm_offset - (unsigned long)(tmp + 50); info->pm_offset = (unsigned long)tmp; info->pm_selector = _my_cs(); return 0; } static void _free_iret_wrapper(_go32_dpmi_seginfo * info) { __dpmi_meminfo handler_info; info->pm_offset -= 4 + __irq_stack_size * __irq_stack_count + 4; handler_info.address = __djgpp_base_address + info->pm_offset; handler_info.size = *(unsigned long *)info->pm_offset; __dpmi_unlock_linear_region(&handler_info); free((void *)info->pm_offset); } struct irq_handle *irq_hook(int irqno, irq_handler handler, irq_handler end) { int interrupt; struct irq_handle *irq; __dpmi_version_ret version; _go32_dpmi_seginfo info; unsigned long old_sel, old_ofs; __dpmi_get_version(&version); if (irqno < 8) interrupt = version.master_pic + irqno; else interrupt = version.slave_pic + (irqno - 8); if (_go32_dpmi_get_protected_mode_interrupt_vector(interrupt, &info)) return NULL; old_sel = info.pm_selector; old_ofs = info.pm_offset; info.pm_offset = (unsigned long)handler; if (_allocate_iret_wrapper(&info)) return NULL; /* Lock the interrupt handler in memory */ if (dpmi_lock_linear_region_base((void *)handler, (unsigned long)end - (unsigned long)handler)) { _free_iret_wrapper(&info); return NULL; } irq = (struct irq_handle *) malloc(sizeof(struct irq_handle)); irq->c_handler = handler; irq->handler_size = (unsigned long)end - (unsigned long)handler; irq->handler = info.pm_offset; irq->prev_selector = old_sel; irq->prev_offset = old_ofs; irq->int_num = interrupt; irq->irq_num = irqno; irq->pic_base = irqno < 8 ? PIC1_BASE : PIC2_BASE; if (dpmi_lock_linear_region_base(irq, sizeof(struct irq_handle))) { free(irq); dpmi_unlock_linear_region_base((void *)handler, irq->handler_size); _free_iret_wrapper(&info); return NULL; } _go32_dpmi_set_protected_mode_interrupt_vector(interrupt, &info); irq->pic_mask = irq_state(irq); return irq; } void irq_unhook(struct irq_handle *irq) { _go32_dpmi_seginfo info; if (!irq) return; /* Restore the interrupt vector */ irq_disable(irq); info.pm_offset = irq->prev_offset; info.pm_selector = irq->prev_selector; _go32_dpmi_set_protected_mode_interrupt_vector(irq->int_num, &info); /* Unlock the interrupt handler */ dpmi_unlock_linear_region_base((void *)irq->c_handler, irq->handler_size); /* Unlock the irq_handle structure */ dpmi_unlock_linear_region_base(irq, sizeof(struct irq_handle)); info.pm_offset = irq->handler; _free_iret_wrapper(&info); /* If IRQ was enabled before we hooked, restore enabled state */ if (irq->pic_mask) irq_enable(irq); else irq_disable(irq); free(irq); } #elif defined(__WATCOMC__) struct irq_handle *irq_hook(int irqno, irq_handler handler, irq_handler end) { unsigned long size = (char *)end - (char near *)handler; int intno = (irqno > 7) ? (irqno + 104) : (irqno + 8); struct irq_handle *irq; irq_handler old_vect; old_vect = _dos_getvect(intno); /* Lock the interrupt handler in memory */ if (dpmi_lock_linear_region_base((void near *)handler, size)) { return NULL; } irq = (struct irq_handle *) malloc(sizeof(struct irq_handle)); irq->c_handler = handler; irq->handler_size = size; irq->prev_vect = old_vect; irq->int_num = intno; irq->irq_num = irqno; irq->pic_base = irqno < 8 ? PIC1_BASE : PIC2_BASE; if (dpmi_lock_linear_region_base(irq, sizeof(struct irq_handle))) { free(irq); dpmi_unlock_linear_region_base((void near *)handler, size); return NULL; } _dos_setvect(irq->int_num, irq->c_handler); irq->pic_mask = irq_state(irq); return irq; } void irq_unhook(struct irq_handle *irq) { if (!irq) return; /* Restore the interrupt vector */ irq_disable(irq); _dos_setvect(irq->int_num, irq->prev_vect); /* Unlock the interrupt handler */ dpmi_unlock_linear_region_base((void near *)irq->c_handler, irq->handler_size); /* Unlock the irq_handle structure */ dpmi_unlock_linear_region_base(irq, sizeof(struct irq_handle)); /* If IRQ was enabled before we hooked, restore enabled state */ if (irq->pic_mask) irq_enable(irq); else irq_disable(irq); free(irq); } #endif /*---------------------------------------------- IRQ detection mechanism -----*/ static struct irq_handle *__irqs[16]; static int (*__irq_confirm) (int irqno); static volatile unsigned int __irq_mask; static volatile unsigned int __irq_count[16]; #define DECLARE_IRQ_HANDLER(irqno) \ static void INTERRUPT_ATTRIBUTES NO_REORDER __irq##irqno##_handler () \ { \ if (irq_check (__irqs [irqno]) && __irq_confirm (irqno)) { \ __irq_count [irqno]++; \ __irq_mask |= (1 << irqno); \ } \ irq_ack (__irqs [irqno]); \ } /* *INDENT-OFF* */ DECLARE_IRQ_HANDLER(0) DECLARE_IRQ_HANDLER(1) DECLARE_IRQ_HANDLER(2) DECLARE_IRQ_HANDLER(3) DECLARE_IRQ_HANDLER(4) DECLARE_IRQ_HANDLER(5) DECLARE_IRQ_HANDLER(6) DECLARE_IRQ_HANDLER(7) DECLARE_IRQ_HANDLER(8) DECLARE_IRQ_HANDLER(9) DECLARE_IRQ_HANDLER(10) DECLARE_IRQ_HANDLER(11) DECLARE_IRQ_HANDLER(12) DECLARE_IRQ_HANDLER(13) DECLARE_IRQ_HANDLER(14) DECLARE_IRQ_HANDLER(15) static void INTERRUPT_ATTRIBUTES NO_REORDER __irq_end(void) { } /* *INDENT-ON* */ static struct { irq_handler handler, end; } __irq_handlers[16] = { { __irq0_handler, __irq1_handler }, { __irq1_handler, __irq2_handler }, { __irq2_handler, __irq3_handler }, { __irq3_handler, __irq4_handler }, { __irq4_handler, __irq5_handler }, { __irq5_handler, __irq6_handler }, { __irq6_handler, __irq7_handler }, { __irq7_handler, __irq8_handler }, { __irq8_handler, __irq9_handler }, { __irq9_handler, __irq10_handler }, { __irq10_handler, __irq11_handler }, { __irq11_handler, __irq12_handler }, { __irq12_handler, __irq13_handler }, { __irq13_handler, __irq14_handler }, { __irq14_handler, __irq15_handler }, { __irq15_handler, __irq_end } }; void irq_detect_start(unsigned int irqs, int (*irq_confirm) (int irqno)) { int i; __irq_mask = 0; __irq_confirm = irq_confirm; memset(__irqs, 0, sizeof(__irqs)); memset((void *) __irq_count, 0, sizeof(__irq_count)); /* Hook all specified IRQs */ for (i = 1; i <= 15; i++) if (irqs & (1 << i)) { __irqs[i] = irq_hook(i, __irq_handlers[i].handler, __irq_handlers[i].end); /* Enable the interrupt */ irq_enable(__irqs[i]); } /* Enable IRQ2 if we need at least one IRQ above 7 */ if (irqs & 0xff00) _irq_enable(2); } void irq_detect_end() { int i; for (i = 15; i >= 1; i--) if (__irqs[i]) irq_unhook(__irqs[i]); } int irq_detect_get(int irqno, unsigned int *irqmask) { int oldirq = disable(); int count = __irq_count[irqno]; *irqmask = __irq_mask; __irq_mask = 0; if (oldirq) enable(); return count; } void irq_detect_clear() { int oldirq = disable(); memset((void *) __irq_count, 0, sizeof(__irq_count)); __irq_mask = 0; if (oldirq) enable(); } xmp-4.2.0/src/dos/dosutil.h0000644000000000000000000000226214442670136014240 0ustar rootroot/* DOS glue code for DJGPP / Watcom compatibility * Written by Cameron Cawley * * Extended Module Player * Copyright (C) 1996-2021 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #ifndef __DOSUTIL_H__ #define __DOSUTIL_H__ extern int dpmi_allocate_dos_memory(int paragraphs, int *ret_selector_or_max); extern int dpmi_free_dos_memory(int selector); extern int dpmi_resize_dos_memory(int selector, int newpara, int *ret_max); extern int dpmi_lock_linear_region(unsigned long address, unsigned long size); extern int dpmi_unlock_linear_region(unsigned long address, unsigned long size); extern int dpmi_lock_linear_region_base(void *address, unsigned long size); extern int dpmi_unlock_linear_region_base(void *address, unsigned long size); #ifdef __WATCOMC__ #include #define inportb(x) inp(x) #define outportb(x,y) outp(x,y) extern int enable(); extern int disable(); #pragma aux enable = "sti" "mov eax,1" #pragma aux disable = "cli" "mov eax,1" #else #include #endif #endif xmp-4.2.0/src/dos/dossb.h0000644000000000000000000003523514442670136013675 0ustar rootroot/* SoundBlaster and compatible soundcards definitions -- * from libMikMod. Written by Andrew Zabolotny * Further bug fixes by O.Sezer * * Extended Module Player * Copyright (C) 1996-2021 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #ifndef __DOSSB_H__ #define __DOSSB_H__ #include "dosdma.h" #include "dosirq.h" #define SB_FM_LEFT_STATUS (sb.port + 0x00) /* (r) Left FM status */ #define SB_FM_LEFT_REGSEL (sb.port + 0x00) /* (w) Left FM register select */ #define SB_FM_LEFT_DATA (sb.port + 0x01) /* (w) Left FM data */ #define SB_FM_RIGHT_STATUS (sb.port + 0x02) /* (r) Right FM status */ #define SB_FM_RIGHT_REGSEL (sb.port + 0x02) /* (w) Right FM register select */ #define SB_FM_RIGHT_DATA (sb.port + 0x03) /* (w) Right FM data */ #define SB_MIXER_REGSEL (sb.port + 0x04) /* (w) Mixer register select */ #define SB_MIXER_DATA (sb.port + 0x05) /* (rw)Mixer data */ #define SB_DSP_RESET (sb.port + 0x06) /* (w) DSP reset */ #define SB_FM_STATUS (sb.port + 0x08) /* (r) FM status */ #define SB_FM_REGSEL (sb.port + 0x08) /* (w) FM register select */ #define SB_FM_DATA (sb.port + 0x09) /* (w) FM data */ #define SB_DSP_DATA_IN (sb.port + 0x0a) /* (r) DSP data input */ #define SB_DSP_DATA_OUT (sb.port + 0x0c) /* (w) DSP data output */ #define SB_DSP_DATA_OUT_STATUS (sb.port + 0x0c) /* (r) DSP data output status */ #define SB_DSP_TIMER_IRQ (sb.port + 0x0d) /* (r) clear timer IRQ? */ #define SB_DSP_DATA_IN_STATUS (sb.port + 0x0e) /* (r) DSP data input status */ #define SB_DSP_DMA8_IRQ (sb.port + 0x0e) /* (r) Acknowledge 8-bit DMA transfer */ #define SB_DSP_DMA16_IRQ (sb.port + 0x0f) /* (r) Acknowledge 16-bit DMA transfer */ /* DSP commands */ #define SBDSP_ASP_STATUS 0x03 /* ASP Status (SB16ASP) */ #define SBDSP_STATUS_OLD 0x04 /* DSP Status (Obsolete) (SB2.0-Pro2) */ #define SBDSP_DIRECT_DAC 0x10 /* Direct DAC, 8-bit (SB) */ #define SBDSP_DMA_PCM8 0x14 /* DMA DAC, 8-bit (SB) */ #define SBDSP_DMA_ADPCM2 0x16 /* DMA DAC, 2-bit ADPCM (SB) */ #define SBDSP_DMA_ADPCM2R 0x17 /* DMA DAC, 2-bit ADPCM Reference (SB) */ #define SBDSP_DMA_PCM8_AUTO 0x1C /* Auto-Initialize DMA DAC, 8-bit (SB2.0) */ #define SBDSP_DMA_ADPCM2R_AUTO 0x1F /* Auto-Initialize DMA DAC, 2-bit ADPCM Reference (SB2.0) */ #define SBDSP_DIRECT_ADC 0x20 /* Direct ADC, 8-bit (SB) */ #define SBDSP_DMA_ADC8 0x24 /* DMA ADC, 8-bit (SB) */ #define SBDSP_DIRECT_ADC8_BURST 0x28 /* Direct ADC, 8-bit (Burst) (SB-Pro2) */ #define SBDSP_DMA_ADC8_AUTO 0x2C /* Auto-Initialize DMA ADC, 8-bit (SB2.0) */ #define SBDSP_MIDI_READ_POLL 0x30 /* MIDI Read Poll (SB) */ #define SBDSP_MIDI_READ_IRQ 0x31 /* MIDI Read Interrupt (SB) */ #define SBDSP_MIDI_READ_TIME 0x32 /* MIDI Read Timestamp Poll (SB???) */ #define SBDSP_MIDI_READ_TIME_IRQ 0x33 /* MIDI Read Timestamp Interrupt (SB???) */ #define SBDSP_MIDI_RW_POLL 0x34 /* MIDI Read Poll + Write Poll (UART) (SB2.0) */ #define SBDSP_MIDI_RW_IRQ 0x35 /* MIDI Read Interrupt + Write Poll (UART) (SB2.0???) */ #define SBDSP_MIDI_RW_TIME_IRQ 0x37 /* MIDI Read Timestamp Interrupt + Write Poll (UART) (SB2.0???) */ #define SBDSP_MIDI_WRITE_POLL 0x38 /* MIDI Write Poll (SB) */ #define SBDSP_SET_TIMING 0x40 /* Set Time Constant (SB) */ #define SBDSP_SET_RATE 0x41 /* Set Sample Rate, Hz (SB16) */ #define SBDSP_DMA_CONT8_AUTO 0x45 /* Continue Auto-Initialize DMA, 8-bit (SB16) */ #define SBDSP_DMA_CONT16_AUTO 0x47 /* Continue Auto-Initialize DMA, 16-bit (SB16) */ #define SBDSP_SET_DMA_BLOCK 0x48 /* Set DMA Block Size (SB2.0) */ #define SBDSP_DMA_ADPCM4 0x74 /* DMA DAC, 4-bit ADPCM (SB) */ #define SBDSP_DMA_ADPCM4_REF 0x75 /* DMA DAC, 4-bit ADPCM Reference (SB) */ #define SBDSP_DMA_ADPCM26 0x76 /* DMA DAC, 2.6-bit ADPCM (SB) */ #define SBDSP_DMA_ADPCM26_REF 0x77 /* DMA DAC, 2.6-bit ADPCM Reference (SB) */ #define SBDSP_DMA_ADPCM4R_AUTO 0x7D /* Auto-Initialize DMA DAC, 4-bit ADPCM Reference (SB2.0) */ #define SBDSP_DMA_ADPCM26R_AUTO 0x7F /* Auto-Initialize DMA DAC, 2.6-bit ADPCM Reference (SB2.0) */ #define SBDSP_DISABLE_DAC 0x80 /* Silence DAC (SB) */ #define SBDSP_HS_DMA_DAC8_AUTO 0x90 /* Auto-Initialize DMA DAC, 8-bit (High Speed) (SB2.0-Pro2) */ #define SBDSP_HS_DMA_ADC8_AUTO 0x98 /* Auto-Initialize DMA ADC, 8-bit (High Speed) (SB2.0-Pro2) */ #define SBDSP_STEREO_ADC_DIS 0xA0 /* Disable Stereo Input Mode (SBPro Only) */ #define SBDSP_STEREO_ADC_ENA 0xA8 /* Enable Stereo Input Mode (SBPro Only) */ #define SBDSP_DMA_GENERIC16 0xB0 /* Generic DAC/ADC DMA (16-bit) (SB16) */ #define SBDSP_DMA_GENERIC8 0xC0 /* Generic DAC/ADC DMA (8-bit) (SB16) */ #define SBDSP_DMA_HALT8 0xD0 /* Halt DMA Operation, 8-bit (SB) */ #define SBDSP_SPEAKER_ENA 0xD1 /* Enable Speaker (SB) */ #define SBDSP_SPEAKER_DIS 0xD3 /* Disable Speaker (SB) */ #define SBDSP_DMA_CONT8 0xD4 /* Continue DMA Operation, 8-bit (SB) */ #define SBDSP_DMA_HALT16 0xD5 /* Halt DMA Operation, 16-bit (SB16) */ #define SBDSP_DMA_CONT16 0xD6 /* Continue DMA Operation, 16-bit (SB16) */ #define SBDSP_SPEAKER_STATUS 0xD8 /* Speaker Status (SB) */ #define SBDSP_DMA_EXIT16_AUTO 0xD9 /* Exit Auto-Initialize DMA Operation, 16-bit (SB16) */ #define SBDSP_DMA_EXIT8_AUTO 0xDA /* Exit Auto-Initialize DMA Operation, 8-bit (SB2.0) */ #define SBDSP_IDENTIFY 0xE0 /* DSP Identification (SB2.0) */ #define SBDSP_VERSION 0xE1 /* DSP Version (SB) */ #define SBDSP_COPYRIGHT 0xE3 /* DSP Copyright (SBPro2???) */ #define SBDSP_WRITE_TEST 0xE4 /* Write Test Register (SB2.0) */ #define SBDSP_READ_TEST 0xE8 /* Read Test Register (SB2.0) */ #define SBDSP_SINE_GEN 0xF0 /* Sine Generator (SB) */ #define SBDSP_AUX_STATUS_PRO 0xF1 /* DSP Auxiliary Status (Obsolete) (SB-Pro2) */ #define SBDSP_GEN_IRQ8 0xF2 /* IRQ Request, 8-bit (SB) */ #define SBDSP_GEN_IRQ16 0xF3 /* IRQ Request, 16-bit (SB16) */ #define SBDSP_STATUS 0xFB /* DSP Status (SB16) */ #define SBDSP_AUX_STATUS_16 0xFC /* DSP Auxiliary Status (SB16) */ #define SBDSP_CMD_STATUS 0xFD /* DSP Command Status (SB16) */ /* Mixer commands */ #define SBMIX_RESET 0x00 /* Reset Write SBPro */ #define SBMIX_STATUS 0x01 /* Status Read SBPro */ #define SBMIX_MASTER_LEVEL1 0x02 /* Master Volume Read/Write SBPro Only */ #define SBMIX_DAC_LEVEL 0x04 /* DAC Level Read/Write SBPro */ #define SBMIX_FM_OUTPUT 0x06 /* FM Output Control Read/Write SBPro Only */ #define SBMIX_MIC_LEVEL 0x0A /* Microphone Level Read/Write SBPro */ #define SBMIX_INPUT_SELECT 0x0C /* Input/Filter Select Read/Write SBPro Only */ #define SBMIX_OUTPUT_SELECT 0x0E /* Output/Stereo Select Read/Write SBPro Only */ #define SBMIX_FM_LEVEL 0x22 /* Master Volume Read/Write SBPro */ #define SBMIX_MASTER_LEVEL 0x26 /* FM Level Read/Write SBPro */ #define SBMIX_CD_LEVEL 0x28 /* CD Audio Level Read/Write SBPro */ #define SBMIX_LINEIN_LEVEL 0x2E /* Line In Level Read/Write SBPro */ #define SBMIX_MASTER_LEVEL_L 0x30 /* Master Volume Left Read/Write SB16 */ #define SBMIX_MASTER_LEVEL_R 0x31 /* Master Volume Right Read/Write SB16 */ #define SBMIX_DAC_LEVEL_L 0x32 /* DAC Level Left Read/Write SB16 */ #define SBMIX_DAC_LEVEL_R 0x33 /* DAC Level Right Read/Write SB16 */ #define SBMIX_FM_LEVEL_L 0x34 /* FM Level Left Read/Write SB16 */ #define SBMIX_FM_LEVEL_R 0x35 /* FM Level Right Read/Write SB16 */ #define SBMIX_CD_LEVEL_L 0x36 /* CD Audio Level Left Read/Write SB16 */ #define SBMIX_CD_LEVEL_R 0x37 /* CD Audio Level Right Read/Write SB16 */ #define SBMIX_LINEIN_LEVEL_L 0x38 /* Line In Level Left Read/Write SB16 */ #define SBMIX_LINEIN_LEVEL_R 0x39 /* Line In Level Right Read/Write SB16 */ #define SBMIX_MIC_LEVEL_16 0x3A /* Microphone Level Read/Write SB16 */ #define SBMIX_PCSPK_LEVEL 0x3B /* PC Speaker Level Read/Write SB16 */ #define SBMIX_OUTPUT_CONTROL 0x3C /* Output Control Read/Write SB16 */ #define SBMIX_INPUT_CONTROL_L 0x3D /* Input Control Left Read/Write SB16 */ #define SBMIX_INPUT_CONTROL_R 0x3E /* Input Control Right Read/Write SB16 */ #define SBMIX_INPUT_GAIN_L 0x3F /* Input Gain Control Left Read/Write SB16 */ #define SBMIX_INPUT_GAIN_R 0x40 /* Input Gain Control Right Read/Write SB16 */ #define SBMIX_OUTPUT_GAIN_L 0x41 /* Output Gain Control Left Read/Write SB16 */ #define SBMIX_OUTPUT_GAIN_R 0x42 /* Output Gain Control Right Read/Write SB16 */ #define SBMIX_AGC_CONTROL 0x43 /* Automatic Gain Control (AGC) Read/Write SB16 */ #define SBMIX_TREBLE_L 0x44 /* Treble Left Read/Write SB16 */ #define SBMIX_TREBLE_R 0x45 /* Treble Right Read/Write SB16 */ #define SBMIX_BASS_L 0x46 /* Bass Left Read/Write SB16 */ #define SBMIX_BASS_R 0x47 /* Bass Right Read/Write SB16 */ #define SBMIX_IRQ_SELECT 0x80 /* IRQ Select Read/Write SB16 */ #define SBMIX_DMA_SELECT 0x81 /* DMA Select Read/Write SB16 */ #define SBMIX_IRQ_STATUS 0x82 /* IRQ Status Read SB16 */ /* SB_DSP_DATA_OUT_STATUS and SB_DSP_DATA_IN_STATUS bits */ #define SBM_DSP_READY 0x80 /* SB_DSP_RESET / SBMIX_RESET */ #define SBM_DSP_RESET 0x01 /* SBMIX_OUTPUT_SELECT */ #define SBM_MIX_STEREO 0x02 #define SBM_MIX_FILTER 0x20 /* SBDSP_DMA_GENERIC16/SBDSP_DMA_GENERIC8 */ #define SBM_GENDAC_FIFO 0x02 #define SBM_GENDAC_AUTOINIT 0x04 #define SBM_GENDAC_ADC 0x08 /* Second (mode) byte */ #define SBM_GENDAC_SIGNED 0x10 #define SBM_GENDAC_STEREO 0x20 /* DSP version masks */ #define SBVER_10 0x0100 /* Original SoundBlaster */ #define SBVER_15 0x0105 /* SoundBlaster 1.5 */ #define SBVER_20 0x0200 /* SoundBlaster 2.0 */ #define SBVER_PRO 0x0300 /* SoundBlaster Pro */ #define SBVER_PRO2 0x0301 /* SoundBlaster Pro 2 */ #define SBVER_16 0x0400 /* SoundBlaster 16 */ #define SBVER_AWE32 0x040c /* SoundBlaster AWE32 */ typedef unsigned char boolean; #ifndef FALSE #define FALSE 0 #define TRUE 1 #endif /* Play mode bits */ #define SBMODE_16BITS 0x0001 #define SBMODE_STEREO 0x0002 #define SBMODE_SIGNED 0x0004 /* Mask for capabilities that never change */ #define SBMODE_MASK (SBMODE_16BITS | SBMODE_STEREO) /* You can fill some members of this struct (i.e. port,irq,dma) before * calling sb_detect() or sb_open()... this will ignore environment settings. */ typedef struct __sb_state_s { boolean ok; /* Are structure contents valid? */ int port, aweport; /* sb/awe32 base port */ int irq; /* SoundBlaster IRQ */ int dma8, dma16; /* 8-bit and 16-bit DMAs */ int maxfreq_mono; /* Maximum discretization frequency / mono mode */ int maxfreq_stereo; /* Maximum discretization frequency / stereo mode */ unsigned short dspver; /* DSP version number */ struct irq_handle *irq_handle; /* The interrupt handler */ dma_buffer *dma_buff; /* Pre-allocated DMA buffer */ unsigned char caps; /* SoundBlaster capabilities (SBMODE_XXX) */ unsigned char mode; /* Current SB mode (SBMODE_XXX) */ boolean open; /* Whenever the card has been opened */ volatile int irqcount; /* Incremented on each IRQ... for diagnostics */ void (*timer_callback) (); /* Called TWICE per buffer play */ } __sb_state; extern __sb_state sb; #if !defined(__GNUC__) || (__GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ == 0) # define _func_noinline volatile /* match original code */ # define _func_noclone #else /* avoid warnings from newer gcc: * "function definition has qualified void return type" and * function return types not compatible due to 'volatile' */ # define _func_noinline __attribute__((__noinline__)) # if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) # define _func_noclone # else # define _func_noclone __attribute__((__noclone__)) # endif #endif _func_noinline _func_noclone extern void __sb_wait(); static inline boolean __sb_dsp_ready_in() { int count; for (count = 10000; count >= 0; count--) if (inportb(SB_DSP_DATA_IN_STATUS) & SBM_DSP_READY) return TRUE; return FALSE; } static inline boolean __sb_dsp_ready_out() { int count; for (count = 10000; count >= 0; count--) if ((inportb(SB_DSP_DATA_OUT_STATUS) & SBM_DSP_READY) == 0) return TRUE; return FALSE; } static inline void __sb_dsp_out(unsigned char reg) { __sb_dsp_ready_out(); outportb(SB_DSP_DATA_OUT, reg); } static inline unsigned char __sb_dsp_in() { __sb_dsp_ready_in(); return inportb(SB_DSP_DATA_IN); } static inline void __sb_dspreg_out(unsigned char reg, unsigned char val) { __sb_dsp_out(reg); __sb_dsp_out(val); } static inline void __sb_dspreg_outwlh(unsigned char reg, unsigned short val) { __sb_dsp_out(reg); __sb_dsp_out(val); __sb_dsp_out(val >> 8); } static inline void __sb_dspreg_outwhl(unsigned char reg, unsigned short val) { __sb_dsp_out(reg); __sb_dsp_out(val >> 8); __sb_dsp_out(val); } static inline unsigned char __sb_dspreg_in(unsigned char reg) { __sb_dsp_out(reg); return __sb_dsp_in(); } static inline void __sb_dsp_ack_dma8() { inportb(SB_DSP_DMA8_IRQ); } static inline void __sb_dsp_ack_dma16() { inportb(SB_DSP_DMA16_IRQ); } static inline unsigned short __sb_dsp_version() { unsigned short ver; __sb_dsp_out(SBDSP_VERSION); __sb_dsp_ready_in(); ver = ((unsigned short)__sb_dsp_in()) << 8; ver |= __sb_dsp_in(); return ver; } static inline void __sb_mixer_out(unsigned char reg, unsigned char val) { outportb(SB_MIXER_REGSEL, reg); outportb(SB_MIXER_DATA, val); } static inline unsigned char __sb_mixer_in(unsigned char reg) { outportb(SB_MIXER_REGSEL, reg); return inportb(SB_MIXER_DATA); } /* Enable stereo transfers: sbpro mode only */ static inline void __sb_stereo(boolean stereo) { unsigned char val = __sb_mixer_in(SBMIX_OUTPUT_SELECT); if (stereo) val |= SBM_MIX_STEREO; else val &= ~SBM_MIX_STEREO; __sb_mixer_out(SBMIX_OUTPUT_SELECT, val); } /* Detect whenever SoundBlaster is present and fill "sb" structure */ extern boolean sb_detect(); /* Reset SoundBlaster */ extern void sb_reset(); /* Start working with SoundBlaster */ extern boolean sb_open(); /* Finish working with SoundBlaster */ extern boolean sb_close(); /* Enable/disable speaker output */ extern void sb_output(boolean enable); /* Start playing from DMA buffer in either 8/16 bit mono/stereo */ extern boolean sb_start_dma(unsigned char mode, unsigned int freq); /* Stop playing from DMA buffer */ extern void sb_stop_dma(); /* Query current position/total size of the DMA buffer */ extern void sb_query_dma(unsigned int *dma_size, unsigned int *dma_pos); #endif /* __DOSSB_H__ */ xmp-4.2.0/src/dos/dosdma.h0000644000000000000000000001324714442670136014031 0ustar rootroot/* Interface for DOS DMA routines, from libMikMod. * Copyright (C) 1999 by Andrew Zabolotny * * Extended Module Player * Copyright (C) 1996-2021 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #ifndef __DOSDMA_H__ #define __DOSDMA_H__ #include "dosutil.h" #define DMA1_BASE 0x00 /* 8 bit slave DMA, channels 0..3 */ #define DMA2_BASE 0xC0 /* 16 bit master DMA, ch 4(=slave input)..7 */ #define DMA1_CMD_REG 0x08 /* command register (w) */ #define DMA1_STAT_REG 0x08 /* status register (r) */ #define DMA1_REQ_REG 0x09 /* request register (w) */ #define DMA1_MASK_REG 0x0A /* single-channel mask (w) */ #define DMA1_MODE_REG 0x0B /* mode register (w) */ #define DMA1_CLEAR_FF_REG 0x0C /* clear pointer flip-flop (w) */ #define DMA1_TEMP_REG 0x0D /* Temporary Register (r) */ #define DMA1_RESET_REG 0x0D /* Master Clear (w) */ #define DMA1_CLR_MASK_REG 0x0E /* Clear Mask */ #define DMA1_MASK_ALL_REG 0x0F /* all-channels mask (w) */ #define DMA2_CMD_REG 0xD0 /* command register (w) */ #define DMA2_STAT_REG 0xD0 /* status register (r) */ #define DMA2_REQ_REG 0xD2 /* request register (w) */ #define DMA2_MASK_REG 0xD4 /* single-channel mask (w) */ #define DMA2_MODE_REG 0xD6 /* mode register (w) */ #define DMA2_CLEAR_FF_REG 0xD8 /* clear pointer flip-flop (w) */ #define DMA2_TEMP_REG 0xDA /* Temporary Register (r) */ #define DMA2_RESET_REG 0xDA /* Master Clear (w) */ #define DMA2_CLR_MASK_REG 0xDC /* Clear Mask */ #define DMA2_MASK_ALL_REG 0xDE /* all-channels mask (w) */ #define DMA_ADDR_0 0x00 /* DMA address registers */ #define DMA_ADDR_1 0x02 #define DMA_ADDR_2 0x04 #define DMA_ADDR_3 0x06 #define DMA_ADDR_4 0xC0 #define DMA_ADDR_5 0xC4 #define DMA_ADDR_6 0xC8 #define DMA_ADDR_7 0xCC #define DMA_SIZE_0 0x01 /* DMA transfer size registers */ #define DMA_SIZE_1 0x03 #define DMA_SIZE_2 0x05 #define DMA_SIZE_3 0x07 #define DMA_SIZE_4 0xC2 #define DMA_SIZE_5 0xC6 #define DMA_SIZE_6 0xCA #define DMA_SIZE_7 0xCE #define DMA_PAGE_0 0x87 /* DMA page registers */ #define DMA_PAGE_1 0x83 #define DMA_PAGE_2 0x81 #define DMA_PAGE_3 0x82 #define DMA_PAGE_5 0x8B #define DMA_PAGE_6 0x89 #define DMA_PAGE_7 0x8A #define DMA_MODE_AUTOINIT 0x10 /* Auto-init mode bit */ #define DMA_MODE_READ 0x44 /* I/O to memory, no autoinit, increment, single mode */ #define DMA_MODE_WRITE 0x48 /* memory to I/O, no autoinit, increment, single mode */ #define DMA_MODE_CASCADE 0xC0 /* pass thru DREQ->HRQ, DACK<-HLDA only */ /* Indexable specific DMA registers */ typedef struct __dma_regs_s { unsigned char addr; /* DMA transfer address register */ unsigned char page; /* DMA page register */ unsigned char size; /* DMA transfer size register */ unsigned char mask; /* DMA mask/unmask register */ unsigned char flip; /* DMA flip-flop reset register */ unsigned char mode; /* DMA mode register */ } __dma_regs; extern __dma_regs dma[8]; /* Enable a specific DMA channel */ static inline void dma_enable(unsigned int channel) { outportb(dma[channel].mask, channel & 3); } /* Disable a specific DMA channel */ static inline void dma_disable(unsigned int channel) { outportb(dma[channel].mask, (channel & 3) | 0x04); } /* Clear the 'DMA Flip Flop' flag */ static inline void dma_clear_ff(unsigned int channel) { outportb(dma[channel].flip, 0); } /* Set mode for a specific DMA channel */ static inline void dma_set_mode(unsigned int channel, char mode) { outportb(dma[channel].mode, mode | (channel & 3)); } /* Set DMA page register */ static inline void dma_set_page(unsigned int channel, char page) { if (channel > 3) page &= 0xfe; outportb(dma[channel].page, page); } /* Set transfer address & page bits for specific DMA channel. Assumes dma flipflop is clear. */ static inline void dma_set_addr(unsigned int channel, unsigned int address) { unsigned char dma_reg = dma[channel].addr; dma_set_page(channel, address >> 16); if (channel <= 3) { outportb(dma_reg, (address) & 0xff); outportb(dma_reg, (address >> 8) & 0xff); } else { outportb(dma_reg, (address >> 1) & 0xff); outportb(dma_reg, (address >> 9) & 0xff); } } /* Set transfer size for a specific DMA channel. Assumes dma flip-flop is clear. */ static inline void dma_set_count(unsigned int channel, unsigned int count) { unsigned char dma_reg = dma[channel].size; count--; /* number of DMA transfers is bigger by one */ if (channel > 3) count >>= 1; outportb(dma_reg, (count) & 0xff); outportb(dma_reg, (count >> 8) & 0xff); } /* Query the number of bytes left to transfer. Assumes DMA flip-flop is clear. */ static inline int dma_get_count(unsigned int channel) { unsigned char dma_reg = dma[channel].size; /* using short to get 16-bit wrap around */ unsigned short count; count = inportb(dma_reg); count |= inportb(dma_reg) << 8; count++; return (channel <= 3) ? count : (count << 1); } typedef struct dma_buffer_s { unsigned char *linear; /* Linear address */ unsigned long physical; /* Physical address */ unsigned long size; /* Buffer size */ unsigned short selector; /* The selector assigned to this memory */ unsigned char channel; /* The DMA channel */ } dma_buffer; /* Allocate a block of memory suitable for using as a DMA buffer */ extern dma_buffer *dma_allocate(unsigned int channel, unsigned int size); /* Deallocate a DMA buffer */ extern void dma_free(dma_buffer * buffer); /* Start DMA transfer to or from given buffer */ extern void dma_start(dma_buffer * buffer, unsigned long count, unsigned char mode); #endif /* __DOSDMA_H__ */ xmp-4.2.0/src/sound_wav.c0000644000000000000000000000517614442670136013777 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include "sound.h" static FILE *fd; static int format_16bit; static int swap_endian; static long size; static void write_16l(FILE *f, unsigned short v) { unsigned char x; x = v & 0xff; fwrite(&x, 1, 1, f); x = v >> 8; fwrite(&x, 1, 1, f); } static void write_32l(FILE *f, unsigned int v) { unsigned char x; x = v & 0xff; fwrite(&x, 1, 1, f); x = (v >> 8) & 0xff; fwrite(&x, 1, 1, f); x = (v >> 16) & 0xff; fwrite(&x, 1, 1, f); x = (v >> 24) & 0xff; fwrite(&x, 1, 1, f); } static int init(struct options *options) { unsigned short chan; unsigned int sampling_rate, bytes_per_second; unsigned short bytes_per_frame, bits_per_sample; swap_endian = is_big_endian(); if (options->out_file == NULL) { options->out_file = "out.wav"; } if (strcmp(options->out_file, "-")) { fd = fopen(options->out_file, "wb"); if (fd == NULL) return -1; } else { fd = stdout; } fwrite("RIFF", 1, 4, fd); write_32l(fd, 0); /* will be written when finished */ fwrite("WAVE", 1, 4, fd); chan = options->format & XMP_FORMAT_MONO ? 1 : 2; sampling_rate = options->rate; bits_per_sample = options->format & XMP_FORMAT_8BIT ? 8 : 16; if (bits_per_sample == 8) { options->format |= XMP_FORMAT_UNSIGNED; format_16bit = 0; } else { options->format &= ~XMP_FORMAT_UNSIGNED; format_16bit = 1; } bytes_per_frame = chan * bits_per_sample / 8; bytes_per_second = sampling_rate * bytes_per_frame; fwrite("fmt ", 1, 4, fd); write_32l(fd, 16); write_16l(fd, 1); write_16l(fd, chan); write_32l(fd, sampling_rate); write_32l(fd, bytes_per_second); write_16l(fd, bytes_per_frame); write_16l(fd, bits_per_sample); fwrite("data", 1, 4, fd); write_32l(fd, 0); /* will be written when finished */ size = 0; return 0; } static void play(void *b, int len) { if (swap_endian && format_16bit) { convert_endian((unsigned char *)b, len); } fwrite(b, 1, len, fd); size += len; } static void deinit(void) { if (fseek(fd, 40, SEEK_SET) == 0) { write_32l(fd, size); } if (fseek(fd, 4, SEEK_SET) == 0) { write_32l(fd, size + 40); } if (fd && fd != stdout) { fclose(fd); } fd = NULL; } static void flush(void) { if (fd) { fflush(fd); } } static void onpause(void) { } static void onresume(void) { } struct sound_driver sound_wav = { "wav", "WAV writer", NULL, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/sound_pulseaudio.c0000644000000000000000000000336514442670136015352 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include #include "sound.h" static pa_simple *s; static int init(struct options *options) { pa_sample_spec ss; int error; options->format &= ~(XMP_FORMAT_UNSIGNED | XMP_FORMAT_8BIT); ss.format = PA_SAMPLE_S16NE; ss.channels = options->format & XMP_FORMAT_MONO ? 1 : 2; ss.rate = options->rate; s = pa_simple_new(NULL, /* Use the default server */ "xmp", /* Our application's name */ PA_STREAM_PLAYBACK, NULL, /* Use the default device */ "Music", /* Description of our stream */ &ss, /* Our sample format */ NULL, /* Use default channel map */ NULL, /* Use default buffering attributes */ &error); /* Ignore error code */ if (s == NULL) { fprintf(stderr, "pulseaudio error: %s\n", pa_strerror(error)); return -1; } return 0; } static void play(void *b, int i) { int j, error; do { if ((j = pa_simple_write(s, b, i, &error)) > 0) { i -= j; b = (char *)b + j; } else break; } while (i); if (j < 0) { fprintf(stderr, "pulseaudio error: %s\n", pa_strerror(error)); } } static void deinit(void) { pa_simple_free(s); } static void flush(void) { int error; if (pa_simple_drain(s, &error) < 0) { fprintf(stderr, "pulseaudio error: %s\n", pa_strerror(error)); } } static void onpause(void) { } static void onresume(void) { } struct sound_driver sound_pulseaudio = { "pulseaudio", "PulseAudio sound output", NULL, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/sound.h0000644000000000000000000000405514442670136013122 0ustar rootroot#ifndef XMP_SOUND_H #define XMP_SOUND_H #include #include "common.h" #include "list.h" struct sound_driver { const char *id; const char *description; const char *const *help; int (*init)(struct options *); void (*deinit)(void); void (*play)(void *, int); void (*flush)(void); void (*pause)(void); void (*resume)(void); struct list_head list; }; extern struct sound_driver sound_null; extern struct sound_driver sound_wav; extern struct sound_driver sound_aiff; extern struct sound_driver sound_file; extern struct sound_driver sound_qnx; extern struct sound_driver sound_alsa05; extern struct sound_driver sound_oss; extern struct sound_driver sound_alsa; extern struct sound_driver sound_os2dart; extern struct sound_driver sound_win32; extern struct sound_driver sound_pulseaudio; extern struct sound_driver sound_coreaudio; extern struct sound_driver sound_hpux; extern struct sound_driver sound_sndio; extern struct sound_driver sound_sgi; extern struct sound_driver sound_solaris; extern struct sound_driver sound_netbsd; extern struct sound_driver sound_bsd; extern struct sound_driver sound_beos; extern struct sound_driver sound_aix; extern struct sound_driver sound_ahi; extern struct sound_driver sound_sb; #define parm_init(p) { char *token; for (; *(p); (p)++) { \ char s[80]; strncpy(s, *(p), 79); s[79] = 0; \ token = strtok(s, ":="); token = strtok(NULL, ""); #define parm_end() } } #define parm_error() do { \ fprintf(stderr, "xmp: incorrect parameters in -D %s\n", s); \ exit(4); } while (0) #define chkparm0(x,y) { \ if (!strcmp(s, x)) { \ if (token != NULL) parm_error(); else { y; } } } #define chkparm1(x,y) { \ if (!strcmp(s, x)) { \ if (token == NULL) parm_error(); else { y; } } } #define chkparm2(x,y,z,w) { if (!strcmp(s, x)) { \ if (2 > sscanf(token, y, z, w)) parm_error(); } } static inline int is_big_endian(void) { unsigned short w = 0x00ff; return (*(char *)&w == 0x00); } void init_sound_drivers(void); struct sound_driver *select_sound_driver(struct options *); void convert_endian(unsigned char *, int); #endif xmp-4.2.0/src/Makefile.am0000644000000000000000000000347714442670136013664 0ustar rootroot# -*- Makefile -*- AM_CPPFLAGS = -DSYSCONFDIR=\"${sysconfdir}/${PACKAGE_NAME}\" ${LIBXMP_CFLAGS} \ ${alsa_CFLAGS} ${pulseaudio_CFLAGS} AM_CFLAGS = -Wall bin_PROGRAMS = xmp xmp_SOURCES = \ commands.c common.h delay.c getopt_long.h list.h getopt_long.c info.c \ main.c options.c read_config.c sound.c sound.h sound_file.c sound_null.c \ sound_wav.c sound_aiff.c terminal.c util.c xmp_version.h xmp_LDADD = ${LIBXMP_LIBS} xmp_LDFLAGS = ${XMP_DARWIN_LDFLAGS} if SOUND_OSS xmp_SOURCES += sound_oss.c endif if SOUND_ALSA xmp_SOURCES += sound_alsa.c xmp_LDADD += ${alsa_LIBS} endif if SOUND_PULSEAUDIO xmp_SOURCES += sound_pulseaudio.c xmp_LDADD += ${pulseaudio_LIBS} endif if SOUND_AHI xmp_SOURCES += sound_ahi.c endif if SOUND_COREAUDIO xmp_SOURCES += sound_coreaudio.c endif if SOUND_SNDIO xmp_SOURCES += sound_sndio.c xmp_LDADD += -lsndio endif if SOUND_BSD xmp_SOURCES += sound_bsd.c endif if SOUND_NETBSD xmp_SOURCES += sound_netbsd.c endif if SOUND_SOLARIS xmp_SOURCES += sound_solaris.c endif if SOUND_HPUX xmp_SOURCES += sound_hpux.c endif if SOUND_AIX xmp_SOURCES += sound_aix.c endif if SOUND_SGI xmp_SOURCES += sound_sgi.c xmp_LDADD += -laudio endif if SOUND_SB xmp_SOURCES += dos/dosdma.c dos/dosirq.c dos/dossb.c dos/dosutil.c sound_sb.c endif if SOUND_QNX xmp_SOURCES += sound_qnx.c endif if SOUND_ALSA05 xmp_SOURCES += sound_alsa05.c xmp_LDADD += -lasound endif if SOUND_WIN32 xmp_SOURCES += sound_win32.c xmp_LDADD += -lwinmm endif if SOUND_BEOS xmp_SOURCES += sound_beos.cpp xmp_LDADD += -lmedia -lbe endif if SOUND_OS2DART xmp_SOURCES += sound_dart.c xmp_LDADD += -lmmpm2 endif man_MANS = xmp.1 pkgsysconfdir = ${sysconfdir}/${PACKAGE_NAME} pkgsysconf_DATA = modules.conf xmp.conf EXTRA_DIST = ${man_MANS} ${pkgsysconf_DATA} \ dos/dosdma.h dos/dosirq.h dos/dossb.h dos/dosutil.h xmp-4.2.0/src/sound_sndio.c0000644000000000000000000000470214442670136014310 0ustar rootroot/* * Copyright (c) 2009 Thomas Pfaff * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include #include #include #include #include "sound.h" static struct sio_hdl *hdl; static int init(struct options *options) { struct sio_par par, askpar; hdl = sio_open(NULL, SIO_PLAY, 0); if (hdl == NULL) { fprintf(stderr, "%s: failed to open audio device\n", __func__); return -1; } sio_initpar(&par); par.pchan = options->format & XMP_FORMAT_MONO ? 1 : 2; par.rate = options->rate; par.le = SIO_LE_NATIVE; par.appbufsz = par.rate / 4; if (options->format & XMP_FORMAT_8BIT) { par.bits = 8; par.sig = 0; options->format |= XMP_FORMAT_UNSIGNED; } else { par.bits = 16; par.sig = 1; options->format &= ~XMP_FORMAT_UNSIGNED; } askpar = par; if (!sio_setpar(hdl, &par) || !sio_getpar(hdl, &par)) { fprintf(stderr, "%s: failed to set parameters\n", __func__); goto error; } if ((par.bits == 16 && par.le != askpar.le) || par.bits != askpar.bits || par.sig != askpar.sig || par.pchan != askpar.pchan || (par.rate * 1000 < askpar.rate * 995) || (par.rate * 1000 > askpar.rate * 1005)) { fprintf(stderr, "%s: parameters not supported\n", __func__); goto error; } if (!sio_start(hdl)) { fprintf(stderr, "%s: failed to start audio device\n", __func__); goto error; } return 0; error: sio_close(hdl); return -1; } static void deinit(void) { sio_close(hdl); hdl = NULL; } static void play(void *buf, int len) { if (buf != NULL) { sio_write(hdl, buf, len); } } static void flush(void) { } static void onpause(void) { } static void onresume(void) { } struct sound_driver sound_sndio = { "sndio", "OpenBSD sndio", NULL, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/sound_aix.c0000644000000000000000000000552714442670136013763 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ /* * Based on the AIX XMMS output plugin by Peter Alm, Thomas Nilsson * and Olle Hallnas. */ #include #include #include #include #include #include #include #include #include #include "sound.h" static int audio_fd; static audio_control control; static audio_change change; #define AUDIO_MIN_GAIN 0 #define AUDIO_MAX_GAIN 100 static int init(struct options *options) { char **parm = options->driver_parm; audio_init ainit; int gain = 128; int bsize = 32 * 1024; parm_init(parm); chkparm1("gain", gain = strtoul(token, NULL, 0)); /* chkparm1 ("buffer", bsize = strtoul(token, NULL, 0)); */ parm_end(); if (gain < AUDIO_MIN_GAIN) gain = AUDIO_MIN_GAIN; if (gain > AUDIO_MAX_GAIN) gain = AUDIO_MAX_GAIN; if ((audio_fd = open("/dev/paud0/1", O_WRONLY)) == -1) return -1; init.mode = PCM; /* audio format */ init.srate = options->rate; /* sample rate */ init.operation = PLAY; /* PLAY or RECORD */ init.channels = options->format & XMP_FORMAT_MONO ? 1 : 2; init.bits_per_sample = options->format & XMP_FORMAT_8BIT ? 8 : 16; init.flags = BIG_ENDIAN | TWOS_COMPLEMENT; if (ioctl(audio_fd, AUDIO_INIT, &init) < 0) { close(audio_fd); return -1; } /* full blast; range: 0-0x7fffffff */ change.volume = 0x7fffffff * (1.0 * gain / 200.0); change.monitor = AUDIO_IGNORE; /* monitor what's recorded ? */ change.input = AUDIO_IGNORE; /* input to record from */ change.output = OUTPUT_1; /* line-out */ change.balance = 0x3FFFFFFF; control.ioctl_request = AUDIO_CHANGE; control.request_info = (char *)&change; if (ioctl(audio_fd, AUDIO_CONTROL, &control) < 0) { close(audio_fd); return -1; } /* start playback - won't actually start until write() calls occur */ control.ioctl_request = AUDIO_START; control.position = 0; if (ioctl(audio_fd, AUDIO_CONTROL, &control) < 0) { close(audio_fd); return -1; } return 0; } static void play(void *b, int i) { int j; while (i) { if ((j = write(audio_fd, b, i)) > 0) { i -= j; b = (char *)b + j; } else break; } } static void deinit(void) { control.ioctl_request = AUDIO_STOP; ioctl(audio_fd, AUDIO_CONTROL, &control); close(audio_fd); } static void flush(void) { } static void onpause(void) { } static void onresume(void) { } static const char *const help[] = { "gain=val", "Audio output gain (0 to 255)", /* "buffer=val", "Audio buffer size (default is 32768)", */ NULL }; struct sound_driver sound_bsd = { "aix", "AIX PCM audio", help, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/sound_netbsd.c0000644000000000000000000000545514442670136014461 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ /* Based on bsd.c and solaris.c */ #include #include #include #include #include #include #include #include #include #include #include "sound.h" static int audio_fd; static int audioctl_fd; static int init(struct options *options) { char **parm = options->driver_parm; audio_info_t ainfo; int gain = 128; int bsize = 32 * 1024; parm_init(parm); chkparm1("gain", gain = strtoul(token, NULL, 0)); chkparm1("buffer", bsize = strtoul(token, NULL, 0)); parm_end(); if ((audio_fd = open("/dev/audio", O_WRONLY)) == -1) return -1; /* try to open audioctldevice */ if ((audioctl_fd = open("/dev/audioctl", O_RDWR)) < 0) { fprintf(stderr, "couldn't open audioctldevice\n"); close(audio_fd); return -1; } /* empty buffers before change config */ ioctl(audio_fd, AUDIO_DRAIN, 0); /* drain everything out */ ioctl(audio_fd, AUDIO_FLUSH); /* flush audio */ ioctl(audioctl_fd, AUDIO_FLUSH); /* flush audioctl */ /* get audio parameters. */ if (ioctl(audioctl_fd, AUDIO_GETINFO, &ainfo) < 0) { fprintf(stderr, "AUDIO_GETINFO failed!\n"); close(audio_fd); close(audioctl_fd); return -1; } close(audioctl_fd); if (gain < AUDIO_MIN_GAIN) gain = AUDIO_MIN_GAIN; if (gain > AUDIO_MAX_GAIN) gain = AUDIO_MAX_GAIN; AUDIO_INITINFO(&ainfo); ainfo.mode = AUMODE_PLAY_ALL; ainfo.play.sample_rate = options->rate; ainfo.play.channels = options->format & XMP_FORMAT_MONO ? 1 : 2; if (options->format & XMP_FORMAT_8BIT) { ainfo.play.precision = 8; ainfo.play.encoding = AUDIO_ENCODING_ULINEAR; options->format |= XMP_FORMAT_UNSIGNED; } else { ainfo.play.precision = 16; ainfo.play.encoding = AUDIO_ENCODING_SLINEAR; options->format &= ~XMP_FORMAT_UNSIGNED; } ainfo.play.gain = gain; ainfo.play.buffer_size = bsize; ainfo.blocksize = 0; if (ioctl(audio_fd, AUDIO_SETINFO, &ainfo) == -1) { close(audio_fd); return -1; } return 0; } static void play(void *b, int i) { int j; while (i) { if ((j = write(audio_fd, b, i)) > 0) { i -= j; b = (char *)b + j; } else break; } } static void deinit(void) { close(audio_fd); } static void flush(void) { } static void onpause(void) { } static void onresume(void) { } static const char *const help[] = { "gain=val", "Audio output gain (0 to 255)", "buffer=val", "Audio buffer size (default is 32768)", NULL }; struct sound_driver sound_netbsd = { "netbsd", "NetBSD PCM audio", help, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/list.h0000644000000000000000000000650214442670136012744 0ustar rootroot/* This is list.h from the Linux kernel */ #ifndef XMP_LIST_H #define XMP_LIST_H #include /* offsetof */ /* * Simple doubly linked list implementation. * * Some of the internal functions ("__xxx") are useful when * manipulating whole lists rather than single entries, as * sometimes we already know the next/prev entries and we can * generate better code by using them directly rather than * using the generic single-entry routines. */ struct list_head { struct list_head *next, *prev; }; #define LIST_HEAD_INIT(name) { &(name), &(name) } #define LIST_HEAD(name) \ struct list_head name = LIST_HEAD_INIT(name) #define INIT_LIST_HEAD(ptr) do { \ (ptr)->next = (ptr); (ptr)->prev = (ptr); \ } while (0) /* * Insert a new entry between two known consecutive entries. * * This is only for internal list manipulation where we know * the prev/next entries already! */ static inline void __list_add(struct list_head *_new, struct list_head * prev, struct list_head * next) { next->prev = _new; _new->next = next; _new->prev = prev; prev->next = _new; } /** * list_add - add a new entry * @_new: new entry to be added * @head: list head to add it after * * Insert a new entry after the specified head. * This is good for implementing stacks. */ static inline void list_add(struct list_head *_new, struct list_head *head) { __list_add(_new, head, head->next); } /** * list_add_tail - add a new entry * @_new: new entry to be added * @head: list head to add it before * * Insert a new entry before the specified head. * This is useful for implementing queues. */ static inline void list_add_tail(struct list_head *_new, struct list_head *head) { __list_add(_new, head->prev, head); } /* * Delete a list entry by making the prev/next entries * point to each other. * * This is only for internal list manipulation where we know * the prev/next entries already! */ static inline void __list_del(struct list_head * prev, struct list_head * next) { next->prev = prev; prev->next = next; } /** * list_del - deletes entry from list. * @entry: the element to delete from the list. */ static inline void list_del(struct list_head *entry) { __list_del(entry->prev, entry->next); } /** * list_empty - tests whether a list is empty * @head: the list to test. */ static inline int list_empty(struct list_head *head) { return head->next == head; } /** * list_splice - join two lists * @list: the new list to add. * @head: the place to add it in the first list. */ static inline void list_splice(struct list_head *list, struct list_head *head) { struct list_head *first = list->next; if (first != list) { struct list_head *last = list->prev; struct list_head *at = head->next; first->prev = head; head->next = first; last->next = at; at->prev = last; } } /** * list_entry - get the struct for this entry * @ptr: the &struct list_head pointer. * @type: the type of the struct this is embedded in. * @member: the name of the list_struct within the struct. */ #define list_entry(ptr, type, member) \ ((type *)((char *)(ptr) - offsetof(type, member))) /** * list_for_each - iterate over a list * @pos: the &struct list_head to use as a loop counter. * @head: the head for your list. */ #define list_for_each(pos, head) \ for (pos = (head)->next; pos != (head); pos = pos->next) #endif /* XMP_LIST_H */ xmp-4.2.0/src/sound_beos.cpp0000644000000000000000000001036114442670136014462 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #define B_AUDIO_CHAR 1 #define B_AUDIO_SHORT 2 extern "C" { #include #include #include "sound.h" } static media_raw_audio_format fmt; static BSoundPlayer *player; static int paused; static uint8 *buffer; static int buffer_len; static int buf_write_pos; static int buf_read_pos; static int chunk_size; static int chunk_num; /* static int packet_size; */ static const char *const help[] = { "buffer=num,size", "set the number and size of buffer fragments", NULL }; static int init(struct options *options); static void deinit(void); static void play(void *b, int i); static void flush(void); static void onpause(void); static void onresume(void); struct sound_driver sound_beos = { "beos", "BeOS PCM audio", help, init, deinit, play, flush, onpause, onresume }; /* return minimum number of free bytes in buffer, value may change between * two immediately following calls, and the real number of free bytes * might actually be larger! */ static int buf_free(void) { int free = buf_read_pos - buf_write_pos - chunk_size; if (free < 0) free += buffer_len; return free; } /* return minimum number of buffered bytes, value may change between * two immediately following calls, and the real number of buffered bytes * might actually be larger! */ static int buf_used(void) { int used = buf_write_pos - buf_read_pos; if (used < 0) used += buffer_len; return used; } /* add data to ringbuffer */ static int write_buffer(unsigned char *data, int len) { int first_len = buffer_len - buf_write_pos; int free = buf_free(); if (len > free) len = free; if (first_len > len) first_len = len; /* till end of buffer */ memcpy(buffer + buf_write_pos, data, first_len); if (len > first_len) { /* we have to wrap around */ /* remaining part from beginning of buffer */ memcpy(buffer, data + first_len, len - first_len); } buf_write_pos = (buf_write_pos + len) % buffer_len; return len; } /* remove data from ringbuffer */ static int read_buffer(unsigned char *data, int len) { int first_len = buffer_len - buf_read_pos; int buffered = buf_used(); if (len > buffered) len = buffered; if (first_len > len) first_len = len; /* till end of buffer */ memcpy(data, buffer + buf_read_pos, first_len); if (len > first_len) { /* we have to wrap around */ /* remaining part from beginning of buffer */ memcpy(data + first_len, buffer, len - first_len); } buf_read_pos = (buf_read_pos + len) % buffer_len; return len; } static void render_proc(void *theCookie, void *buffer, size_t req, const media_raw_audio_format &format) { size_t amt; while ((amt = buf_used()) < req) snooze(100000); read_buffer((unsigned char *)buffer, req); } static int init(struct options *options) { char **parm = options->driver_parm; be_app = new BApplication("application/x-vnd.cm-xmp"); chunk_size = 4096; chunk_num = 20; parm_init(parm); chkparm2("buffer", "%d,%d", &chunk_num, &chunk_size); parm_end(); fmt.frame_rate = options->rate; fmt.channel_count = options->format & XMP_FORMAT_MONO ? 1 : 2; fmt.format = options->format & XMP_FORMAT_8BIT ? B_AUDIO_CHAR : B_AUDIO_SHORT; fmt.byte_order = B_HOST_IS_LENDIAN ? B_MEDIA_LITTLE_ENDIAN : B_MEDIA_BIG_ENDIAN; fmt.buffer_size = chunk_size; buffer_len = chunk_size * chunk_num; buffer = (uint8 *)calloc(1, buffer_len); buf_read_pos = 0; buf_write_pos = 0; paused = 1; player = new BSoundPlayer(&fmt, "xmp output", render_proc); return 0; } static void play(void *b, int i) { int j = 0; /* block until we have enough free space in the buffer */ while (buf_free() < i) snooze(100000); while (i) { if ((j = write_buffer((uint8 *)b, i)) > 0) { i -= j; b = (uint8 *)b + j; } else { break; } } if (paused) { player->Start(); player->SetHasData(true); paused = 0; } } static void deinit(void) { player->Stop(); be_app->Lock(); be_app->Quit(); } static void flush(void) { } static void onpause(void) { } static void onresume(void) { } xmp-4.2.0/src/sound_sgi.c0000644000000000000000000000651214442670136013757 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include #include #include #include #include "sound.h" static ALport audio_port; /* Hack to get 16 bit sound working - 19990706 bdowning */ static int al_sample_16; /* * audio port sample rates (these are the only ones supported by the library) */ static const int srate[] = { 48000, 44100, 32000, 22050, 16000, 11025, 8000, 0 }; static int init(struct options *options) { char **parm = options->driver_parm; int bsize = 32 * 1024; ALconfig config; long pvbuffer[2]; int i; parm_init(parm); chkparm1("buffer", bsize = strtoul(token, NULL, 0)); parm_end(); if ((config = ALnewconfig()) == 0) return -1; /* * Set sampling rate */ pvbuffer[0] = AL_OUTPUT_RATE; for (i = 0; srate[i]; i++) ; /* find the end of the array */ while (i-- > 0) { if (srate[i] >= options->rate) { pvbuffer[1] = options->rate = srate[i]; break; } } if (i == 0) pvbuffer[1] = options->rate = srate[0]; if (ALsetparams(AL_DEFAULT_DEVICE, pvbuffer, 2) < 0) return -1; /* * Set sample format to signed integer */ if (ALsetsampfmt(config, AL_SAMPFMT_TWOSCOMP) < 0) return -1; /* * Set sample width; 24 bit samples are not currently supported by xmp */ if (options->format & XMP_FORMAT_8BIT) { if (ALsetwidth(config, AL_SAMPLE_8) < 0) { if (ALsetwidth(config, AL_SAMPLE_16) < 0) return -1; options->format &= ~XMP_FORMAT_8BIT; } else { al_sample_16 = 0; } } else { if (ALsetwidth(config, AL_SAMPLE_16) < 0) { if (ALsetwidth(config, AL_SAMPLE_8) < 0) return -1; options->format |= XMP_FORMAT_8BIT; } else { al_sample_16 = 1; } } /* * Set number of channels; 4 channel output is not currently supported */ if (options->format & XMP_FORMAT_MONO) { if (ALsetchannels(config, AL_MONO) < 0) { if (ALsetchannels(config, AL_STEREO) < 0) return -1; options->format &= ~XMP_FORMAT_MONO; } } else { if (ALsetchannels(config, AL_STEREO) < 0) { if (ALsetchannels(config, AL_MONO) < 0) return -1; options->format |= XMP_FORMAT_MONO; } } /* * Set buffer size */ if (ALsetqueuesize(config, bsize) < 0) return -1; /* * Open the audio port */ if ((audio_port = ALopenport("xmp", "w", config)) == 0) return -1; return 0; } /* Build and write one tick (one PAL frame or 1/50 s in standard vblank * timed mods) of audio data to the output device. * * Apparently ALwritesamps requires the number of samples instead of * the number of bytes, which is what I assume i is. This was a * trial-and-error fix, but it appears to work. - 19990706 bdowning */ static void play(void *b, int i) { if (al_sample_16) i /= 2; ALwritesamps(audio_port, b, i); } static void deinit(void) { ALcloseport(audio_port); } static void flush(void) { } static void onpause(void) { } static void onresume(void) { } static const char *const help[] = { "buffer=val", "Audio buffer size", NULL }; struct sound_driver sound_sgi = { "sgi", "SGI IRIX PCM audio", help, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/sound_ahi.c0000644000000000000000000001075614442670136013743 0ustar rootroot/* Amiga AHI driver for Extended Module Player * Based on a MikMod driver written by Szilard Biro, which was loosely * based on an old AmigaOS4 version by Fredrik Wikstrom. * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #ifdef __amigaos4__ #define SHAREDMEMFLAG MEMF_SHARED #define __USE_INLINE__ #else #define SHAREDMEMFLAG MEMF_PUBLIC #endif #include #include #include "sound.h" #include #include #include #define BUFFERSIZE (4 << 10) static struct MsgPort *AHImp = NULL; static struct AHIRequest *AHIReq[2] = { NULL, NULL }; static int active = 0; static signed char *AHIBuf[2] = { NULL, NULL }; static void closeLibs(void) { if (AHIReq[1]) { AHIReq[0]->ahir_Link = NULL; /* in case we are linked to req[0] */ if (!CheckIO((struct IORequest *) AHIReq[1])) { AbortIO((struct IORequest *) AHIReq[1]); WaitIO((struct IORequest *) AHIReq[1]); } FreeVec(AHIReq[1]); AHIReq[1] = NULL; } if (AHIReq[0]) { if (!CheckIO((struct IORequest *) AHIReq[0])) { AbortIO((struct IORequest *) AHIReq[0]); WaitIO((struct IORequest *) AHIReq[0]); } if (AHIReq[0]->ahir_Std.io_Device) { CloseDevice((struct IORequest *) AHIReq[0]); AHIReq[0]->ahir_Std.io_Device = NULL; } DeleteIORequest((struct IORequest *) AHIReq[0]); AHIReq[0] = NULL; } if (AHImp) { DeleteMsgPort(AHImp); AHImp = NULL; } if (AHIBuf[0]) { FreeVec(AHIBuf[0]); AHIBuf[0] = NULL; } if (AHIBuf[1]) { FreeVec(AHIBuf[1]); AHIBuf[1] = NULL; } } static int init(struct options *options) { AHImp = CreateMsgPort(); if (AHImp) { AHIReq[0] = (struct AHIRequest *)CreateIORequest(AHImp, sizeof(struct AHIRequest)); if (AHIReq[0]) { AHIReq[0]->ahir_Version = 4; AHIReq[1] = AllocVec(sizeof(struct AHIRequest), SHAREDMEMFLAG); if (AHIReq[1]) { if (!OpenDevice(AHINAME, AHI_DEFAULT_UNIT, (struct IORequest *)AHIReq[0], 0)) { AHIReq[0]->ahir_Std.io_Command = CMD_WRITE; AHIReq[0]->ahir_Std.io_Data = NULL; AHIReq[0]->ahir_Std.io_Offset = 0; AHIReq[0]->ahir_Frequency = options->rate; AHIReq[0]->ahir_Type = (options->format & XMP_FORMAT_8BIT)? ((options->format & XMP_FORMAT_MONO)? AHIST_M8S : AHIST_S8S ) : ((options->format & XMP_FORMAT_MONO)? AHIST_M16S : AHIST_S16S); AHIReq[0]->ahir_Volume = 0x10000; AHIReq[0]->ahir_Position = 0x8000; CopyMem(AHIReq[0], AHIReq[1], sizeof(struct AHIRequest)); AHIBuf[0] = AllocVec(BUFFERSIZE, SHAREDMEMFLAG | MEMF_CLEAR); if (AHIBuf[0]) { AHIBuf[1] = AllocVec(BUFFERSIZE, SHAREDMEMFLAG | MEMF_CLEAR); if (AHIBuf[1]) { /* driver is initialized before calling libxmp, so this is OK : */ options->format &= ~XMP_FORMAT_UNSIGNED;/* no unsigned with AHI */ return 0; } } } } } } closeLibs(); return -1; } static void deinit(void) { closeLibs(); } static void play(void *b, int len) { signed char *in = (signed char *)b; int chunk; while (len > 0) { if (AHIReq[active]->ahir_Std.io_Data) { WaitIO((struct IORequest *) AHIReq[active]); } chunk = (len < BUFFERSIZE)? len : BUFFERSIZE; memcpy(AHIBuf[active], in, chunk); len -= chunk; in += chunk; AHIReq[active]->ahir_Std.io_Data = AHIBuf[active]; AHIReq[active]->ahir_Std.io_Length = chunk; AHIReq[active]->ahir_Link = !CheckIO((struct IORequest *) AHIReq[active ^ 1]) ? AHIReq[active ^ 1] : NULL; SendIO((struct IORequest *)AHIReq[active]); active ^= 1; } } static void flush(void) { } static void onpause(void) { } static void onresume(void) { } struct sound_driver sound_ahi = { "ahi", "Amiga AHI audio", NULL, init, deinit, play, flush, onpause, onresume }; xmp-4.2.0/src/terminal.c0000644000000000000000000000235014442670136013574 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include "common.h" #include #if defined(XMP_AMIGA) #ifdef __amigaos4__ #define __USE_INLINE__ #endif #include #include #define MODE_NORMAL 0 #define MODE_RAW 1 #elif defined HAVE_TERMIOS_H #include #include static struct termios term; #endif int set_tty(void) { #if defined(XMP_AMIGA) SetMode(Input(), MODE_RAW); #elif defined HAVE_TERMIOS_H struct termios t; if (!isatty(STDIN_FILENO)) return 0; if (tcgetattr(STDIN_FILENO, &term) < 0) return -1; t = term; t.c_lflag &= ~(ECHO | ICANON | TOSTOP); t.c_cc[VMIN] = t.c_cc[VTIME] = 0; if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &t) < 0) return -1; #endif return 0; } int reset_tty(void) { #if defined(XMP_AMIGA) SetMode(Input(), MODE_NORMAL); #elif defined HAVE_TERMIOS_H if (!isatty(STDIN_FILENO)) return 0; if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &term) < 0) { fprintf(stderr, "can't reset terminal!\n"); return -1; } #endif return 0; } xmp-4.2.0/src/common.h0000644000000000000000000000657214442670136013270 0ustar rootroot#ifndef XMP_COMMON_H #define XMP_COMMON_H #ifdef _MSC_VER #ifndef __cplusplus #define inline __inline #endif #define snprintf _snprintf #define vsnprintf _vsnprintf #define kbhit _kbhit #define getch _getch #endif #if defined(__MORPHOS__) || defined(__AROS__) || defined(__AMIGA__) \ || defined(__amigaos__) || defined(__amigaos4__) || defined(AMIGA) #define XMP_AMIGA 1 #endif #define NUM_MODES 13 #define MAX_DRV_PARM 20 #include struct player_mode { const char *name; const char *desc; int mode; }; struct options { int start; /* start order */ int amplify; /* amplification factor */ int rate; /* sampling rate */ int format; /* sample format */ int max_time; /* max. replay time */ int mix; /* channel separation */ int defpan; /* default pan */ int interp; /* interpolation type */ int dsp; /* dsp effects */ int loop; /* loop module */ int loop_time; /* loop until time */ int random; /* play in random order */ int reverse; /* reverse stereo channels */ int vblank; /* vblank flag */ int fx9bug; /* fx9bug flag -- DEPRECATED */ int numvoices; /* maximum number of mixer voices */ int fixloop; /* fixloop flag */ int verbose; /* verbosity level */ int silent; /* silent output */ int info; /* display information and exit */ int probeonly; /* probe sound driver and exit */ int nocmd; /* disable interactive commands */ int norc; /* don't read the configuration files */ int dparm; /* driver parameter index */ int sequence; /* sequence to play */ int explore; /* play all sequences in module */ int show_comment; /* show module comment text */ int player_mode; /* force tracker emulation */ int amiga_mixer; /* enable amiga mixer */ const char *driver_id; /* sound driver ID */ const char *out_file; /* output file name */ char *ins_path; /* instrument path */ char *driver_parm[MAX_DRV_PARM]; /* driver parameters */ char mute[XMP_MAX_CHANNELS]; }; struct control { double time; /* Replay time in ms */ int skip; /* Skip to next module */ int loop; /* Module is looped */ int pause; /* Replay paused */ int display; /* Info display flag */ int sequence; /* Current sequence */ int explore; /* Play all sequences */ int cur_info; /* Display current sequence or mixer type */ int amiga_mixer; /* Toggle amiga mixer mode */ int mixer_type; /* Mixer type (from player) */ }; extern struct player_mode pmode[]; void delay_ms(unsigned int); #ifdef XMP_AMIGA void amiga_inittimer(void); void amiga_getsystime(void *); #endif char *xmp_strdup(const char *); int xmp_strcasecmp(const char *, const char *); /* locale-insensitive */ int report(const char *, ...); /* option */ void get_options(int, char **, struct options *); int read_config(struct options *); void read_modconf(struct options *, const unsigned char *); /* terminal */ int set_tty(void); int reset_tty(void); /* info */ void info_mod(const struct xmp_module_info *, int); void info_message(const char *, ...); void info_frame_init(void); void info_frame(const struct xmp_module_info *, const struct xmp_frame_info *, struct control *, int); void info_ins_smp(const struct xmp_module_info *); void info_instruments(const struct xmp_module_info *); void info_samples(const struct xmp_module_info *); void info_comment(const struct xmp_module_info *); void info_help(void); /* commands */ void read_command(xmp_context, const struct xmp_module_info *, struct control *); #endif xmp-4.2.0/src/commands.c0000644000000000000000000001231314442670136013562 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include "common.h" #if defined(_WIN32) || defined(__OS2__) || defined(__DJGPP__) || defined(_DOS) #include #endif #if defined(XMP_AMIGA) #ifdef __amigaos4__ #define __USE_INLINE__ #endif #include #include #endif #ifdef HAVE_UNISTD_H #include #endif #ifdef __CYGWIN__ #include /* * from daniel Ã¥kerud * date Tue, Jul 28, 2009 at 9:59 AM * * Under Cygwin, the read() in process_echoback blocks because VTIME = 0 * is not handled correctly. To fix this you can either: * * 1. Enable "tty emulation" in Cygwin using an environment variable. * http://www.mail-archive.com/cygwin@cygwin.com/msg99417.html * For me this is _very_ slow and I can see the characters as they are * typed out when running xmp. I have not investigated why this is * happening, but there is of course a reason why this mode is not * enabled by default. * * 2. Do a select() before read()ing if the platform is Cygwin. * This makes Cygwin builds work out of the box with no fiddling around, * but does impose a neglectible cpu overhead (for Cygwin builds only). */ static int stdin_ready_for_reading(void) { fd_set fds; struct timeval tv; int ret; tv.tv_sec = 0; tv.tv_usec = 0; FD_ZERO(&fds); FD_SET(STDIN_FILENO, &fds); ret = select(STDIN_FILENO + 1, &fds, NULL, NULL, &tv); if (ret > 0 && FD_ISSET(STDIN_FILENO, &fds)) return 1; return 0; } #endif static int read_key(void) { char key; int ret = 0; #if defined(_WIN32) || defined(__OS2__) || defined(__DJGPP__) || defined(_DOS) if (kbhit()) { key = getch(); ret = 1; } #elif defined(XMP_AMIGA) /* Amiga CLI */ { BPTR in = Input(); if (WaitForChar(in, 1)) { Read(in, &key, 1); ret = 1; } } #elif defined(HAVE_TERMIOS_H) #ifdef __CYGWIN__ if (stdin_ready_for_reading()) #endif ret = read(0, &key, 1); #else ret = 0; #endif if (ret <= 0) { return -1; } return key; } static void change_sequence(xmp_context handle, const struct xmp_module_info *mi, struct control *ctl, int i) { int seq = ctl->sequence; seq += i; if (seq >= mi->num_sequences) { seq = 0; } else if (seq < 0) { seq = mi->num_sequences - 1; } if (seq == ctl->sequence) { info_message("Sequence not changed: only one sequence available"); } else { ctl->sequence = seq; info_message("Change to sequence %d", seq); xmp_set_position(handle, mi->seq_data[seq].entry_point); } } /* Interactive commands */ /* VT100 ESC sequences: * ESC [ A - up arrow * ESC [ B - down arrow * ESC [ C - right arrow * ESC [ D - left arrow */ void read_command(xmp_context handle, const struct xmp_module_info *mi, struct control *ctl) { int cmd; cmd = read_key(); if (cmd <= 0) return; switch (cmd) { case 0x1b: /* escape */ cmd = read_key(); if (cmd != '[') goto cmd_quit; cmd = read_key(); switch (cmd) { case 'A': goto cmd_next_mod; case 'B': goto cmd_prev_mod; case 'C': goto cmd_next_pos; case 'D': goto cmd_prev_pos; } break; case 'q': /* quit */ cmd_quit: xmp_stop_module(handle); ctl->pause = 0; ctl->skip = -2; break; case 'f': /* jump to next order */ cmd_next_pos: xmp_next_position(handle); ctl->pause = 0; break; case 'b': /* jump to previous order */ cmd_prev_pos: xmp_prev_position(handle); ctl->pause = 0; break; case 'n': /* skip to next module */ cmd_next_mod: xmp_stop_module(handle); ctl->pause = 0; ctl->skip = 1; break; case 'p': /* skip to previous module */ cmd_prev_mod: xmp_stop_module(handle); ctl->pause = 0; ctl->skip = -1; break; case 'l': ctl->loop++; ctl->loop %= 3; break; case 'X': ctl->cur_info = 'X'; break; case 'a': { int f; ctl->amiga_mixer = !ctl->amiga_mixer; /* set player flags */ f = xmp_get_player(handle, XMP_PLAYER_FLAGS); if (ctl->amiga_mixer) { xmp_set_player(handle, XMP_PLAYER_FLAGS, f | XMP_FLAGS_A500); } else { xmp_set_player(handle, XMP_PLAYER_FLAGS, f &= ~XMP_FLAGS_A500); } /* set current module flags */ f = xmp_get_player(handle, XMP_PLAYER_CFLAGS); if (ctl->amiga_mixer) { xmp_set_player(handle, XMP_PLAYER_CFLAGS, f | XMP_FLAGS_A500); } else { xmp_set_player(handle, XMP_PLAYER_CFLAGS, f &= ~XMP_FLAGS_A500); } break; } case 'Z': ctl->cur_info = 'Z'; break; case 'z': ctl->explore ^= 1; break; case ' ': /* paused module */ ctl->pause ^= 1; break; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': /* toggle mute */ xmp_channel_mute(handle, cmd - '1', 2); break; case '0': xmp_channel_mute(handle, 9, 2); break; case '!': { int i; for (i = 0; i < 10; i++) { xmp_channel_mute(handle, i, 0); } break; } case '?': case 'c': case 'i': case 'I': case 'S': case 'm': ctl->display = cmd; break; case 'h': ctl->display = '?'; break; case '>': change_sequence(handle, mi, ctl, 1); break; case '<': change_sequence(handle, mi, ctl, -1); break; } } xmp-4.2.0/src/sound_alsa05.c0000644000000000000000000001170514442670136014262 0ustar rootroot/* ALSA 0.5 driver for xmp * Copyright (C) 2000 Tijs van Bakel and Rob Adamson * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ /* * Fixed for ALSA 0.5 by Rob Adamson * Sat, 29 Apr 2000 17:10:46 +0100 (BST) */ /* preliminary alsa 0.5 support, Tijs van Bakel, 02-03-2000. * only default values are supported and music sounds chunky */ /* Better ALSA 0.5 support, Rob Adamson, 16 Mar 2000. * Again, hard-wired fragment size & number and sample rate, * but it plays smoothly now. */ /* Now uses specified options - Rob Adamson, 20 Mar 2000 */ #include #include #include #include #include #include #include #include #include #include #include "sound.h" static snd_pcm_t *pcm_handle; static int frag_num = 4; static size_t frag_size = 4096; static char *mybuffer = NULL; static char *mybuffer_nextfree = NULL; static char *card_name; static int prepare_driver(void) { int rc; rc = snd_pcm_plugin_prepare(pcm_handle, SND_PCM_CHANNEL_PLAYBACK); if (rc < 0) { printf("Unable to prepare plugin: %s\n", snd_strerror(rc)); return rc; } return 0; } static int to_fmt(struct options *options) { int fmt; if (options->format & XMP_FORMAT_8BIT) { fmt = SND_PCM_SFMT_U8 | SND_PCM_SFMT_S8; } else { fmt = SND_PCM_SFMT_S16_LE | SND_PCM_SFMT_S16_BE | SND_PCM_SFMT_U16_LE | SND_PCM_SFMT_U16_BE; if (is_big_endian()) { fmt &= SND_PCM_SFMT_S16_BE | SND_PCM_SFMT_U16_BE; } else { fmt &= SND_PCM_SFMT_S16_LE | SND_PCM_SFMT_U16_LE; } } if (options->format & XMP_FORMAT_UNSIGNED) { fmt &= SND_PCM_SFMT_U8|SND_PCM_SFMT_U16_LE|SND_PCM_SFMT_U16_BE; } else { fmt &= SND_PCM_SFMT_S8|SND_PCM_SFMT_S16_LE|SND_PCM_SFMT_S16_BE; } return fmt; } static int init(struct options *options) { char **parm = options->driver_parm; snd_pcm_channel_params_t params; snd_pcm_channel_setup_t setup; int card = 0; int dev = 0; int rc; parm_init(parm); chkparm2("frag", "%d,%d", &frag_num, &frag_size); if (frag_num > 8) frag_num = 8; if (frag_num < 4) frag_num = 4; if (frag_size > 65536) frag_size = 65536; if (frag_size < 16) frag_size = 16; chkparm1("card", card_name = token); // card = snd_card_name(card_name); /* ? */ // dev = snd_defaults_pcm_device(); /* ? */ parm_end(); mybuffer = (char*)malloc(frag_size); if (mybuffer) { mybuffer_nextfree = mybuffer; } else { printf("Unable to allocate memory for mixer buffer\n"); return -1; } if ((rc = snd_pcm_open(&pcm_handle, card, dev, SND_PCM_OPEN_PLAYBACK)) < 0) { printf("Unable to initialize pcm device: %s\n", snd_strerror(rc)); return -1; } memset(¶ms, 0, sizeof(snd_pcm_channel_params_t)); params.mode = SND_PCM_MODE_BLOCK; params.buf.block.frag_size = frag_size; params.buf.block.frags_min = 1; params.buf.block.frags_max = frag_num; //params.mode = SND_PCM_MODE_STREAM; //params.buf.stream.queue_size = 16384; //params.buf.stream.fill = SND_PCM_FILL_NONE; //params.buf.stream.max_fill = 0; params.channel = SND_PCM_CHANNEL_PLAYBACK; params.start_mode = SND_PCM_START_FULL; params.stop_mode = SND_PCM_STOP_ROLLOVER; params.format.interleave = 1; params.format.format = to_fmt(o); params.format.rate = options->rate; params.format.voices = (o->outfmt & XMP_FORMAT_MONO) ? 1 : 2; if ((rc = snd_pcm_plugin_params(pcm_handle, ¶ms)) < 0) { printf("Unable to set output parameters: %s\n", snd_strerror(rc)); return -1; } if (prepare_driver() < 0) return XMP_ERR_DINIT; memset(&setup, 0, sizeof(setup)); setup.mode = SND_PCM_MODE_STREAM; setup.channel = SND_PCM_CHANNEL_PLAYBACK; if ((rc = snd_pcm_channel_setup(pcm_handle, &setup)) < 0) { printf("Unable to setup channel: %s\n", snd_strerror(rc)); return -1; } return 0; } static void play(void *b, int i) { /* Note this assumes a fragment size of (frag_size) */ while (i > 0) { size_t f = (frag_size) - (mybuffer_nextfree - mybuffer); size_t to_copy = (f < i) ? f : i; memcpy(mybuffer_nextfree, b, to_copy); b = (char *)b + to_copy; mybuffer_nextfree += to_copy; f -= to_copy; i -= to_copy; if (f == 0) { snd_pcm_plugin_write(pcm_handle, mybuffer, frag_size); mybuffer_nextfree = mybuffer; } } } static void deinit(void) { snd_pcm_close(pcm_handle); free(mybuffer); } static void flush(void) { snd_pcm_plugin_flush(pcm_handle, SND_PCM_CHANNEL_PLAYBACK); prepare_driver(); } static const char *const help[] = { "frag=num,size", "Set the number and size (bytes) of fragments", "card ", "Select sound card to use", NULL }; struct sound_driver sound_alsa05 = { "alsa05", /* driver ID */ "ALSA 0.5 PCM audio", /* driver description */ help, /* help */ init, /* init */ dshutdown, /* shutdown */ dummy, /* starttimer */ flush, /* stoptimer */ bufdump, /* bufdump */ NULL }; xmp-4.2.0/src/info.c0000644000000000000000000002125614442670136012722 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2016 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include #include "common.h" static int max_channels = -1; void info_help(void) { report( "COMMAND KEYS SUMMARY\n" " Space Pause/unpause\n" " q, Esc Stop module and quit the player\n" " f, Right Advance to next order\n" " b, Left Return to previous order\n" " n, Up Advance to next module\n" " p, Down Return to previous module\n" " h, ? Display available commands\n" " 1 - 0 Mute/unmute channels\n" " ! Unmute all channels\n" " X Display current mixer type\n" " a Enable amiga mixer\n" " Z Display current sequence\n" " z Toggle subsong explorer mode\n" " l Toggle loop mode\n" " m Display module information\n" " i Display combined instrument/sample list\n" " I Display instrument list\n" " S Display sample list\n" " c Display comment, if any\n" " < Play previous sequence\n" " > Play next sequence\n" ); } void info_mod(const struct xmp_module_info *mi, int mode) { int i; int num_seq; int total_time; report("Module name : %s\n", mi->mod->name); report("Module type : %s", mi->mod->type); if (mode != XMP_MODE_AUTO) { struct player_mode *pm; for (pm = pmode; pm->name != NULL; pm++) { if (pm->mode == mode) { report(" [play as:%s]", pm->desc); break; } } } report("\nModule length: %d patterns\n", mi->mod->len); report("Patterns : %d\n", mi->mod->pat); report("Instruments : %d\n", mi->mod->ins); report("Samples : %d\n", mi->mod->smp); report("Channels : %d [ ", mi->mod->chn); for (i = 0; i < mi->mod->chn; i++) { if (mi->mod->xxc[i].flg & XMP_CHANNEL_SYNTH) { report("S "); } else if (mi->mod->xxc[i].flg & XMP_CHANNEL_MUTE) { report("- "); } else if (mi->mod->xxc[i].flg & XMP_CHANNEL_SURROUND) { report("^ "); } else { report("%x ", mi->mod->xxc[i].pan >> 4); } } report("]\n"); total_time = mi->seq_data[0].duration; report("Duration : %dmin%02ds", (total_time + 500) / 60000, ((total_time + 500) / 1000) % 60); /* Check non-zero-length sequences */ num_seq = 0; for (i = 0; i < mi->num_sequences; i++) { if (mi->seq_data[i].duration > 0) num_seq++; } if (num_seq > 1) { report(" (main sequence)\n"); for (i = 1; i < mi->num_sequences; i++) { int dur = mi->seq_data[i].duration; if (dur == 0) { continue; } report(" %dmin%02ds " "(sequence %d at position %02X)\n", (dur + 500) / 60000, ((dur + 500) / 1000) % 60, i, mi->seq_data[i].entry_point); } } else { report("\n"); } } void info_frame_init(void) { max_channels = 0; } #define MSG_SIZE 80 static int msg_timer = 0; static char msg_text[MSG_SIZE]; void info_message(const char *format, ...) { va_list ap; va_start(ap, format); msg_timer = 300000; vsnprintf(msg_text, MSG_SIZE, format, ap); va_end(ap); } static void fix_info_02x(int val, char *buf) { if (val <= 0xff) { snprintf(buf, 3, "%02X", val); } else if (val <= 0xfff) { snprintf(buf, 3, "+%X", val >> 8); } else { strcpy(buf, "++"); } } void info_frame(const struct xmp_module_info *mi, const struct xmp_frame_info *fi, struct control *ctl, int reprint) { static int ord = -1, spd = -1, bpm = -1; char rowstr[3], numrowstr[3]; char chnstr[3], maxchnstr[3]; int time; char x; if (fi->virt_used > max_channels) max_channels = fi->virt_used; if (!reprint && fi->frame != 0) return; time = fi->time / 100; /* Show mixer type */ x = ' '; if (ctl->amiga_mixer) { switch (ctl->mixer_type) { case XMP_MIXER_STANDARD: x = '-'; break; case XMP_MIXER_A500: x = 'A'; break; case XMP_MIXER_A500F: x = 'F'; break; default: x = 'x'; } } if (msg_timer > 0) { report("\r%-61.61s %c%c%c", msg_text, ctl->explore ? 'Z' : ' ', ctl->loop ? 'L' : ' ', x); msg_timer -= fi->frame_time * fi->speed / 6; if (msg_timer == 0) { msg_timer--; } else { goto print_time; } } if (msg_timer < 0) { reprint = 1; msg_timer = 0; } if (reprint || fi->pos != ord || fi->bpm != bpm || fi->speed != spd) { report("\rSpeed[%02X] BPM[%02X] Pos[%02X/%02X] " "Pat[%02X/%02X] Row[ / ] Chn[ / ] 0:00:00.0", fi->speed, fi->bpm, fi->pos, mi->mod->len - 1, fi->pattern, mi->mod->pat - 1); ord = fi->pos; bpm = fi->bpm; spd = fi->speed; } fix_info_02x(fi->row, rowstr); fix_info_02x(fi->num_rows - 1, numrowstr); fix_info_02x(fi->virt_used, chnstr); fix_info_02x(max_channels, maxchnstr); report("\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b" "%2.2s/%2.2s] Chn[%2.2s/%2.2s] %c%c%c", rowstr, numrowstr, chnstr, maxchnstr, ctl->explore ? 'Z' : ' ', ctl->loop ? 'L' : ' ', x); print_time: if (ctl->pause) { report(" - PAUSED -"); } else { report("%3d:%02d:%02d.%d", (int)(time / (60 * 600)), (int)((time / 600) % 60), (int)((time / 10) % 60), (int)(time % 10)); } fflush(stdout); } void info_ins_smp(const struct xmp_module_info *mi) { int i, j; const struct xmp_module *mod = mi->mod; report("Instruments and samples:\n"); report(" Instrument name Smp Size Loop End Vol Fine Xpo Pan\n"); for (i = 0; i < mod->ins; i++) { struct xmp_instrument *ins = &mod->xxi[i]; int has_sub = 0; if (strlen(ins->name) == 0 && ins->nsm == 0) { continue; } report("%02x %-32.32s ", i + 1, ins->name); for (j = 0; j < ins->nsm; j++) { const struct xmp_subinstrument *sub = &ins->sub[j]; const struct xmp_sample *smp; /* Some instruments reference samples that don't exist * (see beek-substitutionology.it). */ if (sub->sid >= mod->smp) { continue; } smp = &mod->xxs[sub->sid]; if (j > 0) { if (smp->len == 0) { continue; } report("%36.36s", " "); } has_sub = 1; report("[%02x] %05x%c%05x %05x%c V%02x %+04d %+03d P%02x\n", sub->sid + 1, smp->len, smp->flg & XMP_SAMPLE_16BIT ? '+' : ' ', smp->lps, smp->lpe, smp->flg & XMP_SAMPLE_LOOP ? smp->flg & XMP_SAMPLE_LOOP_BIDIR ? 'B' : 'L' : ' ', sub->vol, sub->fin, sub->xpo, sub->pan & 0xff); } if (has_sub == 0) { report("[ ] ----- ----- ----- --- ---- --- ---\n"); } } } void info_instruments(const struct xmp_module_info *mi) { int i, j; const struct xmp_module *mod = mi->mod; report("Instruments:\n"); report(" Instrument name Vl Fade Env Ns Sub Gv Vl Fine Xpo Pan Sm\n"); for (i = 0; i < mod->ins; i++) { const struct xmp_instrument *ins = &mod->xxi[i]; int has_sub = 0; if (strlen(ins->name) == 0 && ins->nsm == 0) { continue; } report("%02x %-32.32s %02x %04x %c%c%c %02x ", i + 1, ins->name, ins->vol, ins->rls, ins->aei.flg & XMP_ENVELOPE_ON ? 'A' : '-', ins->fei.flg & XMP_ENVELOPE_ON ? 'F' : '-', ins->pei.flg & XMP_ENVELOPE_ON ? 'P' : '-', ins->nsm ); for (j = 0; j < ins->nsm; j++) { const struct xmp_subinstrument *sub = &ins->sub[j]; const struct xmp_sample *smp; if (j > 0) { /* Some instruments reference samples that don't exist * (see beek-substitutionology.it). */ if (sub->sid >= mod->smp) { continue; } smp = &mod->xxs[sub->sid]; if (smp->len == 0) { continue; } report("%51.51s", " "); } has_sub = 1; report("[%02x] %02x %02x %+04d %+03d P%02x %02x\n", j + 1, sub->gvl, sub->vol, sub->fin, sub->xpo, sub->pan & 0xff, sub->sid); } if (has_sub == 0) { report("[ ] -- -- ---- --- --- --\n"); } } } void info_samples(const struct xmp_module_info *mi) { int i; const struct xmp_module *mod = mi->mod; report("Samples:\n"); report(" Sample name Length Start End Flags\n"); for (i = 0; i < mod->smp; i++) { const struct xmp_sample *smp = &mod->xxs[i]; if (strlen(smp->name) == 0 && smp->len == 0) { continue; } report("%02x %-32.32s %06x %06x %06x %s %s %s\n", i + 1, smp->name, smp->len, smp->lps, smp->lpe, smp->flg & XMP_SAMPLE_16BIT ? "16" : "--", smp->flg & XMP_SAMPLE_LOOP ? "L" : "-", smp->flg & XMP_SAMPLE_LOOP_BIDIR ? "B" : "-"); } } void info_comment(const struct xmp_module_info *mi) { char *c = mi->comment; if (mi->comment == NULL) { report("No comment.\n"); return; } while (*c != 0) { report("> "); do { if (*c == 0) break; report("%c", *c); } while (*c++ != '\n'); } report("\n\n"); } xmp-4.2.0/src/util.c0000644000000000000000000000212614442670136012737 0ustar rootroot/* Extended Module Player * Copyright (C) 1996-2022 Claudio Matsuoka and Hipolito Carraro Jr * * This file is part of the Extended Module Player and is distributed * under the terms of the GNU General Public License. See the COPYING * file for more information. */ #include #include #include #include #include #include "common.h" char *xmp_strdup(const char *in) { size_t len = strlen(in) + 1; char *out = (char *) malloc(len); if (out) { memcpy(out, in, len); } return out; } /* locale-insensitive tolower and strcasecmp: */ static inline int xmp_tolower(int c) { return (c >= 'A' && c <= 'Z') ? (c | ('a' - 'A')) : c; } int xmp_strcasecmp(const char *s1, const char *s2) { const char *p1 = s1; const char *p2 = s2; char c1, c2; if (p1 == p2) return 0; do { c1 = xmp_tolower (*p1++); c2 = xmp_tolower (*p2++); if (c1 == '\0') break; } while (c1 == c2); return (int)(c1 - c2); } int report(const char *fmt, ...) { va_list a; int n; va_start(a, fmt); n = vfprintf(stderr, fmt, a); va_end(a); return n; } xmp-4.2.0/girl_from_mars.xm0000644000000000000000000020340514442670136014402 0ustar rootrootExtended Module: Girl From MarsMilkyTracker €   @ùƒF€€€€˜€˜ˆ ˆ ˆ ˆ ˆ ˆ ˆ €€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒA€€€€€€€€€€€€€€€€€‡F0€€€€€€€€€a€€€€€€€€€€€€€€€€€a€€€€€€€€€€ƒM€€€€€€€€€€€€€€€€€‡A0€€€€€€€€€a€€€€€€€€€€€€€€€€€a€€€€€€€€€€ƒI€€€€€€€€€€€€€€€‡M0€€€€€€€€€€€a€€€€€€€€€€€€€€€a€€€€€€€€€€€€ƒH€€€€€€€€€€€€€€€‡I0€€€€€€€€€€€ƒa€€€€€€€€€€€€€€€a€€€€€€€ƒF€€€€€€€€€€€€€€€€€€€€‡H0€€€€€€a€€€€€€€€€€€€€€€€€€€€ƒa€€€€€€€ƒA€€€€€€€€€€€€€€€€€‡F0€€€€€€€€€a€€€€€€€€€€€€€€€€€a€€€€€€€€€€ƒK€€€€€€€€€€€€€€€€€‡A0€€€€€€€€€a€€€€€€€€€€€€€€€€€a€€€€€€€€€€ƒH€€€€€€€€€€€€€€€‡K0€€€€€€€€€€€a€€€€€€€€€€€€€€€a€€€€€€€€€€€€ƒ?€€€€€€€€€€€€€€€‡H0€€€€€€€€€€€a€€€€€€€€€€€€€€€a€€€€€€€ƒD€€€€€€€€€€€€€€€€€€€€‡?0€€€€€€a€€€€€€€€€€€€€€€€€€€€a€€€€€€€ƒF€€€€€€€€€€€€€€€€€‡D0€€€€€€€€€a€€€€€€€€€€€€€€€€€a€€€€€€€€€€ƒK€€€€€€€€€€€€€€€€€‡F0€€€€€€€€€a€€€€€€€€€€€€€€€€€a€€€€€€€€€€ƒI€€€€€€€€€€€€€€€‡K0€€€€€€€€€€€a€€€€€€€€€€€€€€€a€€€€€€€€€€€€ƒH€€€€€€€€€€€€€€€‡I0€€€€€€€€€€€a€€€€€€€€€€€€€€€a€€€€€€€€€ƒD€€€€€€€€€€€€€€€€€€‡H0€€€€€€€€a€€€€€€€€€€€€€€€€€€a€€€€€€ @ýƒB€€€€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒF€€€€€€€€€€€€€€€€€‡B0€€€€€€€€€a€€€€€€€€€€€€€€€€€a€€€€€€€€€€ƒM€€€€€€€€€€€€€€€€€‡F0€€€€€€€€€a€€€€€€€€€€€€€€€€€a€€€€€€€€€€ƒK€€€€€€€€€€€€€€€‡M0€€€€€€€€€€€a€€€€€€€€€€€€€€€a€€€€€€€€€€€€ƒN€€€€€€€€€€€€€€€‡K0€€€€€€€€€€€a€€€€€€€€€€€€€€€a€€€€€€€ƒM€€€€€€€€€€€€€€€€€€„0€‡N0€€€€€€a€€€€€€€€€€€€€€€€€€€€a€€€€€€€ƒK€€€€€€€€€€€€€€€€€‡M0€€€€€€€€€a€€€€€€€€€€€€€€€€€a€€€€€€€€€€ƒI€€€€€€€€€€€€€€€€„0‡K0€€€€€€€€€a€€€€€€€€€€€€€€€€€a€€€€€€€€€€ƒF€€€€€€€€€€€€€€€‡I0€€€€€€€€€€€a€€€€€€€€€€€€€€€a€€€€€€€€€€€€ƒA€€€€€€€€€€€€€€€‡F0€€€€€€€€€€€a€€€€€€€€€€€€€€€a€€€€€€€ƒ=€€€€€€€€€€€€€€€€€€€€‡A0€€€€€€a€€€€€€€€€€€€€€€€€€€€a€€€€€€€ƒ<€€€€€€€€€€€€€€€€€‡=0€€€€€€€€€a€€€€€€€€€€€€€€€€€a€€€€€€€€€€ƒ:€€€€€ƒ"€€€€€€€€€€€‡<0€˜€€€€€€€a€€€€€ˆ€€€€€€€€€€€a€ˆ€€€€€€€€ƒ=€€€€ˆ€€€€€€€€€€‡:0€€ˆ€€€€€€€€a€€€€ˆ€€€€€€€€€€a€€ˆ€€€€€€€€€ƒA€€€ˆ€€€€€€€€€€€‡=0€ˆ€€€€€€€€€a€€€ˆ€€€€€€€€€€€a€ˆ€€€€€€€€€€€€€ˆ€€€€€€€€€€€€‡A0ˆ€€€€€€€€€€€€€ˆ€€€€€€€€€€€€aˆ€€€€€ @OƒF€€€€€€€ƒA€€€€€€€€€€€€€a€€€€€a€€€€€€€€ƒM€€€€€€€€€€€€€a€€€€€ƒA€€€„0€€€€ƒI€€€€€€€€‡F0€€€€a€€€€a€€€€€€€€€ƒF€€€€€€€a€€€€€a€€€€ƒM€€€€€ƒA€€€€€€€€€€€‡A0€a€€€€€€€a€€€€€€ƒ=€€€€€€€€€€a€€a€€€€€€€ƒI€€€€€€ƒ<€€€€€€€€‡M0€€€€a€€€€€€a€€€€€€€ƒ:€€€€€€€a€€€€€a€€€€€€ƒH€€€ƒ5€€€€€€€€€€€‡I0€a€€€€€€€€€ƒa€€€€ƒ3€€€€€€€€€€a€€a€€€€ƒF€€€€€€€€€ƒ1€€€€€€€€€€‡H0€€a€€€a€€€€€€€€€€ƒ.€€€€€€€€€ƒa€€€a€€€ƒA€€€€€€ƒ1€€€€€€€€€€‡F0€€a€€€€€€a€€€€€€€ƒ5€€€€€€€€€a€€€a€€€€€€ƒK€€€€€€€ƒ:€€€€€€€€€‡A0€€€a€€€€€a€€€€€€€€ƒ=€€€€€€€€a€€€€a€€€€€ƒH€€€€ƒ?€€€€€€€€€€‡K0€€a€€€€€€€€a€€€€€ƒK€€€€€€€€€a€€€a€€€€€€€€ƒ?€€€€€ƒH€€€€€€€€€‡H0€€€a€€€€€€€a€€€€€€ƒ8€€€€€€€€a€€€€a€€ƒD€€€€€€€ƒ3€€€€€€€€€€€€‡?0a€€€€€a€€€€€€€€ƒ0€€€€€€€€€€€a€a€€€€€ƒF€€€€€€€€ƒ.€€€€€€€€‡D0€€€€a€€€€a€€€€€€€€€ƒ,€€€€€€€a€€€€€a€€€€ƒK€€€€€ƒ,€€€€€€€€€€€‡F0€a€€€€€€€a€€€€€€ƒ.€€€€€€€€€€a€€a€€€€€€€ƒI€€€€€€ƒ0€€€€€€€€‡K0€€€€a€€€€€€a€€€€€€€ƒ3€€€€€€€a€€€€€a€€€€€€ƒH€€€ƒ8€€€€€€€€€€€‡I0€a€€€€€€€€€a€€€€ƒ:€€€€€€€€€€a€€a€€€€€€ƒD€€€€€€€ƒ<€€€€€€€€€€‡H0€€a€€€€€a€€€€€€€€ƒ?€€€€€€€€€a€€€a€€ @KƒB€€€€€€€ƒB€€€€€€€€€€€€€a€€€€€a€€€€€€€€ƒN€€€€€€€€€€€€€a€€€€€ƒF€€€€€€€€ƒI€€€€€€€€‡B0€€€€a€€€€a€€€€€€€€€ƒF€€€€€€€a€€€€€a€€€€ƒM€€€€€ƒB€€€€€€€€€€€‡F0€a€€€€€€€a€€€€€€ƒ=€€€€€€€€€€a€€a€€€€€€€ƒK€€€€€€ƒ:€€€€€€€€‡M0€€€€a€€€€€€a€€€€€€€ƒ6€€€€€€€a€€€€€a€€€€€€ƒN€€€ƒ1€€€€€€€€€€€‡K0€a€€€€€€€€€a€€€€ƒ.€€€€€€€€€€a€€a€€€€ƒM€€€€€€€€€ƒ,€€€€€€€€„0€‡N0€€a€€€a€€€€€€€€€€ƒ*€€€€€€€€€a€€€a€€€ƒK€€€€€€ƒ*€€€€€€€€€€‡M0€€a€€€€€€a€€€€€€€ƒ,€€€€€€€€€a€€€a€€€€€€ƒI€€€€€€€ƒ.€€€€€€€€„0‡K0€€€a€€€€€a€€€€€€€€ƒ1€€€€€€€€a€€€€a€€€€€ƒF€€€€ƒ5€€€€€€€€€€‡I0€€a€€€€€€€€a€€€€€ƒ:€€€€€€€€€a€€€a€€€€€€€€ƒA€€€€€ƒA€€€€€€€€€‡F0€€€a€€€€€€€a€€€€€€ƒF€€€€€€€€a€€€€a€€ƒ=€€€€€€€ƒA€€€€€€€€€€€€‡A0a€€€€€a€€€€€€€€ƒ=€€€€€€€€€€€a€a€€€€€ƒ<€€€€€€€€ƒ<€€€€€€€€‡=0€€€€a€€€€a€€€€€€€€€ƒ:€€€€€€€a€€€€€a€€€€ƒ:€€€€€ƒ.€€€€€€€€€€€‡<0€a€€€€€€€a€€€€€€ƒ:€€€€€€€€€€a€€a€€€€€€€ƒ=€€€€€€ƒ=€€€€€€€€‡:0€€€€a€€€€€€a€€€€€€€ƒA€€€€€€€a€€€€€a€€€€€€ƒA€€€ƒ:€€€€€€€€€€€‡=0€a€€€€€€€€€a€€€€ƒ5€€€€€€€€€€a€€a€€€€€€€€€€€€€€ƒF€€€€€€€€€€‡A0€€a€€€€€€€€€€€€€€ƒA€€€€€€€€€a€€€a€€ @ƒF€€€€ƒ 6̃.ƒA€€€€€€€€€€€€€a€€€€€a€€€€‡  6Ì€€ƒM€€€€€€€€€€€€€a€€€€€ƒA€€€‡  6Ì€€€ƒI€€€€€€€€€€€€€a€€€€a€€€‡ @6Ì€€€€ƒF€€€€€€€€€€€€€a€€€€ƒM€€ƒ16Ì€ƒA€€€€€€€€€€€€€a€€€€€€€a€€€6Ì€€ƒ=€€€€€€€€€€€€€a€€€€€€€ƒI€€6Ì€€€ƒ<€€€€€€€€€€€€€a€€€€€€a€‡  6Ì€€€€ƒ:€€€€€€€€€€€€€a€€€€€€ƒH‡ @6́aƒ5€€€€€€€€€€€€€a€€€€€€€€€ƒa‡ 06Ì€€ƒ3€€€€€€€€€€€€€a€€€€ƒF€€€€‡  6Ì€€€ƒ1€€€€€€€€€€€€€a€€€a€€€€€6Ì€€€€ƒ.€€€€€€€€€€€€€a€€€ƒA€€€ƒ16Ì€ƒ1€€€€€€€€€€€€€a€€€€€€a€€€€6Ì€€ƒ5€€€€€€€€€€€€€a€€€€€€ƒK€€€6Ì€€€ƒ:€€€€€€€€€€€€€a€€€€€a€€€6Ì€€€€ƒ=€€€€€€€€€€€€€a€€€€€ƒH€ƒ 6̃,ƒ?€€€€€€€€€€€€€a€€€€€€€€a€€6Ì€€ƒK€€€€€€€€€€€€€a€€€€€€€€ƒ?ƒ 6Ì€€€ƒH€€€€€€€€€€€€€a€€€€€€€a€6Ì€€€€ƒ8€€€€€€€€€€€€€a€€ƒD€€€€ƒ16Ì€ƒ3€€€€€€€€€€€€€a€€€€€a€€€€€6Ì€€ƒ0€€€€€€€€€€€€€a€€€€€ƒF€€€ƒ6Ì€€€ƒ.€€€€€€€€€€€€€a€€€€a€€€€6Ì€€€€ƒ,€€€€€€€€€€€€€a€€€€ƒK€€ƒ 6́aƒ,€€€€€€€€€€€€€a€€€€€€€a€€€6Ì€€ƒ.€€€€€€€€€€€€€a€€€€€€€ƒI€€6Ì€€€ƒ0€€€€€€€€€€€€€a€€€€€€a€€6Ì€€€€ƒ3€€€€€€€€€€€€€a€€€€€€ƒHƒ16Ì€ƒ8€€€€€€€€€€€€€a€€€€€€€€€a€6Ì€€ƒ:€€€€€€€€€€€€€a€€€€€€ƒD€€ƒ56Ì€€€ƒ<€€€€€€€€€€€€€a€€€€€a€€ƒ66Ì€€€€ƒ?€€€€€€€€€€€€€a€€ @ÚƒB€€€€ƒ 6̃*ƒB€€€€€€€€€€€€€a€€€€€a€€€€‡  6Ì€€ƒN€€€€€€€€€€€€€a€€€€€ƒF€€€‡  6Ì€€€ƒI€€€€€€€€€€€€€a€€€€a€€€‡ @6Ì€€€€ƒF€€€€€€€€€€€€€a€€€€ƒM€€ƒ16Ì€ƒB€€€€€€€€€€€€€a€€€€€€€a€€€6Ì€€ƒ=€€€€€€€€€€€€€a€€€€€€€ƒK€€6Ì€€€ƒ:€€€€€€€€€€€€€a€€€€€€a€‡  6Ì€€€€ƒ6€€€€€€€€€€€€€a€€€€€€ƒN‡ @6́aƒ1€€€€€€€€€€€€€a€€€€€€€€€a‡ 06Ì€€ƒ.€€€€€€€€€€€€€a€€€€ƒM€€€€‡  6Ì€€€ƒ,€€€€€€€€€€€€€a€€€a€€€€€6Ì€€€€ƒ*€€€€€€€€€€€€€a€€€ƒK€€€ƒ16Ì€ƒ*€€€€€€€€€€€€€a€€€€€€a€€€€6Ì€€ƒ,€€€€€€€€€€€€€a€€€€€€ƒI€€€6Ì€€€ƒ.€€€€€€€€€€€€€a€€€€€a€€€6Ì€€€€ƒ1€€€€€€€€€€€€€a€€€€€ƒF€ƒ 6̃:ƒ5€€€€€€€€€€€€€a€€€€€€€€a€€6Ì€€ƒ:€€€€€€€€€€€€€a€€€€€€€€ƒAƒ 6Ì€€€ƒA€€€€€€€€€€€€€a€€€€€€€a€6Ì€€€€ƒF€€€€€€€€€€€€€a€€ƒ=€€€€ƒ16Ì€ƒA€€€€€€€€€€€€€a€€€€€a€€€€€6Ì€€ƒ=€€€€€€€€€€€€€a€€€€€ƒ<€€€ƒ6Ì€€€ƒ<€€€€€€€€€€€€€a€€€€a€€€€6Ì€€€€ƒ:€€€€€€€€€€€€€a€€€€ƒ:€€ƒ 6́aƒ.€€€€€€€€€€€€€a€€€€€€€a€€€6Ì€€ƒ:€€€€€€€€€€€€€a€€€€€€€€€€6Ì€€€ƒ=€€€€€€€€€€€€€a€€€€€€€€€6Ì€€€€ƒA€€€€€€€€€€€€€a€€ƒ1€€‡MÀ€ƒ16Ì€ƒ:€€€€€€€€‡IÁ€€€€a€€€€€ƒ1€€‡F€ƒ16Ì€€ƒ5€€€€€€€‡AÀ€€€€a€€€€ƒ1€€‡=ƒ16Ì€€€ƒF€€€€€€‡:ŀ€€€€€a€€€ƒ1€€‡5ƀƒ16Ì€€€€ƒA€€€€€‡1ǀ€€€€€€a€€ @]ƒB€€€€€€€ƒB€€€€€€€€€€€€€a€€€€€a€€€€€€€€ƒN€€€€€€€€€€€€€a€€€€€ƒF€€€€€€€€ƒI€€€€€€€€‡B0€€€€a€€€€a€€€€€€€€€ƒF€€€€€€€a€€€€€a€€€€ƒM€€€€€ƒB€€€€€€€€€€€‡F0€a€€€€€€€a€€€€€€ƒ=€€€€€€€€€€a€€a€€€€€€€ƒK€€€€€€ƒ:€€€€€€€€‡M0€€€€a€€€€€€a€€€€€€€ƒ6€€€€€€€a€€€€€a€€€€€€ƒN€€€ƒ1€€€€€€€€€€€‡K0€a€€€€€€€€€a€€€€ƒ.€€€€€€€€€€a€€a€€€€ƒM€€€€€€€€€ƒ,€€€€€€€€„0€‡N0€€a€€€a€€€€€€€€€€ƒ*€€€€€€€€€a€€€a€€€ƒK€€€€€€ƒ*€€€€€€€€€€‡M0€€a€€€€€€a€€€€€€€ƒ,€€€€€€€€€a€€€a€€€€€€ƒI€€€€€€€ƒ.€€€€€€€€„0‡K0€€€a€€€€€a€€€€€€€€ƒ1€€€€€€€€a€€€€a€€€€€ƒF€€€€ƒ5€€€€€€€€€€‡I0€€a€€€€€€€€a€€€€€ƒ:€€€€€€€€€a€€€a€€€€€€€€ƒA€€€€€ƒA€€€€€€€€€‡F0€€€a€€€€€€€a€€€€€€ƒF€€€€€€€€a€€€€a€€ƒ=€€€€€€€ƒA€€€€€€€€€€€€‡A0a€€€€€a€€€€€€€€ƒ=€€€€€€€€€€€a€a€€€€€ƒ<€€€€€€€€ƒ<€€€€€€€€‡=0€€€€a€€€€a€€€€€€€€€ƒ:€€€€€€€a€€€€€a€€ƒ €ƒ:€€€€€ƒ.€€€€€€€€€€€‡<0€a€€€€€€€a€€€€€€ƒ:€€€€€€€€€€a€€a€€€€€€€ƒ=€€€€€€ƒ=€€€€€€€€‡:0€€€€a€€€€€€a€€€€€€€ƒA€€€€€€€a€€€€€a€€ƒ1€€€ƒAƒ1€€ƒ:€€€€€€€€€€€‡=0€a€€€€€ƒ1€€€aƒ1€€€ƒ5€€€€€€€€€€a€€a€€€€ƒ1€€€€ƒ1€€€€ƒF€€€€€€€€€€‡A0€€a€€€ƒ1€€€€ƒ1€€€€€ƒA€€€€€€€€€a€€€a€€ @€AÌ“˜“˜“˜“ƒ ›6ƒ.AÄ¡˜¡˜¡˜¡^Ä œd0„0‰aˆˆˆ€€a‰aˆˆˆˆˆ€ˆM̈ˆ‡  ›6€ˆMĈˆˆŒb‡A0ˆ‰aˆˆ€€€ˆ‰aˆˆˆˆaˆˆÏ‡  ƒ6ƒ.ˆˆIĈYÌŒa‡M0ˆˆ‰aˆ€€aˆˆ‰aˆˆˆaˆˆˆḞ @€€ˆˆˆFĈŒa‡I0ˆˆˆ‰a€€€ˆˆˆ‰aˆŒaaÄˆˆƒ1›6ƒ:AĈˆˆUÄŒa‡F0‰aˆˆˆ€€a‰aˆˆˆˆŒaaˆ=̈ˆ€›6€ˆ=ĈˆˆŒa‡A0ˆ‰aˆˆ€€€ˆ‰aˆˆˆŒaaˆˆ<̈€ƒ6ƒ.ˆˆ<ĈRÌŒa‡=0ˆˆ‰aˆ€€aˆˆ‰aˆˆˆaˆˆˆ:̇  €€ˆˆˆ:ĈŒa‡<0ˆˆˆ‰a€€€ˆˆˆ‰aˆŒaa5̈ˆˆ‡ @›6ƒ"5ĈˆˆMă.‡:0‰aˆˆˆ€€a‰aˆˆˆŒcƒ0aˆ3̈ˆ‡ 0›6€ˆ3ĈˆŒbƒ1‡50ˆ‰aˆˆ€€€ˆ‰aˆˆŒaƒ3aˆˆ1̈‡  ƒ6ƒ"ˆˆ1ĈŒaƒ:‡30ˆˆ‰aˆ€€aˆˆ‰aˆŒaƒ<aˆˆˆ.Ì€€€ˆˆˆ.ÄŒaƒ=‡10ˆˆˆ‰a€€€ˆˆˆ‰aŒaƒ?a1̈ˆˆƒ1›6ƒ.1ĈˆˆŒaƒF‡.0‰aˆˆˆ€€a‰aˆˆˆŒaƒHaˆ5̈ˆ€›6€ˆ5ĈˆŒaƒI‡10ˆ‰aˆˆ€€€ˆ‰aˆˆŒaƒKaˆˆ:̈€ƒ6ƒ.ˆˆ:Ĉ„aƒR‡50ˆˆ‰aˆ€€aˆˆ‰aˆ„a€aˆˆˆ=Ì€€€ˆˆˆ=Ä„a€‡:0ˆˆˆ‰a€€€ˆˆˆ‰a„a€a?̈ˆˆƒ ›6ƒ,?Ĉˆˆ›\ ˜‡=0‰aˆˆˆ€€a‰aˆˆˆ›W €aˆK̈ˆ€›6€ˆKĈˆ›T ˆ‡?0ˆ‰aˆˆ€€€ˆ‰aˆˆ›P €aˆˆḦƒ ƒ6ƒ,ˆˆHĈ›K ˆ‡K0ˆˆ‰aˆ€€aˆˆ‰aˆ›H €aˆˆˆ8Ì€€€ˆˆˆ8Ä›D ˆ‡H0ˆˆˆ‰a€€€ˆˆˆ‰a›? €a3̈ˆˆƒ1›6ƒ83Ĉˆˆ›< ˆ‡80‰aˆˆˆ€€a‰aˆˆˆ›8 €aˆ0̈ˆ€›6€ˆ0Ĉˆ›3 ˆ‡30ˆ‰aˆˆ€€€ˆ‰aˆˆ›0 €aˆˆ.̈ƒƒ6ƒ,ˆˆ.Ĉ›, ˆ‡00ˆˆ‰aˆ€€aˆˆ‰aˆ˜ €aˆˆˆ,Ì€€€ˆˆˆ,Ęˆ‡.0ˆˆˆ‰a€€€ˆˆˆ‰aˆ€a,̈ˆˆƒ ›6ƒ ,ĈˆˆˆD@ ‡,0‰aˆˆˆ€€a‰aˆˆˆˆˆaˆ.̈ˆ€›6€ˆ.ĈˆˆH0‡,0ˆ‰aˆˆ€€€ˆ‰aˆˆˆˆaˆˆ0̈€ƒ6ƒ ˆˆ0ĈˆK ‡.0ˆˆ‰aˆ€€aˆˆ‰aˆˆˆaˆˆˆ3Ì€€€ˆˆˆ3ĈP‡00ˆˆˆ‰a€€€ˆˆˆ‰aˆˆa8̈ˆˆƒ1›6ƒ,8ĈˆˆˆT‡30‰aˆˆˆ€€a‰aˆˆˆˆˆaˆ:̈ˆ€›6€ˆ:ĈˆˆW‡80ˆ‰aˆˆ€€€ˆ‰aˆˆˆˆaˆˆ<̈ƒ5ƒ6ƒ,ˆˆ<Ĉˆ„‡:0ˆˆ‰aˆ€€aˆˆ‰aˆˆ€aˆˆˆ?̃6€€ˆˆˆ?Ĉ€‡<0ˆˆˆ‰a€€€ˆˆˆ‰aˆ€ @CaBÌ“˜“˜“˜“ƒ ›6ƒ*BÄ¡˜¡˜¡˜¡ZÄ @€‡?0‰aˆˆˆ€€a‰aˆˆˆYÄ @€aˆN̈ˆ‡  ›6€ˆNĈˆUÄ @€‡B0ˆ‰aˆˆ€€€ˆ‰aˆˆRÄ @€aˆˆÏ‡  ƒ6ƒ*ˆˆIĈZÌ 0€‡N0ˆˆ‰aˆ€€aˆˆ‰aˆYÌ 0€aˆˆˆḞ @€€ˆˆˆFÄUÌ 0€‡I0ˆˆˆ‰a€€€ˆˆˆ‰aRÌ 0€aB̈ˆˆƒ1›6ƒ6BĈˆˆZÄ €‡F0‰aˆˆˆ€€a‰aˆˆˆYÄ €aˆ=̈ˆ€›6€ˆ=ĈˆUÄ €‡B0ˆ‰aˆˆ€€€ˆ‰aˆˆRÄ €aˆˆ:̈€ƒ6ƒ*ˆˆ:ĈZÌ €‡=0ˆˆ‰aˆ€€aˆˆ‰aˆYÌ €aˆˆˆ6̇  €€ˆˆˆ6ÄUÌ €‡:0ˆˆˆ‰a€€€ˆˆˆ‰aRÌ €a1̈ˆˆ‡ @›6ƒ*1Ĉˆˆˆ ƒ‡60‰aˆˆˆ€€a‰aˆˆˆ€˜Paˆ.̈ˆ‡ 0›6€ˆ.Ĉˆ€ˆ‡10ˆ‰aˆˆ€€€ˆ‰aˆˆ€ˆaˆˆ,̈‡  ƒ6ƒ*ˆˆ,Ĉ€ˆ‡.0ˆˆ‰aˆ€€aˆˆ‰aˆ€ˆaˆˆˆ*Ì€€€ˆˆˆ*Ä€ˆ‡,0ˆˆˆ‰a€€€ˆˆˆ‰a€ˆa*̈ˆˆƒ1›6ƒ6*Ĉˆˆ€ˆ‡*0‰aˆˆˆ€€a‰aˆˆˆ€ˆaˆ,̈ˆ€›6€ˆ,Ĉˆ€Œd‡*0ˆ‰aˆˆ€€€ˆ‰aˆˆ€Œcaˆˆ.̈€ƒ6ƒ*ˆˆ.Ĉ€Œb‡,0ˆˆ‰aˆ€€aˆˆ‰aˆ€Œaaˆˆˆ1Ì€€€ˆˆˆ1Ä€Œa‡.0ˆˆˆ‰a€€€ˆˆˆ‰a€ˆa5̈ˆˆƒ ›6ƒ.5Ĉˆˆƒ^Œa‡10‰aˆˆˆ€€a‰aˆˆˆƒY€aˆ:̈ˆ€›6€ˆ:ĈˆƒU„a‡50ˆ‰aˆˆ€€€ˆ‰aˆˆƒR€aˆˆÄƒ ƒ6ƒ.ˆˆAĈƒM„a‡:0ˆˆ‰aˆ€€aˆˆ‰aˆƒI€aˆˆˆFÌ€€€ˆˆˆFăF„a‡A0ˆˆˆ‰a€€€ˆˆˆ‰aƒA€aÄˆˆƒ1›6ƒ:AĈˆˆƒ=„a‡F0‰aˆˆˆ€€a‰aˆˆˆƒ:€aˆ=̈ˆ€›6€ˆ=Ĉˆƒ5„a‡A0ˆ‰aˆˆ€€€ˆ‰aˆˆƒ1€aˆˆ<̈ƒƒ6ƒ.ˆˆ<Ĉƒ.„a‡=0ˆˆ‰aˆ€€aˆˆ‰aˆƒ)€aˆˆˆ:Ì€€€ˆˆˆ:ă%„a‡<0ˆˆˆ‰a€€€ˆˆˆ‰aƒ"€a.̈ˆˆƒ ›6ƒ:.Ĉˆˆ€„a‡:0‰aˆˆˆ€€a‰aˆˆˆ€€aˆ:̈ˆ€›6€ˆ:Ĉˆ€€‡.0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ=̈€ƒ6ƒ:ˆˆ=Ĉ˜ €‡:0ˆˆ‰aˆ€€aˆˆ‰aˆ˜€aˆˆˆAÌ€€€ˆˆˆAĈ€‡=0ˆˆˆ‰a€€€ˆˆˆ‰aˆ€a:̈ˆˆƒ1›6ƒ.:Ĉˆˆˆ€‡A0‰aˆˆˆ€€a‰aˆˆˆˆ€aˆ5̈ˆƒ1›6€ˆ5Ĉˆˆ€‡:0ˆ‰aˆˆ€€€ˆ‰aˆˆˆ€aˆˆF̈ƒ1ƒ6ƒ:ˆˆFĈˆ€‡50ˆˆ‰aˆ€€aˆˆ‰aˆˆ€aˆˆˆÃ1€€ˆˆˆAĈ€‡F0ˆˆˆ‰a€€€ˆˆˆ‰aˆ€ @³€AÌ“˜“˜“˜“ƒ 6̃.AÄ¡˜¡˜¡˜¡€€„0‰aˆˆˆ€€€‰aˆˆˆ€€€ˆM̈ˆ‡  6Ì€ˆMĈˆ€€‡A0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆÏ‡  6Ì€ˆˆIĈ€€‡M0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆḞ @6Ì€ˆˆˆFÄ€€‡I0ˆˆˆ‰a€€€ˆˆˆ‰a€€aÄˆˆƒ16Ì€AĈˆˆ€€‡F0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ=̈ˆ€6Ì€ˆ=Ĉˆ€€‡A0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ<̈€6Ì€ˆˆ<Ĉ€€‡=0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ:̇  6Ì€ˆˆˆ:Ä€€‡<0ˆˆˆ‰a€€€ˆˆˆ‰a€€a5̈ˆˆ‡ @6́a5Ĉˆˆ€€‡:0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ3̈ˆ‡ 06Ì€ˆ3Ĉˆ€€‡50ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ1̈‡  6Ì€ˆˆ1Ĉ€€‡30ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ.Ì€6Ì€ˆˆˆ.Ä€€‡10ˆˆˆ‰a€€€ˆˆˆ‰a€€a1̈ˆˆƒ16Ì€1Ĉˆˆ€€‡.0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ5̈ˆ€6Ì€ˆ5Ĉˆ€€‡10ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ:̈€6Ì€ˆˆ:Ĉ€€‡50ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ=Ì€6Ì€ˆˆˆ=Ä€€‡:0ˆˆˆ‰a€€€ˆˆˆ‰a€€a?̈ˆˆƒ 6̃,?Ĉˆˆ€€‡=0‰aˆˆˆ€€€‰aˆˆˆ€€aˆK̈ˆ€6Ì€ˆKĈˆ€€‡?0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆḦƒ 6Ì€ˆˆHĈ€€‡K0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ8Ì€6Ì€ˆˆˆ8Ä€€‡H0ˆˆˆ‰a€€€ˆˆˆ‰a€€a3̈ˆˆƒ16Ì€3Ĉˆˆ€€‡80‰aˆˆˆ€€€‰aˆˆˆ€€aˆ0̈ˆ€6Ì€ˆ0Ĉˆ€€‡30ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ.̈ƒ6Ì€ˆˆ.Ĉ€€‡00ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ,Ì€6Ì€ˆˆˆ,Ä€€‡.0ˆˆˆ‰a€€€ˆˆˆ‰a€€a,̈ˆˆƒ 6́a,Ĉˆˆ€€‡,0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ.̈ˆ€6Ì€ˆ.Ĉˆ€€‡,0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ0̈€6Ì€ˆˆ0Ĉ€€‡.0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ3Ì€6Ì€ˆˆˆ3Ä€€‡00ˆˆˆ‰a€€€ˆˆˆ‰a€€a8̈ˆˆƒ16Ì€8Ĉˆˆ€€‡30‰aˆˆˆ€€€‰aˆˆˆ€€aˆ:̈ˆ€6Ì€ˆ:Ĉˆ€€‡80ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ<̈ƒ56Ì€ˆˆ<Ĉ€€‡:0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ?̃66Ì€ˆˆˆ?Ä€€‡<0ˆˆˆ‰a€€€ˆˆˆ‰a€€ @ˁaBÌ“˜“˜“˜“ƒ 6̃*BÄ¡˜¡˜¡˜¡€€‡?0‰aˆˆˆ€€€‰aˆˆˆ€€aˆN̈ˆ‡  6Ì€ˆNĈˆ€€‡B0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆÏ‡  6Ì€ˆˆIĈ€€‡N0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆḞ @6Ì€ˆˆˆFÄ€€‡I0ˆˆˆ‰a€€€ˆˆˆ‰a€€aB̈ˆˆƒ16Ì€BĈˆˆ€€‡F0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ=̈ˆ€6Ì€ˆ=Ĉˆ€€‡B0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ:̈€6Ì€ˆˆ:Ĉ€€‡=0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ6̇  6Ì€ˆˆˆ6Ä€€‡:0ˆˆˆ‰a€€€ˆˆˆ‰a€€a1̈ˆˆ‡ @6́a1Ĉˆˆ€€‡60‰aˆˆˆ€€€‰aˆˆˆ€€aˆ.̈ˆ‡ 06Ì€ˆ.Ĉˆ€€‡10ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ,̈‡  6Ì€ˆˆ,Ĉ€€‡.0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ*Ì€6Ì€ˆˆˆ*Ä€€‡,0ˆˆˆ‰a€€€ˆˆˆ‰a€€a*̈ˆˆƒ16Ì€*Ĉˆˆ€€‡*0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ,̈ˆ€6Ì€ˆ,Ĉˆ€€‡*0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ.̈€6Ì€ˆˆ.Ĉ€€‡,0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ1Ì€6Ì€ˆˆˆ1Ä€€‡.0ˆˆˆ‰a€€€ˆˆˆ‰a€€a5̈ˆˆƒ 6̃:5Ĉˆˆ€€‡10‰aˆˆˆ€€€‰aˆˆˆ€€aˆ:̈ˆ€6Ì€ˆ:Ĉˆ€€‡50ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆÄƒ 6Ì€ˆˆAĈ€€‡:0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆFÌ€6Ì€ˆˆˆFÄ€€‡A0ˆˆˆ‰a€€€ˆˆˆ‰a€€aÄˆˆƒ16Ì€AĈˆˆ€€‡F0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ=̈ˆ€6Ì€ˆ=Ĉˆ€€‡A0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ<̈ƒ6Ì€ˆˆ<Ĉ€€‡=0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ:Ì€6Ì€ˆˆˆ:Ä€€‡<0ˆˆˆ‰a€€€ˆˆˆ‰a€€a.̈ˆˆƒ 6́a.Ĉˆˆ€ƒ‡:0‰aˆˆˆ€€€‰aˆˆˆ€˜ aˆ:̈ˆ€6Ì€ˆ:Ĉˆ€ˆ‡.0ˆ‰aˆˆ€€€ˆ‰aˆˆ€ˆaˆˆ=̈€6Ì€ˆˆ=Ĉ€ˆ‡:0ˆˆ‰aˆ€€€ˆˆ‰aˆ€ˆaˆˆˆAÌ€6Ì€ˆˆˆAÄ€ˆ‡=0ˆˆˆ‰a€€€ˆˆˆ‰a€ˆa:̈ˆˆƒ16Ì€:Ĉˆˆ€ˆ‡A0‰aˆˆˆ€€€‰aˆˆˆ€ˆaˆ5̈ˆƒ16Ì€ˆ5Ĉˆ€ˆ‡:0ˆ‰aˆˆ€€€ˆ‰aˆˆ€ˆaˆˆF̈ƒ16Ì€ˆˆFĈ€ˆ‡50ˆˆ‰aˆ€€€ˆˆ‰aˆ€ˆaˆˆˆÃ16Ì€ˆˆˆAÄ€ˆ‡F0ˆˆˆ‰a€€€ˆˆˆ‰a€ˆ @³€AÌ“˜“˜“˜“ƒ ›6ƒ.AÄ¡˜¡˜¡˜¡€€„0‰aˆˆˆ€€€‰aˆˆˆ€€€ˆM̈ˆ‡  ›6€ˆMĈˆ€€‡A0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆÏ‡  ›6€ˆˆIĈ€€‡M0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆḞ @›6€ˆˆˆFÄ€€‡I0ˆˆˆ‰a€€€ˆˆˆ‰a€€aÄˆˆƒ1›6€AĈˆˆ€€‡F0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ=̈ˆ€›6€ˆ=Ĉˆ€€‡A0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ<̈€›6€ˆˆ<Ĉ€€‡=0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ:̇  ›6€ˆˆˆ:Ä€€‡<0ˆˆˆ‰a€€€ˆˆˆ‰a€€a5̈ˆˆ‡ @›6a5Ĉˆˆ€€‡:0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ3̈ˆ‡ 0›6€ˆ3Ĉˆ€€‡50ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ1̈‡  ›6€ˆˆ1Ĉ€€‡30ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ.Ì€›6€ˆˆˆ.Ä€€‡10ˆˆˆ‰a€€€ˆˆˆ‰a€€a1̈ˆˆƒ1›6€1Ĉˆˆ€€‡.0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ5̈ˆ€›6€ˆ5Ĉˆ€€‡10ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ:̈€›6€ˆˆ:Ĉ€€‡50ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ=Ì€›6€ˆˆˆ=Ä€€‡:0ˆˆˆ‰a€€€ˆˆˆ‰a€€a?̈ˆˆƒ ›6ƒ,?Ĉˆˆ€€‡=0‰aˆˆˆ€€€‰aˆˆˆ€€aˆK̈ˆ€›6€ˆKĈˆ€€‡?0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆḦƒ ›6€ˆˆHĈ€€‡K0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ8Ì€›6€ˆˆˆ8Ä€€‡H0ˆˆˆ‰a€€€ˆˆˆ‰a€€a3̈ˆˆƒ1›6€3Ĉˆˆ€€‡80‰aˆˆˆ€€€‰aˆˆˆ€€aˆ0̈ˆ€›6€ˆ0Ĉˆ€€‡30ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ.̈ƒ›6€ˆˆ.Ĉ€€‡00ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ,Ì€›6€ˆˆˆ,Ä€€‡.0ˆˆˆ‰a€€€ˆˆˆ‰a€€a,̈ˆˆƒ ›6a,Ĉˆˆ€€‡,0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ.̈ˆ€›6€ˆ.Ĉˆ€€‡,0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ0̈€›6€ˆˆ0Ĉ€€‡.0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ3Ì€›6€ˆˆˆ3Ä€€‡00ˆˆˆ‰a€€€ˆˆˆ‰a€€a8̈ˆˆƒ1›6€8Ĉˆˆ€€‡30‰aˆˆˆ€€€‰aˆˆˆ€€aˆ:̈ˆ€›6€ˆ:Ĉˆ€€‡80ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ<̈ƒ5›6€ˆˆ<Ĉ€€‡:0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ?̃6›6€ˆˆˆ?Ä€€‡<0ˆˆˆ‰a€€€ˆˆˆ‰a€€ @¹aBÌ“˜“˜“˜“ƒ ›6ƒ*BÄ¡˜¡˜¡˜¡€€‡?0‰aˆˆˆ€€€‰aˆˆˆ€€aˆN̈ˆ‡  ›6€ˆNĈˆ€€‡B0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆÏ‡  ›6€ˆˆIĈ€€‡N0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆḞ @›6€ˆˆˆFÄ€€‡I0ˆˆˆ‰a€€€ˆˆˆ‰a€€aB̈ˆˆƒ1›6€BĈˆˆ€€‡F0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ=̈ˆ€›6€ˆ=Ĉˆ€€‡B0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ:̈€›6€ˆˆ:Ĉ€€‡=0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ6̇  ›6€ˆˆˆ6Ä€€‡:0ˆˆˆ‰a€€€ˆˆˆ‰a€€a1̈ˆˆ‡ @›6a1Ĉˆˆ€€‡60‰aˆˆˆ€€€‰aˆˆˆ€€aˆ.̈ˆ‡ 0›6€ˆ.Ĉˆ€€‡10ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ,̈‡  ›6€ˆˆ,Ĉ€€‡.0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ*Ì€›6€ˆˆˆ*Ä€€‡,0ˆˆˆ‰a€€€ˆˆˆ‰a€€a*̈ˆˆƒ1›6€*Ĉˆˆ€€‡*0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ,̈ˆ€›6€ˆ,Ĉˆ€€‡*0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ.̈€›6€ˆˆ.Ĉ€€‡,0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ1Ì€›6€ˆˆˆ1Ä€€‡.0ˆˆˆ‰a€€€ˆˆˆ‰a€€a5̈ˆˆƒ ›6ƒ:5Ĉˆˆ€€‡10‰aˆˆˆ€€€‰aˆˆˆ€€aˆ:̈ˆ€›6€ˆ:Ĉˆ€€‡50ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆÄƒ ›6€ˆˆAĈ€€‡:0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆFÌ€›6€ˆˆˆFÄ€€‡A0ˆˆˆ‰a€€€ˆˆˆ‰a€€aÄˆˆƒ1›6€AĈˆˆ€€‡F0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ=̈ˆ€›6€ˆ=Ĉˆ€€‡A0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ<̈ƒ›6€ˆˆ<Ĉ€€‡=0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ:Ì€›6€ˆˆˆ:Ä€€‡<0ˆˆˆ‰a€€€ˆˆˆ‰a€€a.̈ˆˆƒ ›6a.Ĉˆˆ€€‡:0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ:̈ˆ€›6€ˆ:Ĉˆ€€‡.0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ=̈€›6€ˆˆ=Ĉ€€‡:0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆAÌ€›6€ˆˆˆAÄ€€‡=0ˆˆˆ‰a€€€ˆˆˆ‰a€€a:̈ˆˆƒ1›6€:Ĉˆˆ€€‡A0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ5̈ˆƒ1›6€ˆ5Ĉˆ€€‡:0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆF̈ƒ1›6€ˆˆFĈ€€‡50ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆÃ1›6€ˆˆˆAÄ€€‡F0ˆˆˆ‰a€€€ˆˆˆ‰a€€ @»a5Ì“˜“˜“˜“ƒ ›6ƒ.5Ä¡˜¡˜¡˜¡ˆ €‡A0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ5̈ˆ‡  ›6€ˆ5Ĉˆ€€‡50ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ=̈‡  ›6€ˆˆ=Ĉ€€‡50ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ:̇ @›6€ˆˆˆ:Ä€€‡=0ˆˆˆ‰a€€€ˆˆˆ‰a€€a5̈ˆˆƒ1›6€5Ĉˆˆ€€‡:0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ5̈ˆ€›6€ˆ5Ĉˆ€€‡50ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ<̈€›6€ˆˆ<Ĉ€€‡50ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ:̇  ›6€ˆˆˆ:Ä€€‡<0ˆˆˆ‰a€€€ˆˆˆ‰a€€a5̈ˆˆ‡ @›6a5Ĉˆˆ€€‡:0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ5̈ˆ‡ 0›6€ˆ5Ĉˆ€€‡50ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆÄ‡  ›6€ˆˆAĈ€€‡50ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ?Ì€›6€ˆˆˆ?Ä€€‡A0ˆˆˆ‰a€€€ˆˆˆ‰a€€a=̈ˆˆƒ1›6€=Ĉˆˆ€€‡?0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ<̈ˆ€›6€ˆ<Ĉˆ€€‡=0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ:̈€›6€ˆˆ:Ĉ€€‡<0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ5Ì€›6€ˆˆˆ5Ä€€‡:0ˆˆˆ‰a€€€ˆˆˆ‰a€€a1Ì“˜“˜“˜“ƒ ›6ƒ"1Ĉˆˆ€€‡50‰aˆˆˆ€€€‰aˆˆˆ€€aˆ0̈ˆ€›6€ˆ0Ĉˆ€€‡10ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ.̈ƒ ›6€ˆˆ.Ĉ€€‡00ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ)Ì€›6€ˆˆˆ)Ä€€‡.0ˆˆˆ‰a€€€ˆˆˆ‰a€€a'̈ˆˆƒ1›6€'Ĉˆˆ€€‡)0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ%̈ˆ€›6€ˆ%Ĉˆ€€‡'0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ$̈ƒ›6€ˆˆ$Ĉ€€‡%0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ"Ì€›6€ˆˆˆ"Ä€€‡$0ˆˆˆ‰a€€€ˆˆˆ‰a€€a"̈ˆˆƒ ›6a"Ĉˆˆ€€‡"0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ%̈ˆ€›6€ˆ%Ĉˆ€€‡"0ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ)̈€›6€ˆˆ)Ĉ€€‡%0ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ.Ì€›6€ˆˆˆ.Ä€€‡)0ˆˆˆ‰a€€€ˆˆˆ‰a€€a1̈ˆˆƒ1›6€1Ĉˆˆ€€‡.0‰aˆˆˆ€€€‰aˆˆˆ€€aˆ5̈ˆ€›6€ˆ5Ĉˆ€€‡10ˆ‰aˆˆ€€€ˆ‰aˆˆ€€aˆˆ:̈ƒ5›6€ˆˆ:Ĉ€€‡50ˆˆ‰aˆ€€€ˆˆ‰aˆ€€aˆˆˆ=̃6›6€ˆˆˆ=Ä€€‡:0ˆˆˆ‰a€€€ˆˆˆ‰a€€ @a:Ì“ˆˆˆƒ ›6ƒ.:Ä¡ˆˆˆƒFƒM‡=0‰aˆˆˆ€€€‰aˆˆˆaaaˆˆˆˆ‡  ›6€ˆˆˆˆ€€‡:0ˆˆˆˆ€€€ˆˆˆˆ€€aˆˆˆˆ‡  ›6€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ‡ @›6€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆƒ1›6€ˆˆˆˆƒFƒ=€ˆˆˆˆ€€€ˆˆˆˆaa€ˆˆˆˆ€›6€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ€›6€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ‡  ›6€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ€€€Œaˆˆˆ‡ @›6aŒaˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ€€€Œaˆˆˆ‡ 0›6€Œaˆˆˆ€€€Œaˆˆˆ€€€Œaˆˆˆ€€€ˆˆˆˆ‡  ›6€ˆˆˆˆƒAƒF€Œaˆˆˆ€€€Œaˆˆˆaa€ˆˆˆˆ€›6€ˆˆˆˆ€€€Œaˆˆˆ€€€Œaˆˆˆ€€€ˆˆˆˆƒ1›6€ˆˆˆˆ€€€Œaˆˆˆ€€€Œaˆˆˆ€€€ˆˆˆˆ€›6€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ€›6€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ€›6€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆˆˆˆ€€€ˆ Ï À €ƒ ›6ƒ"ˆ ƒAƒ:€‡.€€€œœ€€€€€aa€€€€€˜˜€€›6€€€€€‡1€€€ŒŒ€€€€€€€€€€€€ˆˆ€ƒ ›6€€€€€‡5€€€ŒŒ€€€€€€€€€€€€ˆˆ€€›6€€€€€‡: €€€ŒŒ€€€€€€€€€€‡"€ˆˆ€ƒ1›6€€€€€‡:$€€€Œ Œ €€€€€€€€€€a€ˆˆ€€›6€€€€€‡=(€€€Œ$Œ$€€€€€€€€€€‡" €ˆˆ€ƒ›6€€€€€‡A,€€€Œ(Œ(€€€€€€€€€€a€ˆˆ€€›6€€€€€‡F0€€€ˆˆ€€€€€€€€€€‡"(€ˆˆ€ƒ ›6›.@€€€€‡:4€€€ˆˆ€€€ˆ€€€€€€a€ˆˆ€€›6ˆ€€€€‡=8€€€ˆˆ€€€ˆ€€€€€€‡"0€˜˜€€›6ˆ€€€€‡A<€€€ˆˆ€€€€€€€€€€a€ˆˆ€€›6€€€€€‡F@€€€ˆˆ€€€€€€€€€€‡"8€ˆˆƒ1ƒ1›6€€€€€‡:D€€€ˆˆ€€€€€€€€€€a€ˆˆƒ1ƒ1›6€€€€€‡=H€€€ˆˆ€€€€€€€€€€‡"@€ˆˆƒ5ƒ5›6€€€€€‡AL€€€ˆˆ€€€€€€€€€€a€ˆˆƒ6ƒ6›6€€€€€ƒF€€€ˆˆ€€€€€€€€€€ @ €€ŒdŒdƒ=ƒ ›6ƒ.FÀ FÏ €€:À €€€€€€€€€˜˜€€€€€€ŒcŒc‡= ‡  ›6ƒ:ˆˆ€€=Á €€€€€€€€€ˆˆ€€€:À €€ŒbŒb‡= ‡  ›6ƒ.ˆˆ€€A €€€€€€€€€ˆˆ€€€=Á €€ŒaŒa‡=@‡ @›6ƒ.ˆˆ€€Fà €€€€€€€€€ˆˆ€€€A €€ŒaŒa€ƒ1›6ƒ:ˆˆƒ:ƒA:Ä €€€€€€€€€ˆˆ€€€Fà €€ŒaŒa€€›6ƒ:ˆˆaa=Å €€€€€€€€€ˆˆ€€€:Ä €€ŒaŒa€€›6ƒ.ˆˆ€€AÆ €€€€€€€€€ˆˆ€€€=Å €€ŒaŒa‡= ‡  ›6ƒ:ˆˆ€€FÇ €€€€€€€€€ˆˆ€€€AÆ €€ŒaŒaƒ=‡ @›6ƒ.ˆ ˆ €€:È €€€€€€€€€€€€€€FÇ €€€€‡= ‡ 0›6ƒ.€€€€=É €€€€€€€€€€€€€€:È €€€€ƒ=‡  ›6ƒ:€€ƒ:ƒAAÊ €€€€€€€€€€€€€€=É €€€€€€›6ƒA€€aaFË €€€€€€€€€€€€€€AÊ €€€€€ƒ1›6ƒ?€€€€:Ì €€€€€€€€€€€€€€FË €€€€€€›6ƒ=€€€€=Í €€€€€€€€€€€€€€:Ì €€€€€€›6ƒ:€€ƒ:ƒAAÎ €€€€€€€€€€€€€€=Í €€€€€€›6ƒ5€€aaFÏ €€€€€€€€€€€€€€AÎ €€€€ƒ=ƒ ›6ƒ.€€€€:Ï €€€€€€€€€€€€€€FÏ €€€€€€›6ƒ.€€€€=Î €€€€€€€€€€€€€€:Ï €€€€ƒ=ƒ ›6ƒ:€€ƒ:ƒ5AÍ €€€€€€€€€€€€€€=Î €€€€€€›6ƒ.€€aaFÌ €€€€€€€€€€€€€€AÍ €€€€€ƒ1›6ƒ.€€€€:Ë €€€€€€€€€€€€€€FÌ €€€€€€›6ƒ:€€€€=Ê €€€€€€€€€€€€€€:Ë €€€€ƒ:ƒ›6ƒ.€€€€AÉ €€€€€€€€€€€€€€=Ê €€€€€€›6ƒ"€€€€FÈ €€€€€€€€€€€€€€AÉ ƒ.€€€ƒ=ƒ ›6›.@€€ƒ:ƒ5:Ç €˜€€€€€€ˆ€€€€€FÈ ˆ€€€€€›6ˆ€€aa=Æ €ˆ€€€€€€ˆ€€€€€:Ç ˆ€€€€€›6‹.€€€€AÅ €ˆ€€€€€€€€€€€€=Æ ˆ€€€€€›6ƒ:€€€€FÄ €ˆ€€€€€€€€€€€€AÅ ˆ€€€ƒ=ƒ1›6ƒ.€€ƒ:ƒ5:à €ˆ€€€€€€€€€€€€FÄ ˆ€€€€€›6ƒ.€€aa= €ˆ€€€€€€€€€€€€:à ˆ€€€€ƒ5›6ƒ.€€€€AÁ €ˆ€€€€€€€€€€€€= ˆ€€€€ƒ6›6ƒ:€€€€FÀ €ˆ€€€€€€€€€€€€€ @—ƒF€€€ƒ=ƒ ›6ƒ.€€€€:À €€€€€€€€€€€€€€€aƒA€€‡= ‡  ›6€€€€€=Á €€€€€€€€€€€€€€:À €a€€‡= ‡  ›6€€€€€A €€€€€€€€€€€€€€=Á €€€€‡=@‡ @›6€€€€€Fà €€€€€€€€€€€€€€A ƒF€€€€ƒ1›6€€€ƒ:ƒA:Ä €€€€€€€€€€€€€€Fà a€€€€€›6€€€aa=Å €€€€€€€€€€€€€€:Ä €€€€€€›6€€€€€AÆ €€€€€€€€€€€€€€=Å €€€€‡= ‡  ›6€€€€€FÇ €€€€€€€€€€€€€€AÆ €ƒA€€ƒ=‡ @›6a€€€€:È €€€€€€€€€€€€€€FÇ €a€€‡= ‡ 0›6€€€€€=É €€€€€€€€€€€€€€:È ƒ=€€€ƒ=‡  ›6€€€ƒ:ƒAAÊ €€€€€€€€€€€€€€=É a€€€€€›6€€€aaFË €€€€€€€€€€€€€€AÊ €ƒ?€€€ƒ1›6€€€€€:Ì €€€€€€€€€€€€€€FË €a€€€€›6€€€€€=Í €€€€€€€€€€€€€€:Ì ƒA€€€€€›6€€€ƒ:ƒAAÎ €€€€€€€€€€€€€€=Í a€€€€€›6€€€aaFÏ €€€€€€€€€€€€€€AÎ €ƒD€€ƒ=ƒ ›6ƒ,€€€€,Ï €€€€€€€€€€€€€€FÏ €a€€€€›6€€€€€0Î €€€€€€€€€€€€€€,Ï €€€€ƒ=ƒ ›6€€€ƒ8ƒ33Í €€€€€€€€€€€€€€0Î €€€€€€›6€€€aa8Ì €€€€€€€€€€€€€€3Í ƒ8€€€€ƒ1›6€€€€€,Ë €€€€€€€€€€€€€€8Ì a€€€€€›6€€€€€0Ê €€€€€€€€€€€€€€,Ë €€€€ƒ:ƒ›6€€€€€3É €€€€€€€€€€€€€€0Ê €€€€€€›6€€€€€8È €€€€€€€€€€€€€€3É €ƒ<€€ƒ=ƒ ›6a€€ƒ8ƒ3,Ç €€€€€€€€€€€€€€8È €a€€€€›6€€€aa0Æ €€€€€€€€€€€€€€,Ç ƒ=€€€€€›6€€€€€3Å €€€€€€€€€€€€€€0Æ a€€€€€›6€€€€€8Ä €€€€€€€€€€€€€€3Å €ƒ?€€ƒ=ƒ1›6€€€ƒ8ƒ3,à €€€€€€€€€€€€€€8Ä €a€€€€›6€€€aa0 €€€€€€€€€€€€€€,à ƒ=€€€€ƒ5›6€€€€€3Á €€€€€€€€€€€€€€0 a€€€€ƒ6›6€€€€€8À €€€€€€€€€€€€€€3Á  @»€ƒA€€ƒ=ƒ ›6ƒ*€€€€6À €€€€€€€€€€€€€€€€a€€‡= ‡  ›6€€€€€:Á €€€€€€€€€€€€€€6À €€€€‡= ‡  ›6€€€€€= €€€€€€€€€€€€€€:Á €€€€‡=@‡ @›6€€€€€Bà €€€€€€€€€€€€€€= ƒ:€€€€ƒ1›6€€€ƒ6ƒ=6Ä €€€€€€€€€€€€€€Bà a€€€€€›6€€€aa:Å €€€€€€€€€€€€€€6Ä €€€€€€›6€€€€€=Æ €€€€€€€€€€€€€€:Å €ƒ.€€‡= ‡  ›6€€€€€BÇ €€€€€€€€€€€€€€=Æ €ƒ1€€ƒ=‡ @›6a€€€€6È €€€€€€€€€€€€€€BÇ €ƒ6€€‡= ‡ 0›6€€€€€:É €€€€€€€€€€€€€€6È €ƒ:€€ƒ=‡  ›6€€€ƒ6ƒ==Ê €€€€€€€€€€€€€€:É €ƒ=€€€€›6€€€aaBË €€€€€€€€€€€€€€=Ê €a€€€ƒ1›6€€€€€6Ì €€€€€€€€€€€€€€BË €€€€€€›6€€€€€:Í €€€€€€€€€€€€€€6Ì ƒA€€€€€›6€€€ƒ6ƒ:=Î €€€€€€€€€€€€€€:Í a€€€€€›6€€€aaBÏ €€€€€€€€€€€€€€=Î €ƒ=€€ƒ=ƒ ›6ƒ.€€€€:Ï €€€€€€€€€€€€€€BÏ €a€€€€›6€€€€€=Î €€€€€€€€€€€€€€:Ï €€€€ƒ=ƒ ›6€€€ƒ:ƒ5AÍ €€€€€€€€€€€€€€=Î €€€€€€›6€€€aaFÌ €€€€€€€€€€€€€€AÍ ƒ:€€€€ƒ1›6€€€€€:Ë €€€€€€€€€€€€€€FÌ a€€€€€›6€€€€€=Ê €€€€€€€€€€€€€€:Ë €€€€ƒ:ƒ›6€€€€€AÉ €€€€€€€€€€€€€€=Ê €€€€€€›6€€€€€FÈ €€€€€€€€€€€€€€AÉ ƒR€€€ƒ=ƒ ›6a€€ƒ:ƒ5:Ç €˜ €€€€€€€€€€€€FÈ ƒM€€€€€›6€€€aa=Æ €ˆ‡R0€€€€€€€€€€€:Ç ƒK˜ €€€€›6€€€€€AÅ €ˆ‡M0€€€€€€€€€€€=Æ ƒIˆ€€€€›6€€€€€FÄ €ˆ‡K0€€€€€€€€€€€AÅ ƒFˆ€€ƒ=ƒ1›6€€€ƒ:ƒ5:à €ˆ‡I0€€€€€€€€€€€FÄ ƒAˆ€€€€›6€€€aa= €ˆ‡F0€€€€€€€€€€€:à ƒ?ˆ€€€ƒ5›6€€€€€AÁ €ˆ‡A0€€€€€€€€€€€= ƒ=ˆ€€€ƒ6›6€€€€€FÀ €ˆ‡?0€€€€€€€€€€€€ @–ƒ:ˆ€€ƒ=ƒ ›6ƒ.€€€€:À €€ˆ€€€€€€€€€€€€aƒF€€‡= ‡  ›6€€€€€=Á €€€€€€€€€€€€€€:À €a€€‡= ‡  ›6€€€€€A €€€€€€€€€€€€€€=Á €€€€‡=@‡ @›6€€€€€Fà €€€€€€€€€€€€€€A ƒA€€€€ƒ1›6€€€ƒ:ƒA:Ä €€€€€€€€€€€€€€Fà a€€€€€›6€€€aa=Å €€€€€€€€€€€€€€:Ä €€€€€€›6€€€€€AÆ €€€€€€€€€€€€€€=Å €€€€‡= ‡  ›6€€€€€FÇ €€€€€€€€€€€€€€AÆ €ƒ5€€ƒ=‡ @›6a€€€€:È €€€€€€€€€€€€€€FÇ €a€€‡= ‡ 0›6€€€€€=É €€€€€€€€€€€€€€:È ƒH€€€ƒ=‡  ›6€€€ƒ:ƒAAÊ €€€€€€€€€€€€€€=É a€€€€€›6€€€aaFË €€€€€€€€€€€€€€AÊ €ƒF€€€ƒ1›6€€€€€:Ì €€€€€€€€€€€€€€FË €a€€€€›6€€€€€=Í €€€€€€€€€€€€€€:Ì ƒA€€€€€›6€€€ƒ:ƒAAÎ €€€€€€€€€€€€€€=Í a€€€€€›6€€€aaFÏ €€€€€€€€€€€€€€AÎ €ƒD€€ƒ=ƒ ›6ƒ,€€€€,Ï €€€€€€€€€€€€€€FÏ €a€€€€›6€€€€€0Î €€€€€€€€€€€€€€,Ï €€€€ƒ=ƒ ›6€€€ƒ8ƒ33Í €€€€€€€€€€€€€€0Î €€€€€€›6€€€aa8Ì €€€€€€€€€€€€€€3Í ƒ8€€€€ƒ1›6€€€€€,Ë €€€€€€€€€€€€€€8Ì a€€€€€›6€€€€€0Ê €€€€€€€€€€€€€€,Ë €ƒ<€€ƒ:ƒ›6€€€€€3É €€€€€€€€€€€€€€0Ê €a€€€€›6€€€€€8È €€€€€€€€€€€€€€3É ƒA€€€ƒ=ƒ ›6a€€ƒ8ƒ3,Ç €€€€€€€€€€€€€€8È a€€€€€›6€€€aa0Æ €€€€€€€€€€€€€€,Ç €€€€€€›6€€€€€3Å €€€€€€€€€€€€€€0Æ €€€€€€›6€€€€€8Ä €€€€€€€€€€€€€€3Å €ƒ?€€ƒ=ƒ1›6€€€ƒ8ƒ3,à €€€€€€€€€€€€€€8Ä €a€€€€›6€€€aa0 €€€€€€€€€€€€€€,à €€€€€ƒ5›6€€€€€3Á €€€€€€€€€€€€€€0 €€€€€ƒ6›6€€€€€8À €€€€€€€€€€€€€€3Á  @€ƒA€€€ƒ=ƒ ›6ƒ*€€€€6À €€€€€€€€€€€€€€€a€€€‡= ‡  ›6€€€€€:Á €€€€€€€€€€€€€€6À €ƒ=€€‡= ‡  ›6€€€€€= €€€€€€€€€€€€€€:Á €a€€‡=@‡ @›6€€€€€Bà €€€€€€€€€€€€€€= ƒ:€€€€ƒ1›6€€€ƒ6ƒ=6Ä €€€€€€€€€€€€€€Bà a€€€€€›6€€€aa:Å €€€€€€€€€€€€€€6Ä €ƒ6€€€€›6€€€€€=Æ €€€€€€€€€€€€€€:Å €a€€‡= ‡  ›6€€€€€BÇ €€€€€€€€€€€€€€=Æ ƒ6€€€ƒ=‡ @›6a€€€€6È €€€€€€€€€€€€€€BÇ ƒ:€€€‡= ‡ 0›6€€€€€:É €€€€€€€€€€€€€€6È ƒ=€€€ƒ=‡  ›6€€€ƒ6ƒ==Ê €€€€€€€€€€€€€€:É ƒA€€€€€›6€€€aaBË €€€€€€€€€€€€€€=Ê ƒB€€€€ƒ1›6€€€€€6Ì €€€€€€€€€€€€€€BË ƒF€€€€€›6€€€€€:Í €€€€€€€€€€€€€€6Ì ƒI€€€€€›6€€€ƒ6ƒ:=Î €€€€€€€€€€€€€€:Í €€€€€€›6€€€aaBÏ €€€€€€€€€€€€€€=Î ƒH€€€ƒ=ƒ ›6ƒ.€€€€:Ï €€€€€€€€€€€€€€BÏ a€€€€€›6€€€€€=Î €€€€€€€€€€€€€€:Ï €ƒA€€ƒ=ƒ ›6€€€ƒ:ƒ5AÍ €€€€€€€€€€€€€€=Î €a€€€€›6€€€aaFÌ €€€€€€€€€€€€€€AÍ ƒF€€€€ƒ1›6€€€€€:Ë €€€€€€€€€€€€€€FÌ a€€€€€›6€€€€€=Ê €€€€€€€€€€€€€€:Ë €€€€ƒ:ƒ›6€€€€€AÉ €€€€€€€€€€€€€€=Ê €€€€€€›6€€€€€FÈ €€€€€€€€€€€€€€AÉ ƒ"ƒ:€€ƒ=ƒ ›6a€€ƒ:ƒ5:Ç €˜€€€€€€€€€€€€FÈ ˆa€€€€›6€€€aa=Æ €ˆ€€€€€€€€€€€€:Ç ˆ€€€€€›6€€€€€AÅ €ˆ€€€€€€€€€€€€=Æ ˆ€€€€€›6€€€€€FÄ €ˆ€€€€€€€€€€€€AÅ ˆ€€€ƒ=ƒ1›6€€€ƒ:ƒ5:à €ˆ€€€€€€€€€€€€FÄ ˆ€€€€€›6€€€aa= €ˆ€€€€€€€€€€€€:à ˆ€€€€ƒ5›6€€€€€AÁ €ˆ€€€€€€€€€€€€= ˆ€€€€ƒ6›6€€€€€FÀ €ˆ€€€€€€€€€€€€€ @»ƒ:€ˆ €ƒ=ƒ ›6ƒ.€€€€:À €€€€€€€€€€€€€€€aƒA€€‡= ‡  ›6€€€€€=Á €€€€€€€€€€€€€€:À €aƒF€‡= ‡  ›6€€€€€A €€€€€€€€€€€€€€=Á ƒK€a€‡=@‡ @›6€€€€€Fà €€€€€€€€€€€€€€A aƒM€€€ƒ1›6€€€ƒ:ƒA:Ä €€€€€€€€€€€€€€Fà €a€€€€›6€€€aa=Å €€€€€€€€€€€€€€:Ä €€€€€€›6€€€€€AÆ €€€€€€€€€€€€€€=Å €€€€‡= ‡  ›6€€€€€FÇ €€€€€€€€€€€€€€AÆ €€ƒF€ƒ=‡ @›6a€€€€:È €€€€€€€€€€€€€€FÇ €€a€‡= ‡ 0›6€€€€€=É €€€€€€€€€€€€€€:È €€€€ƒ=‡  ›6€€€ƒ:ƒAAÊ €€€€€€€€€€€€€€=É €€€€€€›6€€€aaFË €€€€€€€€€€€€€€AÊ ƒA€€€€ƒ1›6€€€€€:Ì €€€€€€€€€€€€€€FË a€€€€€›6€€€€€=Í €€€€€€€€€€€€€€:Ì €ƒF€€€€›6€€€ƒ:ƒAAÎ €€€€€€€€€€€€€€=Í €a€€€€›6€€€aaFÏ €€€€€€€€€€€€€€AÎ ƒ8€€€ƒ=ƒ ›6ƒ,€€€€,Ï €€€€€€€€€€€€€€FÏ aƒ?€€€€›6€€€€€0Î €€€€€€€€€€€€€€,Ï €aƒD€ƒ=ƒ ›6€€€ƒ8ƒ33Í €€€€€€€€€€€€€€0Î €€aƒK€€›6€€€aa8Ì €€€€€€€€€€€€€€3Í €€€a€ƒ1›6€€€€€,Ë €€€€€€€€€€€€€€8Ì €€€€€€›6€€€€€0Ê €€€€€€€€€€€€€€,Ë ƒH€€€ƒ:ƒ›6€€€€€3É €€€€€€€€€€€€€€0Ê €€€€€€›6€€€€€8È €€‡H0€€€€€€€€€€€3É ›D€€€ƒ=ƒ ›6a€€ƒ8ƒ3,Ç €ˆ€€€€€€€€€€€€8È ˆ€€€€€›6€€€aa0Æ €ˆD0€€€€€€€€€€€,Ç ˆˆ€€€€›6€€€€€3Å €€ˆ€€€€€€€€€€€0Æ €ˆ€€€€›6€€€€€8Ä €€ˆ€€€€€€€€€€€3Å ›A€€€ƒ=ƒ1›6€€€ƒ8ƒ3,à €ˆ€€€€€€€€€€€€8Ä ˆ€€€€€›6€€€aa0 €ˆA0€€€€€€€€€€€,à ˆˆ€€€ƒ5›6€€€€€3Á €ˆˆ€€€€€€€€€€€0 €ˆ€€€ƒ6›6€€€€€8À €€ˆ€€€€€€€€€€€3Á  @’ƒAˆ€€ƒ=ƒ ›6ƒ*€€€€6À €€ˆ€€€€€€€€€€€€aƒB€€‡= ‡  ›6€€€€€:Á €€€€€€€€€€€€€€6À €ƒaƒF€‡= ‡  ›6€€€€€= €€€€€€€€€€€€€€:Á €€a€‡=@‡ @›6€€€€€Bà €€€€€€€€€€€€€€= €€€€€ƒ1›6€€€ƒ6ƒ=6Ä €€€€€€€€€€€€€€Bà €€€€€€›6€€€aa:Å €€€€€€€€€€€€€€6Ä ƒD€€€€€›6€€€€€=Æ €€€€€€€€€€€€€€:Å a€€€‡= ‡  ›6€€€€€BÇ €€€€€€€€€€€€€€=Æ €€€€ƒ=‡ @›6a€€€€6È €€€€€€€€€€€€€€BÇ €€€€‡= ‡ 0›6€€€€€:É €€€€€€€€€€€€€€6È €€ƒ=€ƒ=‡  ›6€€€ƒ6ƒ==Ê €€€€€€€€€€€€€€:É €€a€€€›6€€€aaBË €€€€€€€€€€€€€€=Ê €€€€€ƒ1›6€€€€€6Ì €€€€€€€€€€€€€€BË €€€€€€›6€€€€€:Í €€€€€€€€€€€€€€6Ì €ƒ8€€€€›6€€€ƒ6ƒ:=Î €€€€€€€€€€€€€€:Í €a€€€€›6€€€aaBÏ €€€€€€€€€€€€€€=Î ƒ:€€€ƒ=ƒ ›6ƒ.€€€€:Ï €€€€€€€€€€€€€€BÏ a€€€€€›6€€€€€=Î €€€€€€€€€€€€€€:Ï €€€€ƒ=ƒ ›6€€€ƒ:ƒ5AÍ €€€€€€€€€€€€€€=Î €€€€€€›6€€€aaFÌ €€€€€€€€€€€€€€AÍ €ƒ.€€€ƒ1›6€€€€€:Ë €€€€€€€€€€€€€€FÌ €€€€€€›6€€€€€=Ê €€€€€€€€€€€€€€:Ë €€€€ƒ:ƒ›6€€€€€AÉ €€€€€€€€€€€€€€=Ê €€€€€€›6€€€€€FÈ €€€€€€€€€€€€€€AÉ €›"€€ƒ=ƒ ›6a€€ƒ:ƒ5:Ç €€ˆ€€€€€€€€€€€FÈ €ˆ€€€€›6€€€aa=Æ €€ˆ€€€€€€€€€€€:Ç €ˆ€€€€›6€€€€€AÅ €€ˆ€€€€€€€€€€€=Æ €ˆ€€€€›6€€€€€FÄ €€ˆ€€€€€€€€€€€AÅ €ˆ€€ƒ=ƒ1›6€€€ƒ:ƒ5:à €€€€€€€€€€€€€€FÄ €€€€€€›6€€€aa= €€€€€€€€€€€€€€:à €€€€€ƒ5›6€€€€€AÁ €€€€€€€€€€€€€€= €€€€€ƒ6›6€€€€€FÀ €€€€€€€€€€€€€€€ @ƒF€€€€ƒ.ƒ=‡R0€€ƒ:ƒF:À €€€€€€€€‡M0€€€€€€a€€€€€‡= ‡K0€€aa=Á €€€€€€€€‡I0€€€€€:À €ƒA€€€€‡= ‡F0€€€€A €€€€€€€€‡A0€€€€€=Á €a€€€€‡=@‡?0€€€€Fà €€€€€€€€‡=0€€€€€A €€ƒM€€€ƒ1‡:0€€€€:Ä €€€€€€€€‡50€€€€€Fà €€a€€€€‡30€€€€=Å €€€€€€€€‡10€€€€€:Ä €€€ƒI€€€‡.0€€€€AÆ €€€€€€€€€€€€€€=Å €€€a€€‡= ˜ €€€€FÇ €€€€€€€€ˆ€€€€€AÆ €€€€ƒH€‡=@ˆ€€€€:È €€€€€€€€ˆ€€€€€FÇ €€€€ƒa€‡= ˆ€€€€=É €€€€€€€€ˆ€€€€€:È ƒF€€€€€‡= ˆ€€€€AÊ €€€€€€€€ˆ€€€€€=É a€€€€€€ˆ€€€€FË €€€€€€€€€€€€€€AÊ €ƒA€€€€ƒ1ƒ€€€€:Ì €€€€€€€€a€€€€€FË €a€€€€€€€€€€=Í €€€€€€€€€€€€€€:Ì €€ƒK€€€€€€€€€AÎ €€€€€€€€€€€€€€=Í €€a€€€€€€€€€FÏ €€€€€€€€€€€€€€AÎ €€€ƒH€ƒ,ƒ=€€€€€,Ï €€€€€€€€€€€€€€FÏ €€€a€€€€€€€€0Î €€€€€€€€€€€€€€,Ï €€€€ƒ?€ƒ=€€€€€3Í €€€€€€€€€€€€€€0Î €€€€a€€€€€€€8Ì €€€€€€€€€€€€€€3Í ƒD€€€€€ƒ1€€€€€,Ë €€€€€€€€€€€€€€8Ì a€€€€€€€€€€€0Ê €€€€€€€€€€€€€€,Ë €ƒF€€€€ƒ:€€€€€3É €€€€€€€€€€€€€€0Ê €a€€€€€€€€€€8È €€€€€€€€€€€€€€3É €€ƒK€€€ƒ=€€€€€,Ç €€€€€€€€€€€€€€8È €€a€€€€€€€€€0Æ €€€€€€€€€€€€€€,Ç €€€ƒI€€€€€€€€3Å €€€€€€€€€€€€€€0Æ €€€a€€€€€€€€8Ä €€€€€€€€€€€€€€3Å €€€€ƒH€ƒ=€€€€€,à €€€€€€€€€€€€€€8Ä €€€€a€€€€€€€0 €€€€€€€€€€€€€€,à €€ƒD€€€ƒ5€€€€€3Á €€€€€€€€€€€€€€0 €€a€€€ƒ6€€€€€8À €€€€€€€€€€€€€€3Á  @ÔƒB€€€€ƒ*ƒ=€€€€€6À €€€€€€€€€€€€€€€a€€€€€‡= €€€€€:Á €€€€€€€€€€€€€€6À €ƒF€€€€‡= €€€€€= €€€€€€€€€€€€€€:Á €a€€€€‡=@€€€€€Bà €€€€€€€€€€€€€€= €€ƒM€€€ƒ1€€€€€6Ä €€€€€€€€€€€€€€Bà €€a€€€€€€€€€:Å €€€€€€€€€€€€€€6Ä €€€ƒK€€€€€€€€=Æ €€€€€€€€€€€€€€:Å €€€a€€‡= €€€€€BÇ €€€€€€€€€€€€€€=Æ €€€€ƒN€‡=@€€€€€6È €€€€€€€€€€€€€€BÇ €€€€a€‡= €€€€€:É €€€€€€€€€€€€€€6È ƒM€€€€€‡= €€€€€=Ê €€€€€€€€€€€€€€:É a€€€€€€€€€€€BË €€€€€€€€€€€€€€=Ê €ƒK€€€€ƒ1€€€€€6Ì €€€€€€€€€€€€€€BË €a€€€€€€€€€€:Í €€€€€€€€€€€€€€6Ì €€ƒI€€€€€€€€€=Î €€€€€€€€€€€€€€:Í €€a€€€€€€€€€BÏ €€€€€€€€€€€€€€=Î €€€ƒF€ƒ.ƒ=€€€€€:Ï €€€€€€€€€€€€€€BÏ €€€a€€€€€€€€=Î €€€€€€€€€€€€€€:Ï €€€€ƒA€ƒ=€€€€€AÍ €€€€€€€€€€€€€€=Î €€€€a€€€€€€€FÌ €€€€€€€€€€€€€€AÍ ƒ=€€€€€ƒ1€€€€€:Ë €€€€€€€€€€€€€€FÌ a€€€€€€€€€€€=Ê €€€€€€€€€€€€€€:Ë €ƒ<€€€€ƒ:€€€€€AÉ €€€€€€€€€€€€€€=Ê €a€€€€€€€€€€FÈ €€€€€€€€€€€€€€AÉ €€ƒ:€€€ƒ=€€€€€:Ç €€€€€€€€€€€€€€FÈ €€a€€€€€€€€€=Æ €€€€€€€€€€€€€€:Ç €€€ƒ=€€€€€€€€AÅ €€€€€€€€€€€€€€=Æ €€€a€€€€€€€€FÄ €€€€€€€€€€€€€€AÅ €€€€ƒA€ƒ=€€€€€:à €€€€€€€€€€€€€€FÄ €€€€a€€€€€€€= €€€€€€€€€€€€€€:à €€€€€€ƒ5€€€€€AÁ €€€€€€€€€€€€€€= €€€€€€ƒ6€€€€€FÀ €€€€€€€€€€€€€€€ @܃F€€€€ƒ.ƒ=€€€€€:À €€€€€€€€€€€€€€€a€€€€€‡= €€€€€=Á €€€€€€€€€€€€€€:À €ƒA€€€€‡= €€€€€A €€€€€€€€€€€€€€=Á €a€€€€‡=@€€€€€Fà €€€€€€€€€€€€€€A €€ƒM€€€ƒ1€€€€€:Ä €€€€€€€€€€€€€€Fà €€a€€€€€€€€€=Å €€€€€€€€€€€€€€:Ä €€€ƒI€€€€€€€€AÆ €€€€€€€€€€€€€€=Å €€€a€€‡= €€€€€FÇ €€€€€€€€€€€€€€AÆ €€€€ƒH€‡=@€€€€€:È €€€€€€€€€€€€€€FÇ €€€€ƒa€‡= €€€€€=É €€€€€€€€€€€€€€:È ƒF€€€€€‡= €€€€€AÊ €€€€€€€€€€€€€€=É a€€€€€€€€€€€FË €€€€€€€€€€€€€€AÊ €ƒA€€€€ƒ1€€€€€:Ì €€€€€€€€€€€€€€FË €a€€€€€€€€€€=Í €€€€€€€€€€€€€€:Ì €€ƒK€€€€€€€€€AÎ €€€€€€€€€€€€€€=Í €€a€€€€€€€€€FÏ €€€€€€€€€€€€€€AÎ €€€ƒH€ƒ,ƒ=€€€€€,Ï €€€€€€€€€€€€€€FÏ €€€a€€€€€€€€0Î €€€€€€€€€€€€€€,Ï €€€€ƒ?€ƒ=€€€€€3Í €€€€€€€€€€€€€€0Î €€€€a€€€€€€€8Ì €€€€€€€€€€€€€€3Í ƒD€€€€€ƒ1€€€€€,Ë €€€€€€€€€€€€€€8Ì a€€€€€€€€€€€0Ê €€€€€€€€€€€€€€,Ë €ƒF€€€€ƒ:€€€€€3É €€€€€€€€€€€€€€0Ê €a€€€€€€€€€€8È €€€€€€€€€€€€€€3É €€ƒK€€€ƒ=€€€€€,Ç €€€€€€€€€€€€€€8È €€a€€€€€€€€€0Æ €€€€€€€€€€€€€€,Ç €€€ƒI€€€€€€€€3Å €€€€€€€€€€€€€€0Æ €€€a€€€€€€€€8Ä €€€€€€€€€€€€€€3Å €€€€ƒH€ƒ=€€€€€,à €€€€€€€€€€€€€€8Ä €€€€a€€€€€€€0 €€€€€€€€€€€€€€,à €€ƒD€€€ƒ5€€€€€3Á €€€€€€€€€€€€€€0 €€a€€€ƒ6€€€€€8À €€€€€€€€€€€€€€3Á  @ÔƒB€€€€ƒ*ƒ=€€€€€6À €€€€€€€€€€€€€€€a€€€€€‡= €€€€€:Á €€€€€€€€€€€€€€6À €ƒF€€€€‡= €€€€€= €€€€€€€€€€€€€€:Á €a€€€€‡=@€€€€€Bà €€€€€€€€€€€€€€= €€ƒM€€€ƒ1€€€€€6Ä €€€€€€€€€€€€€€Bà €€a€€€€€€€€€:Å €€€€€€€€€€€€€€6Ä €€€ƒK€€€€€€€€=Æ €€€€€€€€€€€€€€:Å €€€a€€‡= €€€€€BÇ €€€€€€€€€€€€€€=Æ €€€€ƒN€‡=@€€€€€6È €€€€€€€€€€€€€€BÇ €€€€a€‡= €€€€€:É €€€€€€€€€€€€€€6È ƒM€€€€€‡= €€€€€=Ê €€€€€€€€€€€€€€:É a€€€€€€€€€€€BË €€€€€€€€€€€€€€=Ê €ƒK€€€€ƒ1€€€€€6Ì €€€€€€€€€€€€€€BË €a€€€€€€€€€€:Í €€€€€€€€€€€€€€6Ì €€ƒI€€€€€€€€€=Î €€€€€€€€€€€€€€:Í €€a€€€€€€€€€BÏ €€€€€€€€€€€€€€=Î €€€ƒF€ƒ.ƒ=€€€€€:Ï €€€€€€€€€€€€€€BÏ €€€a€€€€€€€€=Î €€€€€€€€€€€€€€:Ï €€€€ƒA€ƒ=€€€€€AÍ €€€€€€€€€€€€€€=Î €€€€a€€€€€€€FÌ €€€€€€€€€€€€€€AÍ ƒ=€€€€€ƒ1€€€€€:Ë €€€€€€€€€€€€€€FÌ a€€€€€€€€€€€=Ê €€€€€€€€€€€€€€:Ë €ƒ<€€€€ƒ:€€€€€AÉ €€€€€€€€€€€€€€=Ê €a€€€€€€€€€€FÈ €€€€€€€€€€€€€€AÉ €€ƒ:€€€ƒ=€€€€€:Ç €€€€€€€€€€€€€€FÈ €€a€€€€€€€€€=Æ €€€€€€€€€€€€€€:Ç €€€ƒ=€€€€€€€€AÅ €€€€€€€€€€€€€€=Æ €€€a€€€€€€€€FÄ €€€€€€€€€€€€€€AÅ €€€€ƒA€ƒ=€€€€€:à €€€€€€€€€€€€€€FÄ €€€€a€€€€€€€= €€€€€€€€€€€€€€:à €€€€€€ƒ5€€€€€AÁ €€€€€€€€€€€€€€= €€€€€€ƒ6€€€€€FÀ €€€€€€€€€€€€€€€ @áƒK€€€€ƒ.ƒ=€€€€€ˆ €€€€€€€€€€€€€€€a€€€€€‡= €€€€€€€€€€€€€€€€€€€€€€ƒI€€€€‡= €€€€€€€€€€€€€€€€€€€€€€a€€€€‡=@€€€€€€€€€€€€€€€€€€€€€€€ƒF€€€ƒ1€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒA€€€€€€€€€€€€€€€€€€€€€€€€€€€a€€‡= €€€€€€€€€€€€€€€€€€€€€€€€€ƒF€‡=@€€€€€€€€€€€€€€€€€€€€€€€€€ƒa€‡= €€€€€€€€€€€€€€€€€€€€€ƒR€€€€€‡= €€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒA€€€€ƒ1€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒK€€€€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒH€ƒ,ƒ=€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒ?€ƒ=€€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€ƒD€€€€€ƒ1€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒF€€€€ƒ:€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒK€€€ƒ=€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒI€€€€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒH€ƒ=€€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€ƒD€€€ƒ5€€€€€€€€€€€€€€€€€€€€€€€a€€€ƒ6€€€€€€€€€€€€€€€€€€€€€ @ÒƒB€€€€ƒ*›6 €€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒF€€€€›6 €€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒM€€€›6 €€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒK€€›6 €€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒN€›6 €€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€ƒM€€€€€›6 €€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒK€€€€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒI€€€€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒF€ƒ.€€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒA€€€€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€ƒ=€€€€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒ<€€€€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒ:€€€€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒ=€€€€€€€€€€€€€€€€€€€€€€€€€€€a€€€€€€€€€€€€€€€€€€€€€€€€€€€€ƒ:€€€€€€€€€€€€€€€€€€€€€€€€€€€a˜˜ ˜€€€€€€€€€€€Œc€€€€€€€€€€€€€ˆ €€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€ @ ƒB€€€€ƒ*ƒ=€€€€€6À €€€€€€€€€€€€€€€a€€€€€‡= €€€€€:Á €€€€€€€€€€€€€€6À €ƒF€€€€‡= €€€€€= €€€€€€€€€€€€€€:Á €a€€€€‡=@€€€€€Bà €€€€€€€€€€€€€€= €€ƒM€€€ƒ1€€€€€6Ä €€€€€€€€€€€€€€Bà €€a€€€€€€€€€:Å €€€€€€€€€€€€€€6Ä €€€ƒK€€€€€€€€=Æ €€€€€€€€€€€€€€:Å €€€a€€‡= €€€€€BÇ €€€€€€€€€€€€€€=Æ €€€€ƒN€‡=@€€€€€6È €€€€€€€€€€€€€€BÇ €€€€a€‡= €€€€€:É €€€€€€€€€€€€€€6È ƒM€€€€€‡= €€€€€=Ê €€€€€€€€€€€€€€:É a€€€€€€€€€€€BË €€€€€€€€€€€€€€=Ê €ƒK€€€€ƒ1€€€€€6Ì €€€€€€€€€€€€€€BË €a€€€€€€€€€€:Í €€€€€€€€€€€€€€6Ì €€ƒI€€€€€€€€€=Î €€€€€€€€€€€€€€:Í €€a€€€€€€€€€BÏ €€€€€€€€€€€€€€=Î €€€ƒF€ƒ.ƒ=€€€€€:Ï €€€€€€€€€€€€€€BÏ €€€a€€€€€€€€=Î €€€€€€€€€€€€€€:Ï €€€€ƒA€ƒ=€€€€€AÍ €€€€€€€€€€€€€€€€€€€a€€€€€€€FÌ €€€€€€€€€€€€€€€ƒ=€€€€€ƒ1€€€€€:Ë €€€€€€€€€€€€€€€a€€€€€€€€€€€=Ê €€€€€€€€€€€€€€€€ƒ<€€€€ƒ:€€€€€AÉ €€€€€€€€€€€€€€€€a€€€€€€€€€€FÈ €€€€€€€€€€€€€€€€€ƒ:€€€ƒ=€€€€€:Ç €€€€€€€€€€€€€€€€€a€€€€€€€€€=Æ €€€€€€€€€€€€€€€€€€ƒ=€€€€€€€€AÅ €€€€€€€€€€€€€€€€€€a€€€€€€€€FÄ €€€€€€€€€€€€€€€€€€€ƒA€ƒ=€€€€€:à €€€€€€€€€€€€€€€€€€€a€€€€€€€= €€€€€€€€€€€€€€€€€€€€€ƒ5€€€€€AÁ €€€€€€€€€€€€€€€€€€€€€ƒ6€€€€€FÀ €€€€€€€€€€€€€€€ ..::Drozerix::..(0@  êÀáÄӏ þÿÿ?š8÷àÞ-€þþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþþ(@ @ /@/!(6$ @F F F F (6$ÈÈ@€€       æ Girl From Mars(1@ 0&" 1?I Sdn (2 < F P Z d n x ‚  p@€à…„âî^XH“ÄÂÆxD_å -šŽ¬è/Ññ óâ眮ÚEè;ûÁíŠøÍè3Í{ù)#7òçÛÑÙ·ì õrÜVIå”ö™æ hÇsøáÍ Œ÷è÷¹õèG$ þ1 'ïÏ,×øöæÿâ÷åÑ*Á çïý&ø ÔVÈ6ó-÷ÿüèøöñÜïñüâåöïßùøýû$  ý  øïñþäñññüñòðòüûîÿÜ èúû û   þ  ÿÿüôûýñûýôÿóñûüïüõýñ÷üôõ÷ýó÷õ÷÷üûú    ÿ    ÿüüûüûýûüýûýüûüøüüûýûýüôÿøýôÿò÷üûôÿøüûúüïÿøöýþüûüþ ÿ ý   ÿ   ýûýüûüûýüüûýûýüôüüüýúûÿòýüûÿûüôûöúüûüûüýûöüþüüþ ý  ý ÿ ÿ ÿûûýüüûýûýüôüüüýúûÿòýöÿûüûüýûüûüþü ÿ ÿ ÿüôüüüýúûÿòûüûÿûüûüýýý ý ÿüüýúûÿòûüûÿÿÿ ÿûûûû(1@&" SSSSdn (2 < F P Z d n x ‚ ÐÐ&ä€$¶…”Ûœ•h—š äÅhŠå‰±ßÓ!œÐæ2Ï{· ô%&‰.F,žª,"à¬ÃL뀫¢@Ò¯Qé† sò®fëŠ_^Š5°h­¥oQ÷4ÔuhKšÛµ'a!"6g‘·BE ûˆÿŒNwPZPcêŒmúÉ8Kó­ 廊Ϋo§ Š“9H8 ……f=E)íÏÔì:_ Ýj‰R×HäžbeÊþYÕ72è5Î產, XõŽ;±#°Š÷ƒÁÐŊ¯š®•Ü"†µ ʺat0|n0è:Êì yIИ7û[?€b{ðO©™ù£ªÞÌm6"”Àd›Ò0µâÞ .Ž€[VŠ}J¹Rð¬PgQÖ§ÁÜ2:£@ª*2(ò<Çk¥JzØá]û^-Ÿ&ßÿ³aC€yŽŽ©‡Iôß&^p÷!³×Ӆ9µGž~ø"cͬžj;‰K”åWÃÌåõþ‚¹ÿ\à›š²Q9_mÁIÜbtsZ¢Ë:-u²…]„;jㄿײA!Iuq|›Íªü-iM°wÏm‰ ña€+š3B̆з’«éjVq°Æ_ŠØ`JÕ¯ÚM‰ýªLŒòš0pô\‘²8Ç/ÎLýʝëxÚA‰ÈÁ?TQo¿C»:ÂJF’{ÒçUàéñ°y˜kzï®7}ˆ(Žâ/3€yœÃv'N‘ãއóÕ%ŸŠ|¢ÞŽ&æÆ³3ê"³té`Ž5š°Sñ³Äº$£išK"€C‰æ©šiæÞQw0ÃÙè­&[ '¿—rÙ®ÁFÚmçK&÷¯IÇ,që±{Öö5œ[’¿ÔAK ¿ã^óV@þçžÅ®Kõ3hOÍ#š©‚îoÀ4ä@V^ +¡Äó‡í8Gßk2–k ]Äl'è%K[o„£î€^“š!§š¬î¬Ö1®mAÀ„ïBªï¯wz‰WÚ ýºä¥¥|»©M'Oâz+\ãn‡ŽFª¯A7©mga5}Þ²¥;͆͞<@"¯Îºû!l͹«7ä(Ä"Ÿ %‘ìúÿNÛ©ŒÉ‘k–39³xI­8ÚGzYŠh¬À"Á?à§lOQIº,Om©Œ2OFÓ¥Êï°­¹¬ºóÁJÏ$ƒ®£:Gž³,I„ç’YÈʚ×Ÿìî‘/vœÇXž?«”z€/>Ù¹'[#Ó‚–:ª5˜‹Ž úÐë]èj[Òl†âfž¿—Ý t4ÁG7î+™"\Îï7=%»UK˜æ7³Ü>¢Š2†Y‚ûc×Ékg¬8íuåšWGò|­žˆ ÷¢E/ÖÄ$É)˜šÃÚL—}Çž2œ`gÛýx]¡Ã°¹­!Þ#&Ô·Ÿ—0ªìIÃҗëü¥Ÿ«]¯Òè· CÄe{¯ï#ϙ! ’®+)"»œ¡œžŒòŠ.p`· Jœ\„?!ši.WŸ¶V=ÞbrÛîì˜TÔSPy€1 ;Š7Ÿ„öhëýp0QZ#‡€#×##¿fN¹ÔÆý/}r/Ï.-ٚš¥Çü"<ÄÌeÑúBšnYÏ{2GËØÒÒÕÐJ­³«Ù‚} ·º–Ÿé©\ڀFÞ ëÃ#->˜¥ß[+WJ£.ôâª!xiŒtK»^X—û5±ç"ƒÖ?ršùÕrEl×'až‚£˜ûñß — Gt<mž²ãE rÊed£ŽÁâˆtQ*ØGßJՍþßÅž.ñXŽk˜$Š¢eÿ-Ì}"÷ζú«–;‚ðêKʧnêŒÉIӃbè®Xίâ`jÀtsÀD{·BsÞ±•¹ÄʑEUö÷?ucöÒê‰"0žàx(ç=ÎÛ á>l!Säh9d®þ!;ƒ úÆNȚÕ»ŒN?Ö£o°Ã"Ꮁä 8ê[{ؔòÕNíùj`æ”Âo³Š©ïE™ªœ3ŽÓŒU÷jî:©AÜ¥I™Y)"(Y(«:ß ÔߛQ LJð%<[Ið'ɳË)ˆQS%Š3Ò{šxŠ Q±À †€æÐ;ÏÊ<˜< »ípˈ:ï‹DŒž“ÒÇ+xŠè,¯q>'u CŐ['âGïç{HHÌßA °ÙøRspšÎ» <9eLxÓ†@,È‘©Ø€Œ«…gEªøÁÛςQû8 26/7©Š5¯Qãù£¹ó|oÐÙ°;2·ß~æ·Y‚Ûšu’fsë0ÂrEãWíF›Wáš1…€w5º£k?¡t,Hmº h³0Â՜n+°‡B£EƒØ áƒa—Ÿ¢;0‚O‘'‹±kždì Íœ›ºÆ0(J_º˜pýŸ¬D;¯z,#’°-Ý·EŠŸhUž<«ÿ—î°ž­|ÖÇÑâÿXܝ€:ý?T-ME;‹h†N–-Õmþ"Ãyñ„ù?f^Ö fîfz¹3 q“aîuôD5ì•z-ú ÃnÏ>kBzWœúD W (0@*B@êÀáÄӏ þÿÿ?š8÷'@äTûýúùõóëìó÷    $öêêíõòöûàÙÿúïúùîþöýû $3#ëÊÓ 11 èÛî çÔàó!% ÙŸå óî óûä* ÎÓ)þÝö÷Ùú êå#CÆâ0[ÿÎÛö߯¯È÷Ù ì:üëÝcE ïÖcɹ5I¬Õ#ïðáÔö(ïÚ¯ñ8ÂE!š—hœaƒ[ÿÐ:$ûÌÕîÎÄìJºæ.÷ôåú-(ùÓÊéçø'Q0 ôÜê ðó6ôÍ+áö÷èŽ, áÖò.Íßð(/ êÂì áï"$ßËâ ÒÔòÒìù#7PDÿáÑ»žÝ.#éÌøíòñ?å òè!>ø $ ÌÀaÿžÂä% = sÊ?Q3ûÎËå'= œ3ÁÀ /(ûàâ õÜòñÒÙ)ë×KB Ê¡ÁóBÊÊô…Æ÷ ÊÙc"ëÆÔ÷ÄnÒ÷÷©JIÛ§ñæý ,6ȯꊹ[GêÏÉwìt~ú«Ýòö/LᎳü-SX à× !芣í6CóÜ*BӃô]tÊÉúâ£fÝö !*ôÝØúýû ûùõܯúf ÙúÅÖåò$3üÊå)0è 3!÷œžï/= ÷ÓÊè@+ èÏæ'0èÆõ÷ÓÔ!èØåþ/Y^ žš?7 ûŒÍ í×ù<·¶ èÎó*B!윌ü(!úó3%ÃÇÙ-y6ížÊøœÝ:/%%ҙÑùBr ÿÊÿ¹ÖDd¥³!\!Ôï"%öÁŸ (áÂê1Z íåÚðãà!5ò 2öùÿÎѳ°e™ɕú@1êÓÓÜQOîîÜÜéåi?Ò¡ë)þßêîžô8Q7  Òµüþ"'ûô€pþ>r$ÔêûÙØ& ó"?ç˜ß-6#ûý!6Ê«ÄøP_ ££ T%ÀÁ? û îî öœßä*"'9ÛÙ åßåÐØ%øèÕÄì!$D¬×GN쬮ÖÝüs„ŠƒNõÛàåäåì2C- êÉŠôjFŒë8.ÿîðúåÝ)Kâ³Ã<ïÆ³ôYê Ÿ±'I*ß·Ü1 "'үР'.0ÚÀåãØC26àcŸ>C??àÇH6 ßÁÁËE~/ÄÅ"7 û§ 5 ǰI#ÙÊì "ùàÖú AèïÅÐ* ô3 ÓÊê úóøèêìK; íÓÜKL&üÊŒß÷òÙëú)CÊ·þ3 ØÂ6- öëáþ$êîé B;ÊÓò ô÷èù=Q)ùΩžë3TQ ó—µé$P!ר/èÏÓøúù òØô6B óéÌÜ'ùî íò ýî40íò/àÒ R5ߺ§ô5]:ÿõì×ö+ÏŒW<øŸœÂ AhGåèþºÅ6h ŽÖøåß÷-òýö ζ WSýÂå ïð òúúõìóöôúý÷Üïöë:.ÊÔ7+ÉÕöíû) ÙÎçòú õ0úî+æÒ:ëíøüùì÷1æÒî %5×ðëÛ×ÒÙZYåÛÔî áú#Ù¡ã Ýú÷åüéå 33ðÅùèÐ:íÐß  ø?2üàÊÝóÈÄ0ëÑñ9 ù ßä ÿî  øê÷ úðîüèóóõòõ ó÷îåòáÊ6š¹-!óî6Hï®Îö 6=ú®å63ïäêæÜí*O3øÙ·¶÷!(P0螊úJTÉÏ=¢¶JQ .œÀ6Öÿ(æ±Â )*6áŒýïè ü÷ ýõ÷ëî4+úåëöòù(óòâÅØ$ îÿ,âê6 áè桯IW»Ô3C ÎËýèæ/$ìä $ ñßôóéîïü úòý4ôÆBè Šzë8@îÉîãü31!èèùÛÆ-ó»)êó' ëóàØüò ûØà-îÕòîßK"Þæ2íËØÝß!BüÐé<<øêûîóضPXÇÙýûLgÍšŒF8 ïð ͰúJ7÷ûåÅÐëú%öµã/å5øú+(ñŒžë#3úÅë;2éî äø,áóÊËVH6 íõäÑòùÜåúòÞñôþû úó óúòÏÑ#^¶×-$ðîëß$ úÊŒúE4ëåóßò ßëõù(; ßîåÐî06òóì÷ - ͯÎ+,òäîìÐñ6¯úBS=ÑÍú ÛÞ(îð îØþ)ÐØø÷2÷òôíý*Ú©Ø'7ÛÝ#4 ÷ýÙäßÅù0-Ķ?-úùþî÷Øà $HÝðþòüùÓÄ÷ ! Ùåååõêôìå÷(åå ó÷$ôêÉ×!6öÐñ$:Ùê÷ ïÒÝ6"&!ûßßÙâî! ŸÏ, ÝÊá9 ú$ç èåüþáÜ7b7ó²Çèò 9:ÔÃÞ%&'ûÞåðùòîê%#õàØò$;ÝÆ×þ5øòñÛâò! ýÛáúïú!ðâþ ý óî÷úóø# ùáÝìùÛ×ø!ûÍÙ ùåŸÊ"qdöÓûóÊÓ &÷ÏÆü"î÷ìÑ÷3ÜÞûáè!7÷'Ù±Œð.÷Ó$ ÷ò#úíñ éë æá0* ï÷ê¹ê çï ì×ó)1 åÓâõ  ýãú&!ß»Ðú!0î ìë åÓï#åÎE=ŸÛ%ðöîåÎü:)ýõ úåòòð !*ÙÐÞÑÓ4$4±•ÃQ)æÜ2!ðáùèâAÈòD? àÙðúßä *èáïüþîÜî)6 îúëô ü÷ óñ;ÜïñÓØ0îýôí "ìµå"6)ïëôÿòîù ó ÞÑ÷*ûÉå÷øêÚ1)÷ûåÊÙ÷ö÷(5ï#ïìáØ(ÔžúHT/÷ÌÛóè÷) ÜÔó ûÒ× )îî!òëóôÜè%,øíúøÿ úôê(æÓßó !  ï×Ó÷ ëßù(1öÞûíïóòùþ õ óÓë üø òç÷úû   ç×÷úí×@Ñé)( äŸÎîñI2ôËÓíýðî'üÛë öôóñø&6ïëðååîø ü÷õóïöòÓÊë-!ûó  òåâí Üß5àß;$éÞÚê<#÷ë×Êü0ååîåøúæó÷õ)ïòîê!òðè!'×Þ! ïåúüûåÙí÷æ /"ë×ù æö ÷ðôú Ùßù -- êÚØÓÝ0 óò åá.àë#×Üù  ôúõáßüúô ùòîóèêû!"ûìäåù!øð×Þõë'*úõçÖÚ (î#/ ÉÅùÓÜ " ûôòßôô÷"ûÑ×  ÷ûýöúó ðåî úø úðù' çéëà() ðßîòâö!<(äßäóÅê(6, ìÜó ìâòö66íÜèíãò ü÷ õÎÉú$'ìëù þòù ôéü úùüä÷ü//ê·Ðûû'ùå #ò£ŠûHE&ðÖà÷à )òëî øìïóþý üËÍý#  îï -ûÖÞòûô" ôèüâî þøöï  üéæ(#ýïù øÝÙåÿ.3ùÜò)-ø×ïîå ú  ìÎà÷ü!(#%èëèÓå' îîøÿ#!ìïòïî÷ ô÷ûùåú-$þõÙßý óòÜÝ#ÝÜ:Ëí("öíû÷úûÕáë 65åÞ÷ñåò.#î×÷î÷ ä×á 6-ûóåøíå'/ âþüÜò óôòÿòîó!íòùñî$îíú þëüëú/7 ËÄ÷ öÝó ëàò"êÞôå× 2-èÂÌéöø(! ÷úóåøüåòÿòòè/õÜÝêò!"îò úÓå )6ËÒ -ýûñô àÏô')ëÃÔ éý úùû÷óîý ú)òÓÞú$õéî÷øçåò ùúåÿôé ûýù óàå  ú%õêëîêæ ùÛ×òùú ú øóîëòåá /ü üùúòò÷ùõõýÝð ûî÷Ùå ë# óû ìçòÿ úçþ öåóõëó ÷úòëî÷ú ûìë üíæíò" õê÷óåû.5ûÆÝ #úóììó  êáü÷%#îÈÐù èÎùúî-=âרûûäíèÜü!' óòïáú%àçîì÷ô%%ùóüüáß'òç÷ øõÞÜî & ÝÑâ !ïßñ ûðòùõ ûôõó÷ò ôÿôøúûþøöýúøú ÷ð÷ûä÷ ò /$ òÓÊï! ðëüøóûúùþôåê1 ëìô % Öß  ÷àî æå÷óò0ñó óÏß/ àôîÿßä÷óô  þÒßûÿû  øòõìýÚô üúõçïñóêß÷)ù îËÓó û ãåöý  öëíë() ûýóåî óú÷àñ0þûþçÜë  ãà÷üååþýú øäúù4Ìå(7ûÈ÷%õÓó !ÿÅžÜKCÉÑ÷û"$âÄÙþü èäãèðõ ûìâòõù  å×ë öÿîê òäî  ÷Ýßó íø ÷âå ýúûùäßüâåòúåêû  ûëåíüþüø'çÛëñè÷ùõý ûÿ ûÿúòùõ÷ú âî÷ú ëÓú-ñóßû îë÷îëò øóòóþ úùþü  ÷åî ïßåô úø öëõ÷ üøóþÝÍå%þÝØò øö÷ô÷ò÷ïúû÷îùîó øååó  úûñèåøößåúùòï ýìô  þøúîóúåë#. úüíàùôó (#ôåýîñ úî÷ óìèÜó ù÷ ùú  úû÷ëñû÷Ýóôäô ø2,õã÷ôõòú ôâò  ÿøöúø÷ûúüååùüö òëøòöúëó øèùñíûú÷ü ýïðû åë öíî$ûßâþóòýìç÷# ö÷òù  ùúöô  ù×á#Ýå #ðëóìü#ìÖá  ìéù  ó÷ þò !èùóäý Þè$&øÖõ÷ù ðØæÿûîøúî ÷åó õÿîý òÿóà÷ áÑý#û÷ïòóòúôñüûýü éê øØå 'èáòìëþ ôúòôöø ó  õé÷ùõûþüüö÷ûôúóìóüïàóû ùõ ëñùëé., öèðûíïôà÷ óòíï û÷üéëöÿîë ÿ÷ïíû ü÷ûýü ôòöýúø %÷ÚÞîþ ì×ò íò÷ëòüý÷çþ èèù÷èø$þòçú õðîóþ úëûóòù÷  ÿæî û ûüýõ÷ ýêìýú ùåéõ÷ óõùò*!ðìó òäú ûüýòö ÷üø îó÷û úó÷øú ÿúý ôúî÷úûîôþþü ýú ÷éî  üøôóïìåôþ÷ôîú üïúÿïÿ ÿô øÿ÷øÿ ÷ùüé×ó# ûìäóüúüÿï÷õó ôé ûùòÿýüúò÷üú÷ûýýúüø  úý üòóøüú ÷ýõóò úíãæÿ ùòó ùòùøîêû üÿòóöóúûýüúøýúëà÷ ó÷øÿ øóòûúýýöø øî÷ òëúóåò û÷öø ýõùùúúéò úýû÷øü ô ÷úüýñîíôú þñèëÿ ÿûóýøÿîîø÷õïñîýøüýúûúøêõúô úô úóïú òëú ýûóú  ÷ýúô÷ò!#Ýó òïúüûùûù  öëúöö û÷ñóû ïú õóòüþ ôòóõ öô úùõ  ùòôÿ üþòî÷û÷ò÷ü ûù÷ýüüøø÷öý   ùøöòù  ûúöù ùöóú ëç úùúòù û ÷ï õúü ùòù öùúóê õööî÷ñóú üöýôû íðùòö úóø óú îúù óòüîêò  ÿôòü û øÿïñ  øÿ÷øú ýõúüöúäë  úòýøúùþ  ûöúúôÿ ûõî÷îø ûåê óåø úðú úòî÷ ÷üûúýúôúù  ýõóýîòÿ îñ øóñø ùõùûøú øúôúñöýüïó õû÷ö øîî÷ ëò  üòýúîðú úòÿûý úüþô÷ ø÷úüüøÿ ùòú ùúýûÿ ÷çñ  û÷ùûûùúú üèë÷ü  ôòüôúù÷û ÿûùþþüþü  ÷ïîÿ ýóè÷ ûý ýîìóÿô÷úýòöýû÷úùû úë ýü÷ øíò þ ÷ýûú÷ù ùûû÷üòó  þõöü ûóû ùëú õþüöôôóùïú õþëìëú ÷øúýôú úúù ôñü ýû ÷ø öò÷ óìü ûûÿôþ öòù üòø õìöùû  ûþ÷ïú þùüûÿ õöúü ûõîû ûöóû úü ÷ø õööø ûï õöúüû üóöü üúüüüóúùú ùõüÿûüüýûû÷ ÿòõõðôú øÿ õìò ûþþõò  õòõôõ ü þõûøöý ÷îô ûùûûúóý ùú÷ü÷öý ýöý ø÷óû÷î÷  ïñùû ýúøúüý ÷î úðú ÷ò úóûøñ ô÷üúýøüþüýûúý ù÷úÿûÿûüò÷ýü÷ôùòúúø ûôóú û÷ û÷ôú÷þüýýúùþüý ûó÷øü øî÷ ú÷óý ùòüþùûÿûüò÷úù øú úóûÿùú ü÷û ýüü÷ú øúüý õ÷ùû úòùþùþ òùøüùû÷öø ûùþôúýö÷ úûøüûýûøÿùõ ûùõùúú òòýúôþ  ñíø÷ûüöøú ÿûüýúøúûýûÿûÿôûÿ÷ûûú üüùïóû ûùüòøóòüý û÷ þøöòý ûúüÿ÷øöùû øÿ ü÷÷û üòý ùùúûû ùþûööý ùóûûüúüüþüüøÿ÷ýýýûü þüûüüÿû õüúü ùòüùõ úùôõ ûööøÿõ÷ýõýû÷øúúöôÿûÿûÿûùö÷ þþôú ûùþ ÿÿûýûÿ ü÷øüøÿÿûûÿøúÿûøúüúýûüþüõóý ýîòúôÿú÷ úùúôú üøüø û÷ôÿôýóûþôòÿýõù øú ýòö üúôú üþüùòúýóúò÷ü øúÿûû÷ü øôó ûùúýøúôìùøòöýýþüøÿûýü ü÷ûýû ÷úùõ ú÷ù ýüúøÿ ÿøúùúüýöøü÷úÿûýýóõ üøüþôÿýûÿ øüúý ûñù ø÷úüûýûÿôòýûÿô÷û ÿûõù ÷òùû ûùûúøü öøúû úôûÿûôú üû÷ý üÿûûüýýûÿ÷ýüýú úöùýûü÷øÿ ûüúüüüúüû÷ýû üüúôú þúûûþüüþ÷ûüýû üÿøöùüû÷ý÷ø÷ùûÿüö ùöÿÿûüýû ÿû÷ýûú ÿ÷ýû ÿûüøýûÿû ÿûùúüýüýÿ÷øÿúùúøú Composed By: Drozerix(@)  &@'@< BãÀáÄisþÿÿ?š8ÕÍÈÈ@€€Date: 12/20/12(0@, ãÀáÄisþÿÿ?š8Õ ;< F ãÀáÄisþÿÿ?š8ÕøÈÈ@€    ÿüøüû÷úû÷úöú÷÷÷÷÷÷÷÷÷÷÷÷ø÷÷úùúøúüûüþ     ÿüøüû÷úû÷úöú÷÷÷÷÷÷÷÷÷÷÷÷ø÷÷úùúøúüûüþ