Sorry, I've never used Gerrit and don't really have the time to learn it right 
now. This is the patch if anyone who knows the process would like to do it.

```
diff --git a/configure.ac b/configure.ac
index 569816637..47a167e28 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,6 +2,7 @@ AC_PREREQ(2.64)
 AC_INIT([openocd], [0.10.0+dev],
   [OpenOCD Mailing List <[email protected]>])
 AC_CONFIG_SRCDIR([src/openocd.c])
+AC_CONFIG_AUX_DIR([.])
 
 m4_include([config_subdir.m4])dnl
 
```



---

** [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:24 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 [email protected] 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to