File: configure.in

package info (click to toggle)
slice 1.3.2-3
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 724 kB
  • ctags: 472
  • sloc: perl: 3,335; ansic: 3,054; sh: 437; makefile: 248; yacc: 105
file content (49 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download
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
dnl ##
dnl ##  configure.in -- GNU autoconf configuration source
dnl ##

AC_PREREQ(2.0)dnl
AC_REVISION($Revision: 1.0$)dnl

SLICE_VERSION="`./etc/newvers -l perl -D slice_vers.pl`"
AC_SUBST(SLICE_VERSION)
echo "Configuring for Slice $SLICE_VERSION"

AC_INIT(README)
AC_CONFIG_AUX_DIR(etc)
AC_PREFIX_DEFAULT(/usr/local)

AC_SET_MAKE
AC_PROG_INSTALL

test "x$prefix" = xNONE && prefix=$ac_default_prefix
eval "dir=$prefix"
case $dir in
    *slice* ) ;;
	      * ) libdir="$libdir/slice" ;;
esac
AC_SUBST(libsubdir)

AC_CHECK_PERL_INTERPRETER
AC_CHECK_PERL_MM_PATHS
AC_ARG_WITH(closedworld,dnl
[  --with-closedworld      force the private install of all Perl modules],[
have_getoptlong=0
have_bitvector=0
have_io=0
],)dnl
AC_CHECK_PERL_MODULE(Getopt::Long, 2.13, getoptlong)
AC_CHECK_PERL_MODULE(Bit::Vector, 5.0, bitvector)
AC_CHECK_PERL_MODULE(IO::File, 1.07, io)

AC_OUTPUT(dnl
Makefile dnl
t/Makefile dnl
lib/Makefile dnl
slice_boot.pl dnl
etc/expand dnl
,dnl
chmod a+x etc/expand
)dnl

dnl ##EOF##