-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
77 lines (61 loc) · 1.68 KB
/
configure.in
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
72
73
74
75
76
77
# Original Author was [email protected]
# I lifted it in some mater. (Stephan Kulow)
# I used much code from Janos Farkas
dnl Process this file with autoconf to produce a configure script.
AC_INIT(acinclude.m4) dnl a source file from your sub dir
AC_CANONICAL_SYSTEM
AC_ARG_PROGRAM
dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(kvoicecontrol, 0.17) dnl searches for some needed programs
dnl make $KDEDIR the default for the installation
AC_PREFIX_DEFAULT(${KDEDIR:-/usr/local/kde})
dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
dnl Checks for programs.
AC_CHECK_COMPILERS
dnl Checks if we want to use insure++ to debug
KDE_CHECK_INSURE
# the following is to allow programs, that are known to
# have problems when compiled with -O2
if test -n "$CXXFLAGS"; then
safe_IFS=$IFS
IFS=" "
NOOPT_CXXFLAGS=""
for i in $CXXFLAGS; do
if test "$i" = "-O2"; then
i=""
fi
NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS $i"
done
IFS=$safe_IFS
fi
AC_SUBST(NOOPT_CXXFLAGS)
AM_DISABLE_LIBRARIES
KDE_PROG_LIBTOOL
AC_PROG_YACC
dnl WITH_NLS is for the po files
AM_KDE_WITH_NLS
AC_PATH_KDE
dnl Checks for header files.
AC_LANG_CPLUSPLUS
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS(sys/soundcard.h)
AC_HEADER_TIME
dnl check if the compiler has bool
AC_CHECK_BOOL
AC_LANG_C
AC_C_LONG_DOUBLE
AC_TYPE_GETGROUPS
dnl Checks for library functions.
AC_CHECK_FUNCS(socket strdup vsnprintf)
AC_CHECK_SETENV
AC_CHECK_GETDOMAINNAME
AC_CHECK_GETHOSTNAME
AC_CHECK_USLEEP
dnl output files
topdir=`pwd`
AC_SUBST(topdir)
dnl Perform program name transformation
AC_ARG_PROGRAM
AC_OUTPUT(Makefile src/Makefile src/doc/Makefile src/doc/en/Makefile)