Changeset 36697 in vbox
- Timestamp:
- Apr 18, 2011 8:25:05 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r36097 r36697 89 89 WITH_HARDENING=1 90 90 WITH_VDE=0 91 WITH_VNC=0 91 92 WITH_DOCS=1 92 93 BUILD_LIBXML2= … … 124 125 INCZ="" 125 126 LIBZ="-lz" 127 INCVNCSERVER="" 128 LIBVNCSERVER="-lvncserver" 126 129 CXX_FLAGS="" 127 130 if [ "$OS" = "freebsd" ]; then … … 952 955 cnf_append "SDK_VBOX_LIBPNG_LIBS" "`strip_l "$LIBPNG"`" 953 956 cnf_append "SDK_VBOX_LIBPNG_INCS" "$INCPNG" 957 fi 958 fi 959 } 960 961 # 962 # Check for libvncserver, needed for VNC in OSE 963 # 964 check_vncserver() 965 { 966 test_header libvncserver 967 cat > $ODIR.tmp_src.cc <<EOF 968 #include <cstdio> 969 #include <rfb/rfbconfig.h> 970 971 extern "C" int main() 972 { 973 const char* v=LIBVNCSERVER_VERSION; 974 unsigned int major = 0, minor = 0, micro = 0; 975 976 for (; *v !='.' && *v != '\0'; v++) major = major*10 + *v-'0'; 977 if (*v == '.') v++; 978 for (; *v !='.' && *v != '\0'; v++) minor = minor*10 + *v-'0'; 979 if (*v == '.') v++; 980 for (; *v !='.' && *v != '\0'; v++) micro = micro*10 + *v-'0'; 981 982 printf("found version %s", LIBVNCSERVER_PACKAGE_VERSION); 983 if (major*10000 + minor*100 + micro >= 907) 984 { 985 printf(", OK.\n"); 986 return 0; 987 } 988 else 989 { 990 printf(", expected version 0.9.7 or higher\n"); 991 return 1; 992 } 993 } 994 EOF 995 if test_compile "$LIBVNCSERVER $INCVNCSERVER" libvncserver libvncserver; then 996 if test_execute; then 997 cnf_append "VBOX_WITH_VNC" "1" 954 998 fi 955 999 fi … … 2116 2160 [ $WITH_OPENGL -eq 1 ] && echo " --disable-opengl disable OpenGL support (2D & 3D)" 2117 2161 [ $WITH_GSOAP -eq 0 ] && echo " --enable-webservice enable the webservice stuff" 2162 [ $OSE -eq 1 ] && echo " --enable-vnc enable the VNC server" 2118 2163 [ $WITH_DOCS -eq 1 ] && echo " --disable-docs don't build the documentation" 2119 2164 [ "$OS" = "linux" -o "$OS" = "freebsd" ] && echo " --enable-vde enable VDE networking" … … 2280 2325 --enable-webservice) 2281 2326 [ $WITH_GSOAP -eq 0 ] && WITH_GSOAP=1 2327 ;; 2328 --enable-vnc) 2329 WITH_VNC=1 2282 2330 ;; 2283 2331 --disable-hardening) … … 2552 2600 cnf_append "VBOX_WITH_DOCS" "" 2553 2601 cnf_append "VBOX_WITH_DOCS_PACKING" "" 2602 fi 2603 2604 # VNC server support 2605 if [ $OSE -ge 1 ]; then 2606 if [ $WITH_VNC = 1 ]; then 2607 check_vncserver 2608 else 2609 cnf_append "VBOX_WITH_VNC" "" 2610 fi 2554 2611 fi 2555 2612
Note:
See TracChangeset
for help on using the changeset viewer.