]>
Commit | Line | Data |
---|---|---|
1fd5e000 | 1 | dnl Autoconf configure script for Cygwin. |
350c2f44 | 2 | dnl Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc. |
1fd5e000 CF |
3 | dnl |
4 | dnl This file is part of Cygwin. | |
5 | dnl | |
6 | dnl This software is a copyrighted work licensed under the terms of the | |
7 | dnl Cygwin license. Please consult the file "CYGWIN_LICENSE" for | |
8 | dnl details. | |
9 | dnl | |
10 | dnl Process this file with autoconf to produce a configure script. | |
11 | ||
99fc5e10 | 12 | AC_PREREQ(2.59)dnl |
1fd5e000 CF |
13 | AC_INIT(Makefile.in) |
14 | ||
95dc8840 CV |
15 | INSTALL=`cd $srcdir/..; echo $(pwd)/install-sh -c` |
16 | ||
17 | AC_PROG_INSTALL | |
1fd5e000 CF |
18 | AC_CANONICAL_SYSTEM |
19 | ||
20 | LIB_AC_PROG_CC | |
8494f61e | 21 | LIB_AC_PROG_CXX |
1fd5e000 | 22 | |
99fc5e10 CF |
23 | AC_LANG_C |
24 | ||
d012506e | 25 | use_cygserver='yes' |
9c01984e CF |
26 | AC_ARG_ENABLE(server, |
27 | [ --enable-server Build a cygwin DLL which can communicate with cygserver], | |
28 | [case "${enableval}" in | |
d012506e CF |
29 | yes) ;; |
30 | no) use_cygserver=;; | |
9c01984e CF |
31 | esac |
32 | ]) | |
33 | ||
99fc5e10 CF |
34 | AC_CONFIG_SUBDIRS(cygwin w32api) |
35 | if test -d $srcdir/mingw; then | |
36 | AC_CONFIG_SUBDIRS(mingw) | |
37 | fi | |
74162926 | 38 | |
2e6d8441 CF |
39 | case "$with_cross_host" in |
40 | ""|*cygwin*) | |
99fc5e10 CF |
41 | # if test -d $srcdir/bz2lib; then |
42 | # AC_CONFIG_SUBDIRS(bz2lib) | |
43 | # fi | |
44 | # if test -d $srcdir/zlib; then | |
45 | # AC_CONFIG_SUBDIRS(zlib) | |
46 | # fi | |
e9d500b6 CV |
47 | if test -d $srcdir/subauth; then |
48 | AC_CONFIG_SUBDIRS(subauth) | |
49 | fi | |
99fc5e10 CF |
50 | if test -n "$use_cygserver" -a -d $srcdir/cygserver; then |
51 | AC_CONFIG_SUBDIRS(cygserver) | |
52 | fi | |
53 | AC_CONFIG_SUBDIRS(utils doc) | |
2e6d8441 CF |
54 | ;; |
55 | esac | |
56 | ||
1fd5e000 CF |
57 | AC_PROG_MAKE_SET |
58 | ||
1fd5e000 | 59 | AC_OUTPUT(Makefile) |