Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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