diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-10-21 17:31:03 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-10-21 17:31:10 +0100 |
commit | c214cdc54e955ff1a01c00b99b0d6bd20e8b6bcd (patch) | |
tree | b0d0c270fbbf357e2ddfe5dcc849ae825b81089b | |
parent | e7ea6d06ab4f203c8acb95f9df72ee0035d76941 (diff) | |
download | libguestfs-c214cdc54e955ff1a01c00b99b0d6bd20e8b6bcd.tar.gz libguestfs-c214cdc54e955ff1a01c00b99b0d6bd20e8b6bcd.tar.xz libguestfs-c214cdc54e955ff1a01c00b99b0d6bd20e8b6bcd.zip |
Fix ./configure --disable-erlang.
-rw-r--r-- | configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index ed538f58..c384c6e7 100644 --- a/configure.ac +++ b/configure.ac @@ -897,8 +897,8 @@ AC_ARG_ENABLE([erlang], AS_HELP_STRING([--disable-erlang], [Disable Erlang language bindings]), [], [enable_erlang=yes]) -AS_IF([test "x$enable_erlang" != "xno"], - [ +# NB: Don't use AS_IF here: it doesn't work. +if test "x$enable_erlang" != "xno"; then ERLANG= AC_ERLANG_PATH_ERLC([no]) @@ -907,7 +907,7 @@ AS_IF([test "x$enable_erlang" != "xno"], [AC_MSG_FAILURE([Erlang erl_interface library not installed. Use --disable-erlang to disable.])]) AC_ERLANG_SUBST_LIB_DIR fi - ]) +fi AM_CONDITIONAL([HAVE_ERLANG], [test "x$ERLANG" != "xno" && test "x$ERLC" != "xno"]) dnl Check for Perl modules needed by Perl virt tools (virt-df, etc.) |