1
by Jonathan Riddell
Import upstream version 3.4.0 |
1 |
AC_MSG_CHECKING(if kppp's headers are installed) |
2 |
# this is a little piece of code out of kppp. If it doesn't compile,
|
|
3 |
# kppp is not good for this system. It doesn't do anything, but enough
|
|
4 |
# to fail ;)
|
|
5 |
AC_LANG_SAVE
|
|
6 |
AC_LANG_CPLUSPLUS
|
|
7 |
AC_TRY_LINK([ |
|
8 |
#if defined(__osf__) || defined(__svr4__)
|
|
9 |
#define _POSIX_PII_SOCKET
|
|
10 |
extern "C" int sethostname(char *name, int name_len); |
|
11 |
#endif
|
|
12 |
#include <unistd.h> |
|
13 |
#include <arpa/inet.h> |
|
1.1.12
by Jonathan Riddell
Import upstream version 3.5.9 |
14 |
#ifdef __DragonFly__
|
15 |
#include <net/ppp_layer/ppp_defs.h> |
|
16 |
#else
|
|
1
by Jonathan Riddell
Import upstream version 3.4.0 |
17 |
#include <net/ppp_defs.h> |
1.1.12
by Jonathan Riddell
Import upstream version 3.5.9 |
18 |
#endif
|
1
by Jonathan Riddell
Import upstream version 3.4.0 |
19 |
#include <netinet/in.h> |
20 |
||
21 |
#ifdef __svr4__
|
|
22 |
#include <sys/stropts.h> |
|
23 |
#include <net/pppio.h> /* SVR4, Solaris 2, etc. */ |
|
24 |
||
25 |
#else
|
|
26 |
#include <sys/time.h> |
|
27 |
#include <sys/socket.h> |
|
28 |
#include <net/if.h> |
|
29 |
||
30 |
#ifndef STREAMS
|
|
31 |
||
32 |
#if defined(linux)
|
|
33 |
#include <linux/if_ppp.h> |
|
1.1.12
by Jonathan Riddell
Import upstream version 3.5.9 |
34 |
#elif defined(__DragonFly__)
|
35 |
#include <net/ppp/if_ppp.h> |
|
1
by Jonathan Riddell
Import upstream version 3.4.0 |
36 |
#else
|
37 |
#include <net/if_ppp.h> /* BSD, NeXT, etc. */ |
|
38 |
#endif
|
|
39 |
||
40 |
#else /* SunOS 4, AIX 4, OSF/1, etc. */ |
|
41 |
#include <sys/stream.h> |
|
42 |
#include <net/ppp_str.h> |
|
43 |
#endif
|
|
44 |
#endif
|
|
45 |
],[
|
|
46 |
sethostname("", 1); /* never run this program! :*/ |
|
47 |
],
|
|
48 |
[ AC_MSG_RESULT(yes) ], |
|
49 |
[ DO_NOT_COMPILE="$DO_NOT_COMPILE kppp" |
|
50 |
AC_MSG_RESULT(no) |
|
51 |
])
|
|
52 |
AC_LANG_RESTORE
|
|
53 |
AC_CHECK_HEADERS(sys/param.h string.h) |