diff options
author | Tom Tromey <tromey@redhat.com> | 2001-07-20 01:25:14 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2001-07-20 01:25:14 +0000 |
commit | 50bea03197327850050e0c05321f3c6345699a2a (patch) | |
tree | 27393d55f371a642bc4b98b0cbe7887bf85bfcfe /lib/compile | |
parent | 0a3bbd519e032a90e3063d84e2b05aad547608c9 (diff) | |
download | automake-50bea03197327850050e0c05321f3c6345699a2a.tar.gz |
2001-07-19 Tom Tromey <tromey@redhat.com>
Alexandre Duret-Lutz <duret_g@epita.fr>
Fix for ccnoco.test, subobj8.test:
* m4/Makefile.am (m4data_DATA): Added auxdir.m4.
* tests/Makefile.am (XFAIL_TESTS): Removed ccnoco.test,
subobj8.test.
* m4/minuso.m4 (AM_PROG_CC_C_O): Use absolute path to compile.
Use AM_AUX_DIR_EXPAND.
* lib/compile: Handle case where `-o' argument is the name of an
executable, not an object file.
* m4/auxdir.m4: New file, from...
* m4/missing.m4: ... here. Moved AM_AUX_DIR_EXPAND.
* automake.in (handle_single_transform_list, lang_c_rewrite):
Require compile using `require_config_file'.
Diffstat (limited to 'lib/compile')
-rwxr-xr-x | lib/compile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/compile b/lib/compile index 7370ae595..9bb997a6a 100755 --- a/lib/compile +++ b/lib/compile @@ -37,8 +37,18 @@ args= while test $# -gt 0; do case "$1" in -o) + # configure might choose to run compile as `compile cc -o foo foo.c'. + # So we do something ugly here. ofile=$2 shift + case "$ofile" in + *.o | *.obj) + ;; + *) + args="$args -o $ofile" + ofile= + ;; + esac ;; *.c) cfile=$1 |