summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2022-09-14 21:29:41 +0200
committerHans Kristian Rosbach <hk-github@circlestorm.org>2023-03-17 21:27:56 +0100
commitd344e53fe55a648b44a58bc2d9ed86d6af35a593 (patch)
tree7224c9a26260101c8d56e687d99fa5eab72e5cb5
parentcb3b4729fa20e47d17a2ca93542c5df8aa2bc894 (diff)
Make visibility tests run the same way as the other tests.
Fix indentation.
-rwxr-xr-xconfigure24
1 files changed, 12 insertions, 12 deletions
diff --git a/configure b/configure
index 83b3ead..4cad3c0 100755
--- 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