[girl] Check for HAVE_GIRL_RECORD in configure.ac
- From: Ole Aamot <ole src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [girl] Check for HAVE_GIRL_RECORD in configure.ac
- Date: Sat, 3 Dec 2016 16:11:04 +0000 (UTC)
commit 0a055a3c37febfdd7aa815373dc4c121a8f7cd71
Author: Ole Aamot <oka oka no>
Date: Sat Dec 3 17:10:34 2016 +0100
Check for HAVE_GIRL_RECORD in configure.ac
configure | 48 ++++++++++++++++++++++++++++++++++++++++
configure.ac | 21 +++++++++++++++++
data/icons/16x16/Makefile.in | 1 +
data/icons/22x22/Makefile.in | 1 +
data/icons/24x24/Makefile.in | 1 +
data/icons/256x256/Makefile.in | 1 +
data/icons/32x32/Makefile.in | 1 +
data/icons/48x48/Makefile.in | 1 +
data/icons/Makefile.in | 1 +
data/pixmaps/Makefile.in | 1 +
girl.spec.in | 5 ++-
help/Makefile.in | 1 +
src/Makefile.in | 1 +
13 files changed, 82 insertions(+), 2 deletions(-)
---
diff --git a/configure b/configure
index a6c6b63..ac7705d 100755
--- a/configure
+++ b/configure
@@ -724,6 +724,9 @@ CPPFLAGS
LDFLAGS
CFLAGS
CC
+HAVE_GIRL_RECORD
+HAVE_GIRL_RECORD_FALSE
+HAVE_GIRL_RECORD_TRUE
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
AM_DEFAULT_V
@@ -793,6 +796,7 @@ ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_silent_rules
+with_recording
enable_dependency_tracking
with_html_dir
enable_gtk_doc
@@ -1447,6 +1451,7 @@ Optional Features:
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-recording Support recording with gstreamer
--with-html-dir=PATH path to installed docs
--with-help-dir=DIR path where help files are installed
@@ -2866,6 +2871,45 @@ ac_config_headers="$ac_config_headers config.h"
# Checks for libraries.
+record_msg="no (not requested)"
+try_record=:
+girl_record=false
+
+
+# Check whether --with-recording was given.
+if test "${with_recording+set}" = set; then :
+ withval=$with_recording;
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recording" >&5
+$as_echo_n "checking for recording... " >&6; }
+ if test x$withval = xno; then
+ try_record=false
+ record_msg = "no (not requested)"
+
+$as_echo "#define HAVE_GIRL_RECORD 0" >>confdefs.h
+
+ girl_record=false
+ else
+
+$as_echo "#define HAVE_GIRL_RECORD 1" >>confdefs.h
+
+ record_msg="yes (with recording support)"
+ girl_record=true
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $record_msg" >&5
+$as_echo "$record_msg" >&6; }
+
+fi
+
+ if $girl_record; then
+ HAVE_GIRL_RECORD_TRUE=
+ HAVE_GIRL_RECORD_FALSE='#'
+else
+ HAVE_GIRL_RECORD_TRUE='#'
+ HAVE_GIRL_RECORD_FALSE=
+fi
+
+
+
DEPDIR="${am__leading_dot}deps"
ac_config_commands="$ac_config_commands depfiles"
@@ -6788,6 +6832,10 @@ else
am__EXEEXT_FALSE=
fi
+if test -z "${HAVE_GIRL_RECORD_TRUE}" && test -z "${HAVE_GIRL_RECORD_FALSE}"; then
+ as_fn_error $? "conditional \"HAVE_GIRL_RECORD\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
as_fn_error $? "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
diff --git a/configure.ac b/configure.ac
index b37d8e9..80a6f65 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,6 +9,27 @@ AC_CONFIG_HEADER([config.h])
# Checks for libraries.
+record_msg="no (not requested)"
+try_record=:
+girl_record=false
+
+AC_ARG_WITH([recording],AS_HELP_STRING([--with-recording],[Support recording with gstreamer]), [
+ AC_MSG_CHECKING([for recording])
+ if test x$withval = xno; then
+ try_record=false
+ record_msg = "no (not requested)"
+ AC_DEFINE([HAVE_GIRL_RECORD],0,[record missing])
+ girl_record=false
+ else
+ AC_DEFINE([HAVE_GIRL_RECORD],1,[have record])
+ record_msg="yes (with recording support)"
+ girl_record=true
+ fi
+ AC_MSG_RESULT([$record_msg])
+])
+AM_CONDITIONAL([HAVE_GIRL_RECORD], [$girl_record])
+AC_SUBST([HAVE_GIRL_RECORD])
+
AC_CHECK_LIB(m, pow, [], [], [])
PKG_CHECK_MODULES(GIRL,
diff --git a/data/icons/16x16/Makefile.in b/data/icons/16x16/Makefile.in
index adaac80..880def4 100644
--- a/data/icons/16x16/Makefile.in
+++ b/data/icons/16x16/Makefile.in
@@ -187,6 +187,7 @@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
GTKDOC_REBASE = @GTKDOC_REBASE@
+HAVE_GIRL_RECORD = @HAVE_GIRL_RECORD@
HELP_DIR = @HELP_DIR@
HTML_DIR = @HTML_DIR@
INSTALL = @INSTALL@
diff --git a/data/icons/22x22/Makefile.in b/data/icons/22x22/Makefile.in
index 7a4b915..c558426 100644
--- a/data/icons/22x22/Makefile.in
+++ b/data/icons/22x22/Makefile.in
@@ -187,6 +187,7 @@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
GTKDOC_REBASE = @GTKDOC_REBASE@
+HAVE_GIRL_RECORD = @HAVE_GIRL_RECORD@
HELP_DIR = @HELP_DIR@
HTML_DIR = @HTML_DIR@
INSTALL = @INSTALL@
diff --git a/data/icons/24x24/Makefile.in b/data/icons/24x24/Makefile.in
index 46f770f..8c2f45f 100644
--- a/data/icons/24x24/Makefile.in
+++ b/data/icons/24x24/Makefile.in
@@ -187,6 +187,7 @@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
GTKDOC_REBASE = @GTKDOC_REBASE@
+HAVE_GIRL_RECORD = @HAVE_GIRL_RECORD@
HELP_DIR = @HELP_DIR@
HTML_DIR = @HTML_DIR@
INSTALL = @INSTALL@
diff --git a/data/icons/256x256/Makefile.in b/data/icons/256x256/Makefile.in
index 4e289c2..b32b9cb 100644
--- a/data/icons/256x256/Makefile.in
+++ b/data/icons/256x256/Makefile.in
@@ -187,6 +187,7 @@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
GTKDOC_REBASE = @GTKDOC_REBASE@
+HAVE_GIRL_RECORD = @HAVE_GIRL_RECORD@
HELP_DIR = @HELP_DIR@
HTML_DIR = @HTML_DIR@
INSTALL = @INSTALL@
diff --git a/data/icons/32x32/Makefile.in b/data/icons/32x32/Makefile.in
index e2f0bb6..52245fd 100644
--- a/data/icons/32x32/Makefile.in
+++ b/data/icons/32x32/Makefile.in
@@ -187,6 +187,7 @@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
GTKDOC_REBASE = @GTKDOC_REBASE@
+HAVE_GIRL_RECORD = @HAVE_GIRL_RECORD@
HELP_DIR = @HELP_DIR@
HTML_DIR = @HTML_DIR@
INSTALL = @INSTALL@
diff --git a/data/icons/48x48/Makefile.in b/data/icons/48x48/Makefile.in
index 0c59b67..92371c5 100644
--- a/data/icons/48x48/Makefile.in
+++ b/data/icons/48x48/Makefile.in
@@ -187,6 +187,7 @@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
GTKDOC_REBASE = @GTKDOC_REBASE@
+HAVE_GIRL_RECORD = @HAVE_GIRL_RECORD@
HELP_DIR = @HELP_DIR@
HTML_DIR = @HTML_DIR@
INSTALL = @INSTALL@
diff --git a/data/icons/Makefile.in b/data/icons/Makefile.in
index b5c101a..9452cf3 100644
--- a/data/icons/Makefile.in
+++ b/data/icons/Makefile.in
@@ -216,6 +216,7 @@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
GTKDOC_REBASE = @GTKDOC_REBASE@
+HAVE_GIRL_RECORD = @HAVE_GIRL_RECORD@
HELP_DIR = @HELP_DIR@
HTML_DIR = @HTML_DIR@
INSTALL = @INSTALL@
diff --git a/data/pixmaps/Makefile.in b/data/pixmaps/Makefile.in
index 633e30f..94c11dd 100644
--- a/data/pixmaps/Makefile.in
+++ b/data/pixmaps/Makefile.in
@@ -186,6 +186,7 @@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
GTKDOC_REBASE = @GTKDOC_REBASE@
+HAVE_GIRL_RECORD = @HAVE_GIRL_RECORD@
HELP_DIR = @HELP_DIR@
HTML_DIR = @HTML_DIR@
INSTALL = @INSTALL@
diff --git a/girl.spec.in b/girl.spec.in
index ec85779..8826626 100644
--- a/girl.spec.in
+++ b/girl.spec.in
@@ -21,10 +21,11 @@ Requires: gstreamer1 >= 1.8.3
%description
GNOME Internet Radio Locator (GIRL) is a program that allows the user
-to easily locate and record live radio programs on radio broadcasters
+to easily locate and record live radio programs by radio broadcasters
on the Internet.
-GIRL is developed on the GNOME platform and it requires gstreamer.
+GIRL is developed on the GNOME platform and it requires gstreamer for
+playback.
Enjoy Internet Radio.
diff --git a/help/Makefile.in b/help/Makefile.in
index a820111..b26da4b 100644
--- a/help/Makefile.in
+++ b/help/Makefile.in
@@ -156,6 +156,7 @@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
GTKDOC_REBASE = @GTKDOC_REBASE@
+HAVE_GIRL_RECORD = @HAVE_GIRL_RECORD@
HELP_DIR = @HELP_DIR@
HTML_DIR = @HTML_DIR@
INSTALL = @INSTALL@
diff --git a/src/Makefile.in b/src/Makefile.in
index a703227..dae0279 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -265,6 +265,7 @@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
GTKDOC_REBASE = @GTKDOC_REBASE@
+HAVE_GIRL_RECORD = @HAVE_GIRL_RECORD@
HELP_DIR = @HELP_DIR@
HTML_DIR = @HTML_DIR@
INSTALL = @INSTALL@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]