2 # Copyright (C) 2010 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Make sure the file name translation in the `compile' script works
24 cp "$testsrcdir/../lib/compile" .
26 # Use a dummy cl, since cl isn't readily available on all systems
34 cat >>configure.in << 'END'
36 AC_CONFIG_FILES([check_host], [chmod +x check_host])
42 cat >check_host.in << 'END'
55 winepath -w / || exit 77
68 # POSIX mandates that the compiler accepts a space between the -I,
69 # -l and -L options and their respective arguments. Traditionally,
70 # this should work also without a space. Try both usages.
72 # Check if "compile cl" transforms absolute file names to
73 # host format (e.g /somewhere -> c:/msys/1.0/somewhere).
75 res=`./compile ./cl -L${sp}"$pwd" | sed -e 's/-link -LIBPATH://'`