aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar Felipe Contreras <felipe.contreras@gmail.com>2010-06-05 14:05:15 +0300
committerGravatar Carl Worth <cworth@cworth.org>2010-10-29 14:33:14 -0700
commit9d9668e3e7b0e4ed5e054125841dd729a46abd79 (patch)
tree681d8f4a1454b6e11360d10f3b71398094c3b8f1 /configure
parent0b4474f4fa0b30fba6a9b1c0014d87212bad1e20 (diff)
configure: optimize uname finding a bit
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure b/configure
index c86a227c..7e8cd163 100755
--- a/configure
+++ b/configure
@@ -275,15 +275,16 @@ fi
libdir_in_ldconfig=0
printf "Checking which platform we are on... "
-if [ `uname` = "Darwin" ] ; then
+uname=`uname`
+if [ $uname = "Darwin" ] ; then
printf "Mac OS X.\n"
platform=MACOSX
linker_resolves_library_dependencies=0
-elif [ `uname` = "SunOS" ] ; then
+elif [ $uname = "SunOS" ] ; then
printf "Solaris.\n"
platform=SOLARIS
linker_resolves_library_dependencies=0
-elif [ `uname` = "Linux" ] ; then
+elif [ $uname = "Linux" ] ; then
printf "Linux\n"
platform=LINUX
linker_resolves_library_dependencies=1