~ubuntu-branches/debian/sid/link-monitor-applet/sid

« back to all changes in this revision

Viewing changes to m4/reentrant-resolver.m4

  • Committer: Bazaar Package Importer
  • Author(s): Adriaan Peeters
  • Date: 2008-03-30 22:26:13 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20080330222613-5aubcuo9mgg2n7st
Tags: upstream-3.0
ImportĀ upstreamĀ versionĀ 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# This file is part of Link Monitor Applet.
2
 
#
3
 
# Copyright (C) 2006 Jean-Yves Lefort.
4
 
#
5
 
# As a special exception to the Link Monitor Applet licensing terms,
6
 
# Jean-Yves Lefort gives unlimited permission to copy, distribute and
7
 
# modify this file.
8
 
 
9
 
dnl AC_REENTRANT_RESOLVER
10
 
dnl
11
 
AC_DEFUN([AC_REENTRANT_RESOLVER],
12
 
[AC_ARG_WITH(reentrant-resolver,
13
 
AC_HELP_STRING([--with-reentrant-resolver], [specify that the system resolver is reentrant [[autodetect]]]),
14
 
[case "$withval" in
15
 
        yes|no|autodetect) reentrant_resolver=$withval ;;
16
 
        *) AC_MSG_ERROR([bad value $withval for --with-reentrant-resolver]) ;;
17
 
esac], [reentrant_resolver=autodetect])
18
 
 
19
 
if test $reentrant_resolver = autodetect; then
20
 
        AC_MSG_CHECKING([if the system resolver is reentrant])
21
 
 
22
 
        case "$target_os" in
23
 
                # FreeBSD >= 5.3
24
 
                freebsd5.[[3-9]]*|freebsd5.[[1-9]][[0-9]]*|freebsd[[6-9]]*|freebsd[[1-9]][[0-9]]*)
25
 
                        reentrant_resolver=yes ;;
26
 
 
27
 
                # FreeBSD < 5.3, NetBSD, OpenBSD
28
 
                freebsd*|netbsd*|openbsd*)
29
 
                        reentrant_resolver=no ;;
30
 
 
31
 
                # Linux
32
 
                linux*)
33
 
                        reentrant_resolver=yes ;;
34
 
 
35
 
                *)
36
 
                        reentrant_resolver=unknown ;;
37
 
        esac
38
 
 
39
 
        if test $reentrant_resolver = unknown; then
40
 
                reentrant_resolver=no
41
 
                AC_MSG_RESULT([unknown, assuming it is not (use --with-reentrant-resolver to override)])
42
 
        else
43
 
                AC_MSG_RESULT($reentrant_resolver)
44
 
        fi
45
 
fi
46
 
 
47
 
if test $reentrant_resolver = yes; then
48
 
        AC_DEFINE(HAVE_REENTRANT_RESOLVER, 1, [Define to 1 if the system resolver is reentrant])
49
 
fi])