2N/A# Wrapper for compilers which do not understand `-c -o'. 2N/A# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. 2N/A# Written by Tom Tromey <tromey@cygnus.com>. 2N/A# This program is free software; you can redistribute it and/or modify 2N/A# it under the terms of the GNU General Public License as published by 2N/A# the Free Software Foundation; either version 2, or (at your option) 2N/A# This program is distributed in the hope that it will be useful, 2N/A# but WITHOUT ANY WARRANTY; without even the implied warranty of 2N/A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2N/A# GNU General Public License for more details. 2N/A# You should have received a copy of the GNU General Public License 2N/A# along with this program; if not, write to the Free Software 2N/A# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 2N/A# As a special exception to the GNU General Public License, if you 2N/A# distribute this file as part of a program that contains a 2N/A# configuration script generated by Autoconf, you may include it under 2N/A# the same distribution terms that you use for the rest of that program. 2N/A# This file is maintained in Automake, please report 2N/A# bugs to <bug-automake@gnu.org> or send patches to 2N/A# <automake-patches@gnu.org>. 2N/A echo "$0: No command. Try \`$0 --help' for more information." 1>&
2 2N/AReport bugs to <bug-automake@gnu.org>. 2N/A echo "compile $scriptversion" 2N/A if test -n "$eat"; then 2N/A # configure might choose to run compile as `compile cc -o foo foo.c'.
2N/A # So we strip `-o arg' only if arg is an object. 2N/A # If no `-o' option was seen then we might have been invoked from a 2N/A # pattern rule where we don't need one. That is ok -- this is a 2N/A # normal compilation that the losing compiler can handle. If no 2N/A # `.c' file was seen then we are probably linking. That is also 2N/A# Name of file we expect compiler to create. 2N/A# Create the lock directory. 2N/A# Note: use `[/.-]' here to ensure that we don't use the same name 2N/A# that we are using for the .o file. Also, base the name on the expected 2N/A# object file name, since that is what matters with a parallel build. 2N/A# FIXME: race condition here if user kills between mkdir and trap. 2N/Aelif test -f
"${cofile}bj";
then 2N/A# eval: (add-hook 'write-file-hooks 'time-stamp) 2N/A# time-stamp-start: "scriptversion=" 2N/A# time-stamp-format: "%:y-%02m-%02d.%02H" 2N/A# time-stamp-end: "$"