]> sourceware.org Git - newlib-cygwin.git/blame - winsup/configure.in
2008-11-27 Ken Werner <ken.werner@de.ibm.com>
[newlib-cygwin.git] / winsup / configure.in
CommitLineData
1fd5e000 1dnl Autoconf configure script for Cygwin.
350c2f44 2dnl Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc.
1fd5e000
CF
3dnl
4dnl This file is part of Cygwin.
5dnl
6dnl This software is a copyrighted work licensed under the terms of the
7dnl Cygwin license. Please consult the file "CYGWIN_LICENSE" for
8dnl details.
9dnl
10dnl Process this file with autoconf to produce a configure script.
11
99fc5e10 12AC_PREREQ(2.59)dnl
1fd5e000
CF
13AC_INIT(Makefile.in)
14
95dc8840
CV
15INSTALL=`cd $srcdir/..; echo $(pwd)/install-sh -c`
16
17AC_PROG_INSTALL
1fd5e000
CF
18AC_CANONICAL_SYSTEM
19
7e5d0e9f
CV
20GCC_NO_EXECUTABLES
21
1fd5e000 22LIB_AC_PROG_CC
8494f61e 23LIB_AC_PROG_CXX
1fd5e000 24
99fc5e10
CF
25AC_LANG_C
26
d012506e 27use_cygserver='yes'
9c01984e
CF
28AC_ARG_ENABLE(server,
29[ --enable-server Build a cygwin DLL which can communicate with cygserver],
30[case "${enableval}" in
d012506e
CF
31yes) ;;
32no) use_cygserver=;;
9c01984e
CF
33esac
34])
35
7e5d0e9f
CV
36INSTALL_LICENSE=
37
38case "$target" in
39 *cygwin*)
40 if ! test -d $srcdir/cygwin; then
41 AC_MSG_ERROR("No cygwin dir. Can't build Cygwin. Exiting...")
42 fi
43 AC_CONFIG_SUBDIRS(cygwin)
44 INSTALL_LICENSE="install-license"
45 ;;
46 *mingw*)
47 if ! test -d $srcdir/mingw; then
48 AC_MSG_ERROR("No mingw dir. Can't build Mingw. Exiting...")
49 fi
50 ;;
51esac
52
99fc5e10
CF
53if test -d $srcdir/mingw; then
54 AC_CONFIG_SUBDIRS(mingw)
55fi
7e5d0e9f 56AC_CONFIG_SUBDIRS(w32api)
74162926 57
2e6d8441
CF
58case "$with_cross_host" in
59 ""|*cygwin*)
99fc5e10
CF
60 # if test -d $srcdir/bz2lib; then
61 # AC_CONFIG_SUBDIRS(bz2lib)
62 # fi
63 # if test -d $srcdir/zlib; then
64 # AC_CONFIG_SUBDIRS(zlib)
65 # fi
c6caaa34
CV
66 if test -d $srcdir/lsaauth; then
67 AC_CONFIG_SUBDIRS(lsaauth)
e9d500b6 68 fi
99fc5e10
CF
69 if test -n "$use_cygserver" -a -d $srcdir/cygserver; then
70 AC_CONFIG_SUBDIRS(cygserver)
71 fi
72 AC_CONFIG_SUBDIRS(utils doc)
2e6d8441
CF
73 ;;
74esac
75
7e5d0e9f
CV
76AC_SUBST(INSTALL_LICENSE)
77
1fd5e000
CF
78AC_PROG_MAKE_SET
79
1fd5e000 80AC_OUTPUT(Makefile)
This page took 0.18616 seconds and 5 git commands to generate.