File: configure.in

package info (click to toggle)
mwavem 2.0-3
  • links: PTS
  • area: non-free
  • in suites: lenny
  • size: 7,188 kB
  • ctags: 6,080
  • sloc: ansic: 52,005; sh: 4,194; makefile: 334
file content (71 lines) | stat: -rw-r--r-- 1,745 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
dnl configure.in
dnl

AC_INIT

dnl Find operating system, vendor, architecture
AC_CANONICAL_SYSTEM

AM_INIT_AUTOMAKE(mwavem,2.0)

dnl Find programs for building and installation.
AC_PROG_CC
AC_PROG_RANLIB
AC_PROG_INSTALL

dnl Check for libraries
AC_CHECK_LIB(pthread, main)
AC_CHECK_LIB(m, main)

dnl global
AC_DEFINE(DEBUG)
AC_DEFINE(LINUX_BLD)
AC_DEFINE(DLL)
dnl meio
AC_DEFINE(WORLDTRADE_VERSION)
dnl mwwtt32
AC_DEFINE(MWWTDBG)

INCLUDES="-I\$(top_srcdir)/src/include"
CFLAGS="$INCLUDES -O2 -fno-strict-aliasing -fomit-frame-pointer -Wall"

dnl Set dsp_dir here and we substitute it in mwavem.conf from mwavem.conf.in
dsp_dir=`	test "x$exec_prefix" = xNONE && exec_prefix=$ac_default_prefix
		test "x$prefix" = xNONE && prefix=${exec_prefix}
		eval echo "$datadir/$PACKAGE"`
AC_SUBST(dsp_dir)

dnl Set dsp_dir here and we substitute it in modem.c from mwavem.c.in
mwavem_bin_dir=`	test "x$exec_prefix" = xNONE && exec_prefix=$ac_default_prefix
			test "x$prefix" = xNONE && prefix=${exec_prefix}
			eval echo "$sbindir"`
AC_SUBST(mwavem_bin_dir)

dnl Set dsp_dir here and we substitute it in modem.c from mwavem.c.in
mwavem_conf_dir=`	test "x$exec_prefix" = xNONE && exec_prefix=$ac_default_prefix
			test "x$prefix" = xNONE && prefix=${exec_prefix}
			eval echo "$sysconfdir"`

AC_SUBST(mwavem_conf_dir)

dnl All of our Makefiles
AC_OUTPUT(	Makefile \
		doc/Makefile \
		m4/Makefile \
		src/Makefile \
		src/dsp/Makefile \
		src/mwavem/Makefile \
		src/mwavem/modem.c \
		src/mwavem/mwaved \
		src/mwavem/mwavem.conf \
		src/manager/Makefile \
		src/meio/Makefile \
		src/mwmbl/Makefile \
		src/mwmlw32/Makefile \
		src/mwmpw32/Makefile \
		src/mwmutil/Makefile \
		src/mwwtt32/Makefile \
		src/extra/Makefile \
		src/extra/mwavem.spec
		)