diff options
author | Timo Sirainen <cras@irssi.org> | 2002-01-14 13:30:21 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-01-14 13:30:21 +0000 |
commit | bacc22d5baa422d1264ee851d009a6846cb51693 (patch) | |
tree | 2b3e25d8c2aad7dd845583c147d0aafc72c235e7 /configure.in | |
parent | dff49792ed69f61077eec67531deb7dd771348b2 (diff) | |
download | irssi-bacc22d5baa422d1264ee851d009a6846cb51693.zip |
Don't use -lnsl or -lsocket with irix.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2315 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/configure.in b/configure.in index 792e6221..f4cede40 100644 --- a/configure.in +++ b/configure.in @@ -208,30 +208,36 @@ dnl ** dnl ** just some generic stuff... dnl ** -AC_CHECK_FUNCS(mkfifo fcntl) - -AC_CHECK_LIB(socket, socket, [ - LIBS="$LIBS -lsocket" -]) - -AC_CHECK_LIB(nsl, inet_addr, [ - LIBS="$LIBS -lnsl" -], -lsocket) - -dnl * gcc specific options -if test "x$ac_cv_prog_gcc" = "xyes"; then - CFLAGS="$CFLAGS -Wall" -fi - dnl * OS specific options case "$host_os" in hpux*) CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED" ;; + irix*) + skip_extralibs=true + CFLAGS="" *) ;; esac + +AC_CHECK_FUNCS(mkfifo fcntl) + +if test "x$skip_extralibs" != "xtrue"; then + AC_CHECK_LIB(socket, socket, [ + LIBS="$LIBS -lsocket" + ]) + + AC_CHECK_LIB(nsl, inet_addr, [ + LIBS="$LIBS -lnsl" + ], -lsocket) +fi + +dnl * gcc specific options +if test "x$ac_cv_prog_gcc" = "xyes"; then + CFLAGS="$CFLAGS -Wall" +fi + dnl * socklen_t - AC_CHECK_TYPE() would be _really_ useful if it only would dnl * accept header files where to find the typedef.. AC_MSG_CHECKING([for socklen_t]) |