diff options
author | Darren Tucker <dtucker@zip.com.au> | 2016-02-17 09:48:15 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-02-17 09:48:15 +1100 |
commit | 2fee909c3cee2472a98b26eb82696297b81e0d38 (patch) | |
tree | 25fab35311a9b8aca9ce70f3da36e4add1217470 /configure.ac | |
parent | 5ac712d81a84396aab441a272ec429af5b738302 (diff) |
Look for gethostbyname in libresolv and libnsl.
Should fix build problem on Solaris 2.6 reported by Tom G. Christensen.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 0b399ce2c..b4c0aaab7 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1314,8 +1314,10 @@ AC_SEARCH_LIBS([openpty], [util bsd]) | |||
1314 | AC_SEARCH_LIBS([updwtmp], [util bsd]) | 1314 | AC_SEARCH_LIBS([updwtmp], [util bsd]) |
1315 | AC_CHECK_FUNCS([fmt_scaled scan_scaled login logout openpty updwtmp logwtmp]) | 1315 | AC_CHECK_FUNCS([fmt_scaled scan_scaled login logout openpty updwtmp logwtmp]) |
1316 | 1316 | ||
1317 | # On some platforms, inet_ntop may be found in libresolv or libnsl. | 1317 | # On some platforms, inet_ntop and gethostbyname may be found in libresolv |
1318 | # or libnsl. | ||
1318 | AC_SEARCH_LIBS([inet_ntop], [resolv nsl]) | 1319 | AC_SEARCH_LIBS([inet_ntop], [resolv nsl]) |
1320 | AC_SEARCH_LIBS([gethostbyname], [resolv nsl]) | ||
1319 | 1321 | ||
1320 | AC_FUNC_STRFTIME | 1322 | AC_FUNC_STRFTIME |
1321 | 1323 | ||