2012-06-19 20:03:24 +03:00
|
|
|
configure: Allow overriding uname results
|
2006-09-27 20:33:45 +03:00
|
|
|
|
2012-06-19 20:03:24 +03:00
|
|
|
In a cross compile setting it makes no sense to rely on the "uname" values
|
|
|
|
reported by the build host system. This patch allows overriding the
|
|
|
|
"uname -r", "uname -s" and "uname -m" results with the "UNAME_R", "UNAME_S"
|
|
|
|
and "UNAME_M" environment variables.
|
|
|
|
|
|
|
|
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
|
2006-09-27 20:33:45 +03:00
|
|
|
|
2009-05-21 13:49:21 +03:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
|
|
|
@@ -8,9 +8,9 @@ SYSCONF=/etc
|
2006-09-27 20:33:45 +03:00
|
|
|
# if [ -d /NextApps ]; then
|
|
|
|
# system="NeXTStep"
|
|
|
|
# else
|
|
|
|
- system=`uname -s`
|
|
|
|
- release=`uname -r`
|
|
|
|
- arch=`uname -m`
|
|
|
|
+ system=${UNAME_S:-`uname -s`}
|
|
|
|
+ release=${UNAME_R:-`uname -r`}
|
|
|
|
+ arch=${UNAME_M:-`uname -m`}
|
|
|
|
# fi
|
|
|
|
state="unknown"
|
|
|
|
|