"Fossies" - the Fresh Open Source Software Archive 
Member "pacpl-code/configure.ac" (9 Feb 2021, 5638 Bytes) of package /linux/privat/pacpl-6.1.3.tar.bz2:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "configure.ac":
6.1.2_vs_6.1.3.
1 # Process this file with autoconf to produce a configure script.
2 #
3 # Copyright (C) 2007-2021 Philip Lyons (vorzox@gmail.com)
4
5 AC_PACKAGE_NAME(Perl Audio Converter)
6 AC_PACKAGE_TARNAME(pacpl-6.1.3.tar.bz2)
7 AC_PACKAGE_VERSION(6.1.3)
8
9 AC_PACKAGE_BUGREPORT(vorzox@gmail.com)
10
11 m4_include([aclocal/ax_prog_perl_modules.m4])
12
13 AC_PROG_PERL_VERSION(5.18.1)
14 AC_PREREQ([2.69])
15
16 AC_INIT([pacpl],[6.1.3])
17
18 AM_INIT_AUTOMAKE
19
20 AC_SUBST(INSTALL_KONQ)
21 AC_SUBST(INSTALL_DOLP)
22 AC_SUBST(KDEDIR)
23
24 AC_PREFIX_DEFAULT(/usr)
25 AC_PREFIX_PROGRAM(pacpl)
26 AC_CONFIG_SRCDIR(pacpl.in)
27
28 AC_PROG_INSTALL
29
30 AC_PATH_PROG(RM, rm, rm)
31 AC_PATH_PROG(PERL, perl, perl)
32 AC_PATH_PROG(POD2MAN, pod2man, pod2man)
33 AC_PATH_PROG(POD2HTML, pod2html, pod2man)
34 AC_PATH_PROG(GZIP, gzip, gzip)
35
36 ########################################
37 # check for supported encoder/decoders #
38 ########################################
39 AC_MSG_NOTICE()
40 AC_CHECK_PROG(LAME, lame, yes)
41 AC_CHECK_PROG(TOOLAME, toolame, yes)
42 AC_CHECK_PROG(TWOLAME, twolame, yes)
43 AC_CHECK_PROG(BLADEENC, bladeenc, yes)
44 AC_CHECK_PROG(OGGENC, oggenc, yes)
45 AC_CHECK_PROG(OGGDEC, oggdec, yes)
46 AC_CHECK_PROG(OPUSENC, opusenc, yes)
47 AC_CHECK_PROG(OPUSDEC, opusdec, yes)
48 AC_CHECK_PROG(AFTEN, aften, yes)
49 AC_CHECK_PROG(SPEEXENC, speexenc, yes)
50 AC_CHECK_PROG(SPEEXDEC, speexdec, yes)
51 AC_CHECK_PROG(FLAC, flac, yes)
52 AC_CHECK_PROG(MAC, mac, yes)
53 AC_CHECK_PROG(SHORTEN, shorten, yes)
54 AC_CHECK_PROG(SOX, sox, yes)
55 AC_CHECK_PROG(FAAC, faac, yes)
56 AC_CHECK_PROG(FAAD, faad, yes)
57 AC_CHECK_PROG(FFMPEG, ffmpeg, yes)
58 AC_CHECK_PROG(AVCONV, avconv, yes)
59 AC_CHECK_PROG(MPLAYER, mplayer, yes)
60 AC_CHECK_PROG(LA, la, yes)
61 AC_CHECK_PROG(BONK, bonk, yes)
62 AC_CHECK_PROG(MPCENC, mpcenc, yes)
63 AC_CHECK_PROG(MPCDEC, mpcdec, yes)
64 AC_CHECK_PROG(OFF, off, yes)
65 AC_CHECK_PROG(OFR, ofr, yes)
66 AC_CHECK_PROG(OFS, ofs, yes)
67 AC_CHECK_PROG(TTAENC, ttaenc, yes)
68 AC_CHECK_PROG(WAVPACK, wavpack, yes)
69 AC_CHECK_PROG(WVUNPACK, wvunpack, yes)
70 AC_CHECK_PROG(SNDFILE, sndfile-convert, yes)
71
72
73 ###################################
74 # Check for required perl modules #
75 ###################################
76
77 AC_MSG_NOTICE()
78 AC_MSG_NOTICE([checking for required perl modules...])
79 AC_MSG_NOTICE()
80
81 AX_PROG_PERL_MODULES( Getopt::Long
82 File::Basename
83 File::Find
84 Parallel::ForkManager
85 File::Spec::Functions
86 CDDB
87 CDDB_get
88 MP3::Tag
89 Audio::Scan
90 Audio::FLAC::Header , [], AC_MSG_ERROR([ERROR: One or more of the required modules could not be found. See extra/mod-install.sh or extra/mod-install-ubuntu.sh]))
91
92 AC_MSG_NOTICE()
93 AC_MSG_NOTICE([checking for required plugin applications...])
94 AC_MSG_NOTICE()
95
96 AC_ARG_ENABLE([kde],
97 [AS_HELP_STRING([--enable-kde],[Install KDE Service Menu (Dolphin/Konqueror)])],
98 [],
99 [enable_kde=no])
100
101 AC_ARG_ENABLE([nemo],
102 [AS_HELP_STRING([--enable-nemo],[Install GNOME Nemo Action Script])],
103 [],
104 [enable_nemo=no])
105
106 AC_ARG_ENABLE([nautilus],
107 [AS_HELP_STRING([--enable-nautilus],[Install GNOME Nautilus Script])],
108 [],
109 [enable_nautilus=no])
110
111 AC_CHECK_PROG([KDIALOG],[kdialog],[yes])
112 AC_CHECK_PROG([ZENITY],[zenity],[yes])
113 AC_CHECK_PROG([NAUTILUS],[nautilus],[yes])
114 AC_CHECK_PROG([NEMO],[nemo],[yes])
115
116 AM_CONDITIONAL([INSTALL_NAUTILUS], [test x$enable_nautilus = xyes])
117 AM_CONDITIONAL([INSTALL_NEMO], [test x$enable_nemo = xyes])
118 AM_CONDITIONAL([INSTALL_KDE], [test x$enable_kde = xyes])
119 AM_CONDITIONAL([ENABLE_GNOME_NAUTILUS], [test x$enable_nautilus = xyes])
120 AM_CONDITIONAL([ENABLE_GNOME_NEMO], [test x$enable_nemo = xyes])
121
122 if test "x$enable_nautilus" = "xyes" -o "x$enable_nemo" = "xyes"; then
123 ENABLE_GNOME=true
124 fi
125
126 if test "x$KDIALOG" = "xyes" -a "x$enable_kde" != "xno"; then
127 INSTALL_KDE=true
128 else
129 INSTALL_KDE=false
130 fi
131
132 if test "x$NAUTILUS" = "xyes" -a "x$enable_nautilus" != "xno"; then
133 INSTALL_NAUTILUS=true
134 else
135 INSTALL_NAUTILUS=false
136 fi
137
138 if test "x$NEMO" = "xyes" -a "x$enable_nemo" != "xno"; then
139 INSTALL_NEMO=true
140 else
141 INSTALL_NEMO=false
142 fi
143
144 if test "x$INSTALL_KDE" = "xtrue" -a "x$INSTALL_NAUTILUS" = "xtrue"; then
145 AC_MSG_FAILURE([nautilus and kde cannot be enabled at the same time. exiting..])
146 fi
147
148 if test "x$INSTALL_KDE" = "xtrue" -a "x$INSTALL_NEMO" = "xtrue"; then
149 AC_MSG_FAILURE([nemo and kde cannot be enabled at the same time. exiting..])
150 fi
151
152 if test "x$NAUTILUS" != "xyes" -a "x$enable_nautilus" = "xyes"; then
153 AC_MSG_NOTICE()
154 AC_MSG_FAILURE([could not find applicaiton 'nautilus': exiting..."])
155 AC_MSG_NOTICE()
156 fi
157
158 if test "x$NEMO" != "xyes" -a "x$enable_nemo" = "xyes"; then
159 AC_MSG_NOTICE()
160 AC_MSG_FAILURE([could not find application 'nemo': exiting..."])
161 AC_MSG_NOTICE()
162 fi
163
164 if test "x$enable_kde" != "xno"; then
165 plugins=1
166 elif test "x$enable_nautilus" != "xno"; then
167 plugins=1
168 elif test "x$enable_nemo" != "xno"; then
169 plugins=1
170 else
171 plugins=0
172 fi
173
174 AC_MSG_NOTICE()
175
176 AC_ARG_VAR([KDEDIR], [root directory of your KDE installation (default /usr)])
177 AC_ARG_VAR([GNOMEDIR], [root directory of your GNOME installation (default /usr)])
178 AC_ARG_VAR([DESTDIR], [root installation directory (default /)])
179
180 AC_CONFIG_FILES([Makefile])
181 AC_OUTPUT()
182
183 if test x$plugins = x1; then
184
185 AC_MSG_NOTICE()
186 AC_MSG_NOTICE([The following plugins will be installed:])
187 AC_MSG_NOTICE()
188
189 if test x$INSTALL_KDE = xtrue; then
190 AC_MSG_NOTICE([KDE Service Menu])
191 fi
192
193 if test x$INSTALL_NAUTILUS = xtrue; then
194 AC_MSG_NOTICE([Nautilus Script])
195 fi
196
197 if test x$INSTALL_NEMO = xtrue; then
198 AC_MSG_NOTICE([NEMO Action Script])
199 fi
200 fi
201
202 if test x$plugins = x0; then
203
204 AC_MSG_NOTICE()
205 AC_MSG_NOTICE()
206 AC_MSG_NOTICE([no plugins have been enabled...])
207 AC_MSG_NOTICE()
208 fi
209
210 AC_MSG_NOTICE()
211 AC_MSG_NOTICE([Configure finished successfully...])
212 AC_MSG_NOTICE()
213 AC_MSG_NOTICE([make && make install])
214
215 exit 0