---

** [tickets:#285] bootstrap fails if "install.sh" in parent directory**

**Status:** new
**Milestone:** 0.10.0
**Created:** Tue Oct 27, 2020 04:00 PM UTC by MrLavender
**Last Updated:** Tue Oct 27, 2020 04:00 PM UTC
**Owner:** nobody


I've just spent hours tearing my hair out wondering why my build was suddenly 
failing. It turns out that if there is a file called `install.sh` in the parent 
of the build directory then `glibtoolize` decides to copy `ltmain.sh` into that 
directory, which then causes automake to fail with

`configure.ac:37: error: required file './ltmain.sh' not found`

Steps to reproduce;
```
$ git clone https://git.code.sf.net/p/openocd/code openocd-code
$ touch install.sh
$ cd openocd-code
$ ./bootstrap
```
Fails with the above error and now `../ltmain.sh` exists instead of 
`./ltmain.sh`.

I fixed this by adding `AC_CONFIG_AUX_DIR([.])` on line 5 of `configure.ac`, 
which ensures it doesn't use `..` instead of `.`.



---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to