version 1.1.2.2, 2013/07/20 18:32:34
|
version 1.5, 2014/11/10 15:20:59
|
|
|
dis_wsman=0 | dis_wsman=0 |
config=mak/config.mak | config=mak/config.mak |
| |
|
echo =================== |
|
echo WARNING: This script is experimental and has known problems. Please |
|
echo use it at your own risk and review the results carefully in the \ |
|
echo options.mak file that it creates. Until this script is completed |
|
echo the traditional OpenPegasus build configuration through environment |
|
echo variables will remain in place and is the prefered setup tool |
|
echo =================== |
|
|
if [ ! -f "$config" ]; then | if [ ! -f "$config" ]; then |
echo "$0: Error: ./configure must be run from root of Pegasus distribution." | echo "$0: Error: ./configure must be run from root of Pegasus distribution." |
echo | echo |
|
|
| |
Configures OpenPegasus build options. | Configures OpenPegasus build options. |
| |
|
WARNING: This script is experimental and has known problems. Please |
|
use it at your own risk and review the results carefully in the |
|
options.mak file that it creates.Until this script is completed |
|
the traditional OpenPegasus build configuration through environment |
|
variables will remain in place and is the prefered setup tool |
|
|
Configure examples. | Configure examples. |
$ ./configure | $ ./configure |
$ make | $ make |
|
|
--test | --test |
Build with test options included. | Build with test options included. |
--tiny | --tiny |
Build tiny version of pegasus with support to SSL,SLP,ICU and PAM all disabled. |
Build tiny version of pegasus with support to SSL,SLP,ICU and |
|
PAM all disabled. |
--flavor | --flavor |
Building pegasus with the given flavor tag. | Building pegasus with the given flavor tag. |
END | END |
|
|
System=`(Uname -s) 2>/dev/null`||System=unknown | System=`(Uname -s) 2>/dev/null`||System=unknown |
Token="$Machine:$System" | Token="$Machine:$System" |
| |
|
|
case "$Token" in | case "$Token" in |
| |
alpha:VMS) | alpha:VMS) |
|
|
fi | fi |
| |
if [ ! -f "$with_ssl/$libbase/libssl.so" ]; then | if [ ! -f "$with_ssl/$libbase/libssl.so" ]; then |
echo "$0: missing dependency: \$with_ssl/$libbase/libss.so" |
echo "$0: missing dependency: \$with_ssl/$libbase/libssl.so" |
missing=1 | missing=1 |
fi | fi |
| |
|
|
echo "icu: No" | echo "icu: No" |
fi | fi |
| |
if [ "$icuYes" == "1" ]; then |
if [ "$icuYes" = "1" ]; then |
icuversion=$(icu-config --version) | icuversion=$(icu-config --version) |
| |
echo $icuversion | echo $icuversion |
|
|
if [ "$pamYes" = "1" ]; then | if [ "$pamYes" = "1" ]; then |
echo "pam: Yes = $withpam/$pamcmd" | echo "pam: Yes = $withpam/$pamcmd" |
with_pam=${withpam%/*} | with_pam=${withpam%/*} |
if [ $with_pam = "" ]; then |
if [ "$with_pam" = "" ]; then |
with_pam=/ | with_pam=/ |
fi | fi |
else | else |
|
|
exit 1 | exit 1 |
else | else |
enable_pam=1 | enable_pam=1 |
|
|
fi | fi |
| |
fi | fi |
|
|
rm -f $options | rm -f $options |
echo "# This file was generated by configure." >> $options | echo "# This file was generated by configure." >> $options |
echo "# ./configure $*" >> $options | echo "# ./configure $*" >> $options |
|
echo " " >> $options |
|
echo "## WARNING: The configure script is experimental and has known problems." >> $options |
|
echo "## Use it at your own risk and review the results carefully in this" >> $options |
|
echo "## options.mak file that it created." >> $options |
PEGASUS_HOME=$prefix | PEGASUS_HOME=$prefix |
PEGASUS_ROOT=$prefix | PEGASUS_ROOT=$prefix |
PEGASUS_PLATFORM=$platform | PEGASUS_PLATFORM=$platform |
|
|
fi | fi |
if [ "$enable_pam" = "1" ]; then | if [ "$enable_pam" = "1" ]; then |
echo "export PEGASUS_PAM_AUTHENTICATION=true" >> $options | echo "export PEGASUS_PAM_AUTHENTICATION=true" >> $options |
echo "export PEGASUS_USE_PAM_STANDALONE_PROC=true" >> $options |
echo "export PEGASUS_USE_PAM_STANDALONE_PROC=false" >> $options |
\cp -f $PEGASUS_ROOT/rpm/wbem /etc/pam.d | \cp -f $PEGASUS_ROOT/rpm/wbem /etc/pam.d |
chmod 0644 /etc/pam.d/wbem | chmod 0644 /etc/pam.d/wbem |
fi | fi |
|
|
cp -f $options $options.bak | cp -f $options $options.bak |
fi | fi |
| |
|
. ./$options |
|
|
source ./$options |
|
##============================================================================== | ##============================================================================== |
## | ## |
## Create GNUmakefile | ## Create GNUmakefile |
|
|
distclean: | distclean: |
rm -f GNUmakefile | rm -f GNUmakefile |
rm -f options.mak | rm -f options.mak |
|
rm -f options.mak.bak |
END | END |
| |
echo "created GNUmakefile" | echo "created GNUmakefile" |
|
|
##============================================================================== | ##============================================================================== |
| |
echo "configured for $platform" | echo "configured for $platform" |
|
echo =================== |
|
echo WARNING: This script is experimental and has known problems. Please |
|
echo use it at your own risk and review the results carefully in the \ |
|
echo options.mak file that it creates. Until this script is completed |
|
echo the traditional OpenPegasus build configuration through environment |
|
echo variables will remain in place and is the prefered setup tool |
|
echo =================== |
echo | echo |
fi | fi |
#set +x | #set +x |