mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-26 17:17:20 +08:00
a100e80fc9
The newlib & libgloss dirs are already generated using autoconf-2.69. To avoid merging new code and/or accidental regeneration using diff versions, leverage config/override.m4 to pin to 2.69 exactly. This matches what gcc/binutils/gdb are already doing. The README file already says to use autoconf-2.69. To accomplish this, it's just as simple as adding -I flags to the top-level config/ dir when running aclocal. This is because the override.m4 file overrides AC_INIT to first require the specific autoconf version before calling the real AC_INIT.
33 lines
759 B
Plaintext
33 lines
759 B
Plaintext
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_INIT(wince-stub, 1.0)
|
|
AC_CANONICAL_SYSTEM
|
|
AC_ARG_PROGRAM
|
|
AM_INIT_AUTOMAKE
|
|
AM_MAINTAINER_MODE
|
|
|
|
cross_compiling=yes
|
|
program_transform_name=s,^,@target_alias@-,;
|
|
|
|
: ${CFLAGS='-O2'}
|
|
LIB_AC_PROG_CC
|
|
# CFLAGS="$CFLAGS -Xlinker --defsym -Xlinker _main=_WinMain"
|
|
AC_CHECK_TOOL(LD, ld, ld)
|
|
AC_SUBST(LD)
|
|
AC_PROG_INSTALL
|
|
case "${target}" in
|
|
*arm*-*-*) LDADD='-lwinsock -lsslsock' ;;
|
|
*) LDADD='-lwinsock'
|
|
esac
|
|
AC_SUBST(LDADD)
|
|
LIB_AM_PROG_AS
|
|
#
|
|
# The following is sort of a kludge but we *know* that we need
|
|
# an executable extension and, currently, the sh-pe-gcc compiler
|
|
# doesn't play well with configure, so, set a "cache" entry.
|
|
#
|
|
: ${ac_cv_exeext='.exe'}
|
|
AC_EXEEXT
|
|
|
|
AC_OUTPUT([Makefile])
|