chmod ct-ng to be executable in the build dir.
6 PREFIX_DEFAULT=/usr/local
7 BINDIR_DEFAULT="${PREFIX}/bin"
8 LIBDIR_DEFAULT="${PREFIX}/lib"
9 DOCDIR_DEFAULT="${PREFIX}/share/doc"
10 MANDIR_DEFAULT="${PREFIX}/share/man"
34 PREFIX=$(get_optval "$1" "$2")
36 [ -z "${BINDIR_set}" ] && BINDIR="${PREFIX}/bin"
37 [ -z "${LIBDIR_set}" ] && LIBDIR="${PREFIX}/lib"
38 [ -z "${DOCDIR_set}" ] && DOCDIR="${PREFIX}/share/doc"
39 [ -z "${MANDIR_set}" ] && MANDIR="${PREFIX}/share/man"
45 BINDIR=$(get_optval "$1" "$2")
53 LIBDIR=$(get_optval "$1" "$2")
61 DOCDIR=$(get_optval "$1" "$2")
69 MANDIR=$(get_optval "$1" "$2")
77 \`configure' configures ct-ng ${VERSION} to adapt to many kind of systems.
79 USAGE: ./configure [OPTION]...
81 Defaults for the options are specified in brackets.
84 -h, --help display this help and exit
85 --prefix=PREFIX install architecture-independent files in PREFIX
88 By default, \`make install' will install all the files in
89 \`${PREFIX_DEFAULT}/bin', \`${PREFIX_DEFAULT}/lib' etc. You can specify
90 an installation prefix other than \`${PREFIX_DEFAULT}' using \`--prefix',
91 for instance \`--prefix=\${HOME}'.
93 For better control, use the options below.
95 Fine tuning of the installation directories:
96 --bindir=DIR user executables [PREFIX/bin]
97 --libdir=DIR object code libraries [PREFIX/lib]
98 --docdir=DIR info documentation [PREFIX/share/doc]
99 --mandir=DIR man documentation [PREFIX/share/man]
103 while [ $# -ne 0 ]; do
105 --prefix*) set_prefix "$1" "$2" && shift || shift 2;;
106 --bindir*) set_bindir "$1" "$2" && shift || shift 2;;
107 --libdir*) set_libdir "$1" "$2" && shift || shift 2;;
108 --docdir*) set_docdir "$1" "$2" && shift || shift 2;;
109 --mandir*) set_mandir "$1" "$2" && shift || shift 2;;
110 --help|-h) do_help; exit 0;;
115 [ -z "${PREFIX}" ] && set_prefix --prefix "${PREFIX_DEFAULT}"
117 sed -r -e "s,@@BINDIR@@,${BINDIR},g;" \
118 -e "s,@@LIBDIR@@,${LIBDIR},g;" \
119 -e "s,@@DOCDIR@@,${DOCDIR},g;" \
120 -e "s,@@MANDIR@@,${MANDIR},g;" \
121 -e "s,@@VERSION@@,${VERSION},g;" \
122 -e "s,@@DATE@@,${DATE},g;" \
123 Makefile.in >Makefile