configure
changeset 77 7b552428b48a
parent 47 8a1047ab51f4
child 81 9ea761516104
equal deleted inserted replaced
76:68e1c52d603d 77:7b552428b48a
   588 	CANOPEN_LITTLE_ENDIAN=
   588 	CANOPEN_LITTLE_ENDIAN=
   589 fi
   589 fi
   590 
   590 
   591 # Create include/config.h with the relevant contents
   591 # Create include/config.h with the relevant contents
   592 rm -f include/config.h
   592 rm -f include/config.h
   593 echo "/*"\ >  include/config.h
   593 echo "/* !!!!!!!!!! FILE GENERATED by configure. DO NOT EDIT !!!!!!!!!!*/" >>  include/config.h
       
   594 echo "" >>  include/config.h
       
   595 echo "/*"\ >>  include/config.h
   594 echo "This file is part of CanFestival, a library implementing CanOpen Stack." >> include/config.h
   596 echo "This file is part of CanFestival, a library implementing CanOpen Stack." >> include/config.h
   595 echo "" >> include/config.h
   597 echo "" >> include/config.h
   596 echo "Copyright (C): Edouard TISSERANT and Francis DUPIN" >> include/config.h
   598 echo "Copyright (C): Edouard TISSERANT and Francis DUPIN" >> include/config.h
   597 echo "See COPYING file for copyrights details." >> include/config.h
   599 echo "See COPYING file for copyrights details." >> include/config.h
   598 echo "" >> include/config.h
   600 echo "" >> include/config.h
   626  US_TO_TIMEVAL_FACTOR\
   628  US_TO_TIMEVAL_FACTOR\
   627  TIMEVAL\
   629  TIMEVAL\
   628  TIMEVAL_MAX\
   630  TIMEVAL_MAX\
   629  RTCAN_SOCKET; do
   631  RTCAN_SOCKET; do
   630 if [ "${!i}" = "" ]; then
   632 if [ "${!i}" = "" ]; then
   631 echo "// $i is not defined" >> include/config.h
   633 echo "/* $i is not defined */" >> include/config.h
   632 else
   634 else
   633 echo "#define $i ${!i}" >> include/config.h
   635 echo "#define $i ${!i}" >> include/config.h
   634 fi
   636 fi
   635 done	
   637 done	
   636 echo "" >> include/config.h
   638 echo "" >> include/config.h