configure: optimize uname finding a bit
authorFelipe Contreras <felipe.contreras@gmail.com>
Sat, 5 Jun 2010 11:05:15 +0000 (14:05 +0300)
committerCarl Worth <cworth@cworth.org>
Fri, 29 Oct 2010 21:33:14 +0000 (14:33 -0700)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
configure

index c86a227cd7268fe622303efeb86ebf5063285574..7e8cd163f950eb8f42656a363fe764b8c71aa670 100755 (executable)
--- 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