Contact cannot be a null ptr, and it is accessed before anyway. Disscussed with kedge.
[kdenetwork.git] / kppp / configure.in.in
blob867d5f07e7a6c47e595774ddb74b29e9d2ac78a6
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>
14 #ifdef __DragonFly__
15 #include <net/ppp_layer/ppp_defs.h>
16 #else
17 #include <net/ppp_defs.h>
18 #endif
19 #include <netinet/in.h>
21 #ifdef __svr4__
22   #include <sys/stropts.h>
23   #include <net/pppio.h>                /* SVR4, Solaris 2, etc. */
25 #else
26   #include <sys/time.h>
27   #include <sys/socket.h>
28   #include <net/if.h>
30   #ifndef STREAMS 
32     #if defined(linux)
33       #include <linux/if_ppp.h>
34     #elif defined(__DragonFly__)
35       #include <net/ppp/if_ppp.h>
36     #else
37       #include <net/if_ppp.h>                /* BSD, NeXT, etc. */
38     #endif
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)
52 AC_LANG_RESTORE
53 AC_CHECK_HEADERS(sys/param.h string.h)