* device/lib/pic16/bootstrap.sh: avoid symlinks
[fw/sdcc] / device / lib / pic16 / configure.ac
index f7f8f94f90e90edaafe990628620c0e83f722bad..cedc3d449eade2e2231c2c1c98bdf976ee063d72 100644 (file)
@@ -1,13 +1,6 @@
 #                                               -*- Autoconf -*-
 # Process this file with autoconf to produce a configure script.
 
-#
-# The (generated) configure script should be called with
-#     --build=<your-build-system> --target=pic16
-# to force cross-compilation mode; rather use the wrapper
-# ./configure.gnu instead of ./configure directly.
-#
-
 AC_PREREQ(2.61)
 AC_INIT([pic16lib], [0.3], [tecodev AT users sourceforge net])
 AM_INIT_AUTOMAKE
@@ -32,6 +25,13 @@ esac
 
 libdir=$libdir/pic16
 
+AC_SUBST([USE_FLOATS], ["-DUSE_FLOATS=0"])
+AC_ARG_ENABLE(
+    [floats],
+    AS_HELP_STRING([--enable-floats], [Enable output of float-values via printf().]),
+    [if test "yes" = $enableval; then USE_FLOATS="-DUSE_FLOATS=1"; fi]
+)
+
 # Checks for programs.
 
 # The default architecture can be selected at configure time by setting the