Release 951212
[wine.git] / configure.in
blob7eee8424b0c02c771fbe4538cb3bd5b9b00fa0f0
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)
10 test -z "$LDLIBS" && LDLIBS=-lm AC_SUBST(LDLIBS)
12 dnl **** Command-line arguments ****
14 AC_ARG_WITH(library,
15 [  --with-library          build Wine as a library instead of an emulator],
16 [AC_DEFINE(WINELIB) MAIN_TARGET="winelib.a"],[MAIN_TARGET="wine"])
17 AC_SUBST(MAIN_TARGET)
19 AC_ARG_WITH(language,
20 [  --with-language=LANG    change the language (LANG=En/De/Fr/Es/No/Fi/Da)],
21 [LANG="$withval"],
22 [LANG=En],)
23 AC_SUBST(LANG)
25 AC_ARG_WITH(ipc,
26 [  --with-ipc              use inter-process communication for DDE],
27 [AC_DEFINE(CONFIG_IPC)])
29 AC_ARG_WITH(malloc-debug,
30 [  --with-malloc-debug     enable malloc() debugging],
31 [AC_DEFINE(MALLOC_DEBUGGING)])
33 dnl **** Check for some programs and libraries ****
35 AC_PROG_MAKE_SET
36 AC_PROG_CC
37 AC_PATH_XTRA
38 AC_PROG_YACC
39 AC_PROG_LEX
40 AC_PROG_RANLIB
41 dnl Check for -li386 for NetBSD
42 AC_CHECK_LIB(i386,i386_set_ldt,LDLIBS="$LDLIBS -li386")
44 dnl **** Check for functions and header files ****
46 AC_CHECK_FUNCS(tcgetattr)
47 AC_CHECK_HEADERS(stdlib.h)
48 AC_HEADER_STAT()
49 AC_C_CONST()
50 AC_TYPE_SIZE_T()
52 if test -z "${top_srcdir}"; then
53 TOP_SRCDIR=`pwd`
54 else
55 TOP_SRCDIR="${top_srcdir}"
58 AC_MSG_CHECKING(for /usr/local/etc/wine.conf)
59 if test -f /usr/local/etc/wine.conf; then
60 AC_MSG_RESULT(yes)
61 WINE_INI_GLOBAL='"/usr/local/etc/wine.conf"'
62 else
63 AC_MSG_RESULT(no)
64 WINE_INI_GLOBAL="\"${TOP_SRCDIR}/wine.ini\""
66 AC_SUBST(WINE_INI_GLOBAL)
67 AC_DEFINE_UNQUOTED(WINE_INI_GLOBAL,$WINE_INI_GLOBAL)
69 MAKE_RULES=$TOP_SRCDIR/Make.rules
70 AC_SUBST_FILE(MAKE_RULES)
72 AC_OUTPUT(Make.rules controls/Makefile ipc/Makefile loader/Makefile memory/Makefile misc/Makefile miscemu/Makefile multimedia/Makefile objects/Makefile win32/Makefile windows/Makefile rc/Makefile debugger/Makefile debugger/readline/Makefile tools/Makefile if1632/Makefile toolkit/Makefile Makefile)
74 echo
75 echo "Configure finished.  Do 'make depend; make' to compile Wine."
76 echo
78 dnl Local Variables:
79 dnl comment-start: "dnl "
80 dnl comment-end: ""
81 dnl comment-start-skip: "\\bdnl\\b\\s *"
82 dnl compile-command: "make configure config.h.in"
83 dnl End: