m4: Reformat C test code to be readable

This commit is contained in:
Sebastian Pipping 2019-01-26 16:40:11 +01:00
parent 9f5bfc8d0a
commit 8a95a28658

View File

@ -28,7 +28,10 @@ AC_DEFUN([EXPATCFG_COMPILER_SUPPORTS_VISIBILITY],
[AS_VAR_SET([expatcfg_cv_compiler_supports_visibility],[no]) [AS_VAR_SET([expatcfg_cv_compiler_supports_visibility],[no])
AS_VAR_COPY([OLDFLAGS],[CFLAGS]) AS_VAR_COPY([OLDFLAGS],[CFLAGS])
AS_VAR_APPEND([CFLAGS],[" -fvisibility=hidden -Wall -Werror"]) AS_VAR_APPEND([CFLAGS],[" -fvisibility=hidden -Wall -Werror"])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[void __attribute__((visibility("default"))) foo(void); void foo(void) {}]])], AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
void __attribute__((visibility("default"))) foo(void);
void foo(void) {}
]])],
[AS_VAR_SET([expatcfg_cv_compiler_supports_visibility],[yes])]) [AS_VAR_SET([expatcfg_cv_compiler_supports_visibility],[yes])])
AS_VAR_COPY([CFLAGS],[OLDFLAGS])]) AS_VAR_COPY([CFLAGS],[OLDFLAGS])])
AS_IF([test "$expatcfg_cv_compiler_supports_visibility" = yes],[$1],[$2])]) AS_IF([test "$expatcfg_cv_compiler_supports_visibility" = yes],[$1],[$2])])