Commit 14a435371d9218f4c05028e85870a2ec7750695c
Committed by
Stéphane Raimbault
1 parent
6ab18ddd
Have autoreconf fail if LT_INIT is not defined
If the LT_INIT macro is not available in a *.m4 file to be found during the autoreconf run, it is impossible to build a useful configure script. Therefore, we blacklist the LT_INIT macro so when it appears unexpanded in the configure script, autoreconf will report the failure instead of silently creating a broken configure. This is generally a good idea for any macro not shipped with Automake or Autoconf.
Showing
1 changed file
with
2 additions
and
0 deletions
configure.ac
| @@ -73,7 +73,9 @@ esac | @@ -73,7 +73,9 @@ esac | ||
| 73 | AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "true") | 73 | AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "true") |
| 74 | AM_CONDITIONAL(OS_QNX, test "$os_qnx" = "true") | 74 | AM_CONDITIONAL(OS_QNX, test "$os_qnx" = "true") |
| 75 | 75 | ||
| 76 | +m4_pattern_forbid([^LT_INIT])dnl | ||
| 76 | LT_INIT([disable-static win32-dll pic-only]) | 77 | LT_INIT([disable-static win32-dll pic-only]) |
| 78 | + | ||
| 77 | AC_CHECK_HEADERS([ \ | 79 | AC_CHECK_HEADERS([ \ |
| 78 | arpa/inet.h \ | 80 | arpa/inet.h \ |
| 79 | byteswap.h \ | 81 | byteswap.h \ |