Changeset 19356 in vbox for trunk/configure
- Timestamp:
- May 5, 2009 9:43:35 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r19129 r19356 99 99 INCPNG="" 100 100 LIBPNG="-lpng" 101 INCCURL="" 102 LIBCURL="-lcurl" 101 103 PKGCONFIG="`which_wrapper pkg-config`" 102 104 PYTHONDIR="/usr /usr/local" … … 920 922 cnf_append "SDK_VBOX_LIBPNG_LIBS" "`strip_l "$LIBPNG"`" 921 923 cnf_append "SDK_VBOX_LIBPNG_INCS" "$INCPNG" 924 fi 925 fi 926 } 927 928 # 929 # Check for libcurl, needed by S3 930 # 931 check_curl() 932 { 933 test_header libcurl 934 cat > $ODIR.tmp_src.cc << EOF 935 #include <cstdio> 936 #include <curl/curl.h> 937 extern "C" int main(void) 938 { 939 printf("found version %s", LIBCURL_VERSION); 940 #if LIBCURL_VERSION_MAJOR >= 7 && LIBCURL_VERSION_MINOR >= 19 941 printf(", OK.\n"); 942 return 0; 943 #else 944 printf(", expected version 7.19.0 or higher\n"); 945 return 1; 946 #endif 947 } 948 EOF 949 [ -n "$INCCURL" ] && I_INCCURL=`prefix_I "$INCCURL"` 950 # if test_compile "$LIBCURL $I_INCCURL" libcurl libcurl nofatal; then 951 if test_compile "$LIBCURL $I_INCCURL" libcurl libcurl; then 952 # if test_execute nofatal; then 953 if test_execute; then 954 cnf_append "SDK_VBOX_LIBCURL_LIBS" "`strip_l "$LIBCURL"`" 955 cnf_append "SDK_VBOX_LIBCURL_INCS" "$INCCURL" 922 956 fi 923 957 fi … … 2133 2167 [ "$OS" != "darwin" ] && check_z 2134 2168 [ "$OS" != "darwin" -a "$OS" != "freebsd" ] && check_png 2169 [ "$OS" != "darwin" -a $OSE -eq 0 ] && check_curl 2135 2170 [ $OSE -eq 0 -a "$OS" = "linux" ] && check_pam 2136 2171 [ $WITH_SDL -eq 1 ] && check_sdl
Note:
See TracChangeset
for help on using the changeset viewer.