~ubuntu-branches/debian/squeeze/lftp/squeeze

« back to all changes in this revision

Viewing changes to m4/arpa_inet_h.m4

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2010-04-09 23:45:53 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20100409234553-7ay83rk2aas3r7g3
Tags: 4.0.6-1
* new upstream release from 2010-03-25
  - fixes proftp problem. closes: Bug#570861
* switched to to dpkg-source 3.0 (quilt)
* pget help and lftp -h mentions -c since some time
  closes: Bug#377043
* lftp -c exists.:) closes: Bug#401572

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# arpa_inet_h.m4 serial 5
2
 
dnl Copyright (C) 2006, 2008 Free Software Foundation, Inc.
 
1
# arpa_inet_h.m4 serial 7
 
2
dnl Copyright (C) 2006, 2008, 2009, 2010 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
16
16
  if test $ac_cv_header_arpa_inet_h = yes; then
17
17
    HAVE_ARPA_INET_H=1
18
18
  else
19
 
    ARPA_INET_H='arpa/inet.h'
20
19
    HAVE_ARPA_INET_H=0
21
20
  fi
22
21
  AC_SUBST([HAVE_ARPA_INET_H])
23
 
  dnl Execute this unconditionally, because ARPA_INET_H may be set by other
24
 
  dnl modules, after this code is executed.
 
22
  dnl <arpa/inet.h> is always overridden, because of GNULIB_POSIXCHECK.
25
23
  gl_CHECK_NEXT_HEADERS([arpa/inet.h])
 
24
 
 
25
  dnl Check for declarations of anything we want to poison if the
 
26
  dnl corresponding gnulib module is not in use.
 
27
  gl_WARN_ON_USE_PREPARE([[
 
28
/* On some systems, this header is not self-consistent.  */
 
29
#ifndef __GLIBC__
 
30
# include <sys/socket.h>
 
31
#endif
 
32
#include <arpa/inet.h>
 
33
    ]], [inet_ntop inet_pton])
26
34
])
27
35
 
28
36
dnl Unconditionally enables the replacement of <arpa/inet.h>.
29
37
AC_DEFUN([gl_REPLACE_ARPA_INET_H],
30
38
[
31
 
  AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
32
 
  ARPA_INET_H='arpa/inet.h'
 
39
  dnl This is a no-op, because <arpa/inet.h> is always overridden.
 
40
  :
33
41
])
34
42
 
35
43
AC_DEFUN([gl_ARPA_INET_MODULE_INDICATOR],
46
54
  dnl Assume proper GNU behavior unless another module says otherwise.
47
55
  HAVE_DECL_INET_NTOP=1;  AC_SUBST([HAVE_DECL_INET_NTOP])
48
56
  HAVE_DECL_INET_PTON=1;  AC_SUBST([HAVE_DECL_INET_PTON])
49
 
  ARPA_INET_H='';         AC_SUBST([ARPA_INET_H])
50
57
])