Subject: bug#27342: Bug report: libtool 2.4.6 can't handle being run from a path with spaces in it

From: Nate Graham <[email-masked]>
Date: Mon, 12 Jun 2017 07:03:15 -0600

Kubuntu 17.04
libtool 2.4.6

Steps to reproduce:
1. mkdir ~/folder\ with\ spaces\ in\ it
2. cd ~/folder\ with\ spaces\ in\ it
3. git clone https://github.com/whot/libinput.git
4. cd libinput
5. Follow build instructions according to your distro:
5a. 
https://wayland.freedesktop.org/libinput/doc/latest/building_libinput.html#building_dependencies
5b. 
https://wayland.freedesktop.org/libinput/doc/latest/building_libinput.html#building_autotools
6. `make`

Expected results:
The project compiles

Actual results:
while changing directories, make dies because libtool can't handle paths 
with spaces:

make[2]: Leaving directory '/home/nate/folder with spaces in 
it/libinput/test'
Making all in tools
make[2]: Entering directory '/home/nate/folder with spaces in 
it/libinput/tools'
   CC       libshared_la-shared.lo
   CCLD     libshared.la
ar: `u' modifier ignored since `D' is the default (see `U')
   CC       libinput-libinput-tool.o
   CCLD     libinput
libtool:   error: cannot find the library 'it/libinput/src/libinput.la' 
or unhandled argument 'it/libinput/src/libinput.la'
Makefile:662: recipe for target 'libinput' failed
make[2]: *** [libinput] Error 1
make[2]: Leaving directory '/home/nate/folder with spaces in 
it/libinput/tools'
Makefile:444: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/nate/folder with spaces in it/libinput'
Makefile:376: recipe for target 'all' failed
make: *** [all] Error 2

Nate Graham