Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-08-10 01:12:09 +0400
committerJeff Johnston <jjohnstn@redhat.com>2002-08-10 01:12:09 +0400
commit037240a242b404e18308dd1a60937a5868bed702 (patch)
tree5c9ff2a9f35785c05923d464af5e37a05c677d32 /newlib/configure.in
parentc9fadf3b49ec07bf3b25ba0e1a75842ddc702f4d (diff)
2002-08-09 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Add check for --enable-newlib-io-pos-args and define WANT_IO_POS_ARGS flag if enabled. Define the flag by default for x86-linux configurations. * configure.in: Add support for --enable-newlib-io-pos-args. * libc/configure.in: Ditto. * configure: Regenerated. * libc/configure: Ditto. * libc/stdio/Makefile.am: Specify -fshort-enums for compiling vfprintf.c and vfiprintf.c. * libc/stdio/Makefile.in: Regenerated. * libc/stdio/vfprintf.c: Add positional argument support that is enabled by compiling with -DWANT_IO_POS_ARGS.
Diffstat (limited to 'newlib/configure.in')
-rw-r--r--newlib/configure.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/newlib/configure.in b/newlib/configure.in
index 2894d713a..b349237c3 100644
--- a/newlib/configure.in
+++ b/newlib/configure.in
@@ -7,6 +7,18 @@ AC_INIT(libc)
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
AC_CONFIG_AUX_DIR(..)
+dnl Support --enable-newlib-io-pos-args
+dnl This option is actually read in libc/configure.in. It is repeated
+dnl here so that it shows up in the help text.
+AC_ARG_ENABLE(newlib-io-pos-args,
+[ --enable-newlib-io-pos-args enable printf-family positional arg support],
+[case "${enableval}" in
+ yes) newlib_io_pos_args=yes ;;
+ no) newlib_io_pos_args=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for newlib-io-pos-args option) ;;
+ esac], [newlib_io_pos_args=no])dnl
+
+
NEWLIB_CONFIGURE(.)
dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and