Release 951226
[wine/gsoc-2012-control.git] / configure.in
blob27490d1f89247c0777d05f3fcf07df32160ec0dc
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)                
6 AC_CONFIG_AUX_DIR(tools)
8 # We want these before the checks, so the checks can modify their values.
9 test -z "$CFLAGS" && CFLAGS="-g -O2" AC_SUBST(CFLAGS)
10 test -z "$LDFLAGS" && LDFLAGS=-g AC_SUBST(LDFLAGS)
11 test -z "$LDLIBS" && LDLIBS=-lm AC_SUBST(LDLIBS)
13 dnl **** Command-line arguments ****
15 AC_ARG_WITH(library,
16 [  --with-library          build Wine as a library instead of an emulator],
17 [AC_DEFINE(WINELIB) MAIN_TARGET="libwine.a"],[MAIN_TARGET="wine"])
18 AC_SUBST(MAIN_TARGET)
20 AC_ARG_WITH(ipc,
21 [  --with-ipc              use inter-process communication for DDE],
22 [AC_DEFINE(CONFIG_IPC)])
24 AC_ARG_WITH(malloc-debug,
25 [  --with-malloc-debug     enable malloc() debugging],
26 [AC_DEFINE(MALLOC_DEBUGGING)])
28 dnl **** Check for some programs and libraries ****
30 AC_PROG_MAKE_SET
31 AC_PROG_CC
32 dnl Add some options for gcc
33 test "x${GCC}" = "xyes" && CFLAGS="$CFLAGS -Wall -fno-strength-reduce"
34 AC_PROG_CPP
35 AC_PATH_XTRA
36 AC_PROG_YACC
37 AC_PROG_LEX
38 AC_PROG_RANLIB
39 AC_PROG_INSTALL
40 dnl Check for -li386 for NetBSD
41 AC_CHECK_LIB(i386,i386_set_ldt,LDLIBS="$LDLIBS -li386")
43 dnl **** Check for functions and header files ****
45 AC_CHECK_FUNCS(tcgetattr)
46 AC_CHECK_HEADERS(stdlib.h)
47 AC_HEADER_STAT()
48 AC_C_CONST()
49 AC_TYPE_SIZE_T()
51 dnl **** Generate output files ****
53 MAKE_RULES=Make.rules
54 AC_SUBST_FILE(MAKE_RULES)
56 AC_OUTPUT([
57 Make.rules
58 Makefile
59 controls/Makefile
60 debugger/Makefile
61 debugger/readline/Makefile
62 if1632/Makefile
63 ipc/Makefile
64 library/Makefile
65 libtest/Makefile
66 loader/Makefile
67 memory/Makefile
68 misc/Makefile
69 miscemu/Makefile
70 multimedia/Makefile
71 objects/Makefile
72 rc/Makefile
73 resources/Makefile
74 tools/Makefile
75 win32/Makefile
76 windows/Makefile ])
78 echo
79 echo "Configure finished.  Do 'make depend; make' to compile Wine."
80 echo
82 dnl Local Variables:
83 dnl comment-start: "dnl "
84 dnl comment-end: ""
85 dnl comment-start-skip: "\\bdnl\\b\\s *"
86 dnl compile-command: "autoconf"
87 dnl End: