Changeset 3027 for box


Ignore:
Timestamp:
18/10/2011 00:19:48 (7 months ago)
Author:
chris
Message:

Patch to support building on MinGW, thanks to Paolo Tosco
( http://open3dalign.org,  http://open3dqsar.org)

Location:
box/trunk/infrastructure
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/infrastructure/BoxPlatform.pm.in

    r2951 r3027  
    2525        # Box Backup tried on Win2000,XP only :) 
    2626        $build_os = 'CYGWIN' if $build_os =~ m/CYGWIN/; 
     27        $build_os = 'MINGW32' if $build_os =~ m/MINGW32/; 
    2728 
    2829        $make_command = ($build_os eq 'Darwin') ? 'bsdmake' : ($build_os eq 'SunOS') ? 'gmake' : 'make'; 
    2930 
    3031        $bsd_make = ($build_os ne 'Linux' && $build_os ne 'CYGWIN' && 
    31                 $build_os ne "SunOS" && $build_os ne 'GNU/kFreeBSD'); 
     32                $build_os ne "MINGW32" && $build_os ne "SunOS" 
     33                && $build_os ne 'GNU/kFreeBSD'); 
    3234 
    3335        # blank extra flags by default 
  • box/trunk/infrastructure/m4/boxbackup_tests.m4

    r3009 r3027  
    6868 
    6969case $target_os in 
    70 mingw32*) ;; 
    71 winnt)    ;; 
    72 *) 
    73   AC_SEARCH_LIBS([nanosleep], [rt], [ac_have_nanosleep=yes], 
    74                  [AC_MSG_ERROR([[cannot find a short sleep function (nanosleep)]])]) 
     70mingw32*) 
     71        AC_CHECK_LIB([crypto -lws2_32 -lgdi32], [CRYPTO_lock]) 
     72        ;; 
     73winnt) 
     74        ;; 
     75*) 
     76        AC_SEARCH_LIBS([nanosleep], [rt], [ac_have_nanosleep=yes], 
     77                [AC_MSG_ERROR([[cannot find a short sleep function (nanosleep)]])]) 
    7578        ;; 
    7679esac 
Note: See TracChangeset for help on using the changeset viewer.