~ubuntu-branches/ubuntu/feisty/gnupod-tools/feisty

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Brian Nelson
  • Date: 2005-04-05 09:10:01 UTC
  • mto: (2.1.1 sarge)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050405091001-vjtr9oktjemr6mn6
Tags: upstream-0.98
ImportĀ upstreamĀ versionĀ 0.98

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_INIT(gnupod, 0.94-pre, bug-gnupod@nongnu.org)
2
 
AC_PATH_PROGS(PERL, perl-5.8.1 perl-5.8.0 perl-5.8 perl-5.6 perl)
 
1
AC_INIT(GNUpod, 0.98, bug-gnupod@nongnu.org)
 
2
 
 
3
echo $ECHO_N $PACKAGE_VERSION > .gnupod_version
 
4
 
 
5
if test -d CVS; then
 
6
 echo " *** THIS IS A CVS VERSION OF GNUPOD ***"
 
7
 echo $ECHO_N "-CVS" >> .gnupod_version
 
8
fi
 
9
 
 
10
AC_PATH_PROGS(PERL, perl-5.8 perl-5.6 perl)
 
11
 
3
12
 
4
13
if test $PERL; then
5
14
echo "GNUpod will use $PERL"
11
20
 
12
21
dnl Basic modules
13
22
ALL_MODULES="Digest::MD5 XML::Parser Unicode::String MP3::Info File::Copy"
14
 
 
 
23
OPT_MODULES="Audio::FLAC::Header Ogg::Vorbis::Header::PurePerl"
15
24
 
16
25
dnl Ugly check for modules
17
26
IFS=" "
26
35
  echo " failed!"
27
36
  echo "** You need to install $i"
28
37
  echo "** Visit <http://search.cpan.org> to get the module"
 
38
  echo "** Or try this:"
 
39
  echo "# perl -MCPAN -e 'install $i'"
29
40
  exit 1
30
41
 fi
31
 
 
32
 
done
33
 
 
 
42
done
 
43
 
 
44
for i in $OPT_MODULES
 
45
do
 
46
 
 
47
 echo -n "checking for optional $i..."
 
48
 $PERL -e "use $i" 2> /dev/null
 
49
 if test $? = 0; then
 
50
  echo " ok"
 
51
 else
 
52
  echo " failed!"
 
53
  echo "** $i not found. You can install it using this command:"
 
54
  echo "** # perl -MCPAN -e 'install $i'"
 
55
  echo "** ..but GNUpod will also work without $i"
 
56
  echo
 
57
 fi
 
58
done
 
59
 
 
60
#Test if user installed both
 
61
 $PERL -e "use Audio::FLAC" 2> /dev/null
 
62
 if test $? = 0; then
 
63
   echo "NOTE: 'Audio::FLAC' is installed, looks like this module is"
 
64
   echo "      depricated and got renamed into 'Audio::FLAC::Header'"
 
65
   echo "      GNUpod still works with 'Audio::FLAC' but maybe it would"
 
66
   echo "      be a good idea to replace the 'Audio::FLAC' installation"
 
67
   echo "      with 'Audio::FLAC::Header'"
 
68
 fi
 
69
 
 
70
 
 
71
 
 
72
$PERL -e "use MP3::Info; exit(1) if(\$MP3::Info::VERSION < 1.01); exit(0);"
 
73
 if test $? = 0; then
 
74
echo "installed version of MP3::Info looks good"
 
75
 else
 
76
  echo " ** PLEASE UPGRADE MP3::Info TO VERSION 1.01 OR NEWER ** "
 
77
  echo " ** YOU CAN USE GNUPOD WITH YOUR CURRENT VERSION BUT  ** "
 
78
  echo " ** UTF8 SUPPORT FOR MP3 FILES WILL BE BROKEN !       **"
 
79
 fi
34
80
 
35
81
AC_SUBST(PERL)
36
82
AC_OUTPUT(Makefile)
37
83
 
38
84
echo
39
 
echo "I'm happy :)"
40
 
echo "use 'make install' to install GNUpod"
 
85
echo
 
86
echo "Settings:"
 
87
echo
 
88
echo $ECHO_N "Release:        "
 
89
 cat .gnupod_version
 
90
echo
 
91
 
 
92
echo $ECHO_N "Perl Version:   "
 
93
 $PERL tools/getVERSION.pl
 
94
echo
 
95
 
 
96
 
 
97
echo    "Prefix:         $prefix";
 
98
 
 
99
echo $ECHO_N "Perl INC:       "
 
100
 $PERL tools/getINC.pl
 
101
 XPINC=`$PERL tools/getINC.pl`;
 
102
echo
 
103
 
 
104
 
 
105
echo
 
106
echo "-> use 'make install' to install $PACKAGE_NAME"
 
107
echo "-> use 'make uninstall' to remove $PACKAGE_NAME from $prefix"