|
| 1 | +#!/bin/sh |
| 2 | +#@(#) Configuration script for sysstat |
| 3 | +# (C) 2000-2014 Sebastien GODARD (sysstat <at> orange.fr) |
| 4 | + |
| 5 | +ASK="sh build/Ask.sh" |
| 6 | + |
| 7 | +echo ; echo |
| 8 | +echo Welcome to sysstat\'s Interactive Configuration script! |
| 9 | +echo |
| 10 | +echo This script enables you to set the parameters value used by ./configure. |
| 11 | +echo Please enter the value for the parameters listed below. |
| 12 | +echo Press Return to tell ./configure to use the default value or to try to guess the proper one. |
| 13 | +echo "Defaut value for yes/no questions is no (parameter is NOT set)." |
| 14 | +echo You can enter a ? to display a help message at any time... |
| 15 | +echo |
| 16 | + |
| 17 | +# Syntax: Ask <QUESTION> <PARM> <TEXT_FILE> |
| 18 | + |
| 19 | +# Installation directory |
| 20 | +PREFIX=`${ASK} 'Installation directory:' "--prefix" "prefix"` |
| 21 | +if [ "${PREFIX}" != "" ]; then |
| 22 | + PREFIX="--prefix=${PREFIX} " |
| 23 | +fi |
| 24 | + |
| 25 | +# sa2 processes data file of the day before |
| 26 | +YESTERDAY=`${ASK} 'sa2 uses daily data file of the day before? (y/n)' "--enable-yesterday" "yesterday"` |
| 27 | +if [ "${YESTERDAY}" = "y" ]; then |
| 28 | + YESTERDAY="--enable-yesterday " |
| 29 | +else |
| 30 | + YESTERDAY="" |
| 31 | + echo "Parameter --enable-yesterday is NOT set" |
| 32 | +fi |
| 33 | + |
| 34 | +#echo |
| 35 | +#echo "./configure ${PREFIX}${SA_LIB_DIR}${SA_DIR}${SYSCONFIG_DIR}${CLEAN_SA_DIR}${NLS} \ |
| 36 | +#${YESTERDAY}${HISTORY}${COMPRESSAFTER}${PREALLOC_ANSWER}${MAN}${IGNORE_MAN}${CRON}${RCDIR} \ |
| 37 | +#${COMPRESSMANPG}${INSTALL_DOC}${DEBUGINFO}${INSTALL_ISAG}${SENSORS}${STRIP}${COPY_ONLY}" |
| 38 | +#echo |
| 39 | +# |
| 40 | +#./configure ${PREFIX}${SA_LIB_DIR}${SA_DIR}${SYSCONFIG_DIR}${CLEAN_SA_DIR}${NLS} \ |
| 41 | +#${YESTERDAY}${HISTORY}${COMPRESSAFTER}${PREALLOC_ANSWER}${MAN}${IGNORE_MAN}${CRON}${RCDIR} \ |
| 42 | +#${COMPRESSMANPG}${INSTALL_DOC}${DEBUGINFO}${INSTALL_ISAG}${SENSORS}${STRIP}${COPY_ONLY} |
| 43 | + |
0 commit comments