Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / device / non-free / lib / pic16 / supported-devices.ac
blobc9c80df4705653450bcda421bafb47c6e42d744c
1 AC_MSG_CHECKING([devices supported by gputils])
2 GOOD_PICS="";
3 BAD_PICS="";
4 CHECK=".checkdevices/check";
5 RESULT="pics.supported";
6 N_GOOD=0
7 N_BAD=0
8 mkdir -p ".checkdevices";
9 rm -f "$RESULT";
10 for i in "${LIBDEV}/pic1"*.c; do
11   p="${i##*pic}";
12   p="${p%.c}";
13   P=$(echo "$p" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ);
14   printf "  include \"p%s.inc\"\n  END" "$p" > "${CHECK}.asm";
15   if "$mCCAS" -p "$p" -o "${CHECK}.o" -c "${CHECK}.asm" >/dev/null 2>&1 && "$mLD" "${CHECK}.o" >/dev/null 2>&1; then
16     GOOD_PICS="$GOOD_PICS $p";
17     N_GOOD=`expr $N_GOOD + 1`;
18     echo "$P" >> "$RESULT";
19   else
20     BAD_PICS="$BAD_PICS $p";
21     N_BAD=`expr $N_BAD + 1`;
22   fi;
23 done;
24 AC_MSG_RESULT([[$N_GOOD devices ($GOOD_PICS)]])
25 AC_SUBST([GOOD_PICS])
27 if test -n "$BAD_PICS"; then
28   AC_MSG_WARN([[
29 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
30 !!!
31 !!! WARNING: The installed gputils do not support all
32 !!! PIC devices currently supported by SDCC.
33 !!! If you continue to build SDCC, library files for the
34 !!! following devices will not be built, and you will
35 !!! not be able to compile any projects for these devices:
36 !!!
38 $BAD_PICS
39 ==> $N_BAD devices are *not* supported
40     $N_GOOD devices are supported
42 !!!
43 !!! Please update your gputils to a recent snapshot and
44 !!! run configure again using the updated gputils. Make
45 !!! sure to have them in PATH prior to the previously
46 !!! found ones (or remove the older version completely).
47 !!!
48 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
50 ]])
51   for d in 3 2 1; do
52     echo "Continuing in $d seconds ...";
53     sleep 1;
54   done;
55 fi;