bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 1 | /* |
| 2 | * User definable configuration options |
| 3 | */ |
| 4 | |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 5 | /* Define if you want the connection to be probed */ |
| 6 | /* XXX Not working yet, so ignore this for now */ |
| 7 | #undef PROBE_CONN |
| 8 | |
| 9 | /* Define to 1 if you want KEEPALIVE timers */ |
| 10 | #define DO_KEEPALIVE 0 |
| 11 | |
| 12 | /* Define to MAX interfaces you expect to use at once */ |
| 13 | /* MAX_INTERFACES determines the max. TOTAL number of interfaces (SLIP and PPP) */ |
| 14 | /* MAX_PPP_INTERFACES determines max. number of PPP interfaces */ |
| 15 | #define MAX_INTERFACES 1 |
| 16 | #define MAX_PPP_INTERFACES 1 |
| 17 | |
| 18 | /* Define if you want slirp's socket in /tmp */ |
| 19 | /* XXXXXX Do this in ./configure */ |
| 20 | #undef USE_TMPSOCKET |
| 21 | |
| 22 | /* Define if you want slirp to use cfsetXspeed() on the terminal */ |
| 23 | #undef DO_CFSETSPEED |
| 24 | |
| 25 | /* Define this if you want slirp to write to the tty as fast as it can */ |
| 26 | /* This should only be set if you are using load-balancing, slirp does a */ |
| 27 | /* pretty good job on single modems already, and seting this will make */ |
| 28 | /* interactive sessions less responsive */ |
| 29 | /* XXXXX Talk about having fast modem as unit 0 */ |
| 30 | #undef FULL_BOLT |
| 31 | |
| 32 | /* |
| 33 | * Define if you want slirp to use less CPU |
| 34 | * You will notice a small lag in interactive sessions, but it's not that bad |
| 35 | * Things like Netscape/ftp/etc. are completely unaffected |
| 36 | * This is mainly for sysadmins who have many slirp users |
| 37 | */ |
| 38 | #undef USE_LOWCPU |
| 39 | |
| 40 | /* Define this if your compiler doesn't like prototypes */ |
| 41 | #ifndef __STDC__ |
| 42 | #define NO_PROTOTYPES |
| 43 | #endif |
| 44 | |
| 45 | /*********************************************************/ |
| 46 | /* |
| 47 | * Autoconf defined configuration options |
| 48 | * You shouldn't need to touch any of these |
| 49 | */ |
| 50 | |
| 51 | /* Ignore this */ |
| 52 | #undef DUMMY_PPP |
| 53 | |
| 54 | /* Define if you have unistd.h */ |
| 55 | #define HAVE_UNISTD_H |
| 56 | |
| 57 | /* Define if you have stdlib.h */ |
| 58 | #define HAVE_STDLIB_H |
| 59 | |
| 60 | /* Define if you have sys/ioctl.h */ |
bellard | 379ff53 | 2004-07-12 22:33:07 +0000 | [diff] [blame] | 61 | #undef HAVE_SYS_IOCTL_H |
| 62 | #ifndef _WIN32 |
bellard | ee2654a | 2004-07-12 21:11:45 +0000 | [diff] [blame] | 63 | #define HAVE_SYS_IOCTL_H |
bellard | 379ff53 | 2004-07-12 22:33:07 +0000 | [diff] [blame] | 64 | #endif |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 65 | |
| 66 | /* Define if you have sys/filio.h */ |
| 67 | #undef HAVE_SYS_FILIO_H |
bellard | ee2654a | 2004-07-12 21:11:45 +0000 | [diff] [blame] | 68 | #ifdef __APPLE__ |
| 69 | #define HAVE_SYS_FILIO_H |
| 70 | #endif |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 71 | |
| 72 | /* Define if you have strerror */ |
| 73 | #define HAVE_STRERROR |
| 74 | |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 75 | /* Define according to how time.h should be included */ |
| 76 | #define TIME_WITH_SYS_TIME 0 |
| 77 | #undef HAVE_SYS_TIME_H |
| 78 | |
| 79 | /* Define if you have sys/bitypes.h */ |
| 80 | #undef HAVE_SYS_BITYPES_H |
| 81 | |
| 82 | /* Define if the machine is big endian */ |
Juan Quintela | e2542fe | 2009-07-27 16:13:06 +0200 | [diff] [blame] | 83 | //#undef HOST_WORDS_BIGENDIAN |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 84 | |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 85 | /* Define if you have readv */ |
| 86 | #undef HAVE_READV |
| 87 | |
| 88 | /* Define if iovec needs to be declared */ |
| 89 | #undef DECLARE_IOVEC |
bellard | 379ff53 | 2004-07-12 22:33:07 +0000 | [diff] [blame] | 90 | #ifdef _WIN32 |
| 91 | #define DECLARE_IOVEC |
| 92 | #endif |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 93 | |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 94 | /* Define if you have a POSIX.1 sys/wait.h */ |
| 95 | #undef HAVE_SYS_WAIT_H |
| 96 | |
| 97 | /* Define if you have sys/select.h */ |
bellard | 379ff53 | 2004-07-12 22:33:07 +0000 | [diff] [blame] | 98 | #undef HAVE_SYS_SELECT_H |
| 99 | #ifndef _WIN32 |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 100 | #define HAVE_SYS_SELECT_H |
bellard | 379ff53 | 2004-07-12 22:33:07 +0000 | [diff] [blame] | 101 | #endif |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 102 | |
| 103 | /* Define if you have strings.h */ |
| 104 | #define HAVE_STRING_H |
| 105 | |
| 106 | /* Define if you have arpa/inet.h */ |
bellard | 379ff53 | 2004-07-12 22:33:07 +0000 | [diff] [blame] | 107 | #undef HAVE_ARPA_INET_H |
| 108 | #ifndef _WIN32 |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 109 | #define HAVE_ARPA_INET_H |
bellard | 379ff53 | 2004-07-12 22:33:07 +0000 | [diff] [blame] | 110 | #endif |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 111 | |
| 112 | /* Define if you have sys/signal.h */ |
| 113 | #undef HAVE_SYS_SIGNAL_H |
| 114 | |
| 115 | /* Define if you have sys/stropts.h */ |
| 116 | #undef HAVE_SYS_STROPTS_H |
| 117 | |
| 118 | /* Define to whatever your compiler thinks inline should be */ |
blueswir1 | 79383c9 | 2008-08-30 09:51:20 +0000 | [diff] [blame] | 119 | //#define inline inline |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 120 | |
| 121 | /* Define to whatever your compiler thinks const should be */ |
blueswir1 | 79383c9 | 2008-08-30 09:51:20 +0000 | [diff] [blame] | 122 | //#define const const |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 123 | |
| 124 | /* Define if your compiler doesn't like prototypes */ |
| 125 | #undef NO_PROTOTYPES |
| 126 | |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 127 | /* Define to sizeof(char) */ |
| 128 | #define SIZEOF_CHAR 1 |
| 129 | |
| 130 | /* Define to sizeof(short) */ |
| 131 | #define SIZEOF_SHORT 2 |
| 132 | |
| 133 | /* Define to sizeof(int) */ |
| 134 | #define SIZEOF_INT 4 |
| 135 | |
| 136 | /* Define to sizeof(char *) */ |
bellard | 101c593 | 2005-06-05 17:11:42 +0000 | [diff] [blame] | 137 | #define SIZEOF_CHAR_P (HOST_LONG_BITS / 8) |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 138 | |
| 139 | /* Define if you have random() */ |
| 140 | #undef HAVE_RANDOM |
| 141 | |
| 142 | /* Define if you have srandom() */ |
| 143 | #undef HAVE_SRANDOM |
| 144 | |
| 145 | /* Define if you have inet_aton */ |
bellard | 379ff53 | 2004-07-12 22:33:07 +0000 | [diff] [blame] | 146 | #undef HAVE_INET_ATON |
| 147 | #ifndef _WIN32 |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 148 | #define HAVE_INET_ATON |
bellard | 379ff53 | 2004-07-12 22:33:07 +0000 | [diff] [blame] | 149 | #endif |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 150 | |
| 151 | /* Define if you have setenv */ |
| 152 | #undef HAVE_SETENV |
| 153 | |
| 154 | /* Define if you have index() */ |
blueswir1 | 79383c9 | 2008-08-30 09:51:20 +0000 | [diff] [blame] | 155 | #define HAVE_INDEX |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 156 | |
| 157 | /* Define if you have bcmp() */ |
| 158 | #undef HAVE_BCMP |
| 159 | |
| 160 | /* Define if you have drand48 */ |
| 161 | #undef HAVE_DRAND48 |
| 162 | |
| 163 | /* Define if you have memmove */ |
| 164 | #define HAVE_MEMMOVE |
| 165 | |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 166 | /* Define if you have gethostid */ |
blueswir1 | 79383c9 | 2008-08-30 09:51:20 +0000 | [diff] [blame] | 167 | #define HAVE_GETHOSTID |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 168 | |
| 169 | /* Define if you DON'T have unix-domain sockets */ |
| 170 | #undef NO_UNIX_SOCKETS |
bellard | 379ff53 | 2004-07-12 22:33:07 +0000 | [diff] [blame] | 171 | #ifdef _WIN32 |
| 172 | #define NO_UNIX_SOCKETS |
| 173 | #endif |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 174 | |
bellard | f0cbd3e | 2004-04-22 00:10:48 +0000 | [diff] [blame] | 175 | /* Define if you have revoke() */ |
| 176 | #undef HAVE_REVOKE |
| 177 | |
| 178 | /* Define if you have the sysv method of opening pty's (/dev/ptmx, etc.) */ |
| 179 | #undef HAVE_GRANTPT |
| 180 | |
| 181 | /* Define if you have fchmod */ |
| 182 | #undef HAVE_FCHMOD |
| 183 | |
| 184 | /* Define if you have <sys/type32.h> */ |
| 185 | #undef HAVE_SYS_TYPES32_H |