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
8 #if defined(__osf__) || defined(__svr4__)
9 #define _POSIX_PII_SOCKET
10 extern "C" int sethostname(char *name, int name_len);
13 #include <arpa/inet.h>
15 #include <net/ppp_layer/ppp_defs.h>
17 #include <net/ppp_defs.h>
19 #include <netinet/in.h>
22 #include <sys/stropts.h>
23 #include <net/pppio.h> /* SVR4, Solaris 2, etc. */
27 #include <sys/socket.h>
33 #include <linux/if_ppp.h>
34 #elif defined(__DragonFly__)
35 #include <net/ppp/if_ppp.h>
37 #include <net/if_ppp.h> /* BSD, NeXT, etc. */
40 #else /* SunOS 4, AIX 4, OSF/1, etc. */
41 #include <sys/stream.h>
42 #include <net/ppp_str.h>
46 sethostname("", 1); /* never run this program! :*/
48 [ AC_MSG_RESULT(yes) ],
49 [ DO_NOT_COMPILE="$DO_NOT_COMPILE kppp"
53 AC_CHECK_HEADERS(sys/param.h string.h)