Release 950918
[wine/dcerpc.git] / configure.in
blob5154cd76b7f7b5dc727485a75bec1e18bc3d4407
1 dnl Process this file with autoconf to produce a configure script.
2 dnl Author: Michael Patra   <micky@marie.physik.tu-berlin.de>
3 dnl                         <patra@itp1.physik.tu-berlin.de>
4 AC_REVISION([configure.in 1.00])
5 AC_INIT(controls/edit.c)                
7 # We want these before the checks, so the checks can modify their values.
8 test -z "$CFLAGS" && CFLAGS="-g -O2 -Wall" AC_SUBST(CFLAGS)
9 test -z "$LDFLAGS" && LDFLAGS=-g AC_SUBST(LDFLAGS)
11 dnl **** Command-line arguments ****
13 AC_ARG_WITH(library,
14 [  --with-library          build Wine as a library instead of an emulator],
15 [AC_DEFINE(WINELIB) MAIN_TARGET="winelib.a"],[MAIN_TARGET="wine"])
16 AC_SUBST(MAIN_TARGET)
18 AC_ARG_WITH(language,
19 [  --with-language=LANG    change the default language (LANG=En/De/No/Es)],
20 [LANG="-ALANG\($withval\)"],
21 [LANG="-ALANG\(En\)"],)
22 AC_SUBST(LANG)
24 AC_ARG_WITH(ipc,
25 [  --with-ipc              use inter-process communication for DDE],
26 [AC_DEFINE(CONFIG_IPC)])
28 AC_ARG_WITH(malloc-debug,
29 [  --with-malloc-debug     enable malloc() debugging],
30 [AC_DEFINE(MALLOC_DEBUGGING)])
32 dnl **** Check for some programs ****
34 AC_PROG_MAKE_SET
35 AC_PROG_CC
36 AC_PATH_XTRA
37 AC_PROG_YACC
38 AC_PROG_LEX
39 AC_PROG_RANLIB
41 AC_CHECK_FUNCS(tcgetattr)
42 AC_CHECK_HEADERS(stdlib.h)
43 AC_HEADER_STAT()
44 AC_C_CONST()
45 AC_TYPE_SIZE_T()
47 if test -z "${top_srcdir}"; then
48 TOP_SRCDIR="."
49 else
50 TOP_SRCDIR="${top_srcdir}"
53 AC_MSG_CHECKING(for wine.ini in autoconf.h)
54 if test -f ${TOP_SRCDIR}/autoconf.h; then
55 if test `grep -c WINE_INI_GLOBAL ${TOP_SRCDIR}/autoconf.h` -ne 0; then
56 WINE_INI_GLOBAL=`grep WINE_INI_GLOBAL ${TOP_SRCDIR}/autoconf.h | tr ' ' '\n' | tail -1`
57 AC_MSG_RESULT(${WINE_INI_GLOBAL})
60 if test -z "${WINE_INI_GLOBAL}"; then
61 AC_MSG_RESULT(no)
64 if test -z "${WINE_INI_GLOBAL}"; then
65 AC_MSG_CHECKING(for /usr/local/etc/wine.conf)
66 if test -f /usr/local/etc/wine.conf; then
67 AC_MSG_RESULT(yes)
68 WINE_INI_GLOBAL='"/usr/local/etc/wine.conf"'
69 else
70 AC_MSG_RESULT(no)
71 WINE_INI_GLOBAL="\"${TOP_SRCDIR}/wine.ini\""
74 AC_SUBST(WINE_INI_GLOBAL)
75 AC_DEFINE_UNQUOTED(WINE_INI_GLOBAL,$WINE_INI_GLOBAL)
77 MAKE_RULES=$TOP_SRCDIR/Make.rules
78 AC_SUBST_FILE(MAKE_RULES)
80 AC_OUTPUT(Make.rules controls/Makefile ipc/Makefile loader/Makefile memory/Makefile misc/Makefile miscemu/Makefile multimedia/Makefile objects/Makefile windows/Makefile rc/Makefile debugger/Makefile debugger/readline/Makefile tools/Makefile if1632/Makefile toolkit/Makefile Makefile)
82 echo
83 echo "Configure finished.  Do 'make depend; make' to compile Wine."
84 echo
86 dnl Local Variables:
87 dnl comment-start: "dnl "
88 dnl comment-end: ""
89 dnl comment-start-skip: "\\bdnl\\b\\s *"
90 dnl compile-command: "make configure config.h.in"
91 dnl End: