1 # Process this file with autoconf to produce a configure script.
4 AC_INIT([pcc-libs], [0.9.9], <pcc-list@ludd.ltu.se>)
10 version=$PACKAGE_VERSION
17 m68k) targmach=m68k endian=big ;;
24 i?86) targmach=i386 ;;
25 powerpc) targmach=powerpc endian=big ;;
32 i?86) targmach=i386 ;;
39 i386) targmach=i386 ;;
46 i?86) targmach=i386 ;;
47 powerpc*) targmach=powerpc endian=big ;;
48 x86_64) targmach=amd64 ;;
55 i?86) targmach=i386 ;;
56 sparc64) targmach=sparc64 endian=big ;;
63 m68k) targmach=m68k endian=big ;;
70 i?86) targmach=i386 ;;
77 armeb) targmach=arm endian=big ;;
79 i?86) targmach=i386 ;;
80 m68k*) targmach=m68k endian=big ;;
81 mipseb) targmach=mips endian=big ;;
82 mips*) targmach=mips ;;
83 pdp10) targmach=pdp10 ;;
84 powerpc) targmach=powerpc endian=big ;;
85 sparc64) targmach=sparc64 endian=big ;;
93 i?86) targmach=i386 ;;
95 powerpc) targmach=powerpc endian=big ;;
96 sparc64) targmach=sparc64 endian=big ;;
102 case "$target_cpu" in
103 i?86) targmach=i386 ;;
104 sparc*) targmach=sparc64 endian=big ;;
116 case "$target_cpu" in
117 m16c) targmach=m16c ;;
118 nova) targmach=nova ;;
123 if test "X$targos" = X -o "X$targmach" = X; then
124 AC_MSG_ERROR(['$target' is not (yet) supported by pcc-libs.])
127 if test "X$endian" = "Xbig"; then
128 AC_SUBST([ENDIAN_FLAG],[-D__BIG_ENDIAN__=1])
130 AC_SUBST([ENDIAN_FLAG],[-D__LITTLE_ENDIAN__=1])
133 AC_CHECK_TOOLS([CC], [pcc gcc cc])
134 AC_CHECK_TOOL([AR], [ar], [ar])
146 AC_CONFIG_FILES([Makefile
148 libsoftfloat/Makefile