configure: Make autoconf fail if libtool is not installed.
authorBen Pfaff <blp@nicira.com>
Tue, 31 Dec 2013 22:20:01 +0000 (14:20 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 10 Jan 2014 18:50:53 +0000 (10:50 -0800)
Otherwise users get an error later like:
    ./configure: line 5093: syntax error near unexpected token
    `disable-shared' ./configure: line 5093: `LT_INIT(disable-shared)'
It's probably friendlier to make configuration fail earlier.

Signed-off-by: Ben Pfaff <blp@nicira.com>
configure.ac

index f6a11f0..6a999d0 100644 (file)
@@ -41,6 +41,8 @@ AC_C_BIGENDIAN
 AC_SYS_LARGEFILE
 
 LT_INIT([disable-shared])
+m4_pattern_forbid([LT_INIT]) dnl Make autoconf fail if libtool is missing.
+
 AC_SEARCH_LIBS([pow], [m])
 AC_SEARCH_LIBS([clock_gettime], [rt])
 AC_SEARCH_LIBS([timer_create], [rt])