blob: 4ef177ae124c54b8c3329ab21175ebbcdc355cf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
Description: Link against the static gsoapssl++ library.
Author: Felix Geyer <debfx-pkg@fobos.de>
Bug-Debian: http://bugs.debian.org/632368
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -2021,16 +2021,22 @@ check_gsoap()
fi
fi
if [ -f "$GSOAP_IMPORT/stlvector.h" ]; then
- cnf_append "VBOX_GSOAP_INSTALLED" "1"
- cnf_append "VBOX_PATH_GSOAP" "$GSOAP"
- cnf_append "VBOX_PATH_GSOAP_IMPORT" "$GSOAP_IMPORT"
- if [ -f "$GSOAP/share/gsoap/stdsoap2.cpp" ]; then
- cnf_append "VBOX_GSOAP_CXX_SOURCES" "$GSOAP/share/gsoap/stdsoap2.cpp"
+ GSOAP_LIBDIR=`pkg-config --variable=libdir gsoapssl++`
+ if [ $? -eq 0 ] && [ -f "$GSOAP_LIBDIR/libgsoapssl++.a" ]; then
+ cnf_append "VBOX_GSOAP_INSTALLED" "1"
+ cnf_append "VBOX_PATH_GSOAP" "$GSOAP"
+ cnf_append "VBOX_PATH_GSOAP_IMPORT" "$GSOAP_IMPORT"
+ if [ -f "$GSOAP/share/gsoap/stdsoap2.cpp" ]; then
+ cnf_append "VBOX_GSOAP_CXX_SOURCES" "$GSOAP/share/gsoap/stdsoap2.cpp"
+ else
+ cnf_append "VBOX_GSOAP_CXX_SOURCES" ""
+ fi
+ cnf_append "VBOX_GSOAP_CXX_LIBS" "$GSOAP_LIBDIR/libgsoapssl++.a"
+ log_success "found"
else
- cnf_append "VBOX_GSOAP_CXX_SOURCES" ""
+ log_failure "libgsoapssl++.a not found -- disabling webservice"
+ cnf_append "VBOX_WITH_WEBSERVICES" ""
fi
- cnf_append "VBOX_GSOAP_CXX_LIBS" "libgsoap++"
- log_success "found"
else
log_failure "stlvector.h not found -- disabling webservice"
cnf_append "VBOX_WITH_WEBSERVICES" ""
|