Subject: ComParser 0.68 GNU/Linux support From: Casey Marshall Date: 28 Feb 2003 14:27:01 -0800 --=-U/YIgeQ4yFyYgHUTFUye Content-Type: multipart/mixed; boundary="=-zgoeTVfZ5oZ/AWw9kRvd" --=-zgoeTVfZ5oZ/AWw9kRvd Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I don't know if you are still developing ComParser, but I have been experimenting with it on GNU/Linux using the Advanced Linux Sound Architeture (ALSA) for MIDI support. I have attached a patch that implements MIDI I/O and console support for GNU/Linux, and adds automake/autoconf support. The MIDI support is done (as I said) with ALSA, and have included two versions of a console input implementation: a polling version very similar to the IRIX one, and a threaded version that uses GNU Readline for friendlier I/O. I have also made a few modifications to the canonical sources in this patch to help it play nicely with my additions, but I can't say if they break on other platforms, however.=20 In any case I have had some success with ComParser on my GNU/Linux box, and wanted to share these successes and give my thanks and support for what is a very cool program. Cheers, --=20 Casey Marshall < rsdio@metastatic.org > http://metastatic.org/ --=-zgoeTVfZ5oZ/AWw9kRvd Content-Disposition: inline; filename=cmp-linux.patch Content-Type: text/x-patch; name=cmp-linux.patch; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable diff -Nru CMP0.68/AUTHORS cmp-linux-0.68/AUTHORS --- CMP0.68/AUTHORS 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/AUTHORS 2003-02-19 22:27:49.000000000 -0800 @@ -0,0 +1,5 @@ +The original authors, listed in the file "index.html". + +Casey Marshall + GNU/Linux MIDI (ALSA) and console support. + Auto-magic build support. diff -Nru CMP0.68/CMP.audioVD.c cmp-linux-0.68/CMP.audioVD.c --- CMP0.68/CMP.audioVD.c 2002-03-10 17:19:25.000000000 -0800 +++ cmp-linux-0.68/CMP.audioVD.c 2003-02-19 06:22:08.000000000 -0800 @@ -167,7 +167,7 @@ double testFreq =3D 400.0; long i, sqrsum; unsigned long circBytes; - PaTimestamp dummy =3D (PaTimestamp)NULL; + PaTimestamp dummy =3D (PaTimestamp) 0; short* inputTestData; =20 inputTestData =3D (short*)malloc(kCMPtransferSize * sizeof(short) * ch= annels); /* Interleaved buffer! */ diff -Nru CMP0.68/CMP.c cmp-linux-0.68/CMP.c --- CMP0.68/CMP.c 2002-03-10 17:10:36.000000000 -0800 +++ cmp-linux-0.68/CMP.c 2003-02-23 20:30:40.000000000 -0800 @@ -34,6 +34,12 @@ #include #include =20 +#include + +#ifdef HAVE_CONFIG_H +# include +#endif + #include "CMP.console.h" /* Include CMP.console.c in proj. or m= akefile, */ /* along with 1 of the platform-specif= ic files */ /* CMP.mac_console.c, or CMP.sgi_conso= le.c. */ @@ -62,6 +68,8 @@ =20 #include "CMP.commands.c" /* Needs to access the above stati= c globals. */ =20 +short printCommandInfo(char *); /* Prototype for command list. */ + /*------------------------------------------------------------------------= -----*/ /* COMPARSER USER COMMANDS: = */ /*------------------------------------------------------------------------= -----*/ @@ -91,13 +99,14 @@ "dec"," Stop neural networks", stopIncan= t, "mon"," [receiveChannel] Switch on MIDI", mon, "moff"," Switch off MIDI", moff, + "help"," Show a list of commands", printComm= andInfo, "q"," Quit ComParser", stopLoop, /*********************************************************************= **************/ (char*)NULL, (char*)NULL, (void*)NULL }; /* Always terminate with 0 0 0. */ =20 /*------------------------------------------------------------------------= -----*/ -void printCommandInfo(void) /* Context- or state-aware men= u's. */ +short printCommandInfo(char *c) /* Context- or state-aware men= u's. */ { short u =3D 0; while (gUserCommands[u].name) /* Exclude certain menu choice= s. */ @@ -125,6 +134,7 @@ } u++; } + return 0; } =20 /*------------------------------------------------------------------------= ------*/ @@ -153,7 +163,7 @@ } u++; } - printf("Unknown CMP command.\n"); + printf("Unknown CMP command. Type `help' for a list of commands.\n= "); } return 0; } @@ -227,8 +237,13 @@ if (line) { e =3D processCommand(line); +#ifndef USE_READLINE if (!e) - printCommandInfo(); /* Do not show commands just before qu= itting. */ + { + printf("%s-%s> ", gNAME, gVERSION); /* Prompt ;) */ + fflush(stdout); + } +#endif } return e; } @@ -249,7 +264,11 @@ /*--------------------------------------------------------------------= ----------*/ /* MAIN EVENT LOOP: = */ /*--------------------------------------------------------------------= ----------*/ - printCommandInfo(); + printCommandInfo(NULL); +#ifndef USE_READLINE + printf("%s-%s> ", gNAME, gVERSION); /* Prompt ;) */ + fflush(stdout); +#endif while (loop) { /* Poll for MIDI event= s and */ mp =3D receiveMIDI(gMidi); /* process them. = */ diff -Nru CMP0.68/CMP.commands.c cmp-linux-0.68/CMP.commands.c --- CMP0.68/CMP.commands.c 2002-03-10 12:34:40.000000000 -0800 +++ cmp-linux-0.68/CMP.commands.c 2003-02-23 20:38:08.000000000 -0800 @@ -138,11 +138,17 @@ return 0; } =20 +#define MAXFNAMELEN 1024 + /*------------------------------------------------------------------------= ------------------*/ short recIncant(char* filename) { +#ifdef USE_READLINE + extern int show_prompt; +#endif int e; long startIndex, stopIndex, num =3D 0L; + char fname[MAXFNAMELEN+1]; char *consoleInput, *noname =3D "untitled", *onoff[2] =3D { "OFF", "ON" }; short vectorClusteringEnabled =3D 1, @@ -150,6 +156,7 @@ short maxCluster =3D 42, /* DEFAULT SETTINGS: maxCluste= r, silenceCropping. */ silenceCropping =3D 2000; /*----------------------------= --------------------*/ /* (2560 is highest occuring sil= ence-measure.) */ + if (!gAnaRun) /* (See vector clutering treshol= d below.) */ { printf("Sorry, realtime analysis must be started first.\n"); ret= urn 0; } if (filename) @@ -180,7 +187,11 @@ } if (!filename) /* Read or invent a filename. */ filename =3D noname; - printf(" (over)writing file: '%s'\n", filename); + /* cmpGetConsoleInputString MAY overwrite the memory area at + * filename. Copy it to an internal buffer first. + */ + strncpy(fname, filename, MAXFNAMELEN); + printf(" (over)writing file: '%s'\n", fname); printf(" vector clustering: %s\n", onoff[vectorClusteringEnabled]); printf(" silence cropping: %s\n", onoff[silenceCroppingEnabled]); if (num) @@ -194,24 +205,36 @@ else { /*---------------------- REALTIME RECORDING: ---------------------= */ +#ifdef USE_READLINE + show_prompt =3D 0; +#endif printf(" press ENTER to start recording (or c to cancel): "); fflush(stdout); do { consoleInput =3D cmpGetConsoleInputString(); } while (!consoleInput); +#ifdef USE_READLINE + show_prompt =3D 1; +#endif startIndex =3D gAnaRun->cbdata.writtenIndex - 1; /* Start 1 f= rame earlier. */ if (startIndex < 0) startIndex +=3D gAnaRun->cbdata.varidistFrames; if ((*consoleInput =3D=3D 'c') || (*consoleInput =3D=3D 'C')) goto cancel; +#ifdef USE_READLINE + show_prompt =3D 0; +#endif printf(" RECORDING NOW... ENTER to stop again (c to cancel): "); fflush(stdout); do { consoleInput =3D cmpGetConsoleInputString(); } while (!consoleInput); +#ifdef USE_READLINE + show_prompt =3D 1; +#endif if ((*consoleInput =3D=3D 'c') || (*consoleInput =3D=3D 'C')) { -cancel: printf(" '%s' not saved!\n", filename); +cancel: printf(" '%s' not saved!\n", fname); return 0; } stopIndex =3D gAnaRun->cbdata.writtenIndex; @@ -225,7 +248,7 @@ maxCluster =3D 0; /* Technically, 1 should result the = same! */ if (!silenceCroppingEnabled) silenceCropping =3D 32000; /* Higher than 2560 means OFF (CMP 0= .61). */ - e =3D writeIncantation(filename, /* Command line argument= . */ + e =3D writeIncantation(fname, /* Command line argument= . */ gAnaRun, /* Global real time object= . */ startIndex, /* long first frame index.= */ num, /* long number of frames. = */ @@ -234,12 +257,12 @@ silenceCropping); /* short silenceCropping. = */ if (e) { - printf(" writeIncantationQ('%s',..) =3D %d!\n", filename, e); + printf(" writeIncantationQ('%s',..) =3D %d!\n", fname, e); if (e < 0) return 1; /* Quit on NEGATIVE saving-errors. */ return 0; /* POSITIVE errors are not fatal. */ } - printf(" Saved file as '%s' (%ld unclustered frames).\n", filename, = num); + printf(" Saved file as '%s' (%ld unclustered frames).\n", fname, num= ); return 0; } =20 diff -Nru CMP0.68/COPYING cmp-linux-0.68/COPYING --- CMP0.68/COPYING 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/COPYING 2003-02-18 02:03:38.000000000 -0800 @@ -0,0 +1,25 @@ +Original sources Copyright (C) 2001-2002 Schreck Ensemble - Pieter +Suurmond. Released under a similar license as below; see the file +"index.html" for more info. + +ALSA MIDI driver and Linux console driver Copyright (C) 2003 Casey +Marshall. + + 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff -Nru CMP0.68/ChangeLog cmp-linux-0.68/ChangeLog --- CMP0.68/ChangeLog 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/ChangeLog 2003-02-19 21:55:41.000000000 -0800 @@ -0,0 +1,21 @@ +(This file will describe two types of changes: modifications to the +canonical sources, and modifications to the GNU/Linux support. We will +try to make sense of the combination of the two, but will make no +promises.) + +2003-02-19 CMP-0.68 Casey Marshall + + Added Linux support files: + - console support: console/linux/linux_poll.c and + console/linux/linux_readline.c. + - ALSA MIDI support: midi/alsa/alsa_midi.c. + - automake and autoconf support files. + - The Makefile builds the executable as `comparser' instead of + `CMP'; because upper-case command names are silly. + + Changes: + - CMP.c: changed the way the help is printed: once at startup + and whenever the command `help' is specified. Also print out + a simple prompt. + - CMP.commands.c: added a little support for when readline is + enabled. diff -Nru CMP0.68/INSTALL cmp-linux-0.68/INSTALL --- CMP0.68/INSTALL 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/INSTALL 2003-02-17 23:17:14.000000000 -0800 @@ -0,0 +1,229 @@ +Copyright 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software +Foundation, Inc. + + This file is free documentation; the Free Software Foundation gives +unlimited permission to copy, distribute and modify it. + +Basic Installation +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=3Dconfig.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. (Caching is +disabled by default to prevent problems with accidental use of stale +cache files.) + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You only need +`configure.ac' if you want to change it or regenerate `configure' using +a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes awhile. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=3Dc89 CFLAGS=3D-O2 LIBS=3D-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not support the `VPATH' +variable, you have to compile the package for one architecture at a +time in the source code directory. After you have installed the +package for one architecture, use `make distclean' before reconfiguring +for another architecture. + +Installation Names +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=3DPATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=3DPATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=3DPATH' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=3DPREFIX' or `--program-suffix=3DSUFFIX'. + +Optional Features +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=3DDIR' and +`--x-libraries=3DDIR' to specify their locations. + +Specifying the System Type +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D + + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +`--build=3DTYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the `--target=3DTYPE' option to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=3DTYPE'. + +Sharing Defaults +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=3Dvalue'. For example: + + ./configure CC=3D/usr/local2/bin/gcc + +will cause the specified gcc to be used as the C compiler (unless it is +overridden in the site shell script). + +`configure' Invocation +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + `configure' recognizes the following options to control how it +operates. + +`--help' +`-h' + Print a summary of the options to `configure', and exit. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=3DFILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=3Dconfig.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=3DDIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + diff -Nru CMP0.68/Makefile.am cmp-linux-0.68/Makefile.am --- CMP0.68/Makefile.am 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/Makefile.am 2003-02-19 23:19:51.000000000 -0800 @@ -0,0 +1,288 @@ +## Process this file with autoconf to produce Makefile.in. +# vim:set softtabstop=3D4 shiftwidth=3D4 tabstop=3D4 expandtab tw=3D72: +# +# Makefile.am for Linux installations with ALSA. +# Copyright (C) 2003 Casey Marshall +# +# 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# ------------------------------------------------------------------------= -- + +INCLUDES =3D -Iconsole -Igt -Imidi -Iportaudio/pa_common + +if USE_READLINE +CONSOLE =3D console/linux/linux_readline.c +CONSOLE_DIST =3D console/linux/linux_poll.c +else +CONSOLE =3D console/linux/linux_poll.c +CONSOLE_DIST =3D console/linux/linux_readline.c +endif + +bin_PROGRAMS =3D comparser +comparser_SOURCES =3D \ + CMP.audioVD.c \ + CMP.audioVD.h \ + CMP.c CMP.fft.c \ + CMP.fft.h \ + CMP.fft.table.c \ + CMP.file.c \ + CMP.file.h \ + CMP.incantation.c \ + CMP.incantation.h \ + CMP.tables.c \ + CMP.tables.h \ + CMP.varidist.c \ + CMP.varidist.h \ + console/CMP.handy.c \ + console/CMP.console.h \ + gt/gtToolkit.c \ + gt/gtToolkit.h \ + midi/CMP.midi.c \ + midi/CMP.midi.h \ + midi/alsa/alsa_midi.c \ + portaudio/pa_common/pa_lib.c \ + portaudio/pa_unix_oss/pa_unix_oss.c \ + $(CONSOLE) + +EXTRA_DIST =3D \ + .HSResource/CMP.audioChecks.c \ + .HSResource/CMP.audioVD.c \ + .HSResource/CMP.audioVD.h \ + .HSResource/CMP.commands.c \ + .HSResource/CMP.incantation.c \ + .HSResource/CMP.incantation.h \ + .HSResource/CMP.tables.c \ + .HSResource/CMP.tables.h \ + .HSancillary \ + CMP.audioChecks.c \ + CMP.commands.c \ + CMP.trial.c \ + CMP_mac.sit.hqx \ + CMP_sgi.exe \ + MacCompile.sit.hqx \ + Makefile.irix \ + Makefile.linux \ + console/.HSResource/CMP.console.h \ + console/.HSResource/CMP.handy.c \ + console/.HSResource/cmpConsoleTry.c \ + console/.HSancillary \ + console/cmpConsoleTry.c \ + console/linux/README \ + console/mac_wne/.HSResource/CMP.mac_about.c \ + console/mac_wne/.HSResource/CMP.mac_console.c \ + console/mac_wne/.HSResource/CMP.mac_menus.c \ + console/mac_wne/.HSancillary \ + console/mac_wne/CMP.mac_about.c \ + console/mac_wne/CMP.mac_console.c \ + console/mac_wne/CMP.mac_menus.c \ + console/sgi_poll/.HSResource/CMP.sgi_console.c \ + console/sgi_poll/.HSancillary \ + console/sgi_poll/CMP.sgi_console.c \ + console/sgi_poll/Makefile \ + equidist-old/.HSResource/CMP.audio.c \ + equidist-old/.HSResource/CMP.audio.h \ + equidist-old/.HSResource/CMP.vectorOld.c \ + equidist-old/.HSResource/CMP.vectorOld.h \ + equidist-old/.HSResource/README \ + equidist-old/.HSancillary \ + equidist-old/CMP.audio.c \ + equidist-old/CMP.audio.h \ + equidist-old/CMP.equidist.c \ + equidist-old/CMP.equidist.h \ + equidist-old/CMP.equidist.jpg \ + equidist-old/CMP.fileOld.c \ + equidist-old/CMP.fileOld.h \ + equidist-old/CMP.vectorOld.c \ + equidist-old/CMP.vectorOld.h \ + equidist-old/README \ + fft/.HSancillary \ + fft/FFT.README \ + fft/fftgen.tar.gz \ + fft/gen/.HSancillary \ + fft/gen/GEN.README \ + fft/gen/GEN.fftaa.c \ + fft/gen/fftg.c \ + fft/gen/fftom.c \ + fft/gen/fftsm.c \ + fft/gen/makefile \ + gt/.HSancillary \ + gt/cderror.h \ + gt/cdjpeg.c \ + gt/cdjpeg.h \ + gt/gtDemo.c \ + gt/gtFontSmall.c \ + gt/gtREADME \ + gt/jcapimin.c \ + gt/jcapistd.c \ + gt/jccoefct.c \ + gt/jccolor.c \ + gt/jcdctmgr.c \ + gt/jchuff.c \ + gt/jchuff.h \ + gt/jcinit.c \ + gt/jcmainct.c \ + gt/jcmarker.c \ + gt/jcmaster.c \ + gt/jcomapi.c \ + gt/jconfig.h \ + gt/jcparam.c \ + gt/jcphuff.c \ + gt/jcprepct.c \ + gt/jcsample.c \ + gt/jdatadst.c \ + gt/jdct.h \ + gt/jerror.c \ + gt/jerror.h \ + gt/jfdctflt.c \ + gt/jfdctfst.c \ + gt/jfdctint.c \ + gt/jidctint.c \ + gt/jinclude.h \ + gt/jmemmgr.c \ + gt/jmemnobs.c \ + gt/jmemsys.h \ + gt/jmorecfg.h \ + gt/jpegint.h \ + gt/jpeglib.h \ + gt/jutils.c \ + gt/jversion.h \ + html/.HSResource/screenshot.gif \ + html/.HSancillary \ + html/CMP.gif \ + html/CMPmini.gif \ + html/CMPred.gif \ + html/MacCW4.gif \ + html/c.gif \ + html/cwlogo.gif \ + html/incantation.jpg \ + html/line.gif \ + html/m.gif \ + html/preprocess.jpg \ + html/screenshot.gif \ + html/sigma.gif \ + html/sqrt.gif \ + html/sub.gif \ + index.html \ + midi/.HSResource/CMP.midi.c \ + midi/.HSResource/CMP.midi.h \ + midi/.HSResource/cmpMidiTry.c \ + midi/.HSancillary \ + midi/MidiShare_midi.c \ + midi/cmpMidiTry.c \ + midi/alsa/README \ + midi/mac_oms/.HSResource/README \ + midi/mac_oms/.HSResource/mac_midi_oms.c \ + midi/mac_oms/.HSancillary \ + midi/mac_oms/README \ + midi/mac_oms/macMidiTryCW4.sit.hqx \ + midi/mac_oms/macMidiTryCW4_Data.sit.hqx \ + midi/mac_oms/mac_midi_oms.c \ + midi/mac_oms/oms20sdk28Jan98.sit.hqx \ + midi/sgi_libmd/.HSResource/sgi_midi.c \ + midi/sgi_libmd/.HSancillary \ + midi/sgi_libmd/Makefile \ + midi/sgi_libmd/sgi_midi.c \ + portaudio/.HSancillary \ + portaudio/LICENSE.txt \ + portaudio/Makefile.linux \ + portaudio/README.txt \ + portaudio/docs/index.html \ + portaudio/docs/pa_impl_guide.html \ + portaudio/docs/pa_impl_startstop.html \ + portaudio/docs/pa_tut_asio.html \ + portaudio/docs/pa_tut_callback.html \ + portaudio/docs/pa_tut_devs.html \ + portaudio/docs/pa_tut_explore.html \ + portaudio/docs/pa_tut_init.html \ + portaudio/docs/pa_tut_mac.html \ + portaudio/docs/pa_tut_open.html \ + portaudio/docs/pa_tut_oss.html \ + portaudio/docs/pa_tut_over.html \ + portaudio/docs/pa_tut_pc.html \ + portaudio/docs/pa_tut_run.html \ + portaudio/docs/pa_tut_rw.html \ + portaudio/docs/pa_tut_term.html \ + portaudio/docs/pa_tut_util.html \ + portaudio/docs/pa_tutorial.html \ + portaudio/docs/portaudio_h.txt \ + portaudio/docs/portaudio_icmc2001.pdf \ + portaudio/docs/releases.html \ + portaudio/indexORIG.html \ + portaudio/pa_common/pa_host.h \ + portaudio/pa_common/pa_trace.c \ + portaudio/pa_common/pa_trace.h \ + portaudio/pa_common/portaudio.h \ + portaudio/pa_mac/pa_mac.c \ + portaudio/pa_mac/patest_devinfo.c \ + portaudio/pa_sgi/ABOUT_pa_sgi \ + portaudio/pa_sgi/Makefile \ + portaudio/pa_sgi/pa_sgi.c \ + portaudio/pa_sgi/pthread-Makefile \ + portaudio/pa_sgi/pthread-pa_sgi.c \ + portaudio/pa_tests/debug_dual.c \ + portaudio/pa_tests/debug_multi_in.c \ + portaudio/pa_tests/debug_multi_out.c \ + portaudio/pa_tests/debug_record.c \ + portaudio/pa_tests/debug_sine.c \ + portaudio/pa_tests/debug_test1.c \ + portaudio/pa_tests/pa_devs.c \ + portaudio/pa_tests/pa_fuzz.c \ + portaudio/pa_tests/pa_minlat.c \ + portaudio/pa_tests/paqa_devs.c \ + portaudio/pa_tests/paqa_errs.c \ + portaudio/pa_tests/patest1.c \ + portaudio/pa_tests/patest_clip.c \ + portaudio/pa_tests/patest_dither.c \ + portaudio/pa_tests/patest_latency.c \ + portaudio/pa_tests/patest_leftright.c \ + portaudio/pa_tests/patest_longsine.c \ + portaudio/pa_tests/patest_many.c \ + portaudio/pa_tests/patest_maxsines.c \ + portaudio/pa_tests/patest_pink.c \ + portaudio/pa_tests/patest_record.c \ + portaudio/pa_tests/patest_ringmix.c \ + portaudio/pa_tests/patest_saw.c \ + portaudio/pa_tests/patest_sine.c \ + portaudio/pa_tests/patest_sine8.c \ + portaudio/pa_tests/patest_sine_time.c \ + portaudio/pa_tests/patest_stop.c \ + portaudio/pa_tests/patest_sync.c \ + portaudio/pa_tests/patest_wire.c \ + portaudio/pa_unix_oss/Makefile \ + portaudio/pa_unix_oss/Makefile_freebsd \ + portaudio/pa_win_ds/dsound_wrapper.c \ + portaudio/pa_win_ds/dsound_wrapper.h \ + portaudio/pa_win_ds/pa_dsound.c \ + portaudio/pa_win_ds/portaudio.def \ + portaudio/pa_win_wmme/pa_win_wmme.c \ + portaudio/pablio/pablio.c \ + portaudio/pablio/pablio.h \ + portaudio/pablio/ringbuffer.c \ + portaudio/pablio/ringbuffer.h \ + portaudio/pablio/test_rw.c \ + portaudio/pablio/test_rw_echo.c \ + portaudio/pablio/test_w_saw.c \ + portaudio/pablio/test_w_saw8.c \ + portaudio/v17 \ + zcup1 \ + zjsb \ + zjsb2 \ + zjsb2.jpg \ + $(CONSOLE_DIST) diff -Nru CMP0.68/Makefile.in cmp-linux-0.68/Makefile.in --- CMP0.68/Makefile.in 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/Makefile.in 2003-02-19 23:19:57.000000000 -0800 @@ -0,0 +1,830 @@ +# Makefile.in generated by automake 1.6.3 from Makefile.am. +# @configure_input@ + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# 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@ + +# vim:set softtabstop=3D4 shiftwidth=3D4 tabstop=3D4 expandtab tw=3D72: +# +# Makefile.am for Linux installations with ALSA. +# Copyright (C) 2003 Casey Marshall +# +# 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# ------------------------------------------------------------------------= -- +SHELL =3D @SHELL@ + +srcdir =3D @srcdir@ +top_srcdir =3D @top_srcdir@ +VPATH =3D @srcdir@ +prefix =3D @prefix@ +exec_prefix =3D @exec_prefix@ + +bindir =3D @bindir@ +sbindir =3D @sbindir@ +libexecdir =3D @libexecdir@ +datadir =3D @datadir@ +sysconfdir =3D @sysconfdir@ +sharedstatedir =3D @sharedstatedir@ +localstatedir =3D @localstatedir@ +libdir =3D @libdir@ +infodir =3D @infodir@ +mandir =3D @mandir@ +includedir =3D @includedir@ +oldincludedir =3D /usr/include +pkgdatadir =3D $(datadir)/@PACKAGE@ +pkglibdir =3D $(libdir)/@PACKAGE@ +pkgincludedir =3D $(includedir)/@PACKAGE@ +top_builddir =3D . + +ACLOCAL =3D @ACLOCAL@ +AUTOCONF =3D @AUTOCONF@ +AUTOMAKE =3D @AUTOMAKE@ +AUTOHEADER =3D @AUTOHEADER@ + +am__cd =3D CDPATH=3D"$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL =3D @INSTALL@ +INSTALL_PROGRAM =3D @INSTALL_PROGRAM@ +INSTALL_DATA =3D @INSTALL_DATA@ +install_sh_DATA =3D $(install_sh) -c -m 644 +install_sh_PROGRAM =3D $(install_sh) -c +install_sh_SCRIPT =3D $(install_sh) -c +INSTALL_SCRIPT =3D @INSTALL_SCRIPT@ +INSTALL_HEADER =3D $(INSTALL_DATA) +transform =3D @program_transform_name@ +NORMAL_INSTALL =3D : +PRE_INSTALL =3D : +POST_INSTALL =3D : +NORMAL_UNINSTALL =3D : +PRE_UNINSTALL =3D : +POST_UNINSTALL =3D : + +EXEEXT =3D @EXEEXT@ +OBJEXT =3D @OBJEXT@ +PATH_SEPARATOR =3D @PATH_SEPARATOR@ +AMTAR =3D @AMTAR@ +AWK =3D @AWK@ +CC =3D @CC@ +DEPDIR =3D @DEPDIR@ +INSTALL_STRIP_PROGRAM =3D @INSTALL_STRIP_PROGRAM@ +PACKAGE =3D @PACKAGE@ +STRIP =3D @STRIP@ +VERSION =3D @VERSION@ +am__include =3D @am__include@ +am__quote =3D @am__quote@ +install_sh =3D @install_sh@ + +INCLUDES =3D -Iconsole -Igt -Imidi -Iportaudio/pa_common + +@USE_READLINE_TRUE@CONSOLE =3D console/linux/linux_readline.c +@USE_READLINE_FALSE@CONSOLE =3D console/linux/linux_poll.c +@USE_READLINE_TRUE@CONSOLE_DIST =3D console/linux/linux_poll.c +@USE_READLINE_FALSE@CONSOLE_DIST =3D console/linux/linux_readline.c + +bin_PROGRAMS =3D comparser +comparser_SOURCES =3D \ + CMP.audioVD.c \ + CMP.audioVD.h \ + CMP.c CMP.fft.c \ + CMP.fft.h \ + CMP.fft.table.c \ + CMP.file.c \ + CMP.file.h \ + CMP.incantation.c \ + CMP.incantation.h \ + CMP.tables.c \ + CMP.tables.h \ + CMP.varidist.c \ + CMP.varidist.h \ + console/CMP.handy.c \ + console/CMP.console.h \ + gt/gtToolkit.c \ + gt/gtToolkit.h \ + midi/CMP.midi.c \ + midi/CMP.midi.h \ + midi/alsa/alsa_midi.c \ + portaudio/pa_common/pa_lib.c \ + portaudio/pa_unix_oss/pa_unix_oss.c \ + $(CONSOLE) + + +EXTRA_DIST =3D \ + .HSResource/CMP.audioChecks.c \ + .HSResource/CMP.audioVD.c \ + .HSResource/CMP.audioVD.h \ + .HSResource/CMP.commands.c \ + .HSResource/CMP.incantation.c \ + .HSResource/CMP.incantation.h \ + .HSResource/CMP.tables.c \ + .HSResource/CMP.tables.h \ + .HSancillary \ + CMP.audioChecks.c \ + CMP.commands.c \ + CMP.trial.c \ + CMP_mac.sit.hqx \ + CMP_sgi.exe \ + MacCompile.sit.hqx \ + Makefile.irix \ + Makefile.linux \ + console/.HSResource/CMP.console.h \ + console/.HSResource/CMP.handy.c \ + console/.HSResource/cmpConsoleTry.c \ + console/.HSancillary \ + console/cmpConsoleTry.c \ + console/linux/README \ + console/mac_wne/.HSResource/CMP.mac_about.c \ + console/mac_wne/.HSResource/CMP.mac_console.c \ + console/mac_wne/.HSResource/CMP.mac_menus.c \ + console/mac_wne/.HSancillary \ + console/mac_wne/CMP.mac_about.c \ + console/mac_wne/CMP.mac_console.c \ + console/mac_wne/CMP.mac_menus.c \ + console/sgi_poll/.HSResource/CMP.sgi_console.c \ + console/sgi_poll/.HSancillary \ + console/sgi_poll/CMP.sgi_console.c \ + console/sgi_poll/Makefile \ + equidist-old/.HSResource/CMP.audio.c \ + equidist-old/.HSResource/CMP.audio.h \ + equidist-old/.HSResource/CMP.vectorOld.c \ + equidist-old/.HSResource/CMP.vectorOld.h \ + equidist-old/.HSResource/README \ + equidist-old/.HSancillary \ + equidist-old/CMP.audio.c \ + equidist-old/CMP.audio.h \ + equidist-old/CMP.equidist.c \ + equidist-old/CMP.equidist.h \ + equidist-old/CMP.equidist.jpg \ + equidist-old/CMP.fileOld.c \ + equidist-old/CMP.fileOld.h \ + equidist-old/CMP.vectorOld.c \ + equidist-old/CMP.vectorOld.h \ + equidist-old/README \ + fft/.HSancillary \ + fft/FFT.README \ + fft/fftgen.tar.gz \ + fft/gen/.HSancillary \ + fft/gen/GEN.README \ + fft/gen/GEN.fftaa.c \ + fft/gen/fftg.c \ + fft/gen/fftom.c \ + fft/gen/fftsm.c \ + fft/gen/makefile \ + gt/.HSancillary \ + gt/cderror.h \ + gt/cdjpeg.c \ + gt/cdjpeg.h \ + gt/gtDemo.c \ + gt/gtFontSmall.c \ + gt/gtREADME \ + gt/jcapimin.c \ + gt/jcapistd.c \ + gt/jccoefct.c \ + gt/jccolor.c \ + gt/jcdctmgr.c \ + gt/jchuff.c \ + gt/jchuff.h \ + gt/jcinit.c \ + gt/jcmainct.c \ + gt/jcmarker.c \ + gt/jcmaster.c \ + gt/jcomapi.c \ + gt/jconfig.h \ + gt/jcparam.c \ + gt/jcphuff.c \ + gt/jcprepct.c \ + gt/jcsample.c \ + gt/jdatadst.c \ + gt/jdct.h \ + gt/jerror.c \ + gt/jerror.h \ + gt/jfdctflt.c \ + gt/jfdctfst.c \ + gt/jfdctint.c \ + gt/jidctint.c \ + gt/jinclude.h \ + gt/jmemmgr.c \ + gt/jmemnobs.c \ + gt/jmemsys.h \ + gt/jmorecfg.h \ + gt/jpegint.h \ + gt/jpeglib.h \ + gt/jutils.c \ + gt/jversion.h \ + html/.HSResource/screenshot.gif \ + html/.HSancillary \ + html/CMP.gif \ + html/CMPmini.gif \ + html/CMPred.gif \ + html/MacCW4.gif \ + html/c.gif \ + html/cwlogo.gif \ + html/incantation.jpg \ + html/line.gif \ + html/m.gif \ + html/preprocess.jpg \ + html/screenshot.gif \ + html/sigma.gif \ + html/sqrt.gif \ + html/sub.gif \ + index.html \ + midi/.HSResource/CMP.midi.c \ + midi/.HSResource/CMP.midi.h \ + midi/.HSResource/cmpMidiTry.c \ + midi/.HSancillary \ + midi/MidiShare_midi.c \ + midi/cmpMidiTry.c \ + midi/alsa/README \ + midi/mac_oms/.HSResource/README \ + midi/mac_oms/.HSResource/mac_midi_oms.c \ + midi/mac_oms/.HSancillary \ + midi/mac_oms/README \ + midi/mac_oms/macMidiTryCW4.sit.hqx \ + midi/mac_oms/macMidiTryCW4_Data.sit.hqx \ + midi/mac_oms/mac_midi_oms.c \ + midi/mac_oms/oms20sdk28Jan98.sit.hqx \ + midi/sgi_libmd/.HSResource/sgi_midi.c \ + midi/sgi_libmd/.HSancillary \ + midi/sgi_libmd/Makefile \ + midi/sgi_libmd/sgi_midi.c \ + portaudio/.HSancillary \ + portaudio/LICENSE.txt \ + portaudio/Makefile.linux \ + portaudio/README.txt \ + portaudio/docs/index.html \ + portaudio/docs/pa_impl_guide.html \ + portaudio/docs/pa_impl_startstop.html \ + portaudio/docs/pa_tut_asio.html \ + portaudio/docs/pa_tut_callback.html \ + portaudio/docs/pa_tut_devs.html \ + portaudio/docs/pa_tut_explore.html \ + portaudio/docs/pa_tut_init.html \ + portaudio/docs/pa_tut_mac.html \ + portaudio/docs/pa_tut_open.html \ + portaudio/docs/pa_tut_oss.html \ + portaudio/docs/pa_tut_over.html \ + portaudio/docs/pa_tut_pc.html \ + portaudio/docs/pa_tut_run.html \ + portaudio/docs/pa_tut_rw.html \ + portaudio/docs/pa_tut_term.html \ + portaudio/docs/pa_tut_util.html \ + portaudio/docs/pa_tutorial.html \ + portaudio/docs/portaudio_h.txt \ + portaudio/docs/portaudio_icmc2001.pdf \ + portaudio/docs/releases.html \ + portaudio/indexORIG.html \ + portaudio/pa_common/pa_host.h \ + portaudio/pa_common/pa_trace.c \ + portaudio/pa_common/pa_trace.h \ + portaudio/pa_common/portaudio.h \ + portaudio/pa_mac/pa_mac.c \ + portaudio/pa_mac/patest_devinfo.c \ + portaudio/pa_sgi/ABOUT_pa_sgi \ + portaudio/pa_sgi/Makefile \ + portaudio/pa_sgi/pa_sgi.c \ + portaudio/pa_sgi/pthread-Makefile \ + portaudio/pa_sgi/pthread-pa_sgi.c \ + portaudio/pa_tests/debug_dual.c \ + portaudio/pa_tests/debug_multi_in.c \ + portaudio/pa_tests/debug_multi_out.c \ + portaudio/pa_tests/debug_record.c \ + portaudio/pa_tests/debug_sine.c \ + portaudio/pa_tests/debug_test1.c \ + portaudio/pa_tests/pa_devs.c \ + portaudio/pa_tests/pa_fuzz.c \ + portaudio/pa_tests/pa_minlat.c \ + portaudio/pa_tests/paqa_devs.c \ + portaudio/pa_tests/paqa_errs.c \ + portaudio/pa_tests/patest1.c \ + portaudio/pa_tests/patest_clip.c \ + portaudio/pa_tests/patest_dither.c \ + portaudio/pa_tests/patest_latency.c \ + portaudio/pa_tests/patest_leftright.c \ + portaudio/pa_tests/patest_longsine.c \ + portaudio/pa_tests/patest_many.c \ + portaudio/pa_tests/patest_maxsines.c \ + portaudio/pa_tests/patest_pink.c \ + portaudio/pa_tests/patest_record.c \ + portaudio/pa_tests/patest_ringmix.c \ + portaudio/pa_tests/patest_saw.c \ + portaudio/pa_tests/patest_sine.c \ + portaudio/pa_tests/patest_sine8.c \ + portaudio/pa_tests/patest_sine_time.c \ + portaudio/pa_tests/patest_stop.c \ + portaudio/pa_tests/patest_sync.c \ + portaudio/pa_tests/patest_wire.c \ + portaudio/pa_unix_oss/Makefile \ + portaudio/pa_unix_oss/Makefile_freebsd \ + portaudio/pa_win_ds/dsound_wrapper.c \ + portaudio/pa_win_ds/dsound_wrapper.h \ + portaudio/pa_win_ds/pa_dsound.c \ + portaudio/pa_win_ds/portaudio.def \ + portaudio/pa_win_wmme/pa_win_wmme.c \ + portaudio/pablio/pablio.c \ + portaudio/pablio/pablio.h \ + portaudio/pablio/ringbuffer.c \ + portaudio/pablio/ringbuffer.h \ + portaudio/pablio/test_rw.c \ + portaudio/pablio/test_rw_echo.c \ + portaudio/pablio/test_w_saw.c \ + portaudio/pablio/test_w_saw8.c \ + portaudio/v17 \ + zcup1 \ + zjsb \ + zjsb2 \ + zjsb2.jpg \ + $(CONSOLE_DIST) + +subdir =3D . +ACLOCAL_M4 =3D $(top_srcdir)/aclocal.m4 +mkinstalldirs =3D $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER =3D config.h +CONFIG_CLEAN_FILES =3D +bin_PROGRAMS =3D comparser$(EXEEXT) +PROGRAMS =3D $(bin_PROGRAMS) + +@USE_READLINE_TRUE@am__objects_1 =3D linux_readline.$(OBJEXT) +@USE_READLINE_FALSE@am__objects_1 =3D linux_poll.$(OBJEXT) +am_comparser_OBJECTS =3D CMP.audioVD.$(OBJEXT) CMP.$(OBJEXT) \ + CMP.fft.$(OBJEXT) CMP.fft.table.$(OBJEXT) CMP.file.$(OBJEXT) \ + CMP.incantation.$(OBJEXT) CMP.tables.$(OBJEXT) \ + CMP.varidist.$(OBJEXT) CMP.handy.$(OBJEXT) gtToolkit.$(OBJEXT) \ + CMP.midi.$(OBJEXT) alsa_midi.$(OBJEXT) pa_lib.$(OBJEXT) \ + pa_unix_oss.$(OBJEXT) $(am__objects_1) +comparser_OBJECTS =3D $(am_comparser_OBJECTS) +comparser_LDADD =3D $(LDADD) +comparser_DEPENDENCIES =3D +comparser_LDFLAGS =3D + +DEFS =3D @DEFS@ +DEFAULT_INCLUDES =3D -I. -I$(srcdir) -I. +CPPFLAGS =3D @CPPFLAGS@ +LDFLAGS =3D @LDFLAGS@ +LIBS =3D @LIBS@ +depcomp =3D $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe =3D depfiles +@AMDEP_TRUE@DEP_FILES =3D ./$(DEPDIR)/CMP.Po ./$(DEPDIR)/CMP.audioVD.Po \ +@AMDEP_TRUE@ ./$(DEPDIR)/CMP.fft.Po ./$(DEPDIR)/CMP.fft.table.Po \ +@AMDEP_TRUE@ ./$(DEPDIR)/CMP.file.Po ./$(DEPDIR)/CMP.handy.Po \ +@AMDEP_TRUE@ ./$(DEPDIR)/CMP.incantation.Po \ +@AMDEP_TRUE@ ./$(DEPDIR)/CMP.midi.Po ./$(DEPDIR)/CMP.tables.Po \ +@AMDEP_TRUE@ ./$(DEPDIR)/CMP.varidist.Po \ +@AMDEP_TRUE@ ./$(DEPDIR)/alsa_midi.Po ./$(DEPDIR)/gtToolkit.Po \ +@AMDEP_TRUE@ ./$(DEPDIR)/linux_poll.Po \ +@AMDEP_TRUE@ ./$(DEPDIR)/linux_readline.Po ./$(DEPDIR)/pa_lib.Po \ +@AMDEP_TRUE@ ./$(DEPDIR)/pa_unix_oss.Po +COMPILE =3D $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD =3D $(CC) +LINK =3D $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +CFLAGS =3D @CFLAGS@ +DIST_SOURCES =3D $(comparser_SOURCES) +DIST_COMMON =3D README AUTHORS COPYING ChangeLog INSTALL Makefile.am \ + Makefile.in NEWS aclocal.m4 config.h.in configure configure.ac \ + depcomp install-sh missing mkinstalldirs +SOURCES =3D $(comparser_SOURCES) + +all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .c .o .obj + +am__CONFIG_DISTCLEAN_FILES =3D config.status config.cache config.log \ + configure.lineno +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_= M4) + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe) + +$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDE= NCIES) + $(SHELL) ./config.status --recheck +$(srcdir)/configure: $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEP= ENDENCIES) + cd $(srcdir) && $(AUTOCONF) + +$(ACLOCAL_M4): configure.ac=20 + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + +config.h: stamp-h1 + @if test ! -f $@; then \ + rm -f stamp-h1; \ + $(MAKE) stamp-h1; \ + else :; fi + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h + +$(srcdir)/config.h.in: $(top_srcdir)/configure.ac $(ACLOCAL_M4)=20 + cd $(top_srcdir) && $(AUTOHEADER) + touch $(srcdir)/config.h.in + +distclean-hdr: + -rm -f config.h stamp-h1 +binPROGRAMS_INSTALL =3D $(INSTALL_PROGRAM) +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(bindir) + @list=3D'$(bin_PROGRAMS)'; for p in $$list; do \ + p1=3D`echo $$p|sed 's/$(EXEEXT)$$//'`; \ + if test -f $$p \ + ; then \ + f=3D`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ + echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(b= indir)/$$f"; \ + $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/= $$f; \ + else :; fi; \ + done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list=3D'$(bin_PROGRAMS)'; for p in $$list; do \ + f=3D`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXE= EXT)/'`; \ + echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ + rm -f $(DESTDIR)$(bindir)/$$f; \ + done + +clean-binPROGRAMS: + -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) +CMP.handy.$(OBJEXT): console/CMP.handy.c +gtToolkit.$(OBJEXT): gt/gtToolkit.c +CMP.midi.$(OBJEXT): midi/CMP.midi.c +alsa_midi.$(OBJEXT): midi/alsa/alsa_midi.c +pa_lib.$(OBJEXT): portaudio/pa_common/pa_lib.c +pa_unix_oss.$(OBJEXT): portaudio/pa_unix_oss/pa_unix_oss.c +linux_readline.$(OBJEXT): console/linux/linux_readline.c +linux_poll.$(OBJEXT): console/linux/linux_poll.c +comparser$(EXEEXT): $(comparser_OBJECTS) $(comparser_DEPENDENCIES)=20 + @rm -f comparser$(EXEEXT) + $(LINK) $(comparser_LDFLAGS) $(comparser_OBJECTS) $(comparser_LDADD) $(LI= BS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) core *.core + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CMP.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CMP.audioVD.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CMP.fft.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CMP.fft.table.Po@am__quot= e@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CMP.file.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CMP.handy.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CMP.incantation.Po@am__qu= ote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CMP.midi.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CMP.tables.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/CMP.varidist.Po@am__quote= @ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alsa_midi.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtToolkit.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linux_poll.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linux_readline.Po@am__quo= te@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pa_lib.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pa_unix_oss.Po@am__quote@ + +distclean-depend: + -rm -rf ./$(DEPDIR) + +.c.o: +@AMDEP_TRUE@ source=3D'$<' object=3D'$@' libtool=3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/$*.Po' tmpdepfile=3D'$(DEPDIR)/$*.TPo' @= AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$< + +.c.obj: +@AMDEP_TRUE@ source=3D'$<' object=3D'$@' libtool=3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/$*.Po' tmpdepfile=3D'$(DEPDIR)/$*.TPo' @= AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(COMPILE) -c `cygpath -w $<` + +CMP.handy.o: console/CMP.handy.c +@AMDEP_TRUE@ source=3D'console/CMP.handy.c' object=3D'CMP.handy.o' libtool= =3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/CMP.handy.Po' tmpdepfile=3D'$(DEPDIR)/CM= P.handy.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o CMP.handy.o `test -f 'console/CMP.handy.c' || = echo '$(srcdir)/'`console/CMP.handy.c + +CMP.handy.obj: console/CMP.handy.c +@AMDEP_TRUE@ source=3D'console/CMP.handy.c' object=3D'CMP.handy.obj' libto= ol=3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/CMP.handy.Po' tmpdepfile=3D'$(DEPDIR)/CM= P.handy.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o CMP.handy.obj `cygpath -w console/CMP.handy.c` + +gtToolkit.o: gt/gtToolkit.c +@AMDEP_TRUE@ source=3D'gt/gtToolkit.c' object=3D'gtToolkit.o' libtool=3Dno= @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/gtToolkit.Po' tmpdepfile=3D'$(DEPDIR)/gt= Toolkit.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o gtToolkit.o `test -f 'gt/gtToolkit.c' || echo = '$(srcdir)/'`gt/gtToolkit.c + +gtToolkit.obj: gt/gtToolkit.c +@AMDEP_TRUE@ source=3D'gt/gtToolkit.c' object=3D'gtToolkit.obj' libtool=3D= no @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/gtToolkit.Po' tmpdepfile=3D'$(DEPDIR)/gt= Toolkit.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o gtToolkit.obj `cygpath -w gt/gtToolkit.c` + +CMP.midi.o: midi/CMP.midi.c +@AMDEP_TRUE@ source=3D'midi/CMP.midi.c' object=3D'CMP.midi.o' libtool=3Dno= @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/CMP.midi.Po' tmpdepfile=3D'$(DEPDIR)/CMP= .midi.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o CMP.midi.o `test -f 'midi/CMP.midi.c' || echo = '$(srcdir)/'`midi/CMP.midi.c + +CMP.midi.obj: midi/CMP.midi.c +@AMDEP_TRUE@ source=3D'midi/CMP.midi.c' object=3D'CMP.midi.obj' libtool=3D= no @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/CMP.midi.Po' tmpdepfile=3D'$(DEPDIR)/CMP= .midi.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o CMP.midi.obj `cygpath -w midi/CMP.midi.c` + +alsa_midi.o: midi/alsa/alsa_midi.c +@AMDEP_TRUE@ source=3D'midi/alsa/alsa_midi.c' object=3D'alsa_midi.o' libto= ol=3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/alsa_midi.Po' tmpdepfile=3D'$(DEPDIR)/al= sa_midi.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o alsa_midi.o `test -f 'midi/alsa/alsa_midi.c' |= | echo '$(srcdir)/'`midi/alsa/alsa_midi.c + +alsa_midi.obj: midi/alsa/alsa_midi.c +@AMDEP_TRUE@ source=3D'midi/alsa/alsa_midi.c' object=3D'alsa_midi.obj' lib= tool=3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/alsa_midi.Po' tmpdepfile=3D'$(DEPDIR)/al= sa_midi.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o alsa_midi.obj `cygpath -w midi/alsa/alsa_midi.= c` + +pa_lib.o: portaudio/pa_common/pa_lib.c +@AMDEP_TRUE@ source=3D'portaudio/pa_common/pa_lib.c' object=3D'pa_lib.o' l= ibtool=3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/pa_lib.Po' tmpdepfile=3D'$(DEPDIR)/pa_li= b.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o pa_lib.o `test -f 'portaudio/pa_common/pa_lib.= c' || echo '$(srcdir)/'`portaudio/pa_common/pa_lib.c + +pa_lib.obj: portaudio/pa_common/pa_lib.c +@AMDEP_TRUE@ source=3D'portaudio/pa_common/pa_lib.c' object=3D'pa_lib.obj'= libtool=3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/pa_lib.Po' tmpdepfile=3D'$(DEPDIR)/pa_li= b.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o pa_lib.obj `cygpath -w portaudio/pa_common/pa_= lib.c` + +pa_unix_oss.o: portaudio/pa_unix_oss/pa_unix_oss.c +@AMDEP_TRUE@ source=3D'portaudio/pa_unix_oss/pa_unix_oss.c' object=3D'pa_u= nix_oss.o' libtool=3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/pa_unix_oss.Po' tmpdepfile=3D'$(DEPDIR)/= pa_unix_oss.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o pa_unix_oss.o `test -f 'portaudio/pa_unix_oss/= pa_unix_oss.c' || echo '$(srcdir)/'`portaudio/pa_unix_oss/pa_unix_oss.c + +pa_unix_oss.obj: portaudio/pa_unix_oss/pa_unix_oss.c +@AMDEP_TRUE@ source=3D'portaudio/pa_unix_oss/pa_unix_oss.c' object=3D'pa_u= nix_oss.obj' libtool=3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/pa_unix_oss.Po' tmpdepfile=3D'$(DEPDIR)/= pa_unix_oss.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o pa_unix_oss.obj `cygpath -w portaudio/pa_unix_= oss/pa_unix_oss.c` + +linux_readline.o: console/linux/linux_readline.c +@AMDEP_TRUE@ source=3D'console/linux/linux_readline.c' object=3D'linux_rea= dline.o' libtool=3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/linux_readline.Po' tmpdepfile=3D'$(DEPDI= R)/linux_readline.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o linux_readline.o `test -f 'console/linux/linux= _readline.c' || echo '$(srcdir)/'`console/linux/linux_readline.c + +linux_readline.obj: console/linux/linux_readline.c +@AMDEP_TRUE@ source=3D'console/linux/linux_readline.c' object=3D'linux_rea= dline.obj' libtool=3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/linux_readline.Po' tmpdepfile=3D'$(DEPDI= R)/linux_readline.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o linux_readline.obj `cygpath -w console/linux/l= inux_readline.c` + +linux_poll.o: console/linux/linux_poll.c +@AMDEP_TRUE@ source=3D'console/linux/linux_poll.c' object=3D'linux_poll.o'= libtool=3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/linux_poll.Po' tmpdepfile=3D'$(DEPDIR)/l= inux_poll.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o linux_poll.o `test -f 'console/linux/linux_pol= l.c' || echo '$(srcdir)/'`console/linux/linux_poll.c + +linux_poll.obj: console/linux/linux_poll.c +@AMDEP_TRUE@ source=3D'console/linux/linux_poll.c' object=3D'linux_poll.ob= j' libtool=3Dno @AMDEPBACKSLASH@ +@AMDEP_TRUE@ depfile=3D'$(DEPDIR)/linux_poll.Po' tmpdepfile=3D'$(DEPDIR)/l= inux_poll.TPo' @AMDEPBACKSLASH@ +@AMDEP_TRUE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ + $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) = $(AM_CFLAGS) $(CFLAGS) -c -o linux_poll.obj `cygpath -w console/linux/linux= _poll.c` +CCDEPMODE =3D @CCDEPMODE@ +uninstall-info-am: + +ETAGS =3D etags +ETAGSFLAGS =3D + +tags: TAGS + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list=3D'$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=3D`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] =3D 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique + +TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=3D; \ + here=3D`pwd`; \ + list=3D'$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=3D`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] =3D 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(ETAGS_ARGS)$$tags$$unique" \ + || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=3D`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH +DISTFILES =3D $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) + +top_distdir =3D . +distdir =3D $(PACKAGE)-$(VERSION) + +am__remove_distdir =3D \ + { test ! -d $(distdir) \ + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr $(distdir); }; } + +GZIP_ENV =3D --best +distcleancheck_listfiles =3D find . -type f -print + +distdir: $(DISTFILES) + $(am__remove_distdir) + mkdir $(distdir) + $(mkinstalldirs) $(distdir)/.HSResource $(distdir)/console $(distdir)/con= sole/.HSResource $(distdir)/console/linux $(distdir)/console/mac_wne $(dist= dir)/console/mac_wne/.HSResource $(distdir)/console/sgi_poll $(distdir)/con= sole/sgi_poll/.HSResource $(distdir)/equidist-old $(distdir)/equidist-old/.= HSResource $(distdir)/fft $(distdir)/fft/gen $(distdir)/gt $(distdir)/html = $(distdir)/html/.HSResource $(distdir)/midi $(distdir)/midi/.HSResource $(d= istdir)/midi/alsa $(distdir)/midi/mac_oms $(distdir)/midi/mac_oms/.HSResour= ce $(distdir)/midi/sgi_libmd $(distdir)/midi/sgi_libmd/.HSResource $(distdi= r)/portaudio $(distdir)/portaudio/docs $(distdir)/portaudio/pa_common $(dis= tdir)/portaudio/pa_mac $(distdir)/portaudio/pa_sgi $(distdir)/portaudio/pa_= tests $(distdir)/portaudio/pa_unix_oss $(distdir)/portaudio/pa_win_ds $(dis= tdir)/portaudio/pa_win_wmme $(distdir)/portaudio/pablio + @list=3D'$(DISTFILES)'; for file in $$list; do \ + if test -f $$file || test -d $$file; then d=3D.; else d=3D$(srcdir); fi= ; \ + dir=3D`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" !=3D "$$file" && test "$$dir" !=3D "."; then \ + dir=3D"/$$dir"; \ + $(mkinstalldirs) "$(distdir)$$dir"; \ + else \ + dir=3D''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d !=3D $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; = \ + || chmod -R a+r $(distdir) +dist-gzip: distdir + $(AMTAR) chof - $(distdir) | GZIP=3D$(GZIP_ENV) gzip -c >$(distdir).tar.g= z + $(am__remove_distdir) + +dist dist-all: distdir + $(AMTAR) chof - $(distdir) | GZIP=3D$(GZIP_ENV) gzip -c >$(distdir).tar.g= z + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + $(am__remove_distdir) + GZIP=3D$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/=3Dbuild + mkdir $(distdir)/=3Dinst + chmod a-w $(distdir) + dc_install_base=3D`$(am__cd) $(distdir)/=3Dinst && pwd` \ + && cd $(distdir)/=3Dbuild \ + && ../configure --srcdir=3D.. --prefix=3D$$dc_install_base \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + find $$dc_install_base -type f -print ; \ + exit 1; } >&2 ) \ + && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \ + && rm -f $(distdir).tar.gz \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + $(am__remove_distdir) + @echo "$(distdir).tar.gz is ready for distribution" | \ + sed 'h;s/./=3D/g;p;x;p;x' +distcleancheck: distclean + if test '$(srcdir)' =3D . ; 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 after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-am +all-am: Makefile $(PROGRAMS) config.h + +installdirs: + $(mkinstalldirs) $(DESTDIR)$(bindir) + +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=3D"$(INSTALL_STRIP_PROGRAM)" \ + INSTALL_STRIP_FLAG=3D-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=3DSTRIPPROG=3D'$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f $(am__CONFIG_DISTCLEAN_FILES) +distclean-am: clean-am distclean-compile distclean-depend \ + distclean-generic distclean-hdr distclean-tags + +dvi: dvi-am + +dvi-am: + +info: info-am + +info-am: + +install-data-am: + +install-exec-am: install-binPROGRAMS + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf autom4te.cache +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic + +uninstall-am: uninstall-binPROGRAMS uninstall-info-am + +.PHONY: GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic dist dist-all dist-gzip distcheck distclean \ + distclean-compile distclean-depend distclean-generic \ + distclean-hdr distclean-tags distcleancheck distdir dvi dvi-am \ + info info-am install install-am install-binPROGRAMS \ + install-data install-data-am install-exec install-exec-am \ + install-info install-info-am install-man install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic tags uninstall uninstall-am \ + uninstall-binPROGRAMS uninstall-info-am + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff -Nru CMP0.68/NEWS cmp-linux-0.68/NEWS --- CMP0.68/NEWS 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/NEWS 2003-02-19 22:54:30.000000000 -0800 @@ -0,0 +1,2 @@ +2003-02-19 cmp-linux-0.68 + * Preliminary versions of Linux sopport files. diff -Nru CMP0.68/README cmp-linux-0.68/README --- CMP0.68/README 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/README 2003-02-19 05:21:37.000000000 -0800 @@ -0,0 +1,22 @@ +If you are looking for general information about ComParser, see the file +index.html. This file describes ComParser on Linux. + +If you are in a hurry, simply run + + ./configure + make + make install + +In order to build ComParser you will need a recent (0.9.0) version of +the Advanced Linux Sound Arcitecture libraries (alsa-lib) and have OSS +emulation enabled. See http://www.alsa-project.org/. You will also need +a sound card with audio input and MIDI support. + +ComParser can also be compiled on Linux with GNU Readline support, which +in order to work requires readline (duh), ncurses, and pthreads. Most +distros should contain these. Supply `--enable-readline' to the +configure step if you want to use readline. + +I have not included support for building with MidiShare, even though +there is a driver for it in the ComParser sources. I just found +MidiShare to be entirely too baffling and unnecessary. diff -Nru CMP0.68/aclocal.m4 cmp-linux-0.68/aclocal.m4 --- CMP0.68/aclocal.m4 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/aclocal.m4 2003-02-19 23:19:56.000000000 -0800 @@ -0,0 +1,836 @@ +# aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*- + +# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# 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. + +# Do all the work for Automake. -*- Autoconf -*= - + +# 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. + +# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 +# Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 8 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +AC_PREREQ([2.52]) + +# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow +# the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl + +# 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_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl + AC_REQUIRE([AC_PROG_INSTALL])dnl +# test to see if srcdir already configured +if test "`cd $srcdir && pwd`" !=3D "`pwd`" && + test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" = there first]) +fi + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl + AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl + AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AM_MISSING_PROG(AMTAR, tar) +AM_PROG_INSTALL_SH +AM_PROG_INSTALL_STRIP +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl + +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_][CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_][CC], + defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_][CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_][CXX], + defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])d= nl +]) +]) + +# Copyright 2002 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version=3D"1.6"]) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION so it can be traced. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], + [AM_AUTOMAKE_VERSION([1.6.3])]) + +# Helper functions for option handling. -*- Autoconf -*= - + +# Copyright 2001, 2002 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 2 + +# _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 opt= ion. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ---------------------------------- +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# +# Check to make sure that the build environment is sane. +# + +# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 3 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$[*]" =3D "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$[*]" !=3D "X $srcdir/configure conftest.file" \ + && test "$[*]" !=3D "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 broke= n +alias in your environment]) + fi + + test "$[2]" =3D 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)]) + +# -*- Autoconf -*- + + +# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 3 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=3D${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +test x"${MISSING+set}" =3D xset || MISSING=3D"\${SHELL} $am_aux_dir/missin= g" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run=3D"$MISSING --run " +else + am_missing_run=3D + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# AM_AUX_DIR_EXPAND + +# Copyright 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# 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=3D'\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"= ` +# and then we would define $MISSING as +# MISSING=3D"\${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. + +# Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50]) + +AC_DEFUN([AM_AUX_DIR_EXPAND], [ +# expand $ac_aux_dir to an absolute path +am_aux_dir=3D`cd $ac_aux_dir && pwd` +]) + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. + +# Copyright 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +install_sh=3D${install_sh-"$am_aux_dir/install-sh"} +AC_SUBST(install_sh)]) + +# AM_PROG_INSTALL_STRIP + +# Copyright 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# 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 =3D yes, because it might be `maybe'. +if test "$cross_compiling" !=3D no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM=3D"\${SHELL} \$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# serial 4 -*- Autoconf -*- + +# Copyright 1999, 2000, 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc=3D"$CC" am_compiler_list=3D], + [$1], CXX, [depcc=3D"$CXX" am_compiler_list=3D], + [$1], OBJC, [depcc=3D"$OBJC" am_compiler_list=3D'gcc3 gcc'], + [$1], GCJ, [depcc=3D"$GCJ" am_compiler_list=3D'gcc3 gcc'], + [depcc=3D"$$1" am_compiler_list=3D]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + + am_cv_$1_dependencies_compiler_type=3Dnone + if test "$am_compiler_list" =3D ""; then + am_compiler_list=3D`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depco= mp` + fi + for depmode in $am_compiler_list; do + # 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. + echo '#include "conftest.h"' > conftest.c + echo 'int i;' > conftest.h + echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" =3D xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=3D$depmode \ + source=3Dconftest.c object=3Dconftest.o \ + depfile=3Dconftest.Po tmpdepfile=3Dconftest.TPo \ + $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1= && + grep conftest.h conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + am_cv_$1_dependencies_compiler_type=3D$depmode + break + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=3Dnone +fi +]) +AC_SUBST([$1DEPMODE], [depmode=3D$am_cv_$1_dependencies_compiler_type]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[rm -f .deps 2>/dev/null +mkdir .deps 2>/dev/null +if test -d .deps; then + DEPDIR=3D.deps +else + # MS-DOS does not allow filenames that begin with a dot. + DEPDIR=3D_deps +fi +rmdir .deps 2>/dev/null +AC_SUBST([DEPDIR]) +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking Speeds up one-time builds + --enable-dependency-tracking Do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" !=3D xno; then + am_depcomp=3D"$ac_aux_dir/depcomp" + AMDEPBACKSLASH=3D'\' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" !=3D xno]) +AC_SUBST([AMDEPBACKSLASH]) +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +#serial 2 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[for mf in $CONFIG_FILES; do + # Strip MF so we end up with the name of the file. + mf=3D`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # So let's grep whole file. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then + dirpart=3D`AS_DIRNAME("$mf")` + else + continue + fi + grep '^DEP_FILES *=3D *[[^ @%:@]]' < "$mf" > /dev/null || continue + # Extract the definition of DEP_FILES from the Makefile without + # running `make'. + DEPDIR=3D`sed -n -e '/^DEPDIR =3D / s///p' < "$mf"` + test -z "$DEPDIR" && continue + # When using ansi2knr, U may be empty or an underscore; expand it + U=3D`sed -n -e '/^U =3D / s///p' < "$mf"` + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" + # We invoke sed twice because it is the simplest approach to + # changing $(DEPDIR) to its actual value in the expansion. + for file in `sed -n -e ' + /^DEP_FILES =3D .*\\\\$/ { + s/^DEP_FILES =3D // + :loop + s/\\\\$// + p + n + /\\\\$/ b loop + p + } + /^DEP_FILES =3D / s/^DEP_FILES =3D //p' < "$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=3D`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" !=3D x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE=3D"$AMDEP_TRUE" ac_aux_dir=3D"$ac_aux_dir"]) +]) + +# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -= *- + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 2 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=3D${MAKE-make} +cat > confinc << 'END' +doit: + @echo done +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include=3D"#" +am__quote=3D +_am_result=3Dnone +# First try GNU make style include. +echo "include confinc" > confmf +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = =3D "done"; then + am__include=3Dinclude + am__quote=3D + _am_result=3DGNU +fi +# Now try BSD make style include. +if test "$am__include" =3D "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" =3D "done"; then + am__include=3D.include + am__quote=3D"\"" + _am_result=3DBSD + fi +fi +AC_SUBST(am__include) +AC_SUBST(am__quote) +AC_MSG_RESULT($_am_result) +rm -f confinc confmf +]) + +# AM_CONDITIONAL -*- Autoconf= -*- + +# Copyright 1997, 2000, 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# serial 5 + +AC_PREREQ(2.52) + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE]) +AC_SUBST([$1_FALSE]) +if $2; then + $1_TRUE=3D + $1_FALSE=3D'#' +else + $1_TRUE=3D'#' + $1_FALSE=3D +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])]) + +# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf= -*- + +# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +AC_PREREQ([2.52]) + +# serial 6 + +# 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. We must strip everything past the first ":", +# and everything past the last "/". + +# _AM_DIRNAME(PATH) +# ----------------- +# Like AS_DIRNAME, only do it during macro expansion +AC_DEFUN([_AM_DIRNAME], + [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1, + m4_if(regexp([$1], [^//\([^/]\|$\)]), -1, + m4_if(regexp([$1], [^/.*]), -1, + [.], + patsubst([$1], [^\(/\).*], [\1])), + patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])), + patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl +])# _AM_DIRNAME + + +# The stamp files are numbered to have different names. +# We could number them on a directory basis, but that's additional +# complications, let's have a unique counter. +m4_define([_AM_STAMP_Count], [0]) + + +# _AM_STAMP(HEADER) +# ----------------- +# The name of the stamp file for HEADER. +AC_DEFUN([_AM_STAMP], +[m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl +AS_ESCAPE(_AM_DIRNAME(patsubst([$1], + [:.*])))/stamp-h[]_AM_STAMP_Count]) + + +# _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS) +# ------------------------------------------------------------ +# We used to try to get a real timestamp in stamp-h. But the fear is that +# that will cause unnecessary cvs conflicts. +AC_DEFUN([_AM_CONFIG_HEADER], +[# Add the stamp file to the list of files AC keeps track of, +# along with our hook. +AC_CONFIG_HEADERS([$1], + [# update the timestamp +echo 'timestamp for $1' >"_AM_STAMP([$1])" +$2], + [$3]) +])# _AM_CONFIG_HEADER + + +# AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS) +# -------------------------------------------------------------- +AC_DEFUN([AM_CONFIG_HEADER], +[AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])]) +])# AM_CONFIG_HEADER + diff -Nru CMP0.68/config.h.in cmp-linux-0.68/config.h.in --- CMP0.68/config.h.in 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/config.h.in 2003-02-19 23:20:00.000000000 -0800 @@ -0,0 +1,40 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the `asound' library (-lasound). */ +#undef HAVE_LIBASOUND + +/* Define to 1 if you have the `history' library (-lhistory). */ +#undef HAVE_LIBHISTORY + +/* Define to 1 if you have the `ncurses' library (-lncurses). */ +#undef HAVE_LIBNCURSES + +/* Define to 1 if you have the `pthread' library (-lpthread). */ +#undef HAVE_LIBPTHREAD + +/* Define to 1 if you have the `readline' library (-lreadline). */ +#undef HAVE_LIBREADLINE + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent= . */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define if readline support is enabled. */ +#undef USE_READLINE + +/* Version number of package */ +#undef VERSION diff -Nru CMP0.68/configure cmp-linux-0.68/configure --- CMP0.68/configure 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/configure 2003-02-19 23:19:57.000000000 -0800 @@ -0,0 +1,4190 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.53a for CMP-linux 0.68. +# +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 +# 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 Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=3D: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'=3D'"$@"' +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +# NLS nuisances. +# Support unset when possible. +if (FOO=3DFOO; unset FOO) >/dev/null 2>&1; then + as_unset=3Dunset +else + as_unset=3Dfalse +fi + +(set +x; test -n "`(LANG=3DC; export LANG) 2>&1`") && + { $as_unset LANG || test "${LANG+set}" !=3D set; } || + { LANG=3DC; export LANG; } +(set +x; test -n "`(LC_ALL=3DC; export LC_ALL) 2>&1`") && + { $as_unset LC_ALL || test "${LC_ALL+set}" !=3D set; } || + { LC_ALL=3DC; export LC_ALL; } +(set +x; test -n "`(LC_TIME=3DC; export LC_TIME) 2>&1`") && + { $as_unset LC_TIME || test "${LC_TIME+set}" !=3D set; } || + { LC_TIME=3DC; export LC_TIME; } +(set +x; test -n "`(LC_CTYPE=3DC; export LC_CTYPE) 2>&1`") && + { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" !=3D set; } || + { LC_CTYPE=3DC; export LC_CTYPE; } +(set +x; test -n "`(LANGUAGE=3DC; export LANGUAGE) 2>&1`") && + { $as_unset LANGUAGE || test "${LANGUAGE+set}" !=3D set; } || + { LANGUAGE=3DC; export LANGUAGE; } +(set +x; test -n "`(LC_COLLATE=3DC; export LC_COLLATE) 2>&1`") && + { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" !=3D set; } || + { LC_COLLATE=3DC; export LC_COLLATE; } +(set +x; test -n "`(LC_NUMERIC=3DC; export LC_NUMERIC) 2>&1`") && + { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" !=3D set; } || + { LC_NUMERIC=3DC; export LC_NUMERIC; } +(set +x; test -n "`(LC_MESSAGES=3DC; export LC_MESSAGES) 2>&1`") && + { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" !=3D set; } || + { LC_MESSAGES=3DC; export LC_MESSAGES; } + + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=3Dexpr +else + as_expr=3Dfalse +fi + +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" =3D "X/"; the= n + as_basename=3Dbasename +else + as_basename=3Dfalse +fi + + +# Name of the executable. +as_me=3D`$as_basename "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)$' \| \ + . : '\(.\)' 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } + /^X\/\(\/\/\)$/{ s//\1/; q; } + /^X\/\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + + +# PATH needs CR, and LINENO needs CR and PATH. +# Avoid depending upon Character Ranges. +as_cr_letters=3D'abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS=3D'ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=3D$as_cr_letters$as_cr_LETTERS +as_cr_digits=3D'0123456789' +as_cr_alnum=3D$as_cr_Letters$as_cr_digits + +# The user is always right. +if test "${PATH_SEPARATOR+set}" !=3D set; then + echo "#! /bin/sh" >conftest.sh + echo "exit 0" >>conftest.sh + chmod +x conftest.sh + if (PATH=3D".;."; conftest.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=3D';' + else + PATH_SEPARATOR=3D: + fi + rm -f conftest.sh +fi + + + as_lineno_1=3D$LINENO + as_lineno_2=3D$LINENO + as_lineno_3=3D`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" !=3D "x$as_lineno_2" && + test "x$as_lineno_3" =3D "x$as_lineno_2" || { + # Find who we are. Look in the path if we contain no path at all + # relative or not. + case $0 in + *[\\/]* ) as_myself=3D$0 ;; + *) as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + test -r "$as_dir/$0" && as_myself=3D$as_dir/$0 && break +done + + ;; + 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" =3D x; then + as_myself=3D$0 + fi + if test ! -f "$as_myself"; then + { echo "$as_me: error: cannot find myself; rerun with an absolute path= " >&2 + { (exit 1); exit 1; }; } + fi + case $CONFIG_SHELL in + '') + as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for as_base in sh bash ksh sh5; do + case $as_dir in + /*) + if ("$as_dir/$as_base" -c ' + as_lineno_1=3D$LINENO + as_lineno_2=3D$LINENO + as_lineno_3=3D`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" !=3D "x$as_lineno_2" && + test "x$as_lineno_3" =3D "x$as_lineno_2" ') 2>/dev/null; then + $as_unset BASH_ENV || test "${BASH_ENV+set}" !=3D set || { BASH_ENV= =3D; export BASH_ENV; } + $as_unset ENV || test "${ENV+set}" !=3D set || { ENV=3D; export ENV;= } + CONFIG_SHELL=3D$as_dir/$as_base + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$0" ${1+"$@"} + fi;; + esac + done +done +;; + esac + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line before each line; the second 'sed' does the real + # work. The second script uses 'N' to pair each line-number line + # with the numbered line, and appends trailing '-' during + # substitution so that $LINENO is not a special case at line end. + # (Raja R Harinath suggested sed '=3D', and Paul Eggert wrote the + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) + sed '=3D' <$as_myself | + sed ' + N + s,$,-, + : loop + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\= 1\3, + t loop + s,-$,, + s,^['$as_cr_digits']*\n,, + ' >$as_me.lineno && + chmod +x $as_me.lineno || + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX= shell" >&2 + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensible to this). + . ./$as_me.lineno + # Exit status is that of the last command. + exit +} + + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N=3D ECHO_C=3D' +' ECHO_T=3D' ' ;; + *c*,* ) ECHO_N=3D-n ECHO_C=3D ECHO_T=3D ;; + *) ECHO_N=3D ECHO_C=3D'\c' ECHO_T=3D ;; +esac + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=3Dexpr +else + as_expr=3Dfalse +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more gener= ic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s=3D'cp -p' + else + as_ln_s=3D'ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=3Dln +else + as_ln_s=3D'cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=3D: +else + as_mkdir_p=3Dfalse +fi + +as_executable_p=3D"test -f" + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp=3D"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=3D"sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" + + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=3D' +' +IFS=3D" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" !=3D set || { CDPATH=3D$PATH_SEPA= RATOR; export CDPATH; } + + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=3D`(hostname || uname -n) 2>/dev/null | sed 1q` + +exec 6>&1 + +# +# Initializations. +# +ac_default_prefix=3D/usr/local +cross_compiling=3Dno +subdirs=3D +MFLAGS=3D +MAKEFLAGS=3D +SHELL=3D${CONFIG_SHELL-/bin/sh} + +# Maximum number of lines to put in a shell here document. +# This variable seems obsolete. It should probably be removed, and +# only ac_max_sed_lines should be used. +: ${ac_max_here_lines=3D38} + +# Identity of this package. +PACKAGE_NAME=3D'CMP-linux' +PACKAGE_TARNAME=3D'cmp-linux' +PACKAGE_VERSION=3D'0.68' +PACKAGE_STRING=3D'CMP-linux 0.68' +PACKAGE_BUGREPORT=3D'' + + +# Initialize some variables set by options. +ac_init_help=3D +ac_init_version=3Dfalse +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=3D/dev/null +exec_prefix=3DNONE +no_create=3D +no_recursion=3D +prefix=3DNONE +program_prefix=3DNONE +program_suffix=3DNONE +program_transform_name=3Ds,x,x, +silent=3D +site=3D +srcdir=3D +verbose=3D +x_includes=3DNONE +x_libraries=3DNONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=3D/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. +bindir=3D'${exec_prefix}/bin' +sbindir=3D'${exec_prefix}/sbin' +libexecdir=3D'${exec_prefix}/libexec' +datadir=3D'${prefix}/share' +sysconfdir=3D'${prefix}/etc' +sharedstatedir=3D'${prefix}/com' +localstatedir=3D'${prefix}/var' +libdir=3D'${exec_prefix}/lib' +includedir=3D'${prefix}/include' +oldincludedir=3D'/usr/include' +infodir=3D'${prefix}/info' +mandir=3D'${prefix}/man' + +ac_prev=3D +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=3D\$ac_option" + ac_prev=3D + continue + fi + + ac_optarg=3D`expr "x$ac_option" : 'x[^=3D]*=3D\(.*\)'` + + # Accept the important Cygnus configure options, so we can diagnose typo= s. + + case $ac_option in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=3Dbindir ;; + -bindir=3D* | --bindir=3D* | --bindi=3D* | --bind=3D* | --bin=3D* | --bi= =3D*) + bindir=3D$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=3Dbuild_alias ;; + -build=3D* | --build=3D* | --buil=3D* | --bui=3D* | --bu=3D*) + build_alias=3D$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=3Dcache_file ;; + -cache-file=3D* | --cache-file=3D* | --cache-fil=3D* | --cache-fi=3D* \ + | --cache-f=3D* | --cache-=3D* | --cache=3D* | --cach=3D* | --cac=3D* | = --ca=3D* | --c=3D*) + cache_file=3D$ac_optarg ;; + + --config-cache | -C) + cache_file=3Dconfig.cache ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=3Ddatadir ;; + -datadir=3D* | --datadir=3D* | --datadi=3D* | --datad=3D* | --data=3D* |= --dat=3D* \ + | --da=3D*) + datadir=3D$ac_optarg ;; + + -disable-* | --disable-*) + ac_feature=3D`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=3D`echo $ac_feature | sed 's/-/_/g'` + eval "enable_$ac_feature=3Dno" ;; + + -enable-* | --enable-*) + ac_feature=3D`expr "x$ac_option" : 'x-*enable-\([^=3D]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 + { (exit 1); exit 1; }; } + ac_feature=3D`echo $ac_feature | sed 's/-/_/g'` + case $ac_option in + *=3D*) ac_optarg=3D`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=3Dyes ;; + esac + eval "enable_$ac_feature=3D'$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=3Dexec_prefix ;; + -exec-prefix=3D* | --exec_prefix=3D* | --exec-prefix=3D* | --exec-prefi= =3D* \ + | --exec-pref=3D* | --exec-pre=3D* | --exec-pr=3D* | --exec-p=3D* | --ex= ec-=3D* \ + | --exec=3D* | --exe=3D* | --ex=3D*) + exec_prefix=3D$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=3Dyes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=3Dlong ;; + -help=3Dr* | --help=3Dr* | --hel=3Dr* | --he=3Dr* | -hr*) + ac_init_help=3Drecursive ;; + -help=3Ds* | --help=3Ds* | --hel=3Ds* | --he=3Ds* | -hs*) + ac_init_help=3Dshort ;; + + -host | --host | --hos | --ho) + ac_prev=3Dhost_alias ;; + -host=3D* | --host=3D* | --hos=3D* | --ho=3D*) + host_alias=3D$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=3Dincludedir ;; + -includedir=3D* | --includedir=3D* | --includedi=3D* | --included=3D* | = --include=3D* \ + | --includ=3D* | --inclu=3D* | --incl=3D* | --inc=3D*) + includedir=3D$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=3Dinfodir ;; + -infodir=3D* | --infodir=3D* | --infodi=3D* | --infod=3D* | --info=3D* |= --inf=3D*) + infodir=3D$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=3Dlibdir ;; + -libdir=3D* | --libdir=3D* | --libdi=3D* | --libd=3D*) + libdir=3D$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=3Dlibexecdir ;; + -libexecdir=3D* | --libexecdir=3D* | --libexecdi=3D* | --libexecd=3D* | = --libexec=3D* \ + | --libexe=3D* | --libex=3D* | --libe=3D*) + libexecdir=3D$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=3Dlocalstatedir ;; + -localstatedir=3D* | --localstatedir=3D* | --localstatedi=3D* | --locals= tated=3D* \ + | --localstate=3D* | --localstat=3D* | --localsta=3D* | --localst=3D* \ + | --locals=3D* | --local=3D* | --loca=3D* | --loc=3D* | --lo=3D*) + localstatedir=3D$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=3Dmandir ;; + -mandir=3D* | --mandir=3D* | --mandi=3D* | --mand=3D* | --man=3D* | --ma= =3D* | --m=3D*) + mandir=3D$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=3Dno ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=3Dyes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=3Dyes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=3Doldincludedir ;; + -oldincludedir=3D* | --oldincludedir=3D* | --oldincludedi=3D* | --oldinc= luded=3D* \ + | --oldinclude=3D* | --oldinclud=3D* | --oldinclu=3D* | --oldincl=3D* | = --oldinc=3D* \ + | --oldin=3D* | --oldi=3D* | --old=3D* | --ol=3D* | --o=3D*) + oldincludedir=3D$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=3Dprefix ;; + -prefix=3D* | --prefix=3D* | --prefi=3D* | --pref=3D* | --pre=3D* | --pr= =3D* | --p=3D*) + prefix=3D$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=3Dprogram_prefix ;; + -program-prefix=3D* | --program-prefix=3D* | --program-prefi=3D* \ + | --program-pref=3D* | --program-pre=3D* | --program-pr=3D* | --program-= p=3D*) + program_prefix=3D$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=3Dprogram_suffix ;; + -program-suffix=3D* | --program-suffix=3D* | --program-suffi=3D* \ + | --program-suff=3D* | --program-suf=3D* | --program-su=3D* | --program-= s=3D*) + program_suffix=3D$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=3Dprogram_transform_name ;; + -program-transform-name=3D* | --program-transform-name=3D* \ + | --program-transform-nam=3D* | --program-transform-na=3D* \ + | --program-transform-n=3D* | --program-transform-=3D* \ + | --program-transform=3D* | --program-transfor=3D* \ + | --program-transfo=3D* | --program-transf=3D* \ + | --program-trans=3D* | --program-tran=3D* \ + | --progr-tra=3D* | --program-tr=3D* | --program-t=3D*) + program_transform_name=3D$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=3Dyes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=3Dsbindir ;; + -sbindir=3D* | --sbindir=3D* | --sbindi=3D* | --sbind=3D* | --sbin=3D* \ + | --sbi=3D* | --sb=3D*) + sbindir=3D$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=3Dsharedstatedir ;; + -sharedstatedir=3D* | --sharedstatedir=3D* | --sharedstatedi=3D* \ + | --sharedstated=3D* | --sharedstate=3D* | --sharedstat=3D* | --sharedst= a=3D* \ + | --sharedst=3D* | --shareds=3D* | --shared=3D* | --share=3D* | --shar= =3D* \ + | --sha=3D* | --sh=3D*) + sharedstatedir=3D$ac_optarg ;; + + -site | --site | --sit) + ac_prev=3Dsite ;; + -site=3D* | --site=3D* | --sit=3D*) + site=3D$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=3Dsrcdir ;; + -srcdir=3D* | --srcdir=3D* | --srcdi=3D* | --srcd=3D* | --src=3D* | --sr= =3D*) + srcdir=3D$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=3Dsysconfdir ;; + -sysconfdir=3D* | --sysconfdir=3D* | --sysconfdi=3D* | --sysconfd=3D* | = --sysconf=3D* \ + | --syscon=3D* | --sysco=3D* | --sysc=3D* | --sys=3D* | --sy=3D*) + sysconfdir=3D$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=3Dtarget_alias ;; + -target=3D* | --target=3D* | --targe=3D* | --targ=3D* | --tar=3D* | --ta= =3D* | --t=3D*) + target_alias=3D$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=3Dyes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=3D: ;; + + -with-* | --with-*) + ac_package=3D`expr "x$ac_option" : 'x-*with-\([^=3D]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=3D`echo $ac_package| sed 's/-/_/g'` + case $ac_option in + *=3D*) ac_optarg=3D`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; + *) ac_optarg=3Dyes ;; + esac + eval "with_$ac_package=3D'$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=3D`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid package name: $ac_package" >&2 + { (exit 1); exit 1; }; } + ac_package=3D`echo $ac_package | sed 's/-/_/g'` + eval "with_$ac_package=3Dno" ;; + + --x) + # Obsolete; use --with-x. + with_x=3Dyes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=3Dx_includes ;; + -x-includes=3D* | --x-includes=3D* | --x-include=3D* | --x-includ=3D* | = --x-inclu=3D* \ + | --x-incl=3D* | --x-inc=3D* | --x-in=3D* | --x-i=3D*) + x_includes=3D$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=3Dx_libraries ;; + -x-libraries=3D* | --x-libraries=3D* | --x-librarie=3D* | --x-librari=3D= * \ + | --x-librar=3D* | --x-libra=3D* | --x-libr=3D* | --x-lib=3D* | --x-li= =3D* | --x-l=3D*) + x_libraries=3D$ac_optarg ;; + + -*) { echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=3D*) + ac_envvar=3D`expr "x$ac_option" : 'x\([^=3D]*\)=3D'` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + ac_optarg=3D`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` + eval "$ac_envvar=3D'$ac_optarg'" + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=3D$ac_option} ${host_alias=3D$ac_option} ${target_alia= s=3D$ac_option} + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=3D--`echo $ac_prev | sed 's/_/-/g'` + { echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +# Be sure to have absolute paths. +for ac_var in exec_prefix prefix +do + eval ac_val=3D$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* | NONE | '' ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$= ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +done + +# Be sure to have absolute paths. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir = \ + localstatedir libdir includedir oldincludedir infodir mandir +do + eval ac_val=3D$`echo $ac_var` + case $ac_val in + [\\/$]* | ?:[\\/]* ) ;; + *) { echo "$as_me: error: expected an absolute directory name for --$= ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; };; + esac +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=3D$build_alias +host=3D$host_alias +target=3D$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" !=3D x; then + if test "x$build_alias" =3D x; then + cross_compiling=3Dmaybe + echo "$as_me: WARNING: If you wanted to set the --build type, don't us= e --host. + If a cross compiler is detected then cross compile mode will be used."= >&2 + elif test "x$build_alias" !=3D "x$host_alias"; then + cross_compiling=3Dyes + fi +fi + +ac_tool_prefix=3D +test -n "$host_alias" && ac_tool_prefix=3D$host_alias- + +test "$silent" =3D yes && exec 6>/dev/null + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=3Dyes + # Try the directory containing this script, then its parent. + ac_confdir=3D`(dirname "$0") 2>/dev/null || +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$0" : 'X\(//\)[^/]' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$0" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + srcdir=3D$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=3D.. + fi +else + ac_srcdir_defaulted=3Dno +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" =3D yes; then + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_co= nfdir or .." >&2 + { (exit 1); exit 1; }; } + else + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdi= r" >&2 + { (exit 1); exit 1; }; } + fi +fi +srcdir=3D`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` +ac_env_build_alias_set=3D${build_alias+set} +ac_env_build_alias_value=3D$build_alias +ac_cv_env_build_alias_set=3D${build_alias+set} +ac_cv_env_build_alias_value=3D$build_alias +ac_env_host_alias_set=3D${host_alias+set} +ac_env_host_alias_value=3D$host_alias +ac_cv_env_host_alias_set=3D${host_alias+set} +ac_cv_env_host_alias_value=3D$host_alias +ac_env_target_alias_set=3D${target_alias+set} +ac_env_target_alias_value=3D$target_alias +ac_cv_env_target_alias_set=3D${target_alias+set} +ac_cv_env_target_alias_value=3D$target_alias +ac_env_CC_set=3D${CC+set} +ac_env_CC_value=3D$CC +ac_cv_env_CC_set=3D${CC+set} +ac_cv_env_CC_value=3D$CC +ac_env_CFLAGS_set=3D${CFLAGS+set} +ac_env_CFLAGS_value=3D$CFLAGS +ac_cv_env_CFLAGS_set=3D${CFLAGS+set} +ac_cv_env_CFLAGS_value=3D$CFLAGS +ac_env_LDFLAGS_set=3D${LDFLAGS+set} +ac_env_LDFLAGS_value=3D$LDFLAGS +ac_cv_env_LDFLAGS_set=3D${LDFLAGS+set} +ac_cv_env_LDFLAGS_value=3D$LDFLAGS +ac_env_CPPFLAGS_set=3D${CPPFLAGS+set} +ac_env_CPPFLAGS_value=3D$CPPFLAGS +ac_cv_env_CPPFLAGS_set=3D${CPPFLAGS+set} +ac_cv_env_CPPFLAGS_value=3D$CPPFLAGS + +# +# Report the --help message. +# +if test "$ac_init_help" =3D "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 CMP-linux 0.68 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=3DVALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=3DVALUE. 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=3Dshort display options specific to this package + --help=3Drecursive display the short help of all the included pac= kages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking...' messages + --cache-file=3DFILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=3Dconfig.cache' + -n, --no-create do not create output files + --srcdir=3DDIR find the sources in DIR [configure dir or \`..= '] + +_ACEOF + + cat <<_ACEOF +Installation directories: + --prefix=3DPREFIX install architecture-independent files in PREF= IX + [$ac_default_prefix] + --exec-prefix=3DEPREFIX install architecture-dependent files in EPREFI= X + [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=3D\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=3DDIR user executables [EPREFIX/bin] + --sbindir=3DDIR system admin executables [EPREFIX/sbin] + --libexecdir=3DDIR program executables [EPREFIX/libexec] + --datadir=3DDIR read-only architecture-independent data [PREFIX= /share] + --sysconfdir=3DDIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=3DDIR modifiable architecture-independent data [PREFI= X/com] + --localstatedir=3DDIR modifiable single-machine data [PREFIX/var] + --libdir=3DDIR object code libraries [EPREFIX/lib] + --includedir=3DDIR C header files [PREFIX/include] + --oldincludedir=3DDIR C header files for non-gcc [/usr/include] + --infodir=3DDIR info documentation [PREFIX/info] + --mandir=3DDIR man documentation [PREFIX/man] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=3DPREFIX prepend PREFIX to installed program= names + --program-suffix=3DSUFFIX append SUFFIX to installed program = names + --program-transform-name=3DPROGRAM run sed PROGRAM on installed progra= m names +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of CMP-linux 0.68:";; + esac + cat <<\_ACEOF + +Optional Features: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE= =3Dno) + --enable-FEATURE[=3DARG] include FEATURE [ARG=3Dyes] + --enable-readline Use readline to prompt for commands. + --disable-dependency-tracking Speeds up one-time builds + --enable-dependency-tracking Do not reject slow dependency extractors + +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 + CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have + headers in a nonstandard directory + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +_ACEOF +fi + +if test "$ac_init_help" =3D "recursive"; then + # If there are subdirs, report their specific --help. + ac_popdir=3D`pwd` + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" =3D x: && continue + test -d $ac_dir || continue + ac_builddir=3D. + +if test "$ac_dir" !=3D .; then + ac_dir_suffix=3D/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=3D`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix=3D ac_top_builddir=3D +fi + +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=3D. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=3D. + else + ac_top_srcdir=3D`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=3D$srcdir$ac_dir_suffix; + ac_top_srcdir=3D$srcdir ;; + *) # Relative path. + ac_srcdir=3D$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=3D$ac_top_builddir$srcdir ;; +esac +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can = be +# absolute. +ac_abs_builddir=3D`cd "$ac_dir" && cd $ac_builddir && pwd` +ac_abs_top_builddir=3D`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` +ac_abs_srcdir=3D`cd "$ac_dir" && cd $ac_srcdir && pwd` +ac_abs_top_srcdir=3D`cd "$ac_dir" && cd $ac_top_srcdir && pwd` + + cd $ac_dir + # Check for guested configure; otherwise get Cygnus style configure. + if test -f $ac_srcdir/configure.gnu; then + echo + $SHELL $ac_srcdir/configure.gnu --help=3Drecursive + elif test -f $ac_srcdir/configure; then + echo + $SHELL $ac_srcdir/configure --help=3Drecursive + elif test -f $ac_srcdir/configure.ac || + test -f $ac_srcdir/configure.in; then + echo + $ac_configure --help + else + echo "$as_me: WARNING: no configuration information is in $ac_dir" >= &2 + fi + cd $ac_popdir + done +fi + +test -n "$ac_init_help" && exit 0 +if $ac_init_version; then + cat <<\_ACEOF +CMP-linux configure 0.68 +generated by GNU Autoconf 2.53a + +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 +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 0 +fi +exec 5>config.log +cat >&5 <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by CMP-linux $as_me 0.68, which was +generated by GNU Autoconf 2.53a. Invocation command line was + + $ $0 $@ + +_ACEOF +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname =3D `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m =3D `(uname -m) 2>/dev/null || echo unknown` +uname -r =3D `(uname -r) 2>/dev/null || echo unknown` +uname -s =3D `(uname -s) 2>/dev/null || echo unknown` +uname -v =3D `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p =3D `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X =3D `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch =3D `(/bin/arch) 2>/dev/null || echo u= nknown` +/usr/bin/arch -k =3D `(/usr/bin/arch -k) 2>/dev/null || echo u= nknown` +/usr/convex/getsysinfo =3D `(/usr/convex/getsysinfo) 2>/dev/null || echo u= nknown` +hostinfo =3D `(hostinfo) 2>/dev/null || echo u= nknown` +/bin/machine =3D `(/bin/machine) 2>/dev/null || echo u= nknown` +/usr/bin/oslevel =3D `(/usr/bin/oslevel) 2>/dev/null || echo u= nknown` +/bin/universe =3D `(/bin/universe) 2>/dev/null || echo u= nknown` + +_ASUNAME + +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + echo "PATH: $as_dir" +done + +} >&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. +# Also quote any args containing shell meta-characters. +ac_configure_args=3D +ac_sep=3D +for ac_arg +do + case $ac_arg in + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n ) continue ;; + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + continue ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=3D`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) ac_configure_args=3D"$ac_configure_args$ac_sep'$ac_arg'" + ac_sep=3D" " ;; + esac + # Get rid of the leading space. +done + +# 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: Be sure not to use single quotes in there, as some shells, +# such as our DU 5.0 friend, will then `close' the trap. +trap 'exit_status=3D$? + # Save into config.log some information that might help in debugging. + { + echo + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values= , +{ + (set) 2>&1 | + case `(ac_space=3D'"'"' '"'"'; set | grep ac_space) 2>&1` in + *ac_space=3D\ *) + sed -n \ + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=3D\\(.*\\)/\\1=3D'"'"= '\\2'"'"'/p" + ;; + *) + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=3D\\(.*\\)/\\1=3D\\= 2/p" + ;; + esac; +} + echo + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + sed "/^$/d" confdefs.h + echo + fi + test "$ac_signal" !=3D 0 && + echo "$as_me: caught signal $ac_signal" + echo "$as_me: exit $exit_status" + } >&5 + rm -f core core.* *.core && + rm -rf conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status + ' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal=3D'$ac_signal'; { (exit 1); exit 1; }' $ac_signal +done +ac_signal=3D0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newl= ine. +echo >confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" !=3D xNONE; then + CONFIG_SITE=3D"$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE=3D"$ac_default_prefix/share/config.site $ac_default_prefix= /etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 +echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special + # files actually), so we avoid doing that. + if test -f "$cache_file"; then + { echo "$as_me:$LINENO: loading cache $cache_file" >&5 +echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . $cache_file;; + *) . ./$cache_file;; + esac + fi +else + { echo "$as_me:$LINENO: creating cache $cache_file" >&5 +echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=3Dfalse +for ac_var in `(set) 2>&1 | + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=3D.*/\1/p'`; do + eval ac_old_set=3D\$ac_cv_env_${ac_var}_set + eval ac_new_set=3D\$ac_env_${ac_var}_set + eval ac_old_val=3D"\$ac_cv_env_${ac_var}_value" + eval ac_new_val=3D"\$ac_env_${ac_var}_value" + case $ac_old_set,$ac_new_set in + set,) + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' = in the previous run" >&5 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous = run" >&2;} + ac_cache_corrupted=3D: ;; + ,set) + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previou= s run" >&5 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=3D: ;; + ,);; + *) + if test "x$ac_old_val" !=3D "x$ac_new_val"; then + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the pr= evious run:" >&5 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 +echo "$as_me: former value: $ac_old_val" >&2;} + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 +echo "$as_me: current value: $ac_new_val" >&2;} + ac_cache_corrupted=3D: + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" =3D set; then + case $ac_new_val in + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) + ac_arg=3D$ac_var=3D`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=3D$ac_var=3D$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) ac_configure_args=3D"$ac_configure_args '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { echo "$as_me:$LINENO: error: changes in the environment can compromise= the build" >&5 +echo "$as_me: error: changes in the environment can compromise the build" = >&2;} + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cach= e_file' and start over" >&5 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and st= art over" >&2;} + { (exit 1); exit 1; }; } +fi + +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu + + + + + + + + + + + + + + + + + + + + + + + + + + + +am__api_version=3D"1.6" +ac_aux_dir=3D +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=3D$ac_dir + ac_install_sh=3D"$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=3D$ac_dir + ac_install_sh=3D"$ac_aux_dir/install.sh -c" + break + elif test -f $ac_dir/shtool; then + ac_aux_dir=3D$ac_dir + ac_install_sh=3D"$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in= $srcdir $srcdir/.. $srcdir/../.." >&5 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcd= ir/.. $srcdir/../.." >&2;} + { (exit 1); exit 1; }; } +fi +ac_config_guess=3D"$SHELL $ac_aux_dir/config.guess" +ac_config_sub=3D"$SHELL $ac_aux_dir/config.sub" +ac_configure=3D"$SHELL $ac_aux_dir/configure" # This should be Cygnus conf= igure. + +# 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" +# ./install, which can be erroneously created by make from ./install.sh. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in + ./ | .// | /cC/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + /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_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog =3D install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; th= en + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog =3D install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; th= en + # program-specific install script used by HP pwplus--don't use= . + : + else + ac_cv_path_install=3D"$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + done + done + ;; +esac +done + + +fi + if test "${ac_cv_path_install+set}" =3D set; then + INSTALL=3D$ac_cv_path_install + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL=3D$ac_install_sh + fi +fi +echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM=3D'${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT=3D'${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA=3D'${INSTALL} -m 644' + +echo "$as_me:$LINENO: checking whether build environment is sane" >&5 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$*" =3D "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$*" !=3D "X $srcdir/configure conftest.file" \ + && test "$*" !=3D "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure t= here is not a broken +alias in your environment" >&5 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a brok= en +alias in your environment" >&2;} + { (exit 1); exit 1; }; } + fi + + test "$2" =3D conftest.file + ) +then + # Ok. + : +else + { { echo "$as_me:$LINENO: error: newly created file is older than distr= ibuted files! +Check your system clock" >&5 +echo "$as_me: error: newly created file is older than distributed files! +Check your system clock" >&2;} + { (exit 1); exit 1; }; } +fi +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +test "$program_prefix" !=3D NONE && + program_transform_name=3D"s,^,$program_prefix,;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" !=3D NONE && + program_transform_name=3D"s,\$,$program_suffix,;$program_transform_name" +# Double any \ or $. echo might interpret backslashes. +# By default was `s,x,x', remove it if useless. +cat <<\_ACEOF >conftest.sed +s/[\\$]/&&/g;s/;s,x,x,$// +_ACEOF +program_transform_name=3D`echo $program_transform_name | sed -f conftest.s= ed` +rm conftest.sed + + +# expand $ac_aux_dir to an absolute path +am_aux_dir=3D`cd $ac_aux_dir && pwd` + +test x"${MISSING+set}" =3D xset || MISSING=3D"\${SHELL} $am_aux_dir/missin= g" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run=3D"$MISSING --run " +else + am_missing_run=3D + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing= " >&5 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +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=3D$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_AWK+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK=3D"$AWK" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AWK=3D"$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +AWK=3D$ac_cv_prog_AWK +if test -n "$AWK"; then + echo "$as_me:$LINENO: result: $AWK" >&5 +echo "${ECHO_T}$AWK" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$AWK" && break +done + +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 +set dummy ${MAKE-make}; ac_make=3D`echo "$2" | sed 'y,./+-,__p_,'` +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" =3D set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.make <<\_ACEOF +all: + @echo 'ac_maketemp=3D"${MAKE}"' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us= . +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=3D` +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=3Dyes +else + eval ac_cv_prog_make_${ac_make}_set=3Dno +fi +rm -f conftest.make +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" =3D yes"; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + SET_MAKE=3D +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + SET_MAKE=3D"MAKE=3D${MAKE-make}" +fi + + # test to see if srcdir already configured +if test "`cd $srcdir && pwd`" !=3D "`pwd`" && + test -f $srcdir/config.status; then + { { echo "$as_me:$LINENO: error: source directory already configured; ru= n \"make distclean\" there first" >&5 +echo "$as_me: error: source directory already configured; run \"make distc= lean\" there first" >&2;} + { (exit 1); exit 1; }; } +fi + +# Define the identity of the package. + PACKAGE=3Dcmp-linux + VERSION=3D0.68 + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=3D${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=3D${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=3D${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=3D${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=3D${MAKEINFO-"${am_missing_run}makeinfo"} + + +AMTAR=3D${AMTAR-"${am_missing_run}tar"} + +install_sh=3D${install_sh-"$am_aux_dir/install-sh"} + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" !=3D no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a pro= gram name with args. +set dummy ${ac_tool_prefix}strip; ac_word=3D$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_STRIP+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP=3D"$STRIP" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_STRIP=3D"${ac_tool_prefix}strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +STRIP=3D$ac_cv_prog_STRIP +if test -n "$STRIP"; then + echo "$as_me:$LINENO: result: $STRIP" >&5 +echo "${ECHO_T}$STRIP" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=3D$STRIP + # Extract the first word of "strip", so it can be a program name with ar= gs. +set dummy strip; ac_word=3D$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_STRIP+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP=3D"$ac_ct_STRIP" # Let the user override the test= . +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_STRIP=3D"strip" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=3D":" +fi +fi +ac_ct_STRIP=3D$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 +echo "${ECHO_T}$ac_ct_STRIP" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + STRIP=3D$ac_ct_STRIP +else + STRIP=3D"$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM=3D"\${SHELL} \$(install_sh) -c -s" + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. + + + +# Add the stamp file to the list of files AC keeps track of, +# along with our hook. + ac_config_headers=3D"$ac_config_headers config.h" + + + + + +# Check whether --enable-readline or --disable-readline was given. +if test "${enable_readline+set}" =3D set; then + enableval=3D"$enable_readline" + want_readline=3D${enableval} +else + want_readline=3Dno +fi; + + +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$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 progr= am name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=3D$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC=3D"$CC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC=3D"${ac_tool_prefix}gcc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +CC=3D$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=3D$CC + # Extract the first word of "gcc", so it can be a program name with args= . +set dummy gcc; ac_word=3D$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC=3D"$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC=3D"gcc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_CC=3D$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + CC=3D$ac_ct_CC +else + CC=3D"$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 progra= m name with args. +set dummy ${ac_tool_prefix}cc; ac_word=3D$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC=3D"$CC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC=3D"${ac_tool_prefix}cc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +CC=3D$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=3D$CC + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=3D$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC=3D"$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC=3D"cc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_CC=3D$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + CC=3D$ac_ct_CC +else + CC=3D"$ac_cv_prog_CC" +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=3D$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC=3D"$CC" # Let the user override the test. +else + ac_prog_rejected=3Dno +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if test "$as_dir/$ac_word$ac_exec_ext" =3D "/usr/ucb/cc"; then + ac_prog_rejected=3Dyes + continue + fi + ac_cv_prog_CC=3D"cc" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +if test $ac_prog_rejected =3D 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 $# !=3D 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=3D"$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=3D$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl + 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=3D$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CC+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC=3D"$CC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CC=3D"$ac_tool_prefix$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +CC=3D$ac_cv_prog_CC +if test -n "$CC"; then + echo "$as_me:$LINENO: result: $CC" >&5 +echo "${ECHO_T}$CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=3D$CC + for ac_prog in cl +do + # Extract the first word of "$ac_prog", so it can be a program name with= args. +set dummy $ac_prog; ac_word=3D$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CC+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC=3D"$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC=3D"$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_CC=3D$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +echo "${ECHO_T}$ac_ct_CC" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$ac_ct_CC" && break +done + + CC=3D$ac_ct_CC +fi + +fi + + +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler= found in \$PATH" >&5 +echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} + { (exit 1); exit 1; }; } + +# Provide some information about the compiler. +echo "$as_me:$LINENO:" \ + "checking for C compiler version" >&5 +ac_compiler=3D`set X $ac_compile; echo $2` +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") = >&5 + (eval $ac_compiler --version &5) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 + (eval $ac_compiler -v &5) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 + (eval $ac_compiler -V &5) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } + +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=3D$ac_clean_files +ac_clean_files=3D"$ac_clean_files a.out a.exe" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +echo "$as_me:$LINENO: checking for C compiler default output" >&5 +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 +ac_link_default=3D`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 + (eval $ac_link_default) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; then + # Find the output, starting from the most likely. This scheme is +# not robust to junk in `.', hence go to wildcards (a.*) only as a last +# resort. + +# Be careful to initialize this variable, since it used to be cached. +# Otherwise an old cache value of `no' led to `EXEEXT =3D no' in a Makefil= e. +ac_cv_exeext=3D +for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; + ls a.out conftest 2>/dev/null; + ls a.* conftest.* 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.= o | *.obj ) ;; + a.out ) # We found the default executable, but exeext=3D'' is most + # certainly right. + break;; + *.* ) ac_cv_exeext=3D`expr "$ac_file" : '[^.]*\(\..*\)'` + # FIXME: I believe we export ac_cv_exeext for Libtool --akim. + export ac_cv_exeext + break;; + * ) break;; + esac +done +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 +echo "$as_me: error: C compiler cannot create executables" >&2;} + { (exit 77); exit 77; }; } +fi + +ac_exeext=3D$ac_cv_exeext +echo "$as_me:$LINENO: result: $ac_file" >&5 +echo "${ECHO_T}$ac_file" >&6 + +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 +# If not cross compiling, check that we can run a simple program. +if test "$cross_compiling" !=3D yes; then + if { ac_try=3D'./$ac_file' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; }; then + cross_compiling=3Dno + else + if test "$cross_compiling" =3D maybe; then + cross_compiling=3Dyes + else + { { echo "$as_me:$LINENO: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'." >&5 +echo "$as_me: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'." >&2;} + { (exit 1); exit 1; }; } + fi + fi +fi +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +rm -f a.out a.exe conftest$ac_cv_exeext +ac_clean_files=3D$ac_clean_files_save +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 +echo "$as_me:$LINENO: result: $cross_compiling" >&5 +echo "${ECHO_T}$cross_compiling" >&6 + +echo "$as_me:$LINENO: checking for suffix of executables" >&5 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; then + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`= ; do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.= o | *.obj ) ;; + *.* ) ac_cv_exeext=3D`expr "$ac_file" : '[^.]*\(\..*\)'` + export ac_cv_exeext + break;; + * ) break;; + esac +done +else + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: c= annot compile and link" >&5 +echo "$as_me: error: cannot compute suffix of executables: cannot compile = and link" >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest$ac_cv_exeext +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 +echo "${ECHO_T}$ac_cv_exeext" >&6 + +rm -f conftest.$ac_ext +EXEEXT=3D$ac_cv_exeext +ac_exeext=3D$EXEEXT +echo "$as_me:$LINENO: checking for suffix of object files" >&5 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 +if test "${ac_cv_objext+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; then + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`= ; do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; + *) ac_cv_objext=3D`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: ca= nnot compile" >&5 +echo "$as_me: error: cannot compute suffix of object files: cannot compile= " >&2;} + { (exit 1); exit 1; }; } +fi + +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 +echo "${ECHO_T}$ac_cv_objext" >&6 +OBJEXT=3D$ac_cv_objext +ac_objext=3D$OBJEXT +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&= 5 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C"= >&6 +if test "${ac_cv_c_compiler_gnu+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } && + { ac_try=3D'test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; }; then + ac_compiler_gnu=3Dyes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_compiler_gnu=3Dno +fi +rm -f conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=3D$ac_compiler_gnu + +fi +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 +GCC=3D`test $ac_compiler_gnu =3D yes && echo yes` +ac_test_CFLAGS=3D${CFLAGS+set} +ac_save_CFLAGS=3D$CFLAGS +CFLAGS=3D"-g" +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_cc_g+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } && + { ac_try=3D'test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_cc_g=3Dyes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_prog_cc_g=3Dno +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 +if test "$ac_test_CFLAGS" =3D set; then + CFLAGS=3D$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g =3D yes; then + if test "$GCC" =3D yes; then + CFLAGS=3D"-g -O2" + else + CFLAGS=3D"-g" + fi +else + if test "$GCC" =3D yes; then + CFLAGS=3D"-O2" + else + CFLAGS=3D + fi +fi +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 +if test "${ac_cv_prog_cc_stdc+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_prog_cc_stdc=3Dno +ac_save_CC=3D$CC +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s =3D g (p, va_arg (v,int)); + va_end (v); + return s; +} +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; +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +return f (e, argv, 0) !=3D argv[0] || f (e, argv, 1) !=3D argv[1]; + ; + return 0; +} +_ACEOF +# Don't try gcc -ansi; that turns off useful extensions and +# breaks some systems' header files. +# AIX -qlanglvl=3Dansi +# Ultrix and OSF/1 -std1 +# HP-UX 10.20 and later -Ae +# HP-UX older versions -Aa -D_HPUX_SOURCE +# SVR4 -Xc -D__EXTENSIONS__ +for ac_arg in "" -qlanglvl=3Dansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__= EXTENSIONS__" +do + CC=3D"$ac_save_CC $ac_arg" + rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } && + { ac_try=3D'test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_cc_stdc=3D$ac_arg +break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest.$ac_objext +done +rm -f conftest.$ac_ext conftest.$ac_objext +CC=3D$ac_save_CC + +fi + +case "x$ac_cv_prog_cc_stdc" in + x|xno) + echo "$as_me:$LINENO: result: none needed" >&5 +echo "${ECHO_T}none needed" >&6 ;; + *) + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 + CC=3D"$CC $ac_cv_prog_cc_stdc" ;; +esac + +# Some people use a C++ compiler to compile C. Since we use `exit', +# in C++ we need to declare it. In case someone uses the same compiler +# for both compiling C and C++ we need to have the C++ compiler decide +# the declaration of exit, since it's the most demanding environment. +cat >conftest.$ac_ext <<_ACEOF +#ifndef __cplusplus + choke me +#endif +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } && + { ac_try=3D'test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; }; then + for ac_declaration in \ + ''\ + '#include ' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' +do + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" +#include +$ac_declaration +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } && + { ac_try=3D'test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +continue +fi +rm -f conftest.$ac_objext conftest.$ac_ext + cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" +$ac_declaration +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } && + { ac_try=3D'test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; }; then + break +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest.$ac_objext conftest.$ac_ext +done +rm -f conftest* +if test -n "$ac_declaration"; then + echo '#ifdef __cplusplus' >>confdefs.h + echo $ac_declaration >>confdefs.h + echo '#endif' >>confdefs.h +fi + +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +fi +rm -f conftest.$ac_objext conftest.$ac_ext +ac_ext=3Dc +ac_cpp=3D'$CPP $CPPFLAGS' +ac_compile=3D'$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link=3D'$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$= ac_ext $LIBS >&5' +ac_compiler_gnu=3D$ac_cv_c_compiler_gnu +rm -f .deps 2>/dev/null +mkdir .deps 2>/dev/null +if test -d .deps; then + DEPDIR=3D.deps +else + # MS-DOS does not allow filenames that begin with a dot. + DEPDIR=3D_deps +fi +rmdir .deps 2>/dev/null + + + ac_config_commands=3D"$ac_config_commands depfiles" + + +am_make=3D${MAKE-make} +cat > confinc << 'END' +doit: + @echo done +END +# If we don't find an include directive, just comment out the code. +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >= &6 +am__include=3D"#" +am__quote=3D +_am_result=3Dnone +# First try GNU make style include. +echo "include confinc" > confmf +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = =3D "done"; then + am__include=3Dinclude + am__quote=3D + _am_result=3DGNU +fi +# Now try BSD make style include. +if test "$am__include" =3D "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" =3D "done"; then + am__include=3D.include + am__quote=3D"\"" + _am_result=3DBSD + fi +fi + + +echo "$as_me:$LINENO: result: $_am_result" >&5 +echo "${ECHO_T}$_am_result" >&6 +rm -f confinc confmf + +# Check whether --enable-dependency-tracking or --disable-dependency-track= ing was given. +if test "${enable_dependency_tracking+set}" =3D set; then + enableval=3D"$enable_dependency_tracking" + +fi; +if test "x$enable_dependency_tracking" !=3D xno; then + am_depcomp=3D"$ac_aux_dir/depcomp" + AMDEPBACKSLASH=3D'\' +fi + + +if test "x$enable_dependency_tracking" !=3D xno; then + AMDEP_TRUE=3D + AMDEP_FALSE=3D'#' +else + AMDEP_TRUE=3D'#' + AMDEP_FALSE=3D +fi + + + + +depcc=3D"$CC" am_compiler_list=3D + +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 +if test "${am_cv_CC_dependencies_compiler_type+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + + am_cv_CC_dependencies_compiler_type=3Dnone + if test "$am_compiler_list" =3D ""; then + am_compiler_list=3D`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp= ` + fi + for depmode in $am_compiler_list; do + # 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. + echo '#include "conftest.h"' > conftest.c + echo 'int i;' > conftest.h + echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" =3D xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=3D$depmode \ + source=3Dconftest.c object=3Dconftest.o \ + depfile=3Dconftest.Po tmpdepfile=3Dconftest.TPo \ + $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1= && + grep conftest.h conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + am_cv_CC_dependencies_compiler_type=3D$depmode + break + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=3Dnone +fi + +fi +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 +CCDEPMODE=3Ddepmode=3D$am_cv_CC_dependencies_compiler_type + + + + + + +echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5 +echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6 +if test "${ac_cv_lib_asound_snd_seq_open+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=3D$LIBS +LIBS=3D"-lasound $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char snd_seq_open (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +snd_seq_open (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } && + { ac_try=3D'test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_asound_snd_seq_open=3Dyes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_asound_snd_seq_open=3Dno +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=3D$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5 +echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6 +if test $ac_cv_lib_asound_snd_seq_open =3D yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBASOUND 1 +_ACEOF + + LIBS=3D"-lasound $LIBS" + +else + { { echo "$as_me:$LINENO: error: ALSA not found." >&5 +echo "$as_me: error: ALSA not found." >&2;} + { (exit 1); exit 1; }; } +fi + + +if test x$want_readline =3D xyes; then + +echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 +echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 +if test "${ac_cv_lib_pthread_pthread_create+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=3D$LIBS +LIBS=3D"-lpthread $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_create (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +pthread_create (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } && + { ac_try=3D'test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_pthread_pthread_create=3Dyes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_pthread_pthread_create=3Dno +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=3D$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 +echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 +if test $ac_cv_lib_pthread_pthread_create =3D yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBPTHREAD 1 +_ACEOF + + LIBS=3D"-lpthread $LIBS" + +else + + { { echo "$as_me:$LINENO: error: libpthread is required to enable = readline support." >&5 +echo "$as_me: error: libpthread is required to enable readline support." >= &2;} + { (exit 1); exit 1; }; } +fi + + +echo "$as_me:$LINENO: checking for tgetstr in -lncurses" >&5 +echo $ECHO_N "checking for tgetstr in -lncurses... $ECHO_C" >&6 +if test "${ac_cv_lib_ncurses_tgetstr+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=3D$LIBS +LIBS=3D"-lncurses $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char tgetstr (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +tgetstr (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } && + { ac_try=3D'test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_ncurses_tgetstr=3Dyes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_ncurses_tgetstr=3Dno +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=3D$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetstr" >&5 +echo "${ECHO_T}$ac_cv_lib_ncurses_tgetstr" >&6 +if test $ac_cv_lib_ncurses_tgetstr =3D yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBNCURSES 1 +_ACEOF + + LIBS=3D"-lncurses $LIBS" + +fi + + +echo "$as_me:$LINENO: checking for add_history in -lhistory" >&5 +echo $ECHO_N "checking for add_history in -lhistory... $ECHO_C" >&6 +if test "${ac_cv_lib_history_add_history+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=3D$LIBS +LIBS=3D"-lhistory $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char add_history (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +add_history (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } && + { ac_try=3D'test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_history_add_history=3Dyes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_history_add_history=3Dno +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=3D$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_history_add_history" >&5 +echo "${ECHO_T}$ac_cv_lib_history_add_history" >&6 +if test $ac_cv_lib_history_add_history =3D yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBHISTORY 1 +_ACEOF + + LIBS=3D"-lhistory $LIBS" + +else + + { { echo "$as_me:$LINENO: error: GNU history is required to enable= readline support." >&5 +echo "$as_me: error: GNU history is required to enable readline support." = >&2;} + { (exit 1); exit 1; }; } +fi + + +echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 +echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 +if test "${ac_cv_lib_readline_readline+set}" =3D set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=3D$LIBS +LIBS=3D"-lreadline $LIBS" +cat >conftest.$ac_ext <<_ACEOF +#line $LINENO "configure" +#include "confdefs.h" + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char readline (); +#ifdef F77_DUMMY_MAIN +# ifdef __cplusplus + extern "C" +# endif + int F77_DUMMY_MAIN() { return 1; } +#endif +int +main () +{ +readline (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); } && + { ac_try=3D'test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=3D$? + echo "$as_me:$LINENO: \$? =3D $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_readline_readline=3Dyes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_lib_readline_readline=3Dno +fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=3D$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 +echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 +if test $ac_cv_lib_readline_readline =3D yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBREADLINE 1 +_ACEOF + + LIBS=3D"-lreadline $LIBS" + +else + + { { echo "$as_me:$LINENO: error: readline requested, but not found= ." >&5 +echo "$as_me: error: readline requested, but not found." >&2;} + { (exit 1); exit 1; }; } +fi + + +cat >>confdefs.h <<\_ACEOF +#define USE_READLINE 1 +_ACEOF + +fi + + + +if test x$want_readline =3D xyes; then + USE_READLINE_TRUE=3D + USE_READLINE_FALSE=3D'#' +else + USE_READLINE_TRUE=3D'#' + USE_READLINE_FALSE=3D +fi + + + + ac_config_files=3D"$ac_config_files Makefile" +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# 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. +{ + (set) 2>&1 | + case `(ac_space=3D' '; set | grep ac_space) 2>&1` in + *ac_space=3D\ *) + # `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]*\\)=3D\\(.*\\)/\\1=3D'\\2= '/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n \ + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=3D\\(.*\\)/\\1=3D\\= 2/p" + ;; + esac; +} | + sed ' + t clear + : clear + s/^\([^=3D]*\)=3D\(.*[{}].*\)$/test "${\1+set}" =3D set || &/ + t end + /^ac_cv_env/!s/^\([^=3D]*\)=3D\(.*\)$/\1=3D${\1=3D\2}/ + : end' >>confcache +if cmp -s $cache_file confcache; then :; else + if test -w $cache_file; then + test "x$cache_file" !=3D "x/dev/null" && echo "updating cache $cache_f= ile" + cat confcache >$cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +test "x$prefix" =3D xNONE && prefix=3D$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" =3D xNONE && exec_prefix=3D'${prefix}' + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" =3D x.; then + ac_vpsub=3D'/^[ ]*VPATH[ ]*=3D/{ +s/:*\$(srcdir):*/:/; +s/:*\${srcdir}:*/:/; +s/:*@srcdir@:*/:/; +s/^\([^=3D]*=3D[ ]*\):*/\1/; +s/:*$//; +s/^[^=3D]*=3D[ ]*$//; +}' +fi + +DEFS=3D-DHAVE_CONFIG_H + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined= . +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${USE_READLINE_TRUE}" && test -z "${USE_READLINE_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"USE_READLINE\" was never = defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"USE_READLINE\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi + +: ${CONFIG_STATUS=3D./config.status} +ac_clean_files_save=3D$ac_clean_files +ac_clean_files=3D"$ac_clean_files $CONFIG_STATUS" +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 +echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=3Dfalse +SHELL=3D\${CONFIG_SHELL-$SHELL} +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=3D: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'=3D'"$@"' +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then + set -o posix +fi + +# NLS nuisances. +# Support unset when possible. +if (FOO=3DFOO; unset FOO) >/dev/null 2>&1; then + as_unset=3Dunset +else + as_unset=3Dfalse +fi + +(set +x; test -n "`(LANG=3DC; export LANG) 2>&1`") && + { $as_unset LANG || test "${LANG+set}" !=3D set; } || + { LANG=3DC; export LANG; } +(set +x; test -n "`(LC_ALL=3DC; export LC_ALL) 2>&1`") && + { $as_unset LC_ALL || test "${LC_ALL+set}" !=3D set; } || + { LC_ALL=3DC; export LC_ALL; } +(set +x; test -n "`(LC_TIME=3DC; export LC_TIME) 2>&1`") && + { $as_unset LC_TIME || test "${LC_TIME+set}" !=3D set; } || + { LC_TIME=3DC; export LC_TIME; } +(set +x; test -n "`(LC_CTYPE=3DC; export LC_CTYPE) 2>&1`") && + { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" !=3D set; } || + { LC_CTYPE=3DC; export LC_CTYPE; } +(set +x; test -n "`(LANGUAGE=3DC; export LANGUAGE) 2>&1`") && + { $as_unset LANGUAGE || test "${LANGUAGE+set}" !=3D set; } || + { LANGUAGE=3DC; export LANGUAGE; } +(set +x; test -n "`(LC_COLLATE=3DC; export LC_COLLATE) 2>&1`") && + { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" !=3D set; } || + { LC_COLLATE=3DC; export LC_COLLATE; } +(set +x; test -n "`(LC_NUMERIC=3DC; export LC_NUMERIC) 2>&1`") && + { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" !=3D set; } || + { LC_NUMERIC=3DC; export LC_NUMERIC; } +(set +x; test -n "`(LC_MESSAGES=3DC; export LC_MESSAGES) 2>&1`") && + { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" !=3D set; } || + { LC_MESSAGES=3DC; export LC_MESSAGES; } + + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=3Dexpr +else + as_expr=3Dfalse +fi + +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" =3D "X/"; the= n + as_basename=3Dbasename +else + as_basename=3Dfalse +fi + + +# Name of the executable. +as_me=3D`$as_basename "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)$' \| \ + . : '\(.\)' 2>/dev/null || +echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } + /^X\/\(\/\/\)$/{ s//\1/; q; } + /^X\/\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + + +# PATH needs CR, and LINENO needs CR and PATH. +# Avoid depending upon Character Ranges. +as_cr_letters=3D'abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS=3D'ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=3D$as_cr_letters$as_cr_LETTERS +as_cr_digits=3D'0123456789' +as_cr_alnum=3D$as_cr_Letters$as_cr_digits + +# The user is always right. +if test "${PATH_SEPARATOR+set}" !=3D set; then + echo "#! /bin/sh" >conftest.sh + echo "exit 0" >>conftest.sh + chmod +x conftest.sh + if (PATH=3D".;."; conftest.sh) >/dev/null 2>&1; then + PATH_SEPARATOR=3D';' + else + PATH_SEPARATOR=3D: + fi + rm -f conftest.sh +fi + + + as_lineno_1=3D$LINENO + as_lineno_2=3D$LINENO + as_lineno_3=3D`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" !=3D "x$as_lineno_2" && + test "x$as_lineno_3" =3D "x$as_lineno_2" || { + # Find who we are. Look in the path if we contain no path at all + # relative or not. + case $0 in + *[\\/]* ) as_myself=3D$0 ;; + *) as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + test -r "$as_dir/$0" && as_myself=3D$as_dir/$0 && break +done + + ;; + 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" =3D x; then + as_myself=3D$0 + fi + if test ! -f "$as_myself"; then + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an abs= olute path" >&5 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;= } + { (exit 1); exit 1; }; } + fi + case $CONFIG_SHELL in + '') + as_save_IFS=3D$IFS; IFS=3D$PATH_SEPARATOR +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=3D$as_save_IFS + test -z "$as_dir" && as_dir=3D. + for as_base in sh bash ksh sh5; do + case $as_dir in + /*) + if ("$as_dir/$as_base" -c ' + as_lineno_1=3D$LINENO + as_lineno_2=3D$LINENO + as_lineno_3=3D`(expr $as_lineno_1 + 1) 2>/dev/null` + test "x$as_lineno_1" !=3D "x$as_lineno_2" && + test "x$as_lineno_3" =3D "x$as_lineno_2" ') 2>/dev/null; then + $as_unset BASH_ENV || test "${BASH_ENV+set}" !=3D set || { BASH_ENV= =3D; export BASH_ENV; } + $as_unset ENV || test "${ENV+set}" !=3D set || { ENV=3D; export ENV;= } + CONFIG_SHELL=3D$as_dir/$as_base + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$0" ${1+"$@"} + fi;; + esac + done +done +;; + esac + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line before each line; the second 'sed' does the real + # work. The second script uses 'N' to pair each line-number line + # with the numbered line, and appends trailing '-' during + # substitution so that $LINENO is not a special case at line end. + # (Raja R Harinath suggested sed '=3D', and Paul Eggert wrote the + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) + sed '=3D' <$as_myself | + sed ' + N + s,$,-, + : loop + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\= 1\3, + t loop + s,-$,, + s,^['$as_cr_digits']*\n,, + ' >$as_me.lineno && + chmod +x $as_me.lineno || + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun wi= th a POSIX shell" >&5 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell= " >&2;} + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensible to this). + . ./$as_me.lineno + # Exit status is that of the last command. + exit +} + + +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in + *c*,-n*) ECHO_N=3D ECHO_C=3D' +' ECHO_T=3D' ' ;; + *c*,* ) ECHO_N=3D-n ECHO_C=3D ECHO_T=3D ;; + *) ECHO_N=3D ECHO_C=3D'\c' ECHO_T=3D ;; +esac + +if expr a : '\(a\)' >/dev/null 2>&1; then + as_expr=3Dexpr +else + as_expr=3Dfalse +fi + +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then + # We could just check for DJGPP; but this test a) works b) is more gener= ic + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). + if test -f conf$$.exe; then + # Don't use ln at all; we don't have any links + as_ln_s=3D'cp -p' + else + as_ln_s=3D'ln -s' + fi +elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=3Dln +else + as_ln_s=3D'cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.file + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=3D: +else + as_mkdir_p=3Dfalse +fi + +as_executable_p=3D"test -f" + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp=3D"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=3D"sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" + + +# IFS +# We need space, tab and new line, in precisely that order. +as_nl=3D' +' +IFS=3D" $as_nl" + +# CDPATH. +$as_unset CDPATH || test "${CDPATH+set}" !=3D set || { CDPATH=3D$PATH_SEPA= RATOR; export CDPATH; } + +exec 6>&1 + +# Open the log real soon, to keep \$[0] and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. Logging --version etc. is OK. +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX +} >&5 +cat >&5 <<_CSEOF + +This file was extended by CMP-linux $as_me 0.68, which was +generated by GNU Autoconf 2.53a. Invocation command line was + + CONFIG_FILES =3D $CONFIG_FILES + CONFIG_HEADERS =3D $CONFIG_HEADERS + CONFIG_LINKS =3D $CONFIG_LINKS + CONFIG_COMMANDS =3D $CONFIG_COMMANDS + $ $0 $@ + +_CSEOF +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 +echo >&5 +_ACEOF + +# Files that config.status was made for. +if test -n "$ac_config_files"; then + echo "config_files=3D\"$ac_config_files\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_headers"; then + echo "config_headers=3D\"$ac_config_headers\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_links"; then + echo "config_links=3D\"$ac_config_links\"" >>$CONFIG_STATUS +fi + +if test -n "$ac_config_commands"; then + echo "config_commands=3D\"$ac_config_commands\"" >>$CONFIG_STATUS +fi + +cat >>$CONFIG_STATUS <<\_ACEOF + +ac_cs_usage=3D"\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTIONS] [FILE]... + + -h, --help print this help, then exit + -V, --version print version number, then exit + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=3DFILE[:TEMPLATE] + instantiate the configuration file FILE + --header=3DFILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to ." +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF +ac_cs_version=3D"\\ +CMP-linux config.status 0.68 +configured by $0, generated by GNU Autoconf 2.53a, + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`= \\" + +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 +Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." +srcdir=3D$srcdir +INSTALL=3D"$INSTALL" +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. +ac_need_defaults=3D: +while test $# !=3D 0 +do + case $1 in + --*=3D*) + ac_option=3D`expr "x$1" : 'x\([^=3D]*\)=3D'` + ac_optarg=3D`expr "x$1" : 'x[^=3D]*=3D\(.*\)'` + ac_shift=3D: + ;; + -*) + ac_option=3D$1 + ac_optarg=3D$2 + ac_shift=3Dshift + ;; + *) # This is not an option, so the user has probably given explicit + # arguments. + ac_option=3D$1 + ac_need_defaults=3Dfalse;; + esac + + case $ac_option in + # Handling of the options. +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recurs= ion" + exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF + --version | --vers* | -V ) + echo "$ac_cs_version"; exit 0 ;; + --he | --h) + # Conflict between --help and --header + { { echo "$as_me:$LINENO: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; };; + --help | --hel | -h ) + echo "$ac_cs_usage"; exit 0 ;; + --debug | --d* | -d ) + debug=3D: ;; + --file | --fil | --fi | --f ) + $ac_shift + CONFIG_FILES=3D"$CONFIG_FILES $ac_optarg" + ac_need_defaults=3Dfalse;; + --header | --heade | --head | --hea ) + $ac_shift + CONFIG_HEADERS=3D"$CONFIG_HEADERS $ac_optarg" + ac_need_defaults=3Dfalse;; + + # This is an error. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&5 +echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2;} + { (exit 1); exit 1; }; } ;; + + *) ac_config_targets=3D"$ac_config_targets $1" ;; + + esac + shift +done + +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF +# +# INIT-COMMANDS section. +# + +AMDEP_TRUE=3D"$AMDEP_TRUE" ac_aux_dir=3D"$ac_aux_dir" + +_ACEOF + + + +cat >>$CONFIG_STATUS <<\_ACEOF +for ac_config_target in $ac_config_targets +do + case "$ac_config_target" in + # Handling of arguments. + "Makefile" ) CONFIG_FILES=3D"$CONFIG_FILES Makefile" ;; + "depfiles" ) CONFIG_COMMANDS=3D"$CONFIG_COMMANDS depfiles" ;; + "config.h" ) CONFIG_HEADERS=3D"$CONFIG_HEADERS config.h" ;; + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target"= >&5 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; + esac +done + +# If the user did not use the arguments to specify the items to instantiat= e, +# 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}" =3D set || CONFIG_FILES=3D$config_files + test "${CONFIG_HEADERS+set}" =3D set || CONFIG_HEADERS=3D$config_headers + test "${CONFIG_COMMANDS+set}" =3D set || CONFIG_COMMANDS=3D$config_comma= nds +fi + +# Create a temporary directory, and hook for its removal unless debugging. +$debug || +{ + trap 'exit_status=3D$?; rm -rf $tmp && exit $exit_status' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} + +# Create a (secure) tmp directory for tmp files. +: ${TMPDIR=3D/tmp} +{ + tmp=3D`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=3D$TMPDIR/cs$$-$RANDOM + (umask 077 && mkdir $tmp) +} || +{ + echo "$me: cannot create a temporary directory in $TMPDIR" >&2 + { (exit 1); exit 1; } +} + +_ACEOF + +cat >>$CONFIG_STATUS <<_ACEOF + +# +# CONFIG_FILES section. +# + +# No need to generate the scripts if there are no CONFIG_FILES. +# This happens for instance when ./config.status config.h +if test -n "\$CONFIG_FILES"; then + # Protect against being on the right side of a sed subst in config.statu= s. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF +s,@SHELL@,$SHELL,;t t +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t +s,@exec_prefix@,$exec_prefix,;t t +s,@prefix@,$prefix,;t t +s,@program_transform_name@,$program_transform_name,;t t +s,@bindir@,$bindir,;t t +s,@sbindir@,$sbindir,;t t +s,@libexecdir@,$libexecdir,;t t +s,@datadir@,$datadir,;t t +s,@sysconfdir@,$sysconfdir,;t t +s,@sharedstatedir@,$sharedstatedir,;t t +s,@localstatedir@,$localstatedir,;t t +s,@libdir@,$libdir,;t t +s,@includedir@,$includedir,;t t +s,@oldincludedir@,$oldincludedir,;t t +s,@infodir@,$infodir,;t t +s,@mandir@,$mandir,;t t +s,@build_alias@,$build_alias,;t t +s,@host_alias@,$host_alias,;t t +s,@target_alias@,$target_alias,;t t +s,@DEFS@,$DEFS,;t t +s,@ECHO_C@,$ECHO_C,;t t +s,@ECHO_N@,$ECHO_N,;t t +s,@ECHO_T@,$ECHO_T,;t t +s,@LIBS@,$LIBS,;t t +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t +s,@INSTALL_DATA@,$INSTALL_DATA,;t t +s,@PACKAGE@,$PACKAGE,;t t +s,@VERSION@,$VERSION,;t t +s,@ACLOCAL@,$ACLOCAL,;t t +s,@AUTOCONF@,$AUTOCONF,;t t +s,@AUTOMAKE@,$AUTOMAKE,;t t +s,@AUTOHEADER@,$AUTOHEADER,;t t +s,@MAKEINFO@,$MAKEINFO,;t t +s,@AMTAR@,$AMTAR,;t t +s,@install_sh@,$install_sh,;t t +s,@STRIP@,$STRIP,;t t +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t +s,@AWK@,$AWK,;t t +s,@SET_MAKE@,$SET_MAKE,;t t +s,@CC@,$CC,;t t +s,@CFLAGS@,$CFLAGS,;t t +s,@LDFLAGS@,$LDFLAGS,;t t +s,@CPPFLAGS@,$CPPFLAGS,;t t +s,@ac_ct_CC@,$ac_ct_CC,;t t +s,@EXEEXT@,$EXEEXT,;t t +s,@OBJEXT@,$OBJEXT,;t t +s,@DEPDIR@,$DEPDIR,;t t +s,@am__include@,$am__include,;t t +s,@am__quote@,$am__quote,;t t +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t +s,@CCDEPMODE@,$CCDEPMODE,;t t +s,@USE_READLINE_TRUE@,$USE_READLINE_TRUE,;t t +s,@USE_READLINE_FALSE@,$USE_READLINE_FALSE,;t t +CEOF + +_ACEOF + + cat >>$CONFIG_STATUS <<\_ACEOF + # Split the substitutions into bite-sized pieces for seds with + # small command number limits, like on Digital OSF/1 and HP-UX. + ac_max_sed_lines=3D48 + ac_sed_frag=3D1 # Number of current file. + ac_beg=3D1 # First line for current file. + ac_end=3D$ac_max_sed_lines # Line after last line for current file. + ac_more_lines=3D: + ac_sed_cmds=3D + while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + else + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag + fi + if test ! -s $tmp/subs.frag; then + ac_more_lines=3Dfalse + else + # The purpose of the label and of the branching condition is to + # speed up the sed processing (if there are no `@' at all, there + # is no need to browse any of the substitutions). + # These are the two extra sed commands mentioned above. + (echo ':t + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_= frag.sed + if test -z "$ac_sed_cmds"; then + ac_sed_cmds=3D"sed -f $tmp/subs-$ac_sed_frag.sed" + else + ac_sed_cmds=3D"$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" + fi + ac_sed_frag=3D`expr $ac_sed_frag + 1` + ac_beg=3D$ac_end + ac_end=3D`expr $ac_end + $ac_max_sed_lines` + fi + done + if test -z "$ac_sed_cmds"; then + ac_sed_cmds=3Dcat + fi +fi # test -n "$CONFIG_FILES" + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +for ac_file in : $CONFIG_FILES; do test "x$ac_file" =3D x: && continue + # Support "outfile[:infile[:infile...]]", defaulting infile=3D"outfile.i= n". + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=3D`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=3D`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=3D`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=3D`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=3D$ac_file.in ;; + esac + + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. + ac_dir=3D`(dirname "$ac_file") 2>/dev/null || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + { if $as_mkdir_p; then + mkdir -p "$ac_dir" + else + as_dir=3D"$ac_dir" + as_dirs=3D + while test ! -d "$as_dir"; do + as_dirs=3D"$as_dir $as_dirs" + as_dir=3D`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir= \"" >&5 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} + { (exit 1); exit 1; }; }; } + + ac_builddir=3D. + +if test "$ac_dir" !=3D .; then + ac_dir_suffix=3D/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=3D`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix=3D ac_top_builddir=3D +fi + +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=3D. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=3D. + else + ac_top_srcdir=3D`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=3D$srcdir$ac_dir_suffix; + ac_top_srcdir=3D$srcdir ;; + *) # Relative path. + ac_srcdir=3D$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=3D$ac_top_builddir$srcdir ;; +esac +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can = be +# absolute. +ac_abs_builddir=3D`cd "$ac_dir" && cd $ac_builddir && pwd` +ac_abs_top_builddir=3D`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` +ac_abs_srcdir=3D`cd "$ac_dir" && cd $ac_srcdir && pwd` +ac_abs_top_srcdir=3D`cd "$ac_dir" && cd $ac_top_srcdir && pwd` + + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=3D$INSTALL ;; + *) ac_INSTALL=3D$ac_top_builddir$INSTALL ;; + esac + + if test x"$ac_file" !=3D x-; then + { echo "$as_me:$LINENO: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + rm -f "$ac_file" + fi + # 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. */ + if test x"$ac_file" =3D x-; then + configure_input=3D + else + configure_input=3D"$ac_file. " + fi + configure_input=3D$configure_input"Generated from `echo $ac_file_in | + sed 's,.*/,,'` by configure." + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=3D`IFS=3D: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]*) + # Absolute (can't be DOS-style, as IFS=3D:) + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find inpu= t file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + echo $f;; + *) # Relative + if test -f "$f"; then + # Build tree + echo $f + elif test -f "$srcdir/$f"; then + # Source tree + echo $srcdir/$f + else + # /dev/null tree + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&= 5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF + sed "$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s,@configure_input@,$configure_input,;t t +s,@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,@top_builddir@,$ac_top_builddir,;t t +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t +s,@INSTALL@,$ac_INSTALL,;t t +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out + rm -f $tmp/stdin + if test x"$ac_file" !=3D x-; then + mv $tmp/out $ac_file + else + cat $tmp/out + rm -f $tmp/out + fi + +done +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF + +# +# CONFIG_HEADER section. +# + +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where +# NAME is the cpp macro being defined and VALUE is the value it is being g= iven. +# +# ac_d sets the value in "#define NAME VALUE" lines. +ac_dA=3D's,^\([ ]*\)#\([ ]*define[ ][ ]*\)' +ac_dB=3D'[ ].*$,\1#\2' +ac_dC=3D' ' +ac_dD=3D',;t' +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALU= E". +ac_uA=3D's,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_uB=3D'$,\1#\2define\3' +ac_uC=3D' ' +ac_uD=3D',;t' + +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" =3D x: && continue + # Support "outfile[:infile[:infile...]]", defaulting infile=3D"outfile.i= n". + case $ac_file in + - | *:- | *:-:* ) # input from stdin + cat >$tmp/stdin + ac_file_in=3D`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=3D`echo "$ac_file" | sed 's,:.*,,'` ;; + *:* ) ac_file_in=3D`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=3D`echo "$ac_file" | sed 's,:.*,,'` ;; + * ) ac_file_in=3D$ac_file.in ;; + esac + + test x"$ac_file" !=3D x- && { echo "$as_me:$LINENO: creating $ac_file" >= &5 +echo "$as_me: creating $ac_file" >&6;} + + # First look for the input files in the build tree, otherwise in the + # src tree. + ac_file_inputs=3D`IFS=3D: + for f in $ac_file_in; do + case $f in + -) echo $tmp/stdin ;; + [\\/$]*) + # Absolute (can't be DOS-style, as IFS=3D:) + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find inpu= t file: $f" >&5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + echo $f;; + *) # Relative + if test -f "$f"; then + # Build tree + echo $f + elif test -f "$srcdir/$f"; then + # Source tree + echo $srcdir/$f + else + # /dev/null tree + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&= 5 +echo "$as_me: error: cannot find input file: $f" >&2;} + { (exit 1); exit 1; }; } + fi;; + esac + done` || { (exit 1); exit 1; } + # Remove the trailing spaces. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in + +_ACEOF + +# Transform confdefs.h into two sed scripts, `conftest.defines' and +# `conftest.undefs', that substitutes the proper values into +# config.h.in to produce config.h. The first handles `#define' +# templates, and the second `#undef' templates. +# And first: Protect against being on the right side of a sed subst in +# config.status. Protect against being in an unquoted here document +# in config.status. +rm -f conftest.defines conftest.undefs +# Using a here document instead of a string reduces the quoting nightmare. +# Putting comments in sed scripts is not portable. +# +# `end' is used to avoid that the second main sed command (meant for +# 0-ary CPP macros) applies to n-ary macro definitions. +# See the Autoconf documentation for `clear'. +cat >confdef2sed.sed <<\_ACEOF +s/[\\&,]/\\&/g +s,[\\$`],\\&,g +t clear +: clear +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac= _dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp +t end +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB= }\1${ac_dC}\2${ac_dD},gp +: end +_ACEOF +# If some macros were called several times there might be several times +# the same #defines, which is useless. Nevertheless, we may not want to +# sort them, since we want the *last* AC-DEFINE to be honored. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs +rm -f confdef2sed.sed + +# This sed command replaces #undef with comments. This is necessary, for +# example, in the case of _POSIX_SOURCE, which is predefined and required +# on some systems where configure will not decide to define it. +cat >>conftest.undefs <<\_ACEOF +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, +_ACEOF + +# Break up conftest.defines because some shells have a limit on the size +# of here documents, and old seds have small limits too (100 cmds). +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_S= TATUS +echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_= STATUS +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_S= TATUS +echo ' :' >>$CONFIG_STATUS +rm -f conftest.tail +while grep . conftest.defines >/dev/null +do + # Write a limited-size here document to $tmp/defines.sed. + echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#define' lines. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS + echo 'CEOF + sed -f $tmp/defines.sed $tmp/in >$tmp/out + rm -f $tmp/in + mv $tmp/out $tmp/in +' >>$CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail + rm -f conftest.defines + mv conftest.tail conftest.defines +done +rm -f conftest.defines +echo ' fi # egrep' >>$CONFIG_STATUS +echo >>$CONFIG_STATUS + +# Break up conftest.undefs because some shells have a limit on the size +# of here documents, and old seds have small limits too (100 cmds). +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS +rm -f conftest.tail +while grep . conftest.undefs >/dev/null +do + # Write a limited-size here document to $tmp/undefs.sed. + echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#undef' + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS + echo 'CEOF + sed -f $tmp/undefs.sed $tmp/in >$tmp/out + rm -f $tmp/in + mv $tmp/out $tmp/in +' >>$CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail + rm -f conftest.undefs + mv conftest.tail conftest.undefs +done +rm -f conftest.undefs + +cat >>$CONFIG_STATUS <<\_ACEOF + # 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. */ + if test x"$ac_file" =3D x-; then + echo "/* Generated by configure. */" >$tmp/config.h + else + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h + fi + cat $tmp/in >>$tmp/config.h + rm -f $tmp/in + if test x"$ac_file" !=3D x-; then + if cmp -s $ac_file $tmp/config.h 2>/dev/null; then + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 +echo "$as_me: $ac_file is unchanged" >&6;} + else + ac_dir=3D`(dirname "$ac_file") 2>/dev/null || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + { if $as_mkdir_p; then + mkdir -p "$ac_dir" + else + as_dir=3D"$ac_dir" + as_dirs=3D + while test ! -d "$as_dir"; do + as_dirs=3D"$as_dir $as_dirs" + as_dir=3D`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir= \"" >&5 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} + { (exit 1); exit 1; }; }; } + + rm -f $ac_file + mv $tmp/config.h $ac_file + fi + else + cat $tmp/config.h + rm -f $tmp/config.h + fi + # Run the commands associated with the file. + case $ac_file in + config.h ) # update the timestamp +echo 'timestamp for config.h' >"./stamp-h1" + ;; + esac +done +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF + +# +# CONFIG_COMMANDS section. +# +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" =3D x: && continue + ac_dest=3D`echo "$ac_file" | sed 's,:.*,,'` + ac_source=3D`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_dir=3D`(dirname "$ac_dest") 2>/dev/null || +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_dest" : 'X\(//\)[^/]' \| \ + X"$ac_dest" : 'X\(//\)$' \| \ + X"$ac_dest" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_dest" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + ac_builddir=3D. + +if test "$ac_dir" !=3D .; then + ac_dir_suffix=3D/`echo "$ac_dir" | sed 's,^\.[\\/],,'` + # A "../" for each directory in $ac_dir_suffix. + ac_top_builddir=3D`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` +else + ac_dir_suffix=3D ac_top_builddir=3D +fi + +case $srcdir in + .) # No --srcdir option. We are building in place. + ac_srcdir=3D. + if test -z "$ac_top_builddir"; then + ac_top_srcdir=3D. + else + ac_top_srcdir=3D`echo $ac_top_builddir | sed 's,/$,,'` + fi ;; + [\\/]* | ?:[\\/]* ) # Absolute path. + ac_srcdir=3D$srcdir$ac_dir_suffix; + ac_top_srcdir=3D$srcdir ;; + *) # Relative path. + ac_srcdir=3D$ac_top_builddir$srcdir$ac_dir_suffix + ac_top_srcdir=3D$ac_top_builddir$srcdir ;; +esac +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can = be +# absolute. +ac_abs_builddir=3D`cd "$ac_dir" && cd $ac_builddir && pwd` +ac_abs_top_builddir=3D`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` +ac_abs_srcdir=3D`cd "$ac_dir" && cd $ac_srcdir && pwd` +ac_abs_top_srcdir=3D`cd "$ac_dir" && cd $ac_top_srcdir && pwd` + + + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 +echo "$as_me: executing $ac_dest commands" >&6;} + case $ac_dest in + depfiles ) test x"$AMDEP_TRUE" !=3D x"" || for mf in $CONFIG_FILES; do + # Strip MF so we end up with the name of the file. + mf=3D`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # So let's grep whole file. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then + dirpart=3D`(dirname "$mf") 2>/dev/null || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + else + continue + fi + grep '^DEP_FILES *=3D *[^ #]' < "$mf" > /dev/null || continue + # Extract the definition of DEP_FILES from the Makefile without + # running `make'. + DEPDIR=3D`sed -n -e '/^DEPDIR =3D / s///p' < "$mf"` + test -z "$DEPDIR" && continue + # When using ansi2knr, U may be empty or an underscore; expand it + U=3D`sed -n -e '/^U =3D / s///p' < "$mf"` + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" + # We invoke sed twice because it is the simplest approach to + # changing $(DEPDIR) to its actual value in the expansion. + for file in `sed -n -e ' + /^DEP_FILES =3D .*\\\\$/ { + s/^DEP_FILES =3D // + :loop + s/\\\\$// + p + n + /\\\\$/ b loop + p + } + /^DEP_FILES =3D / s/^DEP_FILES =3D //p' < "$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=3D`(dirname "$file") 2>/dev/null || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + { if $as_mkdir_p; then + mkdir -p $dirpart/$fdir + else + as_dir=3D$dirpart/$fdir + as_dirs=3D + while test ! -d "$as_dir"; do + as_dirs=3D"$as_dir $as_dirs" + as_dir=3D`(dirname "$as_dir") 2>/dev/null || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } + /^X\(\/\/\)[^/].*/{ s//\1/; q; } + /^X\(\/\/\)$/{ s//\1/; q; } + /^X\(\/\).*/{ s//\1/; q; } + s/.*/./; q'` + done + test ! -n "$as_dirs" || mkdir $as_dirs + fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/= $fdir" >&5 +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} + { (exit 1); exit 1; }; }; } + + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done + ;; + esac +done +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF + +{ (exit 0); exit 0; } +_ACEOF +chmod +x $CONFIG_STATUS +ac_clean_files=3D$ac_clean_files_save + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" !=3D yes; then + ac_cs_success=3D: + exec 5>/dev/null + $SHELL $CONFIG_STATUS || ac_cs_success=3Dfalse + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? =3D 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || { (exit 1); exit 1; } +fi + diff -Nru CMP0.68/configure.ac cmp-linux-0.68/configure.ac --- CMP0.68/configure.ac 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/configure.ac 2003-02-19 22:28:31.000000000 -0800 @@ -0,0 +1,68 @@ +dnl Process this file with autoconf to produce configure. +dnl vim:set softtabstop=3D4 shiftwidth=3D4 tabstop=3D4 expandtab tw=3D72: +dnl=20 +dnl Copyright (C) 2003 Casey Marshall +dnl +dnl Permission is hereby granted, free of charge, to any person obtaining = a +dnl copy of this software and associated documentation files (the +dnl "Software"), to deal in the Software without restriction, including +dnl without limitation the rights to use, copy, modify, merge, publish, +dnl distribute, sublicense, and/or sell copies of the Software, and to +dnl permit persons to whom the Software is furnished to do so, subject to +dnl the following conditions: +dnl +dnl The above copyright notice and this permission notice shall be include= d +dnl in all copies or substantial portions of the Software. +dnl +dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRES= S +dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +dnl IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +dnl CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +dnl TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +dnl SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +dnl +dnl ------------------------------------------------------------------- + +AC_INIT(CMP-linux, 0.68) +AM_INIT_AUTOMAKE +AM_CONFIG_HEADER(config.h) + +dnl ------------------------------------------------------------------- +dnl Additional arguments. +dnl ------------------------------------------------------------------- + +AC_ARG_ENABLE(readline, + [ --enable-readline Use readline to prompt for commands.], + [want_readline=3D${enableval}], [want_readline=3Dno]) + +dnl ------------------------------------------------------------------- +dnl Checks for programs. +dnl ------------------------------------------------------------------- + +AC_PROG_CC + +dnl ------------------------------------------------------------------- +dnl Checks for libraries. +dnl ------------------------------------------------------------------- + +AC_CHECK_LIB(asound, snd_seq_open, , AC_MSG_ERROR([ALSA not found.])) + +if test x$want_readline =3D xyes; then + AC_CHECK_LIB(pthread, pthread_create, , [ + AC_MSG_ERROR([libpthread is required to enable readline support.])= ]) + AC_CHECK_LIB(ncurses, tgetstr) + AC_CHECK_LIB(history, add_history, , [ + AC_MSG_ERROR([GNU history is required to enable readline support.]= )]) + AC_CHECK_LIB(readline, readline, , [ + AC_MSG_ERROR([readline requested, but not found.])]) + AC_DEFINE(USE_READLINE, 1, [Define if readline support is enabled.]) +fi + +AM_CONDITIONAL(USE_READLINE, test x$want_readline =3D xyes) + +dnl ------------------------------------------------------------------- +dnl Output. +dnl ------------------------------------------------------------------- + +AC_OUTPUT([Makefile]) diff -Nru CMP0.68/console/cmpConsoleTry.c cmp-linux-0.68/console/cmpConsole= Try.c --- CMP0.68/console/cmpConsoleTry.c 2001-12-09 18:48:13.000000000 -0800 +++ cmp-linux-0.68/console/cmpConsoleTry.c 2003-02-19 08:00:45.000000000 -0= 800 @@ -10,6 +10,9 @@ #include #include "CMP.console.h" =20 +/* linux_readline expects these. */ +char *gNAME =3D "test"; +char *gVERSION =3D "0"; =20 /*--------------*/ int main(void) diff -Nru CMP0.68/console/linux/README cmp-linux-0.68/console/linux/README --- CMP0.68/console/linux/README 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/console/linux/README 2003-02-19 21:38:58.000000000 -0800 @@ -0,0 +1,13 @@ +This directory contains two console reading implemetations for +GNU/Linux: a simple polling implementation similar to the one for IRIX +(see ../sgi_poll), and a multithreaded version that uses GNU Readline. + +The latter (linux_readline.c) is rather more complicated and confusing. +This is so very little had to be done to the canonical ComParser sources +to accomodate this implementation, so if something looks dumb or crufty, +it is for this reason. + +Since linux_readline.c uses the GNU Readline library, derivations of +ComParser must be licensed under a GPL-compatible license if they +include the readline module. If this is a problem, use the polling +implementation instead. diff -Nru CMP0.68/console/linux/linux_poll.c cmp-linux-0.68/console/linux/l= inux_poll.c --- CMP0.68/console/linux/linux_poll.c 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/console/linux/linux_poll.c 2003-02-19 06:22:08.000000000= -0800 @@ -0,0 +1,61 @@ +/* vim:set softtabstop=3D4 shiftwidth=3D4 tabstop=3D4 expandtab tw=3D72: + *=20 + * linux_poll.c -- "nonblocking" fgets via poll(2) + * Copyright (C) 2003 Casey Marshall + * + * 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * -----------------------------------------------------------------------= --- + */ + +#include +#include +#include + +#include "CMP.console.h" + +static char buffer[kCMP_maxConsoleInput+1]; + +void cmpInitialize(void) +{ + buffer[0] =3D '\0'; +} + +/* + * Return a line of user input, or NULL if no input is available. + */ +char *cmpGetConsoleInputString(void) +{ + struct pollfd pfd =3D { fileno(stdin), POLLIN }; + int l; + + /* Check if an input event has occured, or occurs within 4ms, then + * fgets it. */ + if (poll(&pfd, 1, 4) > 0) { + if (pfd.revents & POLLIN) { + fgets(buffer, kCMP_maxConsoleInput, stdin); + /* Overwrite terminating \n with \0. */ + if ((l =3D strlen(buffer)) > 0) + buffer[l-1] =3D '\0'; + return buffer; + } + } + return NULL; +} diff -Nru CMP0.68/console/linux/linux_readline.c cmp-linux-0.68/console/lin= ux/linux_readline.c --- CMP0.68/console/linux/linux_readline.c 1969-12-31 16:00:00.000000000 -0= 800 +++ cmp-linux-0.68/console/linux/linux_readline.c 2003-02-28 12:39:53.00000= 0000 -0800 @@ -0,0 +1,150 @@ +/* vim:set softtabstop=3D4 shiftwidth=3D4 tabstop=3D4 expandtab tw=3D72: + *=20 + * linux_readline -- threaded user input with readline(3). + * Copyright (C) 2003 Casey marshall + * + * 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * -----------------------------------------------------------------------= --- + */ + +#include +#include +#include +#include +#include +#include +#include + +#include "CMP.console.h" + +/* The readline thread, filled in by calling pthread_create. */ +static pthread_t rl_thread; + +/*=20 + * When do_readline is nonzero, it is safe to call readline(). + * When do_output is nonzero, it is safe to return the input line. + */ +static sem_t do_readline, do_output; + +/* The input line. Returned on each call to cmpGetConsoleInputString() */ +static char input[kCMP_maxConsoleInput+1]; + +/* Non-zero if readline() is blocking, awaiting input. */ +static int rl_blocking; + +/* The prompt for readline. */ +static char prompt[32]; + +/* Non-zero means to show the prompt when calling readline. */ +int show_prompt =3D 1; + +/*************************************************************************= **/ + +/* + * The readline loop. This runs in its own thread, consantly calling + * readline(3) and storing the result into the input array (above). + */ +void cmp_readline_thread(void *p) +{ + char *line =3D NULL; + int i; + + using_history(); + stifle_history(256); + while (1) { + sem_wait(&do_readline); + if (show_prompt) + line =3D readline(prompt); + else + line =3D readline(""); + if (line) { + for (i =3D 0; i < strlen(line); i++) { + if (!isspace(line[i])) { + /* First non-whitespace character is 'q', so we must + * be quitting. We do this because the terminal will + * be mangled if we exit while in the middle of + * calling readline. + */ + if (line[i] =3D=3D 'q') { + sprintf(input, "q"); + sem_post(&do_output); + pthread_exit(0); + } + add_history(line); + break; + } + } + strncpy(input, line, kCMP_maxConsoleInput); + if (input[strlen(input)-1] =3D=3D '\n') + input[strlen(input)-1] =3D '\0'; + free(line); + } else { + sprintf(input, "q"); + sem_post(&do_output); + pthread_exit(0); + } + sem_post(&do_output); + } +} + +void cmpInitialize(void) +{ + pthread_attr_t attr; + extern char *gNAME; + extern char *gVERSION; + + snprintf(prompt, 32, "%s-%s> ", gNAME, gVERSION); + input[0] =3D '\0'; + sem_init(&do_readline, 0, 0); + sem_init(&do_output, 0, 1); + pthread_attr_init(&attr); + if (pthread_create(&rl_thread, &attr, (void*)cmp_readline_thread, NULL= )) + { + fprintf(stderr, "INPUT THREAD COULD NOT BE CREATED! (%s)\n", + strerror(errno)); + } + printf( +"This version of this program is free software, and uses code that is\n" +"Copyrighted by the Free Software Foundation, covered under the terms of\n= " +"the GNU General Public License. This program is distributed in the hope\n= " +"that it will be useful, but WITHOUT ANY WARRANTY.\n" + ); + rl_blocking =3D 0; +} + +char *cmpGetConsoleInputString(void) +{ + char *result =3D NULL; + int o, r; + + sem_getvalue(&do_readline, &r); + sem_getvalue(&do_output, &o); + if (r =3D=3D 0 && o =3D=3D 0 && rl_blocking =3D=3D 0) { + sem_post(&do_readline); + rl_blocking =3D 1; + } + + if (sem_trywait(&do_output) =3D=3D 0) { + result =3D input; + rl_blocking =3D 0; + } + return result; +} diff -Nru CMP0.68/depcomp cmp-linux-0.68/depcomp --- CMP0.68/depcomp 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/depcomp 2003-02-17 23:17:15.000000000 -0800 @@ -0,0 +1,423 @@ +#! /bin/sh + +# depcomp - compile a program generating dependencies as side-effects +# Copyright 1999, 2000 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# As a special exception 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 . + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi +# `libtool' can also be set to `yes' or `no'. + +if test -z "$depfile"; then + base=3D`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'` + dir=3D`echo "$object" | sed 's,/.*$,/,'` + if test "$dir" =3D "$object"; then + dir=3D + fi + # FIXME: should be _deps on DOS. + depfile=3D"$dir.deps/$base" +fi + +tmpdepfile=3D${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" =3D hp; then + # HP compiler uses -M and no extra arg. + gccflag=3D-M + depmode=3Dgcc +fi + +if test "$depmode" =3D dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=3D-xM + depmode=3Ddashmstdout +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" + stat=3D$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=3D-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=3D$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + alpha=3DABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz +## The second -e expression handles DOS-style file names with drive letter= s. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the `deleted header file' problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. + tr ' ' ' +' < "$tmpdepfile" | +## Some versions of gcc put a space before the `:'. On the theory +## that the space means something, we add a space to the output as +## well. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfil= e" + 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" =3D yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=3D$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other fi= les + echo "$object : \\" > "$depfile" + + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like `#:fec' to the end of the + # dependency line. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ + tr ' +' ' ' >> $depfile + echo >> $depfile + + # The second pass generates a dummy entry for each header file. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> $depfile + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. This file always lives in the current directory. + # Also, the AIX compiler puts `$object:' at the start of each line; + # $object doesn't have directory information. + stripped=3D`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'` + tmpdepfile=3D"$stripped.u" + outname=3D"$stripped.o" + if test "$libtool" =3D yes; then + "$@" -Wc,-M + else + "$@" -M + fi + + stat=3D$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + + if test -f "$tmpdepfile"; then + # Each line is of the form `foo.o: dependent.h'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +tru64) + # The Tru64 compiler uses -MD to generate dependencies as a side + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in `foo.d' instead, so we check for that too. + # Subdirectories are respected. + dir=3D`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" =3D "x$object" && dir=3D + base=3D`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'= ` + + if test "$libtool" =3D yes; then + tmpdepfile1=3D"$dir.libs/$base.lo.d" + tmpdepfile2=3D"$dir.libs/$base.d" + "$@" -Wc,-MD + else + tmpdepfile1=3D"$dir$base.o.d" + tmpdepfile2=3D"$dir$base.d" + "$@" -MD + fi + + stat=3D$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" + exit $stat + fi + + if test -f "$tmpdepfile1"; then + tmpdepfile=3D"$tmpdepfile1" + else + tmpdepfile=3D"$tmpdepfile2" + fi + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a space and a tab in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depf= ile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the proprocessed file to stdout, regardless of -o. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" =3D yes; then + while test $1 !=3D '--mode=3Dcompile'; do + shift + done + shift + fi + + # Remove `-o $object'. We will use -o /dev/null later, + # however we can't do the remplacement now because + # `-o $object' might simply not be used + IFS=3D" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + test -z "$dashmflag" && dashmflag=3D-M + "$@" -o /dev/null $dashmflag | sed 's:^[^:]*\:[ ]*:'"$object"'\: :' > "= $tmpdepfile" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + tr ' ' ' +' < "$tmpdepfile" | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfil= e" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + "$@" || exit $? + # X makedepend + shift + cleared=3Dno + for arg in "$@"; do + case $cleared in + no) + set ""; shift + cleared=3Dyes ;; + esac + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift ;; + -*) + ;; + *) + set fnord "$@" "$arg"; shift ;; + esac + done + obj_suffix=3D"`echo $object | sed 's/^.*\././'`" + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + sed '1,2d' "$tmpdepfile" | tr ' ' ' +' | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfil= e" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the proprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" =3D yes; then + while test $1 !=3D '--mode=3Dcompile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=3D" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + "$@" -E | + sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | + sed '$ s: \\$::' > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the proprocessed file to stdout, regardless of -o, + # because we must use -o when running libtool. + "$@" || exit $? + IFS=3D" " + for arg + do + case "$arg" in + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`"= :p' | sort | uniq > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "= $depfile" + echo " " >> "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$d= epfile" + rm -f "$tmpdepfile" + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 diff -Nru CMP0.68/install-sh cmp-linux-0.68/install-sh --- CMP0.68/install-sh 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/install-sh 2003-02-17 23:17:14.000000000 -0800 @@ -0,0 +1,251 @@ +#!/bin/sh +# +# install - install a program, script, or datafile +# This comes from X11R5 (mit/util/scripts/install.sh). +# +# Copyright 1991 by the Massachusetts Institute of Technology +# +# Permission to use, copy, modify, distribute, and sell this software and = its +# documentation for any purpose is hereby granted without fee, provided th= at +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the name of M.I.T. not be used in advertising or +# publicity pertaining to distribution of the software without specific, +# written prior permission. M.I.T. makes no representations about the +# suitability of this software for any purpose. It is provided "as is" +# without express or implied warranty. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. It can only install one file at a time, a restriction +# shared with many OS's install programs. + + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit=3D"${DOITPROG-}" + + +# put in absolute paths if you don't have them in your path; or use env. v= ars. + +mvprog=3D"${MVPROG-mv}" +cpprog=3D"${CPPROG-cp}" +chmodprog=3D"${CHMODPROG-chmod}" +chownprog=3D"${CHOWNPROG-chown}" +chgrpprog=3D"${CHGRPPROG-chgrp}" +stripprog=3D"${STRIPPROG-strip}" +rmprog=3D"${RMPROG-rm}" +mkdirprog=3D"${MKDIRPROG-mkdir}" + +transformbasename=3D"" +transform_arg=3D"" +instcmd=3D"$mvprog" +chmodcmd=3D"$chmodprog 0755" +chowncmd=3D"" +chgrpcmd=3D"" +stripcmd=3D"" +rmcmd=3D"$rmprog -f" +mvcmd=3D"$mvprog" +src=3D"" +dst=3D"" +dir_arg=3D"" + +while [ x"$1" !=3D x ]; do + case $1 in + -c) instcmd=3D"$cpprog" + shift + continue;; + + -d) dir_arg=3Dtrue + shift + continue;; + + -m) chmodcmd=3D"$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd=3D"$chownprog $2" + shift + shift + continue;; + + -g) chgrpcmd=3D"$chgrpprog $2" + shift + shift + continue;; + + -s) stripcmd=3D"$stripprog" + shift + continue;; + + -t=3D*) transformarg=3D`echo $1 | sed 's/-t=3D//'` + shift + continue;; + + -b=3D*) transformbasename=3D`echo $1 | sed 's/-b=3D//'` + shift + continue;; + + *) if [ x"$src" =3D x ] + then + src=3D$1 + else + # this colon is to work around a 386BSD /bin/sh bug + : + dst=3D$1 + fi + shift + continue;; + esac +done + +if [ x"$src" =3D x ] +then + echo "install: no input file specified" + exit 1 +else + : +fi + +if [ x"$dir_arg" !=3D x ]; then + dst=3D$src + src=3D"" +=09 + if [ -d $dst ]; then + instcmd=3D: + chmodcmd=3D"" + else + instcmd=3D$mkdirprog + fi +else + +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command +# might cause directories to be created, which would be especially bad=20 +# if $src (and thus $dsttmp) contains '*'. + + if [ -f "$src" ] || [ -d "$src" ] + then + : + else + echo "install: $src does not exist" + exit 1 + fi +=09 + if [ x"$dst" =3D x ] + then + echo "install: no destination specified" + exit 1 + else + : + fi + +# If destination is a directory, append the input filename; if your system +# does not like double slashes in filenames, you may need to add some logi= c + + if [ -d $dst ] + then + dst=3D"$dst"/`basename $src` + else + : + fi +fi + +## this sed command emulates the dirname command +dstdir=3D`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` + +# Make sure that the destination directory exists. +# this part is taken from Noah Friedman's mkinstalldirs script + +# Skip lots of stat calls in the usual case. +if [ ! -d "$dstdir" ]; then +defaultIFS=3D' + ' +IFS=3D"${IFS-${defaultIFS}}" + +oIFS=3D"${IFS}" +# Some sh's can't handle IFS=3D/ for some reason. +IFS=3D'%' +set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` +IFS=3D"${oIFS}" + +pathcomp=3D'' + +while [ $# -ne 0 ] ; do + pathcomp=3D"${pathcomp}${1}" + shift + + if [ ! -d "${pathcomp}" ] ; + then + $mkdirprog "${pathcomp}" + else + : + fi + + pathcomp=3D"${pathcomp}/" +done +fi + +if [ x"$dir_arg" !=3D x ] +then + $doit $instcmd $dst && + + if [ x"$chowncmd" !=3D x ]; then $doit $chowncmd $dst; else : ; fi && + if [ x"$chgrpcmd" !=3D x ]; then $doit $chgrpcmd $dst; else : ; fi && + if [ x"$stripcmd" !=3D x ]; then $doit $stripcmd $dst; else : ; fi && + if [ x"$chmodcmd" !=3D x ]; then $doit $chmodcmd $dst; else : ; fi +else + +# If we're going to rename the final executable, determine the name now. + + if [ x"$transformarg" =3D x ]=20 + then + dstfile=3D`basename $dst` + else + dstfile=3D`basename $dst $transformbasename |=20 + sed $transformarg`$transformbasename + fi + +# don't allow the sed command to completely eliminate the filename + + if [ x"$dstfile" =3D x ]=20 + then + dstfile=3D`basename $dst` + else + : + fi + +# Make a temp file name in the proper directory. + + dsttmp=3D$dstdir/#inst.$$# + +# Move or copy the file name to the temp name + + $doit $instcmd $src $dsttmp && + + trap "rm -f ${dsttmp}" 0 && + +# 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 $instcmd $src $dsttmp" command. + + if [ x"$chowncmd" !=3D x ]; then $doit $chowncmd $dsttmp; else :;fi && + if [ x"$chgrpcmd" !=3D x ]; then $doit $chgrpcmd $dsttmp; else :;fi && + if [ x"$stripcmd" !=3D x ]; then $doit $stripcmd $dsttmp; else :;fi && + if [ x"$chmodcmd" !=3D x ]; then $doit $chmodcmd $dsttmp; else :;fi && + +# Now rename the file to the real destination. + + $doit $rmcmd -f $dstdir/$dstfile && + $doit $mvcmd $dsttmp $dstdir/$dstfile=20 + +fi && + + +exit 0 diff -Nru CMP0.68/midi/alsa/README cmp-linux-0.68/midi/alsa/README --- CMP0.68/midi/alsa/README 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/midi/alsa/README 2003-02-19 21:57:41.000000000 -0800 @@ -0,0 +1,10 @@ +This is an implementation of the ComParser MIDI handling routines for +ALSA. It uses the sequencer interface for sending and receiving MIDI +events, and the byte stream -> event encoder to parse MIDI data coming +from the ComParser code. + +Things that need to be done: + + * Handle SYSTEM events; the ALSA documentation was not (thus far) + helpful in determining what data comes along with these events + and how to access it. diff -Nru CMP0.68/midi/alsa/alsa_midi.c cmp-linux-0.68/midi/alsa/alsa_midi.= c --- CMP0.68/midi/alsa/alsa_midi.c 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/midi/alsa/alsa_midi.c 2003-02-19 23:53:54.000000000 -080= 0 @@ -0,0 +1,263 @@ +/* vim:set softtabstop=3D4 shiftwidth=3D4 tabstop=3D4 expandtab tw=3D72: + *=20 + * alsa_midi.c -- ALSA MIDI backend for CMP. + * Copyright (C) 2003 Casey Marshall + * + * 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * -----------------------------------------------------------------------= --- + */ + +#include +#include +#include + +#include "CMP.midi.h" + +/* The default ALSA SEQUENCER. */ +#define ALSA_SEQ_DEFAULT "default" + +/* The name we attach to the input device. */ +#define ALSA_SEQ_NAME "ComParser" + +#define PARSER_SIZE 1024 + +/* + * The ALSA-specific data for the MIDI device. + */ +typedef struct MD_SPECIFIC_ALSA { + snd_seq_t *seq; /* The sequencer. */ + int out; /* The output port. */ + int in; /* The input port. */ + snd_midi_event_t *parser; /* MIDI event parser. */ +} MD_SPECIFIC_ALSA; + +/* + * Opens the MIDI device for both input and output. + */ +void *specificOpenMIDI(CMP_MIDI_IO *mio) +{ + MD_SPECIFIC_ALSA *result =3D NULL; + int err =3D 0; + =20 + if (!mio) + return NULL; + + result =3D (MD_SPECIFIC_ALSA*) malloc(sizeof(MD_SPECIFIC_ALSA)); + if (!result) { + sprintf(mio->rep255, "malloc failed\n"); + return((void*) result); + } + + err =3D snd_seq_open(&(result->seq), ALSA_SEQ_DEFAULT, + SND_SEQ_OPEN_DUPLEX, SND_SEQ_NONBLOCK); + if (err) { + snprintf(mio->rep255, 256, "could not open sequencer: %s\n", + snd_strerror(err)); + free(result); + return((void*) NULL); + } + snd_seq_set_client_name(result->seq, ALSA_SEQ_NAME); + + result->out =3D snd_seq_create_simple_port(result->seq, ALSA_SEQ_NAME, + SND_SEQ_PORT_CAP_READ | SND_SEQ_PORT_CAP_SUBS_READ, + SND_SEQ_PORT_TYPE_MIDI_GENERIC | SND_SEQ_PORT_TYPE_APPLICATION); + if (result->out < 0) { + snprintf(mio->rep255, 256, "could not create port: %s\n", + snd_strerror(result->out)); + snd_seq_close(result->seq); + free(result); + return((void*) NULL); + } + + result->in =3D snd_seq_create_simple_port(result->seq, ALSA_SEQ_NAME, + SND_SEQ_PORT_CAP_WRITE | SND_SEQ_PORT_CAP_SUBS_WRITE, + SND_SEQ_PORT_TYPE_MIDI_GENERIC | SND_SEQ_PORT_TYPE_APPLICATION); + if (result->in < 0) { + snprintf(mio->rep255, 256, "could not create port: %s\n", + snd_strerror(result->in)); + snd_seq_close(result->seq); + free(result); + return((void*) NULL); + } + + err =3D snd_midi_event_new(PARSER_SIZE, &(result->parser)); + if (err < 0) { + snprintf(mio->rep255, 256, "could not create parser: %s\n", + snd_strerror(err)); + snd_seq_close(result->seq); + free(result); + return((void*) NULL); + } + + snprintf(mio->rep255, 256, "ALSA sequencer up id=3D%d in=3D%d out=3D%d= \n", + snd_seq_client_id(result->seq), result->in, result->out); + + return((void*) result); +} + +/* + * Close the sequencer, and free all resources allocated for it. + */ +void specificCloseMIDI(CMP_MIDI_IO *mio) +{ + MD_SPECIFIC_ALSA *alsaMIDI =3D (MD_SPECIFIC_ALSA*) NULL; + int err =3D 0; + + if (!mio) return; + + alsaMIDI =3D (MD_SPECIFIC_ALSA*) mio->specific; + if (alsaMIDI) { + err =3D snd_seq_close(alsaMIDI->seq); + if (err) + snprintf(mio->rep255, 256, "Failed to close sequencer: %s\n", + snd_strerror(err)); + else + sprintf(mio->rep255, "Releasing ALSA sequencer.\n"); + snd_midi_event_free(alsaMIDI->parser); + free(alsaMIDI); + mio->specific =3D (void*) NULL; + } else { + sprintf(mio->rep255, "ALSA reference is NULL!\n"); + } +} + +/* + * Send MIDI events to the MIDI device. This function uses the ALSA MIDI + * byte stream to event encoder to parse the raw input into ALSA + * sequencer events, then sends these to the sequencer. + */ +int sendMIDI(CMP_MIDI_IO *mio, unsigned char *ptr, int length, int interfa= ce) +{ + MD_SPECIFIC_ALSA *alsaMIDI =3D (MD_SPECIFIC_ALSA*) NULL; + snd_seq_event_t ev; + int i =3D 0, ret, err; + + if (!mio) + return(-1025); + + alsaMIDI =3D (MD_SPECIFIC_ALSA*) mio->specific; + if (!alsaMIDI) { + sprintf(mio->rep255, "Missing ALSA specific data.\n"); + return(-1025); + } + + snd_seq_ev_set_direct(&ev); + snd_seq_ev_set_source(&ev, alsaMIDI->out); + snd_seq_ev_set_dest(&ev, SND_SEQ_ADDRESS_SUBSCRIBERS, 0); + while (i < length && ret > 0) { + ret =3D snd_midi_event_encode(alsaMIDI->parser, ptr+i, length-i, &= ev); + if (ret < 0) { + snprintf(mio->rep255, 256, "Encoding error: %s\n", + snd_strerror(ret)); + return(-1026); + } + if (ev.type =3D=3D SND_SEQ_EVENT_NONE) + break; + i +=3D ret; + err =3D snd_seq_event_output_direct(alsaMIDI->seq, &ev); + if (err < 0) { + snprintf(mio->rep255, 256, "Output error: %s\n", + snd_strerror(err)); + return(-1027); + } + } + return(0); +} + +/* + * Recieve MIDI events from the sequencer, sending them as appropriate + * to the recMidi* functions, then passing them THRU if this is + * specified. + */ +long receiveMIDI(CMP_MIDI_IO *mio) +{ + long nevents =3D 0L; + MD_SPECIFIC_ALSA *alsaMIDI; + snd_seq_event_t *ev; + int ret; + + if (!mio) + return(-1L); + + alsaMIDI =3D (MD_SPECIFIC_ALSA*) mio->specific; + if (!alsaMIDI) { + sprintf(mio->rep255, "Missing ALSA specific data.\n"); + return(-2L); + } + + /*while (snd_seq_event_input_pending(alsaMIDI->seq, 1) > 0) { + snd_seq_event_input(alsaMIDI->seq, &ev);*/ + while ((ret =3D snd_seq_event_input(alsaMIDI->seq, &ev)) > 0) { + + switch (ev->type) { + case SND_SEQ_EVENT_SYSTEM: + /* whar? */ + break; + case SND_SEQ_EVENT_CONTROLLER: + recMidiController(ev->data.control.channel, + ev->data.control.param, ev->data.control.value); + break; + case SND_SEQ_EVENT_NOTEON: + recMidiNoteOn(ev->data.note.channel, + ev->data.note.note, ev->data.note.velocity); + break; + case SND_SEQ_EVENT_NOTEOFF: + recMidiNoteOff(ev->data.note.channel, + ev->data.note.note, ev->data.note.velocity); + break; + case SND_SEQ_EVENT_KEYPRESS: + recMidiPolyPressure(ev->data.note.channel, + ev->data.note.note, ev->data.note.velocity); + break; + case SND_SEQ_EVENT_CHANPRESS: + recMidiChannelPressure(ev->data.control.channel, + ev->data.control.value); + break; + case SND_SEQ_EVENT_PITCHBEND: + recMidiPitchBend(ev->data.control.channel, + ev->data.control.value); + break; + default: + snprintf(mio->rep255, 256, "Unknown event type=3D%02x\n", + ev->type); + return(-3L); + } + + if (ret =3D=3D -ENOSPC) { + sprintf(mio->rep255, "MIDI input overran. Some events lost.\n"= ); + } + + /* Software THRU. */ + if (mio->recThru) { + if ((ret =3D snd_seq_event_output_direct(alsaMIDI->seq, ev)) <= 0) { + snprintf(mio->rep255, 256, "Error writing THRU: %s\n", + snd_strerror(ret)); + return(-4L); + } + } + + /* Docs say this does nothing, but who can tell? */ + snd_seq_free_event(ev); + nevents++; + } + + return nevents; +} diff -Nru CMP0.68/midi/cmpMidiTry.c cmp-linux-0.68/midi/cmpMidiTry.c --- CMP0.68/midi/cmpMidiTry.c 2001-12-05 19:15:50.000000000 -0800 +++ cmp-linux-0.68/midi/cmpMidiTry.c 2003-02-19 08:34:37.000000000 -0800 @@ -56,6 +56,7 @@ char rep255[256]; long processed; CMP_MIDI_IO* mio; + int a =3D 0; =20 printf("console test for OMS Mac & SGI IRIX.\n"); mio =3D initializeMidiIO (1, /* recOmni: ON. */ @@ -79,22 +80,26 @@ } /*---------------------- TEST OUTPUT: ---------------------------*= / printf("\nHit ENTER Send out note-on / Type Q to quit:\n"); - gets(dum); + fgets(dum, 256, stdin); if ((*dum !=3D 'Q') && (*dum !=3D 'q')) { midi[0] =3D 0x90; /* Note-on on channel 1. */ midi[1] =3D 60; /* Note-number 60. */ - midi[2] =3D 127; /* Maximum velocity. */ + if (a) + midi[2] =3D 127; /* Maximum velocity. */ + else + midi[2] =3D 0; + a =3D !a; /* obj data, bytes, interface */ if (sendMIDI(mio, &midi[0], 3, 0)) - printf("Error sending!\n"); + printf("Error sending: %s\n", mio->rep255); } } while ((*dum !=3D 'Q') && (*dum !=3D 'q')); releaseMidiIO(&mio, rep255); =20 printf("%s", rep255); printf("Hit ENTER to QUIT.\n"); =20 - gets(dum); + fgets(dum, 256, stdin); printf("Stopped (please close console).\n"); return 0; } diff -Nru CMP0.68/missing cmp-linux-0.68/missing --- CMP0.68/missing 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/missing 2003-02-17 23:17:14.000000000 -0800 @@ -0,0 +1,336 @@ +#! /bin/sh +# Common stub for a few missing GNU programs while installing. +# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc= . +# Originally by Fran,cois Pinard , 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 +fi + +run=3D: + +# In the cases where this matters, `missing' is being run in the +# srcdir already. +if test -f configure.ac; then + configure_ac=3Dconfigure.ac +else + configure_ac=3Dconfigure.in +fi + +case "$1" in +--run) + # Try to run requested program, and just exit if it succeeds. + run=3D + shift + "$@" && exit 0 + ;; +esac + +# If it does not exist, or fails to run (possibly an outdated version), +# try to emulate it. +case "$1" in + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an +error status if there is no known handling for PROGRAM. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + --run try to run the given command, and emulate it if it fails + +Supported PROGRAM values: + aclocal touch file \`aclocal.m4' + autoconf touch file \`configure' + autoheader touch file \`config.h.in' + automake touch all \`Makefile.in' files + bison create \`y.tab.[ch]', if possible, from existing .[ch] + flex create \`lex.yy.c', if possible, from existing .c + help2man touch the output file + lex create \`lex.yy.c', if possible, from existing .c + makeinfo touch the output file + tar try tar, gnutar, gtar, then tar without non-portable flags + yacc create \`y.tab.[ch]', if possible, from existing .[ch]" + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing 0.4 - GNU automake" + ;; + + -*) + echo 1>&2 "$0: Unknown \`$1' option" + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 + ;; + + aclocal*) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`acinclude.m4' or \`${configure_ac}'. You might wa= nt + to install the \`Automake' and \`Perl' packages. Grab them from + any GNU archive site." + touch aclocal.m4 + ;; + + autoconf) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`${configure_ac}'. You might want to install the + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU + archive site." + touch configure + ;; + + autoheader) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`acconfig.h' or \`${configure_ac}'. You might want + to install the \`Autoconf' and \`GNU m4' packages. Grab them + from any GNU archive site." + files=3D`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${confi= gure_ac}` + test -z "$files" && files=3D"config.h" + touch_files=3D + for f in $files; do + case "$f" in + *:*) touch_files=3D"$touch_files "`echo "$f" | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; + *) touch_files=3D"$touch_files $f.in";; + esac + done + touch $touch_files + ;; + + automake*) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}= '. + You might want to install the \`Automake' and \`Perl' packages. + Grab them from any GNU archive site." + find . -type f -name Makefile.am -print | + sed 's/\.am$/.in/' | + while read f; do touch "$f"; done + ;; + + autom4te) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is needed, and you do not seem to have it handy on your + system. You might have modified some files without having the + proper tools for further handling them. + You can get \`$1Help2man' as part of \`Autoconf' from any GNU + archive site." + + file=3D`echo "$*" | sed -n 's/.*--output[ =3D]*\([^ ]*\).*/\1/p'` + test -z "$file" && file=3D`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\= 1/p'` + if test -f "$file"; then + touch $file + else + test -z "$file" || exec >$file + echo "#! /bin/sh" + echo "# Created by GNU Automake missing as a replacement of" + echo "# $ $@" + echo "exit 0" + chmod +x $file + exit 1 + fi + ;; + + bison|yacc) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.y' file. You may need the \`Bison' package + in order for those modifications to take effect. You can get + \`Bison' from any GNU archive site." + rm -f y.tab.c y.tab.h + if [ $# -ne 1 ]; then + eval LASTARG=3D"\${$#}" + case "$LASTARG" in + *.y) + SRCFILE=3D`echo "$LASTARG" | sed 's/y$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.c + fi + SRCFILE=3D`echo "$LASTARG" | sed 's/y$/h/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.h + fi + ;; + esac + fi + if [ ! -f y.tab.h ]; then + echo >y.tab.h + fi + if [ ! -f y.tab.c ]; then + echo 'main() { return 0; }' >y.tab.c + fi + ;; + + lex|flex) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.l' file. You may need the \`Flex' package + in order for those modifications to take effect. You can get + \`Flex' from any GNU archive site." + rm -f lex.yy.c + if [ $# -ne 1 ]; then + eval LASTARG=3D"\${$#}" + case "$LASTARG" in + *.l) + SRCFILE=3D`echo "$LASTARG" | sed 's/l$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if [ ! -f lex.yy.c ]; then + echo 'main() { return 0; }' >lex.yy.c + fi + ;; + + help2man) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a dependency of a manual page. You may need the + \`Help2man' package in order for those modifications to take + effect. You can get \`Help2man' from any GNU archive site." + + file=3D`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + file=3D`echo "$*" | sed -n 's/.*--output=3D\([^ ]*\).*/\1/p'` + fi + if [ -f "$file" ]; then + touch $file + else + test -z "$file" || exec >$file + echo ".ab help2man is required to generate this page" + exit 1 + fi + ;; + + makeinfo) + if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then + # We have makeinfo, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.texi' or \`.texinfo' file, or any other file + indirectly affecting the aspect of the manual. The spurious + call might also be the consequence of using a buggy \`make' (AIX, + DU, IRIX). You might want to install the \`Texinfo' package or + the \`GNU make' package. Grab either from any GNU archive site." + file=3D`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + file=3D`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` + file=3D`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $f= ile` + fi + touch $file + ;; + + tar) + shift + if test -n "$run"; then + echo 1>&2 "ERROR: \`tar' requires --run" + exit 1 + fi + + # We have already tried tar in the generic part. + # Look for gnutar/gtar before invocation to avoid ugly error + # messages. + if (gnutar --version > /dev/null 2>&1); then + gnutar "$@" && exit 0 + fi + if (gtar --version > /dev/null 2>&1); then + gtar "$@" && exit 0 + fi + firstarg=3D"$1" + if shift; then + case "$firstarg" in + *o*) + firstarg=3D`echo "$firstarg" | sed s/o//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + case "$firstarg" in + *h*) + firstarg=3D`echo "$firstarg" | sed s/h//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + fi + + echo 1>&2 "\ +WARNING: I can't seem to be able to run \`tar' with the given arguments. + You may want to install GNU tar or Free paxutils, or check the + command line arguments." + exit 1 + ;; + + *) + echo 1>&2 "\ +WARNING: \`$1' is needed, and you do not seem to have it handy on your + system. You might have modified some files without having the + proper tools for further handling them. Check the \`README' file= , + it often tells you about the needed prerequirements for installin= g + this package. You may also peek at any GNU archive site, in case + some other package would contain this missing \`$1' program." + exit 1 + ;; +esac + +exit 0 diff -Nru CMP0.68/mkinstalldirs cmp-linux-0.68/mkinstalldirs --- CMP0.68/mkinstalldirs 1969-12-31 16:00:00.000000000 -0800 +++ cmp-linux-0.68/mkinstalldirs 2003-02-17 23:17:14.000000000 -0800 @@ -0,0 +1,99 @@ +#! /bin/sh +# mkinstalldirs --- make directory hierarchy +# Author: Noah Friedman +# Created: 1993-05-16 +# Public domain + +errstatus=3D0 +dirmode=3D"" + +usage=3D"\ +Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." + +# process command line arguments +while test $# -gt 0 ; do + case "${1}" in + -h | --help | --h* ) # -h for help + echo "${usage}" 1>&2; exit 0 ;; + -m ) # -m PERM arg + shift + test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; } + dirmode=3D"${1}" + shift ;; + -- ) shift; break ;; # stop option processing + -* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option + * ) break ;; # first non-opt arg + esac +done + +for file +do + if test -d "$file"; then + shift + else + break + fi +done + +case $# in +0) exit 0 ;; +esac + +case $dirmode in +'') + if mkdir -p -- . 2>/dev/null; then + echo "mkdir -p -- $*" + exec mkdir -p -- "$@" + fi ;; +*) + if mkdir -m "$dirmode" -p -- . 2>/dev/null; then + echo "mkdir -m $dirmode -p -- $*" + exec mkdir -m "$dirmode" -p -- "$@" + fi ;; +esac + +for file +do + set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;= p'` + shift + + pathcomp=3D + for d + do + pathcomp=3D"$pathcomp$d" + case "$pathcomp" in + -* ) pathcomp=3D./$pathcomp ;; + esac + + if test ! -d "$pathcomp"; then + echo "mkdir $pathcomp" + + mkdir "$pathcomp" || lasterr=3D$? + + if test ! -d "$pathcomp"; then + errstatus=3D$lasterr + else + if test ! -z "$dirmode"; then + echo "chmod $dirmode $pathcomp" + + lasterr=3D"" + chmod "$dirmode" "$pathcomp" || lasterr=3D$? + + if test ! -z "$lasterr"; then + errstatus=3D$lasterr + fi + fi + fi + fi + + pathcomp=3D"$pathcomp/" + done +done + +exit $errstatus + +# Local Variables: +# mode: shell-script +# sh-indentation: 3 +# End: +# mkinstalldirs ends here --=-zgoeTVfZ5oZ/AWw9kRvd-- --=-U/YIgeQ4yFyYgHUTFUye Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+X+I0gAuWMgRGsWsRAjDbAJ9+Gn0OH0DR8zVodVrmDBy0PapayQCggjSe 8FcDrY83morSvz5j4F2GX3Q= =PTYZ -----END PGP SIGNATURE----- --=-U/YIgeQ4yFyYgHUTFUye--