then
as_fn_error $? "Unable to find perl, please install perl" "$LINENO" 5
fi
-if test "x$xapi" = "xy"; then :
+if test "x$xenapi" = "xy"; then :
# Extract the first word of "curl-config", so it can be a program name with args.
set dummy curl-config; ac_word=$2
AC_PATH_PROG([BISON], [bison])
AC_PATH_PROG([FLEX], [flex])
AX_PATH_PROG_OR_FAIL([PERL], [perl])
-AS_IF([test "x$xapi" = "xy"], [
+AS_IF([test "x$xenapi" = "xy"], [
AX_PATH_PROG_OR_FAIL([CURL], [curl-config])
AX_PATH_PROG_OR_FAIL([XML], [xml2-config])
])
MINOR = 0
CFLAGS += -Iinclude \
- $(shell $(XML2_CONFIG) --cflags) \
- $(shell $(CURL_CONFIG) --cflags) \
-fPIC
+ifeq ($(LIBXENAPI_BINDINGS),y)
+CFLAGS += $(shell $(XML2_CONFIG) --cflags) \
+ $(shell $(CURL_CONFIG) --cflags)
+
LDFLAGS += $(shell $(XML2_CONFIG) --libs) \
$(shell $(CURL_CONFIG) --libs)
+endif
LIBXENAPI_HDRS = $(wildcard include/xen/api/*.h) include/xen/api/xen_all.h
LIBXENAPI_OBJS = $(patsubst %.c, %.o, $(wildcard src/*.c))