Changeset 23874


Ignore:
Timestamp:
04/09/11 22:33:20 (10 years ago)
Author:
davidb
Message:

Mods to set CFLAGS necessary for MinGW/Mini-Unix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/rsync/trunk/src/setup.bash

    r23873 r23874  
    1414
    1515if [ "x$GEXTRSYNC" = "x" ] ; then
     16
     17  export RSYNCOS=`uname -s | tr '[A-Z]' '[a-z]' | sed 's/\([0-9]\+\)\?_.*$//'`
     18
     19  if [ $RSYNCOS = "mingw" ] ; then
     20    MINGW_CFLAGS="-Duint16_t=u_int16_t -Duint32_t=u_int32_t -Duint64_t=u_int64_t -Doff64_t=u_int64_t"
     21
     22    if [ "x$CFLAGS" = "x" ] ; then
     23      export CFLAGS="$MINGW_CFLAGS"
     24    else
     25      export CFLAGS="$CFLAGS $MINGW_CFLAGS"
     26    fi
     27  fi
     28
     29
    1630  export GEXTRSYNC=$fulldir
    1731  export GEXTRSYNC_INSTALLED=$GEXTRSYNC/$GSDLOS
    18 
    19   export RSYNCOS=`uname -s | tr '[A-Z]' '[a-z]' | sed '/_.*$//'`
    2032
    2133  export PATH=$GEXTRSYNC_INSTALLED/bin:$PATH
     
    2537  else
    2638    export LD_LIBRARY_PATH=$GEXTRSYNC_INSTALLED/lib:$LD_LIBRARY_PATH
    27   fi
    28 
    29   export APACHE_HTTPD_HOME="$GEXTRSYNC_INSTALLED";
    30   export COMPILE_UP_APACHE_HTTPD=1
    31 
    32   if [ -n "$GSDLHOME" ] ; then
    33       # see if there is already an apache httpd we can use
    34       # override default values if there is
    35       if [ -e "$GSDLHOME/apache-httpd/$GSDLOS" ] ; then
    36       export APACHE_HTTPD_HOME="$GSDLHOME/apache-httpd/$GSDLOS";
    37       export COMPILE_UP_APACHE_HTTPD=0
    38       fi
    39   fi
    40  
    41   export COMPILE_UP_MYSQL=1
    42   if [ -n "$GEXTMYSQL" ] ; then
    43     if [ -e "$GEXTMYSQL/$GSDLOS" ] ; then
    44       export COMPILE_UP_MYSQL=0     
    45       source $GEXTMYSQL/setup.bash
    46     fi
    4739  fi
    4840
Note: See TracChangeset for help on using the changeset viewer.