Changeset 20209 in vbox for trunk/configure
- Timestamp:
- Jun 3, 2009 7:48:35 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r20030 r20209 44 44 } 45 45 46 OS=`uname -s | sed -e 's/GNU\/Linux/Linux/g' | tr [:upper:] [:lower:]` 47 case "$OS" in 48 linux) 49 ;; 50 darwin) 51 ;; 52 freebsd) 53 ;; 54 sunos) 55 OS='solaris' 56 ;; 57 *) 58 echo "Cannot determine OS!" 59 exit 1 60 ;; 61 esac 46 62 47 63 # … … 70 86 WITH_OPENGL=1 71 87 WITH_HARDENING=1 88 BUILD_LIBXML2= 89 BUILD_LIBXSLT= 90 BUILD_LIBCURL= 72 91 CC="gcc" 73 92 CC32="" … … 83 102 GENISOIMAGE="genisoimage" 84 103 MKISOFS="mkisofs" 85 BUILD_LIBXML2=86 BUILD_LIBXSLT=87 BUILD_LIBCURL=88 104 LIBCRYPTO="-lcrypto" 89 105 LIBPTHREAD="-lpthread" … … 91 107 GSOAP="" 92 108 GSOAP_IMPORT="" 109 INCX11="/usr/local/include" 93 110 LIBX11="-L/usr/X11R6/lib -L/usr/X11R6/lib64 -L/usr/local/lib -lXext -lX11" 94 INCX11="/usr/local/include"95 111 LIBXCURSOR="-lXcursor" 96 112 LIBXMU="-lXmu" … … 100 116 INCPNG="" 101 117 LIBPNG="-lpng" 102 INCCURL="" 103 LIBCURL="-lcurl" 118 if [ "$OS" = "freebsd" ]; then 119 INCCURL="-I/usr/local/include" 120 LIBCURL="-L/usr/local/lib -lcurl" 121 else 122 INCCURL="" 123 LIBCURL="-lcurl" 124 fi 104 125 PKGCONFIG="`which_wrapper pkg-config`" 105 126 PYTHONDIR="/usr /usr/local" … … 128 149 129 150 # darwin /bin/sh has a builtin echo that doesn't grok -n. gotta love it. 130 if [ " `uname`" = "Darwin" ]; then151 if [ "$OS" = "darwin" ]; then 131 152 ECHO_N="/bin/echo -n" 132 153 else … … 290 311 { 291 312 test_header environment 292 OS=`uname -s | sed -e 's/GNU\/Linux/Linux/g' | tr [:upper:] [:lower:]`293 case "$OS" in294 linux)295 ;;296 darwin)297 ;;298 freebsd)299 ;;300 sunos)301 OS='solaris'302 ;;303 *)304 log_failure "Cannot determine OS"305 exit 1306 ;;307 esac308 313 BUILD_CPU=`uname -m` 309 314 [ "$OS" = "solaris" ] && BUILD_CPU=`isainfo | cut -f 1 -d ' '` … … 378 383 log_failure "gcc version $cc_ver does not match g++ version $cxx_ver" 379 384 fail really 380 elif [ $cc_maj -eq 4 -a $cc_min -eq 0 -a " OS" = "darwin" ]; then385 elif [ $cc_maj -eq 4 -a $cc_min -eq 0 -a "$OS" = "darwin" ]; then 381 386 log_success "found version $cc_ver" 382 387 elif [ $cc_maj -eq 4 -a $cc_min -eq 4 ]; then
Note:
See TracChangeset
for help on using the changeset viewer.