Lines Matching +full:test +full:- +full:cl
2 # Wrapper for compilers which do not understand '-c -o'.
4 scriptversion=2018-03-07.03; # UTC
6 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
28 # bugs to <bug-automake@gnu.org> or send patches to
29 # <automake-patches@gnu.org>.
50 if test -z "$file_conv"; then
52 case `uname -s` in
68 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
71 file=`cygpath -m "$file" || echo "$file"`
74 file=`winepath -w "$file" || echo "$file"`
82 # Make cl look for libraries in LINKDIR
86 if test -z "$lib_path"; then
91 linker_opts="$linker_opts -LIBPATH:$file"
95 # Do a library search-path lookup for cl
105 if $shared && test -f "$dir/$lib.dll.lib"; then
110 if test -f "$dir/$lib.lib"; then
115 if test -f "$dir/lib$lib.a"; then
123 if test "$found" != yes; then
128 # func_cl_wrapper cl arg...
129 # Adjust compile command to suit cl
138 if test -n "$eat"; then
142 -o)
143 # configure might choose to run compile as 'compile cc -o foo foo.c'.
148 set x "$@" -Fo"$file"
153 set x "$@" -Fe"$file"
158 -I)
161 set x "$@" -I"$file"
164 -I*)
165 func_file_conv "${1#-I}" mingw
166 set x "$@" -I"$file"
169 -l)
175 -l*)
176 func_cl_dashl "${1#-l}"
180 -L)
184 -L*)
185 func_cl_dashL "${1#-L}"
187 -static)
190 -Wl,*)
191 arg=${1#-Wl,}
199 -Xlinker)
203 -*)
209 set x "$@" -Tp"$file"
225 if test -n "$linker_opts"; then
226 linker_opts="-link$linker_opts"
236 echo "$0: No command. Try '$0 --help' for more information." 1>&2
239 -h | --h*)
241 Usage: compile [--help] [--version] PROGRAM [ARGS]
243 Wrapper for compilers which do not understand '-c -o'.
244 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
250 Report bugs to <bug-automake@gnu.org>.
254 -v | --v*)
258 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
269 if test -n "$eat"; then
273 -o)
274 # configure might choose to run compile as 'compile cc -o foo foo.c'.
275 # So we strip '-o arg' only if arg is an object.
282 set x "$@" -o "$2"
301 if test -z "$ofile" || test -z "$cfile"; then
302 # If no '-o' option was seen then we might have been invoked from a
303 # pattern rule where we don't need one. That is ok -- this is a
311 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
314 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
317 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
331 if test -f "$cofile"; then
332 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
333 elif test -f "${cofile}bj"; then
334 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
341 # mode: shell-script
342 # sh-indentation: 2
343 # eval: (add-hook 'before-save-hook 'time-stamp)
344 # time-stamp-start: "scriptversion="
345 # time-stamp-format: "%:y-%02m-%02d.%02H"
346 # time-stamp-time-zone: "UTC0"
347 # time-stamp-end: "; # UTC"