From: Peter Foley <pefoley2@pefoley.com>
To: cygwin-patches@cygwin.com
Cc: Peter Foley <pefoley2@pefoley.com>
Subject: [PATCH v2 1/3] Add option to not build mingw programs when cross compiling.
Date: Wed, 23 Mar 2016 13:34:00 -0000 [thread overview]
Message-ID: <1458740052-19618-1-git-send-email-pefoley2@pefoley.com> (raw)
In-Reply-To: <56F0A4A9.7050305@cygwin.com>
Add an option to not require a mingw compiler when bootstrapping a cross toolchain.
Defaults to existing behavior.
Also update some obsolete macros.
winsup/ChangeLog
configure.ac: Add option to skip building programs that require mingw.
configure: Regenerate.
Signed-off-by: Peter Foley <pefoley2@pefoley.com>
---
winsup/configure | 22 +++++++++++++++++++---
winsup/configure.ac | 17 +++++++++++------
2 files changed, 30 insertions(+), 9 deletions(-)
mode change 100755 => 100644 winsup/configure.ac
diff --git a/winsup/configure b/winsup/configure
index 0887d66..988ce54 100755
--- a/winsup/configure
+++ b/winsup/configure
@@ -665,6 +665,7 @@ target_builddir'
ac_subst_files=''
ac_user_opts='
enable_option_checking
+with_mingw_progs
with_windows_headers
with_windows_libs
'
@@ -680,7 +681,8 @@ CXX
CXXFLAGS
CCC
CPP'
-ac_subdirs_all='cygwin utils cygserver lsaauth doc'
+ac_subdirs_all='utils lsaauth
+cygwin cygserver doc'
# Initialize some variables set by options.
ac_init_help=
@@ -1293,6 +1295,8 @@ if test -n "$ac_init_help"; then
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --without-mingw-progs do not build programs using the mingw toolchain
+ (useful for cross-compiling)
--with-windows-headers=DIR
specify where the windows includes are located
--with-windows-libs=DIR specify where the windows libraries are located
@@ -2092,7 +2096,6 @@ test -n "$target_alias" &&
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3359,6 +3362,14 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
ac_compiler_gnu=$ac_cv_c_compiler_gnu
+# Check whether --with-mingw-progs was given.
+if test "${with_mingw_progs+set}" = set; then :
+ withval=$with_mingw_progs;
+else
+ with_mingw_progs=yes
+fi
+
+
# Check whether --with-windows-headers was given.
@@ -3433,9 +3444,14 @@ export CXX
+if test "x$with_mingw_progs" != xyes; then
+
+subdirs="$subdirs utils lsaauth"
+
+fi
-subdirs="$subdirs cygwin utils cygserver lsaauth doc"
+subdirs="$subdirs cygwin cygserver doc"
INSTALL_LICENSE="install-license"
diff --git a/winsup/configure.ac b/winsup/configure.ac
old mode 100755
new mode 100644
index 43b95c5..afa0d42
--- a/winsup/configure.ac
+++ b/winsup/configure.ac
@@ -10,9 +10,8 @@ dnl details.
dnl
dnl Process this file with autoconf to produce a configure script.
-AC_PREREQ(2.59)dnl
-AC_INIT([Cygwin toplevel], 0,
- cygwin@cygwin.com, cygwin, https://cygwin.com)
+AC_PREREQ([2.59])
+AC_INIT([Cygwin toplevel],[0],[cygwin@cygwin.com],[cygwin],[https://cygwin.com])
AC_CONFIG_SRCDIR(Makefile.in)
AC_CONFIG_AUX_DIR(..)
@@ -20,12 +19,13 @@ AC_CONFIG_AUX_DIR(..)
AC_PROG_INSTALL
AC_NO_EXECUTABLES
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
AC_LANG(C)
+AC_ARG_WITH([mingw-progs],[AS_HELP_STRING([--without-mingw-progs],[do not build programs using the mingw toolchain (useful for cross-compiling)])],[],[with_mingw_progs=yes])
AC_WINDOWS_HEADERS
AC_WINDOWS_LIBS
@@ -34,11 +34,16 @@ AC_LANG(C++)
AC_CYGWIN_INCLUDES
-AC_CONFIG_SUBDIRS(cygwin utils cygserver lsaauth doc)
+if test "x$with_mingw_progs" != xyes; then
+ AC_CONFIG_SUBDIRS([utils lsaauth])
+fi
+
+AC_CONFIG_SUBDIRS(cygwin cygserver doc)
INSTALL_LICENSE="install-license"
AC_SUBST(INSTALL_LICENSE)
AC_PROG_MAKE_SET
-AC_OUTPUT(Makefile)
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
--
2.7.4
next prev parent reply other threads:[~2016-03-23 13:34 UTC|newest]
Thread overview: 77+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-21 17:16 [PATCH v2 1/5] Add nonnull annotation to posix_memalign Peter Foley
2016-03-19 17:46 ` [PATCH 01/11] Remove unused and unsafe call to __builtin_frame_address Peter Foley
2016-03-19 17:46 ` [PATCH 09/11] Add c++14 sized deallocation operator Peter Foley
2016-03-20 11:28 ` Corinna Vinschen
2016-03-21 16:35 ` Peter Foley
2016-03-21 17:13 ` Corinna Vinschen
2016-03-21 17:47 ` Peter Foley
2016-03-21 18:09 ` Corinna Vinschen
2016-03-21 19:35 ` Peter Foley
2016-03-21 19:55 ` Corinna Vinschen
2016-03-21 20:04 ` Peter Foley
2016-03-23 11:07 ` Corinna Vinschen
2016-03-19 17:46 ` [PATCH 08/11] Fix typoed comparison Peter Foley
2016-03-20 11:20 ` Corinna Vinschen
2016-03-19 17:46 ` [PATCH 04/11] Remove misleading indentation Peter Foley
2016-03-20 11:03 ` Corinna Vinschen
2016-03-21 17:16 ` [PATCH v2 3/5] " Peter Foley
2016-03-21 19:17 ` Corinna Vinschen
2016-03-19 17:46 ` [PATCH 06/11] Remove always true nonnull check on "this" pointer Peter Foley
2016-03-29 20:50 ` Peter Foley
2016-03-30 11:24 ` Corinna Vinschen
2016-03-30 13:11 ` Peter Foley
2016-03-19 17:46 ` [PATCH 03/11] Add necessary braces to if statements Peter Foley
2016-03-20 10:56 ` Corinna Vinschen
2016-03-19 17:46 ` [PATCH 02/11] Remove dead code from fhandler_console Peter Foley
2016-03-20 10:57 ` Corinna Vinschen
2016-03-19 17:46 ` [PATCH 07/11] The address of an class always evaluates to true Peter Foley
2016-03-20 11:17 ` Corinna Vinschen
2016-03-19 17:46 ` [PATCH 11/11] respect datarootdir Peter Foley
2016-03-20 11:49 ` Corinna Vinschen
2016-03-19 17:46 ` [PATCH 05/11] A pointer to a pointer is nonnull Peter Foley
2016-03-20 11:16 ` Corinna Vinschen
2016-03-21 14:20 ` Peter Foley
2016-03-21 15:05 ` Corinna Vinschen
2016-03-21 15:52 ` Peter Foley
2016-03-21 16:38 ` Peter Rosin
2016-03-21 19:49 ` Corinna Vinschen
2016-03-19 17:46 ` [PATCH 10/11] Fix strict aliasing Peter Foley
2016-03-20 11:34 ` Corinna Vinschen
2016-03-20 9:56 ` [PATCH 01/11] Remove unused and unsafe call to __builtin_frame_address Corinna Vinschen
2016-03-21 1:44 ` Peter Foley
2016-03-20 10:54 ` Corinna Vinschen
2016-03-21 17:16 ` [PATCH 2/5] Link against libdnsapi to avoid undefined reference Peter Foley
2016-03-21 19:25 ` Corinna Vinschen
2016-03-21 19:46 ` Peter Foley
2016-03-21 19:52 ` Corinna Vinschen
2016-03-21 20:04 ` Peter Foley
2016-03-21 20:19 ` Peter Foley
2016-03-21 20:34 ` Corinna Vinschen
2016-03-21 20:41 ` [PATCH v2] Use DnsFree instead of deprecated DnsRecordListFree Peter Foley
2016-03-23 10:43 ` Corinna Vinschen
2016-03-21 17:16 ` [PATCH 4/5] Don't build utils/lsaauth when cross compiling Peter Foley
2016-03-21 19:30 ` Corinna Vinschen
2016-03-21 19:52 ` Peter Foley
2016-03-21 19:58 ` Corinna Vinschen
2016-03-21 20:00 ` Peter Foley
2016-03-22 1:49 ` Yaakov Selkowitz
2016-03-22 4:04 ` Peter Foley
2016-03-23 13:34 ` Peter Foley [this message]
2016-03-23 13:34 ` [PATCH 3/3] Use just-built gcc for windres Peter Foley
2016-03-30 12:31 ` Corinna Vinschen
2016-03-30 13:09 ` Peter Foley
2016-03-30 15:07 ` Corinna Vinschen
2016-03-30 12:11 ` [PATCH v2 1/3] Add option to not build mingw programs when cross compiling Corinna Vinschen
2016-03-30 13:10 ` Peter Foley
2016-03-21 17:16 ` [PATCH 5/5] Add with-only-headers Peter Foley
2016-03-21 19:48 ` Corinna Vinschen
2016-03-21 19:59 ` Peter Foley
2016-03-21 20:32 ` Corinna Vinschen
2016-03-21 20:35 ` Peter Foley
2016-03-21 21:04 ` Peter Foley
2016-03-21 21:30 ` Peter Foley
2016-03-23 10:44 ` Corinna Vinschen
2016-03-23 13:34 ` [PATCH 2/3] " Peter Foley
2016-03-21 19:28 ` [PATCH v2 1/5] Add nonnull annotation to posix_memalign Corinna Vinschen
2016-03-22 1:51 ` Yaakov Selkowitz
2016-03-23 10:46 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1458740052-19618-1-git-send-email-pefoley2@pefoley.com \
--to=pefoley2@pefoley.com \
--cc=cygwin-patches@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).