configure
changeset 39 3e94ee906bc6
parent 38 9b5bb1dcb4f5
child 40 ddeeb217ed71
equal deleted inserted replaced
38:9b5bb1dcb4f5 39:3e94ee906bc6
    99 	--led=*)	SUB_LED_DRIVER=$optarg;;
    99 	--led=*)	SUB_LED_DRIVER=$optarg;;
   100 	--nvram=*)	SUB_NVRAM_DRIVER=$optarg;;
   100 	--nvram=*)	SUB_NVRAM_DRIVER=$optarg;;
   101 	--timers=*)	SUB_TIMERS_DRIVER=$optarg;;
   101 	--timers=*)	SUB_TIMERS_DRIVER=$optarg;;
   102 	--disable-Ox)	DISABLE_OPT=1;
   102 	--disable-Ox)	DISABLE_OPT=1;
   103 			echo "On user request: Won't optimize with \"-Ox\"";;
   103 			echo "On user request: Won't optimize with \"-Ox\"";;
   104 	--enable-jaxe)	DISABLE_JAXE=0;
       
   105 			echo "On user request: Will not install jaxe";;
       
   106 	--debug)	DEBUG=1;
   104 	--debug)	DEBUG=1;
   107 			echo "Debug messages enabled !!";;
   105 			echo "Debug messages enabled !!";;
   108 	--debugPDO)	DEBUG=PDO;
   106 	--debugPDO)	DEBUG=PDO;
   109 			echo "Debug messages (PDO) enabled !!";;
   107 			echo "Debug messages (PDO) enabled !!";;
   110 	--enable-lss)	SUB_LSS_ENABLE=YES;
   108 	--enable-lss)	SUB_LSS_ENABLE=YES;
   133 		echo 	" --can=foo	Use 'foo' as CAN driver (can be either 'peak', 'lincan' or 'virtual')"
   131 		echo 	" --can=foo	Use 'foo' as CAN driver (can be either 'peak', 'lincan' or 'virtual')"
   134 		echo 	" --timers=foo	Use 'foo' as TIMERS driver (can be either 'unix' or 'xeno')"
   132 		echo 	" --timers=foo	Use 'foo' as TIMERS driver (can be either 'unix' or 'xeno')"
   135 		echo	" --led=foo	Use 'foo' as DS-305 LED driver (use 'none' to disable or 'stdout')"
   133 		echo	" --led=foo	Use 'foo' as DS-305 LED driver (use 'none' to disable or 'stdout')"
   136 		echo	" --nvram=foo	Use 'foo' as NVRAM driver (use 'none' to disable or 'file')"
   134 		echo	" --nvram=foo	Use 'foo' as NVRAM driver (use 'none' to disable or 'file')"
   137 		echo	" --disable-Ox	Disable gcc \"-Ox\" optimizations."
   135 		echo	" --disable-Ox	Disable gcc \"-Ox\" optimizations."
   138 		echo	" --enable-jaxe	Enable \"jaxe\" installation."
       
   139 		echo	" --debug	Enable debug messages."
   136 		echo	" --debug	Enable debug messages."
   140 		echo	" --debugPDO	Enable debug messages, using PDO."
   137 		echo	" --debugPDO	Enable debug messages, using PDO."
   141 		echo	" --enable-lss	Enable Auto Baudrate detect Feature"
   138 		echo	" --enable-lss	Enable Auto Baudrate detect Feature"
   142 		echo
   139 		echo
   143 		echo	"Stack compilation constants"
   140 		echo	"Stack compilation constants"
   150 	*)		echo "Unknown argument ${1}"; exit -1;;
   147 	*)		echo "Unknown argument ${1}"; exit -1;;
   151 	esac
   148 	esac
   152 
   149 
   153 	shift
   150 	shift
   154 done
   151 done
   155 
       
   156 if [ "$DISABLE_JAXE" = "1" ]; then
       
   157 	SUB_OPT_JAXE=
       
   158 else
       
   159 	which java >/dev/null 2>&1
       
   160 	if (( $? )); then 
       
   161 		SUB_OPT_JAXE=
       
   162 		echo "Could not find java VM ! Jaxe XML editor disabled !"
       
   163 	else
       
   164 		SUB_OPT_JAXE=jaxe
       
   165 	fi
       
   166 fi
       
   167 
   152 
   168 ###########################################################################
   153 ###########################################################################
   169 #                              GUESS OS/ARCH                              #
   154 #                              GUESS OS/ARCH                              #
   170 ###########################################################################
   155 ###########################################################################
   171 
   156 
   716 	s:SUB_OS_NAME:${SUB_OS_NAME}:
   701 	s:SUB_OS_NAME:${SUB_OS_NAME}:
   717 	s:SUB_ARCH_NAME:${SUB_ARCH_NAME}:
   702 	s:SUB_ARCH_NAME:${SUB_ARCH_NAME}:
   718 	s:SUB_OPT_CFLAGS:${SUB_OPT_CFLAGS}:
   703 	s:SUB_OPT_CFLAGS:${SUB_OPT_CFLAGS}:
   719 	s:SUB_TARGET:${SUB_TARGET}:
   704 	s:SUB_TARGET:${SUB_TARGET}:
   720 	s:SUB_BINUTILS_PREFIX:${SUB_BINUTILS_PREFIX}:
   705 	s:SUB_BINUTILS_PREFIX:${SUB_BINUTILS_PREFIX}:
   721 	s:SUB_OPT_JAXE:${SUB_OPT_JAXE}:
       
   722 	s:SUB_LSS_ENABLE:${SUB_LSS_ENABLE}:
   706 	s:SUB_LSS_ENABLE:${SUB_LSS_ENABLE}:
   723 	s:SUB_LED_ENABLE:${SUB_LED_ENABLE}:
   707 	s:SUB_LED_ENABLE:${SUB_LED_ENABLE}:
   724 	s:SUB_NVRAM_ENABLE:${SUB_NVRAM_ENABLE}:
   708 	s:SUB_NVRAM_ENABLE:${SUB_NVRAM_ENABLE}:
   725 	s:SUB_TIMERS_ENABLE:${SUB_TIMERS_ENABLE}:
   709 	s:SUB_TIMERS_ENABLE:${SUB_TIMERS_ENABLE}:
   726 	s:SUB_TIMERS_DRIVER:timers_${SUB_TIMERS_DRIVER}:
   710 	s:SUB_TIMERS_DRIVER:timers_${SUB_TIMERS_DRIVER}: