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 ****
16 [ --with-library build Wine as a library instead of an emulator],
17 [AC_DEFINE(WINELIB) MAIN_TARGET="libwine.a"],[MAIN_TARGET="wine"])
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 ****
38 dnl Check for -li386 for NetBSD
39 AC_CHECK_LIB(i386,i386_set_ldt,LDLIBS="$LDLIBS -li386")
41 dnl **** Check for gcc strength-reduce bug ****
43 if test "x${GCC}" = "xyes"
45 CFLAGS="$CFLAGS -Wall"
47 AC_CACHE_CHECK( "for gcc strength-reduce bug", ac_cv_c_gcc_strength_bug,
53 for(i=0; i<B; i++) Array[i] = i - 3;
54 exit( Array[1] != -2 );
56 ac_cv_c_gcc_strength_bug="no",
57 ac_cv_c_gcc_strength_bug="yes",
58 ac_cv_c_gcc_strength_bug="yes") )
59 if test "$ac_cv_c_gcc_strength_bug" = "yes"
61 CFLAGS="$CFLAGS -fno-strength-reduce"
65 dnl **** Check for functions and header files ****
67 AC_CHECK_FUNCS(tcgetattr usleep)
68 AC_CHECK_HEADERS(stdlib.h)
73 dnl **** Generate output files ****
76 AC_SUBST_FILE(MAKE_RULES)
83 debugger/readline/Makefile
102 echo "Configure finished. Do 'make depend; make' to compile Wine."
106 dnl comment-start: "dnl "
108 dnl comment-start-skip: "\\bdnl\\b\\s *"
109 dnl compile-command: "autoconf"