OSDN Git Service

Make it possible to disable installation of manual pages
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 14 May 2007 10:47:49 +0000 (10:47 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 May 2007 10:47:49 +0000 (10:47 +0000)
acinclude.m4
bootstrap-configure
dund/Makefile.am
hcid/Makefile.am
hidd/Makefile.am
pand/Makefile.am
rfcomm/Makefile.am
sdpd/Makefile.am
tools/Makefile.am

index 2d8c75b..8cb46f3 100644 (file)
@@ -170,6 +170,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
        pand_enable=yes
        test_enable=no
        cups_enable=no
+       manpages_enable=yes
        configfiles_enable=yes
        initscripts_enable=no
        pcmciarules_enable=no
@@ -200,6 +201,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
                pand_enalbe=${enableval}
                test_enable=${enableval}
                cups_enable=${enableval}
+               manpages_enable=${enableval}
                configfiles_enable=${enableval}
                initscripts_enable=${enableval}
                pcmciarules_enable=${enableval}
@@ -285,6 +287,10 @@ AC_DEFUN([AC_ARG_BLUEZ], [
                cups_enable=${enableval}
        ])
 
+       AC_ARG_ENABLE(manpages, AC_HELP_STRING([--enable-manpages], [install Bluetooth manual pages]), [
+               manpages_enable=${enableval}
+       ])
+
        AC_ARG_ENABLE(configfiles, AC_HELP_STRING([--enable-configfiles], [install Bluetooth config files]), [
                configfiles_enable=${enableval}
        ])
@@ -365,6 +371,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
        AM_CONDITIONAL(PAND, test "${pand_enable}" = "yes")
        AM_CONDITIONAL(TEST, test "${test_enable}" = "yes")
        AM_CONDITIONAL(CUPS, test "${cups_enable}" = "yes")
+       AM_CONDITIONAL(MANPAGES, test "${manpages_enable}" = "yes")
        AM_CONDITIONAL(CONFIGFILES, test "${configfiles_enable}" = "yes")
        AM_CONDITIONAL(INITSCRIPTS, test "${initscripts_enable}" = "yes")
        AM_CONDITIONAL(PCMCIARULES, test "${pcmciarules_enable}" = "yes")
index 0b608ce..60f6181 100755 (executable)
@@ -19,6 +19,7 @@ fi
                --enable-input \
                --enable-audio \
                --enable-echo \
+               --disable-manpages \
                --disable-configfiles \
                --disable-initscripts \
                --disable-pcmciarules \
index 84e3a15..91fb1d2 100644 (file)
@@ -6,8 +6,10 @@ dund_LDADD = @BLUEZ_LIBS@
 
 AM_CFLAGS = @BLUEZ_CFLAGS@
 
+if MANPAGES
 man_MANS = dund.1
+endif
 
-EXTRA_DIST = $(man_MANS)
+EXTRA_DIST = dund.1
 
 MAINTAINERCLEANFILES = Makefile.in
index 13e2b25..b690d4a 100644 (file)
@@ -1,4 +1,5 @@
 
+if HCID
 if CONFIGFILES
 confdir = $(sysconfdir)/bluetooth
 
@@ -8,6 +9,7 @@ statedir = $(localstatedir)/lib/bluetooth
 
 state_DATA =
 endif
+endif
 
 noinst_LIBRARIES = libhciserver.a
 
@@ -42,8 +44,10 @@ INCLUDES = -I$(top_srcdir)/common -I$(top_srcdir)/sdpd
 BUILT_SOURCES = parser.h
 
 if HCID
+if MANPAGES
 man_MANS = hcid.8 hcid.conf.5
 endif
+endif
 
 AM_YFLAGS = -d
 
index 309dd1f..508372b 100644 (file)
@@ -12,8 +12,10 @@ AM_CFLAGS = @BLUEZ_CFLAGS@
 INCLUDES = -I$(top_srcdir)/common
 
 if HIDD
+if MANPAGES
 man_MANS = hidd.1
 endif
+endif
 
 EXTRA_DIST = hidd.1 fakehid.txt
 
index 66021f3..85d7054 100644 (file)
@@ -12,8 +12,10 @@ AM_CFLAGS = @BLUEZ_CFLAGS@
 INCLUDES = -I$(top_srcdir)/common
 
 if PAND
+if MANPAGES
 man_MANS = pand.1
 endif
+endif
 
 EXTRA_DIST = pand.1
 
index 7fe2d74..5eec05e 100644 (file)
@@ -16,12 +16,14 @@ INCLUDES = -I$(top_srcdir)/common
 
 BUILT_SOURCES = parser.h
 
+if MANPAGES
 man_MANS = rfcomm.1
+endif
 
 AM_YFLAGS = -d
 
 CLEANFILES = lexer.c parser.c parser.h
 
-EXTRA_DIST = $(man_MANS) rfcomm.conf
+EXTRA_DIST = rfcomm.1 rfcomm.conf
 
 MAINTAINERCLEANFILES = Makefile.in
index 4698920..a7efa56 100644 (file)
@@ -18,8 +18,10 @@ AM_CFLAGS = @BLUEZ_CFLAGS@ @GLIB_CFLAGS@
 INCLUDES = -I$(top_srcdir)/common
 
 if SDPD
+if MANPAGES
 man_MANS = sdpd.8
 endif
+endif
 
 EXTRA_DIST = sdpd.8
 
index 0ebb351..880036e 100644 (file)
@@ -80,9 +80,12 @@ AM_CFLAGS = @BLUEZ_CFLAGS@ @USB_CFLAGS@
 
 INCLUDES = -I$(top_srcdir)/common
 
+if MANPAGES
 man_MANS = hciattach.8 hciconfig.8 hcitool.1 l2ping.1 sdptool.1 ciptool.1 \
                $(bccmd_manfiles) $(avctrl_manfiles) $(hid2hci_manfiles) $(dfutool_manfiles)
+endif
 
-EXTRA_DIST = $(man_MANS) bccmd.8 avctrl.8 hid2hci.8 dfutool.1 example.psr
+EXTRA_DIST = hciattach.8 hciconfig.8 hcitool.1 l2ping.1 sdptool.1 ciptool.1 \
+                bccmd.8 avctrl.8 hid2hci.8 dfutool.1 example.psr
 
 MAINTAINERCLEANFILES = Makefile.in