-
Notifications
You must be signed in to change notification settings - Fork 27
/
configure
executable file
·103 lines (90 loc) · 1.76 KB
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/bin/sh
cat <<EOF
Interchange Version 4.7.x Configuration
Copyright 1996-2001 Red Hat, Inc. <info@akopia.com>
Interchange was originally based on Vend 0.2
Copyright 1995 Andrew M. Wilcox <awilcox@maine.com>
Portions from Vend 0.3
Copyright 1995, 1996 Andrew M. Wilcox <awilcox@maine.com>
Distributed under the GNU General Public License.
See the file LICENSE for license information.
EOF
for i in $*
do
case $i in
-[dD]) DEBUG=-D ;;
-[iI]) INSTALL=-I ;;
*)
esac
done
if test `echo -n test | wc -c` -eq 4
then F='-n'
E=
else F=
E='\c'
fi
TESTPERL=perl
while true
do
PERL=""
IFS="${IFS= }"
SAVEIFS="$IFS"
IFS="${IFS}:"
for TESTDIR in $PATH
do
test -z "$TESTDIR" && TESTDIR=.
if test -f $TESTDIR/$TESTPERL
then
PERL="$TESTDIR/$TESTPERL"
break
fi
done
IFS="$SAVEIFS"
while true
do
if test -n "$PERL"
then VER=`$PERL -e '((print $]), exit 1) if $] !~ /^5\.\d+/; print $]'`
else false
fi
if [ $? -eq 0 ]
then
echo "Found Perl $VER as $PERL"
break 2
else
if test "$TESTPERL" = perl
then
TESTPERL=perl5
break
else
echo $VER
VER=""
echo "Perl version not high enough or Perl not found."
fi
fi
echo
echo "I need to know where the Perl 5 interpreter resides. It was not 'perl' or"
echo "'perl5', or it was not in your path. Please enter a full path name, or"
echo "just press <enter> to quit."
echo
echo $F "Where is your Perl 5, please? $E"
read PERL
if test -z "$PERL"
then exit 1
else
TESTPERL=$PERL
case $PERL in
[/]*) continue;;
*) break ;;
esac
fi
done
done
if test ! -f .cpan.tried
then
echo
echo "If you get a CPAN error, rerun the configuration and it should go away."
echo
fi
$PERL Makefile.PL
make
make test && make install