Skip to content

Commit f48fe9e

Browse files
committed
cosmetic: configure.ac: more consistent formatting
1 parent a5d056f commit f48fe9e

File tree

1 file changed

+16
-26
lines changed

1 file changed

+16
-26
lines changed

configure.ac

+16-26
Original file line numberDiff line numberDiff line change
@@ -189,21 +189,14 @@ strl_h_found="no"
189189

190190
AC_CHECK_HEADERS([bsd/string.h], [bsdstrl_h_found="yes"])
191191

192-
AC_CHECK_FUNCS([strlcat strlcpy], [strl_found="yes"],
193-
[
194-
saved_LIBS="$LIBS"
195-
LIBS="$outer_LIBS"
196-
AC_SEARCH_LIBS([strlcat],
197-
[bsd strl],
198-
[libstrl_found="yes"],
199-
[strl_found="no"])
200-
AC_SEARCH_LIBS([strlcpy],
201-
[bsd strl],
202-
[libstrl_found="yes"],
203-
[strl_found="no"])
204-
STRL_LIBS="$LIBS"
205-
LIBS="$saved_LIBS"
206-
])
192+
AC_CHECK_FUNCS([strlcat strlcpy], [strl_found="yes"], [
193+
saved_LIBS="$LIBS"
194+
LIBS="$outer_LIBS"
195+
AC_SEARCH_LIBS([strlcat], [bsd strl], [libstrl_found="yes"], [strl_found="no"])
196+
AC_SEARCH_LIBS([strlcpy], [bsd strl], [libstrl_found="yes"], [strl_found="no"])
197+
STRL_LIBS="$LIBS"
198+
LIBS="$saved_LIBS"
199+
])
207200

208201
AS_IF([test "x$libstrl_found" = xyes], [LIBS="$LIBS $STRL_LIBS"])
209202

@@ -357,23 +350,20 @@ AC_SUBST(LIBMILTER_LIBS)
357350

358351
AC_ARG_WITH([libjansson], AS_HELP_STRING([--with-libjansson], [use Jansson for header field checks]))
359352

360-
AS_IF(
361-
[test "x$enable_filter" != xno -a "x$with_libjansson" != xno],
362-
[
363-
PKG_CHECK_MODULES(
364-
[LIBJANSSON],
365-
[jansson >= 2.2.1],
366-
[AC_DEFINE([USE_JANSSON], [1], [use Jansson for header field checks])]
367-
)
368-
]
369-
)
353+
AS_IF([test "x$enable_filter" != xno -a "x$with_libjansson" != xno], [
354+
PKG_CHECK_MODULES(
355+
[LIBJANSSON],
356+
[jansson >= 2.2.1],
357+
[AC_DEFINE([USE_JANSSON], [1], [use Jansson for header field checks])]
358+
)
359+
])
370360

371361
AC_SUBST(LIBJANSSON_CFLAGS)
372362
AC_SUBST(LIBJANSSON_LIBS)
373363

374364

375365
AC_DEFINE_UNQUOTED([LIBOPENARC_FEATURE_STRING], "$LIBOPENARC_FEATURE_STRING",
376-
[Feature string for printing])
366+
[Feature string for printing])
377367

378368
#
379369
# final command line tweaks

0 commit comments

Comments
 (0)