diff options
Diffstat (limited to 'src/configure')
-rwxr-xr-x | src/configure | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/configure b/src/configure index 5acbd2f..9b834ab 100755 --- a/src/configure +++ b/src/configure @@ -44,6 +44,7 @@ LUAC='' PREFIX='/usr/local' BINDIR='' ETCDIR='' +MODULESDIR='' MANDIR='' INSTALLMANPAGE=1 EXAMPLESDIR='' @@ -54,7 +55,8 @@ print_usage() { echo " --target=<TARGET> build target i.e. Linux (default: autodetect)" echo " --prefix=<PREFIX> the installation prefix (default: /usr/local)" echo " --bindir=<DIR> the path to the bin directory (default: $PREFIX/bin)" - echo " --sysconfdir=<DIR> the path to the system configuration directory (default: $PREFIX/etc" + echo " --sysconfdir=<DIR> the path to the system configuration directory (default: $PREFIX/etc)" + echo " --modulesdir=<DIR> the path to the gcsd modules (default: $PREFIX/lib/gcsd)" echo " --mandir=<DIR> the path to the system man pages (default: $PREFIX/share/man)" echo " --no-manpage dont't install manpage" echo " --examplesdir=<DIR> the path to the examples files (default: $PREFIX/share/examples)" @@ -77,6 +79,9 @@ do --sysconfdir=*) ETCDIR=${arg#--sysconfdir=} ;; + --modulesdir=*) + MODULESDIR=${arg#--modulesdir=} + ;; --mandir=*) MANDIR=${arg#--mandir=} ;; @@ -215,6 +220,10 @@ if [ -z "$ETCDIR" ]; then ETCDIR=$PREFIX/etc fi +if [ -z "$MODULESDIR" ]; then + MODULESDIR=$PREFIX/lib/gcsd +fi + if [ -z "$MANDIR" ]; then MANDIR=$PREFIX/share/man fi @@ -291,6 +300,7 @@ cat > config.h <<EOF #define PREFIX "$PREFIX" #define BINDIR "$BINDIR" #define ETCDIR "$ETCDIR" +#define MODULESDIR "$MODULESDIR" #endif EOF |