File: kpse-socket-libs.m4

package info (click to toggle)
texlive-bin 2009-8
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 231,976 kB
  • ctags: 165,663
  • sloc: ansic: 1,113,212; cpp: 454,597; sh: 49,189; perl: 43,889; makefile: 15,564; python: 11,825; xml: 7,446; lisp: 6,494; asm: 4,361; lex: 3,571; java: 3,569; pascal: 2,487; yacc: 2,451; exp: 2,031; ruby: 2,012; ada: 1,681; objc: 1,362; cs: 879; sed: 519; csh: 47; tcl: 45; awk: 35
file content (28 lines) | stat: -rw-r--r-- 1,074 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Public macros for the TeX Live (TL) tree.
# Copyright (C) 1997 Karl Berry <karl@cs.umb.edu>
# Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
#     with help from Taco Hoekwater <taco@luatex.org>
#
# This file is free software; the copyright holders
# give unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# serial 0

# KPSE_CHECK_SOCKET_LIBS
# ----------------------
# Set ac_cv_search_connect as AC_SEARCH_LIBS([connect], [LIB...])
# would do.
# -lsocket is needed on Solaris, at least.  Maybe -lnsl on SCO, too?
# See AC_PATH_XTRA.
# For WIN32 systems we need -lwsock32 but AC_SEARCH_LIBS would fail.
AC_DEFUN([KPSE_CHECK_SOCKET_LIBS],
[AC_REQUIRE([KPSE_CHECK_WIN32])
AS_IF([test "x$kpse_cv_have_win32" = xno],
      [kpse_save_LIBS=$LIBS
       AC_SEARCH_LIBS([connect], [socket nsl])
       LIBS=$kpse_save_LIBS],
      [AC_CHECK_LIB([wsock32], [main],
                    [ac_cv_search_connect=-lwsock32],
                    [ac_cv_search_connect=no])])
]) # KPSE_CHECK_SOCKET_LIBS