Skip to content

Commit

Permalink
AC_CHECK_FUNCS: use indented multi line argument
Browse files Browse the repository at this point in the history
Put one function name per line in the the argument to
AC_CHECK_FUNCS().

This improves readability, makes diffs easier to read,
allows for easier sorting, etc.
  • Loading branch information
ndim committed Oct 13, 2021
1 parent 847746c commit 4146e98
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
20 changes: 19 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,25 @@ dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T

dnl Checks for library functions.
AC_CHECK_FUNCS([getenv getopt getopt_long mkdir setenv strdup strncpy strcpy snprintf sprintf vsnprintf gmtime_r statvfs localtime_r lstat inet_aton rand_r])
AC_CHECK_FUNCS([m4_normalize([
getenv
getopt
getopt_long
mkdir
setenv
strdup
strncpy
strcpy
snprintf
sprintf
vsnprintf
gmtime_r
statvfs
localtime_r
lstat
inet_aton
rand_r
])])

dnl Find out how to get struct tm
AC_STRUCT_TM
Expand Down
10 changes: 8 additions & 2 deletions libgphoto2_port/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,15 @@ mt.mnt_mountp;
])



dnl Checks for library functions.
AC_CHECK_FUNCS([setmntent endmntent strerror snprintf vsnprintf flock])
AC_CHECK_FUNCS([m4_normalize([
setmntent
endmntent
strerror
snprintf
vsnprintf
flock
])])

dnl Check if TIOCM_RTS is included in one of several possible files
gp_found_tiocm_rts=no
Expand Down

0 comments on commit 4146e98

Please sign in to comment.