3 usage
="USAGE: configure [--prefix <path>]"
4 help="Valid options are:
7 Install to <path> (default: /usr/local)
11 # Process command line
26 echo "Invalid option: $1" >&2
30 echo "Invalid argument: $1" >&2
39 [ -n "$PREFIX" ] || PREFIX
=/usr
/local
40 [ -n "$BINDIR" ] || BINDIR
="\$(PREFIX)/bin"
41 [ -n "$DOCDIR" ] || DOCDIR
="\$(PREFIX)/share/doc"
42 [ -n "$RUBYLIBDIR" ] || RUBYLIBDIR
="\$(PREFIX)/lib/site_ruby"
44 printf 'Testing for ruby...'
45 [ -n "$RUBY" ] || RUBY
=`which ruby 2>/dev/null`
52 WARNING: Ruby interpreter not found. You need a Ruby interpreter to
53 run the voodooc compiler.
58 printf 'Testing for nasm...'
59 [ -n "$NASM" ] || NASM
=`which nasm 2>/dev/null`
66 WARNING: NASM not found. You need NASM to create i386 object code.
71 printf 'Testing for rdoc...'
72 [ -n "$RDOC" ] || RDOC
=`which rdoc 2>/dev/null`
79 WARNING: rdoc not found. You need rdoc to generate API documentation
80 from the library files.
85 printf 'Writing Makefile.cfg...'
86 cat <<EOF > Makefile.cfg
90 RUBYLIBDIR = $RUBYLIBDIR