]> rtime.felk.cvut.cz Git - CanFestival-3.git/blobdiff - configure
Modified initial value of 1014h to 0x80 + nodeid when 1014 is not included explicitly...
[CanFestival-3.git] / configure
index 9e5dd8f2f57a6593e3c7bb2308fd49999b84b48f..2779332251869a8dc7a3b9b103fe03911e08bf62 100755 (executable)
--- a/configure
+++ b/configure
@@ -67,11 +67,6 @@ LSS_FS_TIMEOUT_MS=100
 #                             DEFAULT BUILD OPTIONS                       #
 ###########################################################################
 
-# Leave empty for automatic detection
-CC=
-CXX=
-LD=
-
 #default target
 SUB_TARGET=
 
@@ -106,6 +101,7 @@ while [ $# -ge 1 ]; do
        --cc=*)         CC=$optarg;;
        --cxx=*)        CXX=$optarg;;
        --ld=*)         LD=$optarg;;
+       --binutils=*)   BINUTILS_PREFIX=$optarg;;
        --arch=*)       SUB_ARCH_NAME=$optarg;;
        --os=*)         SUB_OS_NAME=$optarg;;
        --kerneldir=*)  SUB_KERNELDIR=$optarg;;
@@ -161,8 +157,9 @@ while [ $# -ge 1 ]; do
                echo    "                 see http://www.ocera.org/download/components/WP7/lincan-0.3.3.html"
                echo    "               \"can4linux\" can4linux driver"
                echo    "                 see http://www.port.de/engl/canprod/hw_can4linux.html"
-               echo    " --timers=foo  Use 'foo' as TIMERS driver (can be 'unix', 'xeno' or 'kernel')"
-               echo    " --wx=foo  force result of WxWidgets detection (0 or 1)"
+               echo    " --timers=foo  Use 'foo' as TIMERS driver (can be 'unix', 'xeno', 'rtai' or 'kernel')"
+               echo    " --wx=foo      Force result of WxWidgets detection (0 or 1)"
+               echo    " --binutils=path   Override binutils path detection (as regards \$CC content)"
                echo    " --disable-dll Disable run-time dynamic linking of can, led and nvram drivers"
                echo    " --enable-lss  Enable the LSS services"
                echo    " --enable-lss-fs  Enable the LSS FastScan service"
@@ -380,6 +377,10 @@ if [ "$SUB_CAN_DRIVER" = "peak_linux" ]; then
     SUB_CAN_DLL_CFLAGS=$SUB_CAN_DLL_CFLAGS\ -lpcan
 fi
 
+if [ "$SUB_CAN_DRIVER" = "vscom" ]; then
+    SUB_CAN_DLL_CFLAGS=$SUB_CAN_DLL_CFLAGS\ -lvs_can_api
+fi
+
 PW32DIR=drivers/can_peak_win32
 if [ "$SUB_CAN_DRIVER" = "peak_win32" ]; then
        if [ "$PCAN_HEADER" = "" -o "$PCAN_LIB" = "" ]; then
@@ -492,7 +493,11 @@ fi
 
 echo "Using ${CC} as a C compiler"
 
-SUB_BINUTILS_PREFIX=`echo "$CC" | sed 's/gcc$//'`
+if [ "$BINUTILS_PREFIX" = "" ]; then
+       SUB_BINUTILS_PREFIX=`echo "$CC" | sed 's/gcc$//'`
+else
+       SUB_BINUTILS_PREFIX=$BINUTILS_PREFIX
+fi
 
 if [ "$CXX" = "" ]; then
        CXX=${SUB_BINUTILS_PREFIX}g++