Skip to content
This repository
Newer
Older
100755 107 lines (94 sloc) 1.971 kb
5550c3ad » perusionmike
2000-05-26 Initial import of changed Challenger with UI instead of Minimate.
1 #!/bin/sh
2
bde37b0d » jonjensen
2002-06-27 Update Andrew Wilcox's email address at his request.
3 # $Id: configure,v 2.4 2002-06-27 22:24:09 jon Exp $
57e8d870 » jonjensen
2001-10-11 Change version banner to 4.9.x.
4
5550c3ad » perusionmike
2000-05-26 Initial import of changed Challenger with UI instead of Minimate.
5 cat <<EOF
6
10dfdb53 » jonjensen
2002-06-17 Bump version number to 4.9.1 for first alpha testing release.
7 Interchange Version 4.9.1 Configuration
5550c3ad » perusionmike
2000-05-26 Initial import of changed Challenger with UI instead of Minimate.
8
10dfdb53 » jonjensen
2002-06-17 Bump version number to 4.9.1 for first alpha testing release.
9 Copyright 1996-2002 Red Hat, Inc. <interchange@redhat.com>
5550c3ad » perusionmike
2000-05-26 Initial import of changed Challenger with UI instead of Minimate.
10
b31a690c » jonjensen
2001-07-18 Move DEV_4_7_0 development branch to repository trunk.
11 Interchange was originally based on Vend 0.2 and 0.3
bde37b0d » jonjensen
2002-06-27 Update Andrew Wilcox's email address at his request.
12 Copyright 1995, 1996 Andrew M. Wilcox <amw@wilcoxsolutions.com>
5550c3ad » perusionmike
2000-05-26 Initial import of changed Challenger with UI instead of Minimate.
13
b31a690c » jonjensen
2001-07-18 Move DEV_4_7_0 development branch to repository trunk.
14 Distributed under the GNU General Public License.
15 See the file LICENSE for license information.
5550c3ad » perusionmike
2000-05-26 Initial import of changed Challenger with UI instead of Minimate.
16
17 EOF
18
19 for i in $*
20 do
21 case $i in
22 -[dD]) DEBUG=-D ;;
23 -[iI]) INSTALL=-I ;;
24 *)
25 esac
26 done
27
28 if test `echo -n test | wc -c` -eq 4
29 then F='-n'
30 E=
31 else F=
32 E='\c'
33 fi
34
35 TESTPERL=perl
36 while true
37 do
38 PERL=""
39 IFS="${IFS= }"
40 SAVEIFS="$IFS"
41 IFS="${IFS}:"
42 for TESTDIR in $PATH
43 do
44 test -z "$TESTDIR" && TESTDIR=.
45 if test -f $TESTDIR/$TESTPERL
46 then
47 PERL="$TESTDIR/$TESTPERL"
48 break
49 fi
50 done
51 IFS="$SAVEIFS"
52 while true
53 do
54 if test -n "$PERL"
b31a690c » jonjensen
2001-07-18 Move DEV_4_7_0 development branch to repository trunk.
55 then VER=`$PERL -e '((print $]), exit 1) unless $] >= 5.005 || $^V; print $^V ? sprintf("%vd", $^V) : $]'`
5550c3ad » perusionmike
2000-05-26 Initial import of changed Challenger with UI instead of Minimate.
56 else false
57 fi
58 if [ $? -eq 0 ]
59 then
60 echo "Found Perl $VER as $PERL"
61 break 2
62 else
63 if test "$TESTPERL" = perl
64 then
65 TESTPERL=perl5
66 break
67 else
b31a690c » jonjensen
2001-07-18 Move DEV_4_7_0 development branch to repository trunk.
68 if [ -n "$VER" ]
69 then
70 echo "Found Perl $VER as $PERL"
71 echo "Perl version not high enough!"
72 VER=""
73 else
74 echo "Perl version not high enough or Perl not found."
75 fi
5550c3ad » perusionmike
2000-05-26 Initial import of changed Challenger with UI instead of Minimate.
76 fi
77 fi
78
79 echo
b31a690c » jonjensen
2001-07-18 Move DEV_4_7_0 development branch to repository trunk.
80 echo "I need to know where the Perl interpreter resides (version 5.005 or higher)."
81 echo "It was not 'perl' or 'perl5', or it was not in your path. Please enter a full"
82 echo "path name, or just press <enter> to quit."
5550c3ad » perusionmike
2000-05-26 Initial import of changed Challenger with UI instead of Minimate.
83 echo
b31a690c » jonjensen
2001-07-18 Move DEV_4_7_0 development branch to repository trunk.
84 echo $F "Where is your Perl, please? $E"
5550c3ad » perusionmike
2000-05-26 Initial import of changed Challenger with UI instead of Minimate.
85 read PERL
86 if test -z "$PERL"
87 then exit 1
88 else
89 TESTPERL=$PERL
90 case $PERL in
91 [/]*) continue;;
92 *) break ;;
93 esac
94 fi
95 done
96 done
97
98 if test ! -f .cpan.tried
99 then
100 echo
b31a690c » jonjensen
2001-07-18 Move DEV_4_7_0 development branch to repository trunk.
101 echo "If you get a CPAN error, rerun the configuration and it should go away."
5550c3ad » perusionmike
2000-05-26 Initial import of changed Challenger with UI instead of Minimate.
102 echo
103 fi
104
105 $PERL Makefile.PL
106 make
107 make test && make install
Something went wrong with that request. Please try again.