Changeset 22739 in vbox
- Timestamp:
- Sep 3, 2009 12:39:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r22682 r22739 152 152 if [ "$OS" = "darwin" ]; then 153 153 ECHO_N="/bin/echo -n" 154 ECHO_E="echo" 154 155 else 155 156 ECHO_N="echo -n" 157 ECHO_E="echo -e" 156 158 fi 157 159 … … 1921 1923 show_help() 1922 1924 { 1923 1925 cat << EOF 1924 1926 Usage: ./configure [OPTIONS]... 1925 1927 … … 1927 1929 -h, --help display this help and exit 1928 1930 --nofatal don't abort on errors 1929 --disable-xpcom disable XPCOM and related stuff 1930 --disable-python disable python bindings 1931 --disable-sdl-ttf disable SDL_ttf detection 1932 --disable-alsa disable the ALSA sound backend 1933 --disable-pulse disable the PulseAudio backend 1934 --disable-dbus don't use DBus and hal for hardware detection 1935 --disable-kmods don't build Linux kernel modules (host and guest) 1931 EOF 1932 [ $WITH_XPCOM -eq 1 ] && $ECHO_E " --disable-xpcom disable XPCOM and related stuff" 1933 [ $WITH_PYTHON -eq 1 ] && $ECHO_E " --disable-python disable python bindings" 1934 [ $WITH_SDL_TTF -eq 1 ] && $ECHO_E " --disable-sdl-ttf disable SDL_ttf detection" 1935 [ $WITH_ALSA -eq 1 ] && $ECHO_E " --disable-alsa disable the ALSA sound backend" 1936 [ $WITH_PULSE -eq 1 ] && $ECHO_E " --disable-pulse disable the PulseAudio backend" 1937 [ $WITH_DBUS -eq 1 ] && $ECHO_E " --disable-dbus don't use DBus and hal for hardware detection" 1938 [ $WITH_KMODS -eq 1 ] && $ECHO_E " --disable-kmods don't build Linux kernel modules (host and guest)" 1939 [ $WITH_OPENGL -eq 1 ] && $ECHO_E " --disable-opengl disable OpenGL support" 1940 [ $WITH_GSOAP -eq 1 ] && $ECHO_E " --enable-webservice enable the webservice stuff" 1941 cat << EOF 1936 1942 --disable-hardening don't be strict about /dev/vboxdrv access 1937 --disable-opengl disable OpenGL support1938 --enable-webservice enable the webservice stuff1939 1943 --build-libxml2 build libxml2 from sources 1940 1944 --build-libxslt build libxslt from sources … … 1947 1951 --with-kbuild=DIR kbuild directory [$KBUILDDIR] 1948 1952 --with-iasl=PATH location of the iasl compiler [$IASL] 1949 --with-linux=DIR Linux kernel source directory [$LINUX]1950 1953 --with-mkisofs=PATH location of mkisofs [$MKISOFS] 1951 --with-qt-dir=DIR directory for Qt4 headers/libraries [pkgconfig] 1952 --with-gsoap-dir=PATH directory for gSOAP compiler/headers/libraries 1953 (soapcpp2 and wsdl2h, soapstd2.h, libgsoap++.a/so) 1954 --with-gsoap-import=PATH directory for gSOAP import files (stlvector.h) 1954 EOF 1955 [ "$OS" = "linux" ] && $ECHO_E " --with-linux=DIR Linux kernel source directory [$LINUX]" 1956 [ $WITH_QT4 -eq 1 ] && $ECHO_E " --with-qt-dir=DIR directory for Qt4 headers/libraries [pkgconfig]" 1957 [ $WITH_GSOAP -eq 1 ] && $ECHO_E " --with-gsoap-dir=PATH directory for gSOAP compiler/headers/libraries" \ 1958 "\n (soapcpp2 and wsdl2h, soapstd2.h, libgsoap++.a/so)" \ 1959 "\n --with-gsoap-import=PATH directory for gSOAP import files (stlvector.h)" 1960 cat << EOF 1955 1961 --out-path=PATH the folder to which configuration and build output 1956 1962 should go … … 1959 1965 -d, --build-debug build with debugging symbols and assertions 1960 1966 --build-profile build with profiling support 1961 --build-headless build headless (without any X11frontend)1967 --build-headless build headless (without any GUI frontend) 1962 1968 EOF 1963 1969 exit 0 … … 1968 1974 # The body. 1969 1975 # 1976 1977 # test if we are OSE 1978 if [ $OSE -eq 1 -a -d "`cd \`dirname $0\`; pwd`/src/VBox/Devices/USB" ]; then 1979 echo "Found USB devices, assuming VBOX_OSE = FALSE" >> $LOG 1980 echo >> $LOG 1981 OSE=0 1982 fi 1983 1984 # Change OS specific defaults; must be before all other stuff 1985 if [ "$OS" = "darwin" ]; then 1986 WITH_SDL=0 1987 WITH_SDL_TTF=0 1988 WITH_X11=0 1989 WITH_ALSA=0 1990 WITH_PULSE=0 1991 WITH_DBUS=0 1992 WITH_KMODS=0 1993 WITH_OPENGL=0 1994 BUILD_LIBXSLT=1 1995 BUILD_LIBXML2=1 1996 [ $OSE -eq 1 ] || BUILD_LIBCURL=1 1997 [ $OSE -eq 1 ] || BUILD_LIBSSL=1 1998 fi 1999 1970 2000 1971 2001 # scan command line options … … 2013 2043 MKISOFS=`echo $option | cut -d'=' -f2` 2014 2044 ;; 2045 --target-arch=*) 2046 TARGET_MACHINE=`echo $option | cut -d'=' -f2` 2047 ;; 2015 2048 --disable-xpcom) 2016 WITH_XPCOM=02049 [ $WITH_XPCOM -eq 1 ] && WITH_XPCOM=0 2017 2050 ;; 2018 2051 --disable-python) 2019 WITH_PYTHON=02052 [ $WITH_PYTHON -eq 1 ] && WITH_PYTHON=0 2020 2053 ;; 2021 2054 --disable-sdl-ttf) 2022 WITH_SDL_TTF=02055 [ $WITH_SDL_TTF -eq 1 ] && WITH_SDL_TTF=0 2023 2056 ;; 2024 2057 --disable-qt) 2025 WITH_QT4=02058 [ $WITH_QT4 -eq 1 ] && WITH_QT4=0 2026 2059 ;; 2027 2060 --disable-qt4) 2028 WITH_QT4=02061 [ $WITH_QT4 -eq 1 ] && WITH_QT4=0 2029 2062 ;; 2030 2063 --disable-alsa) 2031 WITH_ALSA=02064 [ $WITH_ALSA -eq 1 ] && WITH_ALSA=0 2032 2065 ;; 2033 2066 --disable-pulse) 2034 WITH_PULSE=02067 [ $WITH_PULSE -eq 1 ] && WITH_PULSE=0 2035 2068 ;; 2036 2069 --disable-dbus) 2037 WITH_DBUS=02070 [ $WITH_DBUS -eq 1 ] && WITH_DBUS=0 2038 2071 ;; 2039 2072 --disable-kmods) 2040 WITH_KMODS=02073 [ $WITH_KMODS -eq 1 ] && WITH_KMODS=0 2041 2074 ;; 2042 2075 --disable-opengl) 2043 WITH_OPENGL=0 2076 [ $WITH_OPENGL -eq 1 ] && WITH_OPENGL=0 2077 ;; 2078 --enable-webservice) 2079 [ $WITH_GSOAP -eq 1 ] && WITH_GSOAP=0 2044 2080 ;; 2045 2081 --disable-hardening) … … 2048 2084 --enable-hardening) 2049 2085 WITH_HARDENING=2 2050 ;;2051 --enable-webservice)2052 WITH_GSOAP=12053 2086 ;; 2054 2087 --build-debug|-d) … … 2147 2180 EOF 2148 2181 2149 # test if we are OSE2150 if [ $OSE -eq 1 -a -d "`cd \`dirname $0\`; pwd`/src/VBox/Devices/USB" ]; then2151 echo "Found USB devices, assuming VBOX_OSE = FALSE" >> $LOG2152 echo >> $LOG2153 OSE=02154 fi2155 2156 2182 if [ "$BUILD_TYPE" = "debug" ]; then 2157 2183 echo "Creating DEBUG build!" >> $LOG … … 2198 2224 if [ $WITH_OPENGL -eq 0 ]; then 2199 2225 cnf_append "VBOX_WITH_CROGL" "" 2200 fi2201 2202 if [ "$OS" = "darwin" ]; then2203 BUILD_LIBXSLT=12204 BUILD_LIBXML2=12205 [ $OSE -eq 1 ] || BUILD_LIBCURL=12206 [ $OSE -eq 1 ] || BUILD_LIBSSL=12207 2226 fi 2208 2227 … … 2235 2254 [ "$OS" != "darwin" -a "$OS" != "freebsd" ] && check_png 2236 2255 [ $OSE -eq 0 -a "$OS" = "linux" ] && check_pam 2237 [ $WITH_SDL -eq 1 -a "$OS" != "darwin"] && check_sdl2256 [ $WITH_SDL -eq 1 ] && check_sdl 2238 2257 [ $WITH_SDL_TTF -eq 1 -a $OSE -eq 0 ] && check_sdl_ttf 2239 [ $WITH_X11 -eq 1 -a "$OS" != "darwin"] && check_x2258 [ $WITH_X11 -eq 1 ] && check_x 2240 2259 # TODO check for xcomposite-dev (X11/extensions/Xcomposite.h, additions only) 2241 2260 # TODO check for libxdamange-dev (X11/extensions/Xdamage.h, additions only) 2242 [ $WITH_X11 -eq 1 -a "$OS" != "darwin"] && check_xcursor2243 [ $WITH_OPENGL -eq 1 -a "$OS" != "darwin"] && check_xmu2244 [ "$OS" != "darwin" -a$WITH_OPENGL -eq 1 ] && check_mesa2261 [ $WITH_X11 -eq 1 ] && check_xcursor 2262 [ $WITH_OPENGL -eq 1 ] && check_xmu 2263 [ $WITH_OPENGL -eq 1 ] && check_mesa 2245 2264 [ $WITH_QT4 -eq 1 ] && check_qt4 2246 [ $WITH_PYTHON -eq 1 -a "$OS" != "darwin"] && check_python2265 [ $WITH_PYTHON -eq 1 ] && check_python 2247 2266 2248 2267 # Linux-specific
Note:
See TracChangeset
for help on using the changeset viewer.