File: configure.in.in

package info (click to toggle)
brahms 1.02-kde3-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 12,136 kB
  • ctags: 8,915
  • sloc: cpp: 38,724; sh: 10,788; perl: 1,892; ansic: 832; makefile: 523
file content (48 lines) | stat: -rw-r--r-- 1,568 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
#MIN_CONFIG

DO_NOT_COMPILE="$DO_NOT_COMPILE ksynth mediatool"

dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h linux/awe_voice.h awe_voice.h /usr/src/sys/i386/isa/sound/awe_voice.h /usr/src/sys/gnu/i386/isa/sound/awe_voice.h linux/ucdrom.h sys/stdtypes.h sys/filio.h sys/audioio.h Alib.h sys/sem.h string.h getopt.h machine/endian.h sys/awe_voice.h)
AC_CHECK_FUNCS(usleep snprintf)

dnl check whether user wants to use ALSA
AC_ARG_WITH(alsa, [  --with-alsa             use an alternative driver for GUS],
[
   if test $withval = "yes"; then
     kde_with_alsa=yes
   else
     kde_with_alsa=no
  fi
], kde_with_alsa=no)

dnl only use ALSA when sys/soundlib.h is found
if test "$ac_header_sys_soundlib_h" = "no"; then
  kde_with_alsa=no
fi

dnl and libasound is present
if test "$kde_with_alsa" = "yes"; then
  AC_CHECK_LIB(asound,snd_seq_create_simple_port,
               LIBASOUND="-lasound",kde_with_alsa=no)
fi
AC_SUBST(LIBASOUND)

if test "$kde_with_alsa" = "yes"; then
  AC_DEFINE(HAVE_ALSA, 1, [Define if you have Alsa support])
fi

dnl Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_TIME
CXXFLAGS="$CXXFLAGS -DQT_CLEAN_NAMESPACE"

dnl libltdl: we have our own copy in kmusic. To quote Coolo:
dnl
dnl The maintainers of libltdl don't want installed versions of libltdl, to
dnl avoid clashes with system libraries. Besides, the version KDE uses is
dnl practically unreleased.

dnl ac_configure_args="$ac_configure_args --enable-ltdl-convenience"
dnl AC_CONFIG_SUBDIRS(libltdl)