6e92cd0642
They are at least since Autoconf 2.67 present, and we are requiring version 2.69. Change-Id: I41b33d4ebe02198f03cdddcc4a3c1beedd993d78 Signed-off-by: R. Diez <rdiezmail-openocd@yahoo.de> Reviewed-on: http://openocd.zylin.com/6239 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
13 lines
443 B
Plaintext
13 lines
443 B
Plaintext
dnl AC_CONFIG_SUBDIRS does not allow configure options to be passed
|
|
dnl to subdirs, this function allows that by creating a configure.gnu
|
|
dnl script that prepends configure options and then calls the real
|
|
dnl configure script
|
|
AC_DEFUN([AX_CONFIG_SUBDIR_OPTION],
|
|
[
|
|
AC_CONFIG_SUBDIRS([$1])
|
|
|
|
m4_ifblank([$2], [rm -f $srcdir/$1/configure.gnu],
|
|
[echo -e '#!/bin/sh\nexec "`dirname "'\$'0"`/configure" $2 "'\$'@"' > "$srcdir/$1/configure.gnu"
|
|
])
|
|
])
|