summaryrefslogtreecommitdiff
path: root/Build/source/libs/pixman
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-04-18 22:38:26 +0000
committerKarl Berry <karl@freefriends.org>2024-04-18 22:38:26 +0000
commit488c1c703069d235e225c2f4576c65a690a0d449 (patch)
tree666d96090e50030a04d6ca11cf8c49d4de1ae0a3 /Build/source/libs/pixman
parent44a329792efd28a3e800cc47341d26b1eb4425d8 (diff)
reautoconf
git-svn-id: svn://tug.org/texlive/trunk@70986 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/pixman')
-rwxr-xr-xBuild/source/libs/pixman/configure15
1 files changed, 13 insertions, 2 deletions
diff --git a/Build/source/libs/pixman/configure b/Build/source/libs/pixman/configure
index 705835c9ea4..2270ba85737 100755
--- a/Build/source/libs/pixman/configure
+++ b/Build/source/libs/pixman/configure
@@ -6218,8 +6218,19 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
extern void foo(void);
void foo(void){printf("foo\n");}
_ACEOF
-# FIXME: Add tests for non-GNU compilers
-for kpse_flag in '-fvisibility=hidden -fvisibility-inlines-hidden' '-fvisibility=hidden'; do
+# Maybe other compiler need other tests; patches needed.
+#
+# The idea, maybe, is to use both flags when they are supported, but
+# old C++ compilers, as well as C, don't support
+# -fvisibility-inlines-hidden, so test just -fvisibility=hidden too?
+#
+for kpse_flag in "-fvisibility=hidden -fvisibility-inlines-hidden" \
+ "-fvisibility=hidden"; do
+ if test x"C" = xC \
+ && echo "$kpse_flag" | grep inlines-hidden >/dev/null; then
+ # C does not support this additional flag; just skip the test.
+ continue
+ fi
CFLAGS="$kpse_save_flags -Werror $kpse_flag"
if ac_fn_c_try_compile "$LINENO"
then :