Ugh, what a mess! I don't know how you're supposed to do it but I've found some related stuff [here](https://github.com/mono/mono/blob/master/configure.in#L2984).
`libtool --config` returns plenty of useful info:

```
# Library versioning type.
version_type=linux

# Shared library path variable.
shlibpath_var=LD_LIBRARY_PATH

# Format of library name prefix.
libname_spec="lib\$name"

# List of archive names.  First name is the real one, the rest are links.
# The last name is the one that the linker finds with -lNAME
library_names_spec="\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}"

# The coded name of the library, if different from the real name.
soname_spec="\${libname}\${release}\${shared_ext}\$major"

# Run-time system search path for libraries.
sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib/libfakeroot "
```

`lsb_release` isn't installed on Arch. `/etc/os-release`, however, contains the following:

```
NAME="Arch Linux"
ID=arch
PRETTY_NAME="Arch Linux"
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
```

and here's an example for `lua`:
```
/usr/lib/liblua5.1.so -> liblua5.1.so.5.1.5
/usr/lib/liblua5.1.so.5.1 -> liblua5.1.so.5.1.5
/usr/lib/liblua5.1.so.5.1.5
/usr/lib/liblua.so -> liblua.so.5.2.3
/usr/lib/liblua.so.5.1 -> liblua5.1.so
/usr/lib/liblua.so.5.1.5 -> liblua5.1.so
/usr/lib/liblua.so.5.2 -> liblua.so.5.2.3
/usr/lib/liblua.so.5.2.3
```