diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-10-14 04:09:04 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-10-14 04:09:04 +0000 |
commit | b3f64359bb1fb553fd3a4944a45b1615d889dd66 (patch) | |
tree | eb032ba8f01e524dceb65cafa500fe9fabd4da74 /autogen.sh | |
parent | aff507ff0a8fd9fd304e1b2fe91f40b589b7ce4b (diff) | |
download | wireshark-b3f64359bb1fb553fd3a4944a45b1615d889dd66.tar.gz wireshark-b3f64359bb1fb553fd3a4944a45b1615d889dd66.tar.bz2 wireshark-b3f64359bb1fb553fd3a4944a45b1615d889dd66.zip |
Check for python before configuring CVS sources.
svn path=/trunk/; revision=2493
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index cb1ad9a373..c8deebc0a5 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,11 +2,25 @@ # # Run this to generate all the initial makefiles. # -# $Id: autogen.sh,v 1.10 2000/07/26 08:03:39 guy Exp $ +# $Id: autogen.sh,v 1.11 2000/10/14 04:09:04 gram Exp $ DIE=true PROJECT="Ethereal" + +# Check for python. There's no "--version" option! +python -c "print 'Checking for python.'" +if [ $? != 0 ] ; then + cat >&2 <<_EOF_ + + You must have Python in order to compiler $PROJECT. + Download the appropriate package for your distribution/OS, + or get the source tarball at http://www.python.org/ +_EOF_ + DIE="exit 1" +fi + + VER=`autoconf --version | grep '^autoconf' | sed 's/.*)//'` case "$VER" in 0* | 1\.* | 2\.[0-9] | 2\.[0-9][a-z]* | \ |