mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 00:05:06 -05:00
Allow overriding system detection in configure
This commit is contained in:
18
configure
vendored
18
configure
vendored
@@ -194,6 +194,11 @@ Fine tuning of the installation directories:
|
||||
--infodir=DIR info documentation [PREFIX/info]
|
||||
--mandir=DIR man documentation [PREFIX/man]
|
||||
|
||||
Overriding system detection when cross-compiling:
|
||||
--host-system=OS Specify system name (uname -s)
|
||||
--host-release=REL Specify system release (uname -r)
|
||||
--host-machine=CPU Specify machine (uname -m)
|
||||
|
||||
Some influential environment variables:
|
||||
CC C compiler command
|
||||
CFLAGS C compiler flags
|
||||
@@ -219,8 +224,6 @@ OPERATINGSYSTEM=`uname -s`
|
||||
VERSION=`uname -r`
|
||||
MACHINE=`uname -m`
|
||||
|
||||
SYSTEM=${OPERATINGSYSTEM}-${MACHINE}
|
||||
|
||||
EXTRA_LIBS=""
|
||||
EXTRA_CLI_LIBS=""
|
||||
EXTRA_OBJECTS=""
|
||||
@@ -280,6 +283,15 @@ do
|
||||
--enable-linuxcaps)
|
||||
feat_linuxcaps=1
|
||||
;;
|
||||
--host-system=* )
|
||||
OPERATINGSYSTEM=`echo $option | sed -e 's/^.*=//;'`
|
||||
;;
|
||||
--host-release=* )
|
||||
VERSION=`echo $option | sed -e 's/^.*=//;'`
|
||||
;;
|
||||
--host-machine=* )
|
||||
MACHINE=`echo $option | sed -e 's/^.*=//;'`
|
||||
;;
|
||||
--help | -h )
|
||||
usage
|
||||
exit 0
|
||||
@@ -289,6 +301,8 @@ do
|
||||
esac
|
||||
done
|
||||
|
||||
SYSTEM=${OPERATINGSYSTEM}-${MACHINE}
|
||||
|
||||
case $SYSTEM in
|
||||
SunOS-sun4* )
|
||||
case $VERSION in
|
||||
|
||||
Reference in New Issue
Block a user