]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Make visibility tests run the same way as the other tests.
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Wed, 14 Sep 2022 19:29:41 +0000 (21:29 +0200)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 17 Mar 2023 20:27:56 +0000 (21:27 +0100)
Fix indentation.

configure

index 83b3ead52d5f7b8a48a268508bbf144999be0a38..4cad3c081a3c400629ffd31f4e3e2dd4c9ffbe09 100755 (executable)
--- a/configure
+++ b/configure
@@ -551,16 +551,16 @@ if ($CC -c $CFLAGS $test.c) 2>/dev/null; then
   }
   echo - using any output from compiler to indicate an error >> configure.log
 else
-try()
-{
-  show $*
-  ( $* ) >> configure.log 2>&1
-  ret=$?
-  if test $ret -ne 0; then
-    echo "(exit code "$ret")" >> configure.log
-  fi
-  return $ret
-}
+  try()
+  {
+    show $*
+    ( $* ) >> configure.log 2>&1
+    ret=$?
+    if test $ret -ne 0; then
+      echo "(exit code $ret)" >> configure.log
+    fi
+    return $ret
+  }
 fi
 
 tryboth()
@@ -928,7 +928,7 @@ if test "$gcc" -eq 1; then
 int Z_INTERNAL foo;
 int main() { return 0; }
 EOF
-  if tryboth $CC -c $CFLAGS $test.c; then
+  if try $CC $CFLAGS $test.c; then
     CFLAGS="$CFLAGS -DHAVE_VISIBILITY_HIDDEN"
     SFLAGS="$SFLAGS -DHAVE_VISIBILITY_HIDDEN"
     echo >> configure.log
@@ -947,7 +947,7 @@ if test "$gcc" -eq 1; then
 int Z_INTERNAL foo;
 int main() { return 0; }
 EOF
-  if tryboth $CC -c $CFLAGS $test.c; then
+  if try $CC $CFLAGS $test.c; then
     CFLAGS="$CFLAGS -DHAVE_VISIBILITY_INTERNAL"
     SFLAGS="$SFLAGS -DHAVE_VISIBILITY_INTERNAL"
     echo >> configure.log