1dnl Process this file with autoconf to produce a configure script.
2
3AC_PREREQ(2.13)
4
5AC_INIT(Makefile.in)
6AC_CANONICAL_SYSTEM
7AC_ARG_PROGRAM
8AM_INIT_AUTOMAKE(wince-stub, 1.0)
9AM_MAINTAINER_MODE
10
11cross_compiling=yes
12program_transform_name=s,^,@target_alias@-,;
13
14: ${CFLAGS='-O2'}
15AC_CHECK_PROG(CC, "${host_alias}-gcc", "${host_alias}-gcc")
16# CFLAGS="$CFLAGS -Xlinker --defsym -Xlinker _main=_WinMain"
17AC_PROG_CC_GNU
18AC_CHECK_TOOL(LD, ld, ld)
19AC_SUBST(LD)
20AC_PROG_INSTALL
21case "${target}" in
22    *arm*-*-*)	LDADD='-lwinsock -lsslsock' ;;
23    *)		LDADD='-lwinsock'
24esac
25AC_SUBST(LDADD)
26#
27# The following is sort of a kludge but we *know* that we need
28# an executable extension and, currently, the sh-pe-gcc compiler
29# doesn't play well with configure, so, set a "cache" entry.
30#
31: ${ac_cv_exeext='.exe'}
32AC_EXEEXT
33
34AC_OUTPUT([Makefile])
35