~ubuntu-branches/ubuntu/oneiric/pulseaudio/oneiric

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-12-04 00:56:08 UTC
  • mto: (1.15.1 sid)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20071204005608-3lzrrrpxi186kgx4
Tags: upstream-0.9.8
ImportĀ upstreamĀ versionĀ 0.9.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- Autoconf -*-
2
2
# Process this file with autoconf to produce a configure script.
3
3
 
4
 
# $Id: configure.ac 2002 2007-10-30 16:02:25Z lennart $
 
4
# $Id: configure.ac 2071 2007-11-21 23:09:17Z lennart $
5
5
 
6
6
# This file is part of PulseAudio.
7
7
#
26
26
 
27
27
m4_define(PA_MAJOR, [0])
28
28
m4_define(PA_MINOR, [9])
29
 
m4_define(PA_MICRO, [7])
 
29
m4_define(PA_MICRO, [8])
30
30
 
31
 
AC_INIT([pulseaudio], PA_MAJOR.PA_MINOR.PA_MICRO,[mzcbylcnhqvb (at) 0pointer (dot) de])
 
31
AC_INIT([pulseaudio], PA_MAJOR.PA_MINOR.PA_MICRO,[mzchyfrnhqvb (at) 0pointer (dot) net])
32
32
AC_CONFIG_SRCDIR([src/daemon/main.c])
33
33
AC_CONFIG_HEADERS([config.h])
34
34
AM_INIT_AUTOMAKE([foreign -Wall])
36
36
AC_SUBST(PA_MAJORMINOR, "PA_MAJOR.PA_MINOR")
37
37
AC_SUBST(PACKAGE_URL, [http://pulseaudio.org/])
38
38
 
39
 
AC_SUBST(PA_API_VERSION, 10)
40
 
AC_SUBST(PA_PROTOCOL_VERSION, 11)
41
 
 
42
 
AC_SUBST(LIBPULSE_VERSION_INFO, [3:0:3])
43
 
AC_SUBST(LIBPULSECORE_VERSION_INFO, [4:0:0])
 
39
AC_SUBST(PA_API_VERSION, 11)
 
40
AC_SUBST(PA_PROTOCOL_VERSION, 12)
 
41
 
 
42
# The stable ABI for client applications, for the version info x:y:z
 
43
# always will hold y=z
 
44
AC_SUBST(LIBPULSE_VERSION_INFO, [4:0:4])
 
45
 
 
46
# A simplified, synchronous, ABI-stable interface for client
 
47
# applications, for the version info x:y:z always will hold y=z
44
48
AC_SUBST(LIBPULSE_SIMPLE_VERSION_INFO, [0:1:0])
 
49
 
 
50
# The ABI-stable network browsing interface for client applications,
 
51
# for the version info x:y:z always will hold y=z
45
52
AC_SUBST(LIBPULSE_BROWSE_VERSION_INFO, [1:1:1])
 
53
 
 
54
# The ABI-stable GLib adapter for client applications, for the version
 
55
# info x:y:z always will hold y=z
46
56
AC_SUBST(LIBPULSE_MAINLOOP_GLIB_VERSION_INFO, [0:3:0])
47
57
 
 
58
# An internally used, ABI-unstable library that contains the
 
59
# PulseAudio core, SONAMEs are bumped on every release, version info
 
60
# suffix will always be 0:0
 
61
AC_SUBST(LIBPULSECORE_VERSION_INFO, [5:0:0])
 
62
 
48
63
AC_CANONICAL_HOST
49
64
 
50
65
if type -p stow > /dev/null && test -d /usr/local/stow ; then
774
789
AC_SUBST(HAVE_HAL)
775
790
AM_CONDITIONAL([HAVE_HAL], [test "x$HAVE_HAL" = x1])
776
791
 
 
792
#### BlueZ support (optional) ####
 
793
 
 
794
AC_ARG_ENABLE([bluez],
 
795
    AC_HELP_STRING([--disable-bluez], [Disable optional BlueZ support]),
 
796
        [
 
797
            case "${enableval}" in
 
798
                yes) bluez=yes ;;
 
799
                no) bluez=no ;;
 
800
                *) AC_MSG_ERROR(bad value ${enableval} for --disable-bluez) ;;
 
801
            esac
 
802
        ],
 
803
        [bluez=auto])
 
804
if test "x${bluez}" != xno ; then
 
805
    PKG_CHECK_MODULES(BLUEZ, [ bluez >= 3.0 ],
 
806
        HAVE_BLUEZ=1,
 
807
        [
 
808
            HAVE_BLUEZ=0
 
809
            if test "x$bluez" = xyes ; then
 
810
                AC_MSG_ERROR([*** BLUEZ support not found])
 
811
            fi
 
812
        ])
 
813
else
 
814
    HAVE_BLUEZ=0
 
815
fi
 
816
 
 
817
AC_SUBST(BLUEZ_CFLAGS)
 
818
AC_SUBST(BLUEZ_LIBS)
 
819
AC_SUBST(HAVE_BLUEZ)
 
820
AM_CONDITIONAL([HAVE_BLUEZ], [test "x$HAVE_BLUEZ" = x1])
 
821
 
777
822
#### D-Bus support (optional) ####
778
823
 
779
824
AC_ARG_ENABLE([dbus],
817
862
AC_SUBST(HAVE_DBUS)
818
863
AM_CONDITIONAL([HAVE_DBUS], [test "x$HAVE_DBUS" = x1])
819
864
 
 
865
#### PolicyKit support (optional) ####
 
866
 
 
867
AC_ARG_ENABLE([polkit],
 
868
    AC_HELP_STRING([--disable-polkit], [Disable optional PolicyKit support]),
 
869
        [
 
870
            case "${enableval}" in
 
871
                yes) polkit=yes ;;
 
872
                no) polkit=no ;;
 
873
                *) AC_MSG_ERROR(bad value ${enableval} for --disable-polkit) ;;
 
874
            esac
 
875
        ],
 
876
        [polkit=auto])
 
877
 
 
878
if test "x${polkit}" != xno ; then
 
879
 
 
880
    PKG_CHECK_MODULES(POLKIT, [ polkit-dbus ],
 
881
        [
 
882
            HAVE_POLKIT=1
 
883
            saved_LIBS="$LIBS"
 
884
            LIBS="$LIBS POLKIT_LIBS"
 
885
            AC_CHECK_FUNCS(polkit_context_is_caller_authorized)
 
886
            LIBS="$saved_LIBS"
 
887
            AC_DEFINE([HAVE_POLKIT], 1, [Have PolicyKit])
 
888
            policydir=`pkg-config --variable prefix`/usr/share/PolicyKit/policy/
 
889
            AC_SUBST(policydir)
 
890
        ],
 
891
        [
 
892
            HAVE_POLKIT=0
 
893
            if test "x$polkit" = xyes ; then
 
894
                AC_MSG_ERROR([*** PolicyKit support not found])
 
895
            fi
 
896
        ])
 
897
else
 
898
    HAVE_POLKIT=0
 
899
fi
 
900
 
 
901
AC_SUBST(POLKIT_CFLAGS)
 
902
AC_SUBST(POLKIT_LIBS)
 
903
AC_SUBST(HAVE_POLKIT)
 
904
AM_CONDITIONAL([HAVE_POLKIT], [test "x$HAVE_POLKIT" = x1])
 
905
 
 
906
### Build and Install man pages ###
 
907
AC_ARG_ENABLE(manpages,
 
908
        AS_HELP_STRING([--disable-manpages],[Disable building and installation of man pages]),
 
909
[case "${enableval}" in
 
910
  yes) manpages=yes ;;
 
911
  no)  manpages=no ;;
 
912
  *) AC_MSG_ERROR([bad value ${enableval} for --disable-manpages]) ;;
 
913
esac],[manpages=yes])
 
914
 
 
915
if test x$manpages = xyes ; then
 
916
    #
 
917
    # XMLTOMAN manpage generation
 
918
    #
 
919
    AC_ARG_ENABLE(xmltoman,
 
920
    AS_HELP_STRING([--disable-xmltoman],[Enable rebuilding of man pages with xmltoman]),
 
921
    [case "${enableval}" in
 
922
      yes) xmltoman=yes ;;
 
923
      no)  xmltoman=no ;;
 
924
      *) AC_MSG_ERROR([bad value ${enableval} for --disable-xmltoman]) ;;
 
925
    esac],[xmltoman=yes])
 
926
 
 
927
    if test x$xmltoman = xyes ; then
 
928
        AC_CHECK_PROG(have_xmltoman, xmltoman, yes, no)
 
929
    fi
 
930
 
 
931
    if test x$have_xmltoman = xno -o x$xmltoman = xno; then
 
932
        if ! test -e man/pulseaudio.1 ; then
 
933
            AC_MSG_ERROR([*** xmltoman was not found or was disabled, it is required to build the manpages as they have not been pre-built, install xmltoman, pass --disable-manpages or dont pass --disable-xmltoman])
 
934
            exit 1
 
935
        fi
 
936
        AC_MSG_WARN([*** Not rebuilding man pages as xmltoman is not found ***])
 
937
        xmltoman=no
 
938
    fi
 
939
fi
 
940
AM_CONDITIONAL([USE_XMLTOMAN], [test "x$xmltoman" = xyes])
 
941
AM_CONDITIONAL([BUILD_MANPAGES], [test "x$manpages" = xyes])
 
942
 
820
943
#### PulseAudio system group & user  #####
821
944
 
822
945
AC_ARG_WITH(system_user, AS_HELP_STRING([--with-system-user=<user>],[User for running the PulseAudio daemon as a system-wide instance (pulse)]))
899
1022
AC_CONFIG_FILES([
900
1023
Makefile
901
1024
src/Makefile
 
1025
man/Makefile
902
1026
libpulse.pc
903
1027
libpulse-simple.pc
904
1028
libpulse-browse.pc
975
1099
   ENABLE_LIBSAMPLERATE=yes
976
1100
fi
977
1101
 
 
1102
ENABLE_BLUEZ=no
 
1103
if test "x${HAVE_BLUEZ}" = "x1" ; then
 
1104
   ENABLE_BLUEZ=yes
 
1105
fi
 
1106
 
 
1107
ENABLE_POLKIT=no
 
1108
if test "x${HAVE_POLKIT}" = "x1" ; then
 
1109
   ENABLE_POLKIT=yes
 
1110
fi
 
1111
 
978
1112
echo "
979
1113
 ---{ $PACKAGE_NAME $VERSION }---
980
1114
 
995
1129
    Enable Async DNS:       ${ENABLE_LIBASYNCNS}
996
1130
    Enable LIRC:            ${ENABLE_LIRC}
997
1131
    Enable HAL:             ${ENABLE_HAL}
 
1132
    Enable BlueZ:           ${ENABLE_BLUEZ}
998
1133
    Enable TCP Wrappers:    ${ENABLE_TCPWRAP}
999
1134
    Enable libsamplerate:   ${ENABLE_LIBSAMPLERATE}
 
1135
    Enable PolicyKit:       ${ENABLE_POLKIT}
1000
1136
    System User:            ${PA_SYSTEM_USER}
1001
1137
    System Group:           ${PA_SYSTEM_GROUP}
1002
1138
    Realtime Group:         ${PA_REALTIME_GROUP}