/[pengfork]/pengfork/src/main.c
ViewVC logotype

Diff of /pengfork/src/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.23 by chupa, Sat Dec 7 14:01:24 2002 UTC revision 1.24 by chupa, Fri Dec 13 15:29:15 2002 UTC
# Line 26  Line 26 
26  # include "config.h"  # include "config.h"
27  #endif  #endif
28    
 /* Check configure options */  
 #if !defined(WITH_P3) && !defined(WITH_L2TP)  
 #  error "No protocol will be compiled."  
 #  error "You must choose P3, L2TP or both."  
 #  error "Try ./configure --help for more information."  
 #endif  
   
 #if !defined(WITH_MODEM) && !defined(WITH_CABLE) && \  
     !defined(WITH_DSL) && !defined(WITH_TCPIP)  
 #  error "No access method will be compiled."  
 #  error "You must choose between modem, cable, dsl and tcpip."  
 #  error "Try ./configure --help for more information."  
 #endif  
   
 #if !defined(WITH_TUN)  
 #  error "No interface will be compiled."  
 #  error "You must choose tun."  
 #  error "Try ./configure --help for more information."  
 #endif  
   
29  #if STDC_HEADERS  #if STDC_HEADERS
30  # include <stdlib.h>  # include <stdlib.h>
31  # include <stddef.h>  # include <stddef.h>
# Line 57  Line 37 
37  #if HAVE_UNISTD_H  #if HAVE_UNISTD_H
38  # include <unistd.h>  # include <unistd.h>
39  #endif  #endif
40  #ifdef WITH_MODEM  #ifdef ENABLE_MODEM
41  #  include <guile/gh.h>  #  include <guile/gh.h>
42  #endif  #endif
43    
# Line 92  clean_exit(n) Line 72  clean_exit(n)
72  }  }
73    
74    
75  #ifndef WITH_MODEM  #ifndef ENABLE_MODEM
76  int  int
77  main (argc, argv)  main (argc, argv)
78       int argc;       int argc;
# Line 186  main2 (argc, argv) Line 166  main2 (argc, argv)
166    if(PARAM_PID_FILE)    if(PARAM_PID_FILE)
167      remove_pidfile ();      remove_pidfile ();
168    
169  #ifndef WITH_MODEM  #ifndef ENABLE_MODEM
170    return 0;    return 0;
171  #else  #else
172    exit (0);    exit (0);
173  #endif  #endif
174  }  }
175    
176  #ifdef WITH_MODEM  #ifdef ENABLE_MODEM
177  int  int
178  main (argc, argv)  main (argc, argv)
179       int argc;       int argc;

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26