summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2016-02-17 09:48:15 +1100
committerDarren Tucker <dtucker@zip.com.au>2016-02-17 09:48:15 +1100
commit2fee909c3cee2472a98b26eb82696297b81e0d38 (patch)
tree25fab35311a9b8aca9ce70f3da36e4add1217470 /configure.ac
parent5ac712d81a84396aab441a272ec429af5b738302 (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.ac4
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])
1314AC_SEARCH_LIBS([updwtmp], [util bsd]) 1314AC_SEARCH_LIBS([updwtmp], [util bsd])
1315AC_CHECK_FUNCS([fmt_scaled scan_scaled login logout openpty updwtmp logwtmp]) 1315AC_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.
1318AC_SEARCH_LIBS([inet_ntop], [resolv nsl]) 1319AC_SEARCH_LIBS([inet_ntop], [resolv nsl])
1320AC_SEARCH_LIBS([gethostbyname], [resolv nsl])
1319 1321
1320AC_FUNC_STRFTIME 1322AC_FUNC_STRFTIME
1321 1323