You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/04/21 13:10:37 UTC

svn commit: r767114 - /commons/sandbox/runtime/trunk/src/main/native/configure

Author: mturk
Date: Tue Apr 21 11:10:37 2009
New Revision: 767114

URL: http://svn.apache.org/viewvc?rev=767114&view=rev
Log:
Fix configure

Modified:
    commons/sandbox/runtime/trunk/src/main/native/configure

Modified: commons/sandbox/runtime/trunk/src/main/native/configure
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/configure?rev=767114&r1=767113&r2=767114&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/configure (original)
+++ commons/sandbox/runtime/trunk/src/main/native/configure Tue Apr 21 11:10:37 2009
@@ -374,8 +374,8 @@
 
     echo "Checking for shared library support..."
     ok=false
-    if [ "`($cc -c $ccflags $cppflags $test.c) 2>&1`" = "" ]; then
-        if [ "`($cc $shflags $ldflags -o $test$so $test.$obj) 2>&1`" = "" ]; then
+    if [ ".`($cc -c $ccflags $cppflags $test.c) 2>&1`" = "." ]; then
+        if [ ".`($cc $shflags $ldflags -o $test$so $test.$obj) 2>&1`" = "." ]; then
            echo "Building shared library for $host-$cc."
            ok=true
            fi
@@ -396,13 +396,13 @@
 #include <$1.h>
 int main() {return 0;}
 EOF
-    rc="0"
+    rc=0
     co="`$cc $ccflags $cppopts $test.c -o $test$exe 2>&1`"
     if [ ".$co" = "." ]; then
-        rc="1"
+        rc=1
     else
         if [ -x $test$exe ]; then
-            rc="1"
+            rc=1
         fi
     fi
     rm -rf $test.* $test *.pdb >/dev/null 2>&1 || true
@@ -423,12 +423,12 @@
 #include <string.h>
 int main() {char b[256]; strerror_r(1, b, sizeof(b)); return 0;}
 EOF
-    rc="0"
-    co="`$cc $ccflags $cppopts $test.c -o $test$exe 2>&1`"
+    rc=0
+    $cc $ccflags $cppopts $test.c -o $test$exe >/dev/null 2>&1
     if [ -x $test$exe ]; then
         ./$test$exe
         rv=$?
-        if [ ".$rv" = ".0" ]; then rc="1"; fi
+        if [ ".$rv" = ".0" ]; then rc=1; fi
     fi
     rm -rf $test.* $test *.pdb >/dev/null 2>&1 || true
     if [ $rc = 1 ]; then
@@ -453,7 +453,7 @@
     rc=""
     $cc $ccflags $cppopts $test.c -o $test$exe >/dev/null 2>&1
     if [ -x $test$exe ]; then
-        rc="`./$test$exe 2>/dev/null`"
+        rc=`./$test$exe 2>/dev/null`
     fi
     rm -rf $test.* $test *.pdb >/dev/null 2>&1 || true
     if [ ".$rc" = . ]; then rc="0"; fi
@@ -461,27 +461,27 @@
     echo $rc
 }
 
-sizeof_int="`test_csizeof int`"
+sizeof_int=`test_csizeof int`
 if [ ".$sizeof_int" = ".0" ]; then
     echo "[ERROR] Cannot determine the size of int." 1>&2
     exit 1
 fi
 
-sizeof_wchar="`test_csizeof wchar_t`"
+sizeof_wchar=`test_csizeof wchar_t`
 if [ ".$sizeof_wchar" = ".0" ]; then
     echo "[ERROR] Cannot determine the size of wchar_t." 1>&2
     exit 1
 fi
 
 if [ ".$host" = ".windows" ]; then
-    have_fileextd="`have_include fileextd '#include <windows.h>'`"
-    have_aio="0"
-    have_libaio="0"
-    have_windows="1"
+    have_fileextd=`have_include fileextd '#include <windows.h>'`
+    have_aio=0
+    have_libaio=0
+    have_windows=1
 else
-    have_aio="`have_include aio`"
-    have_libaio="`have_include libaio`"
-    have_windows="0"
+    have_aio=`have_include aio`
+    have_libaio=`have_include libaio`
+    have_windows=0
 fi
 
 if [ ".$have_libaio" = ".1" ]; then
@@ -564,13 +564,13 @@
 #include <stdio.h>
 int main() {return 0;}
 EOF
-    rc="0"
+    rc=0
     co="`$cc $ccflags $cppopts $test.c bufferoverflowu.lib -o $test$exe 2>&1`"
     if [ ".$co" = "." ]; then
-        rc="1"
+        rc=1
     else
         if [ -x $test$exe ]; then
-            rc="1"
+            rc=1
         fi
     fi
     rm -rf $test.* $test *.pdb >/dev/null 2>&1 || true