Changeset 698 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Sep 10, 2006 8:53:59 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r697 r698 22 22 AC_DEFINE_UNQUOTED(PJ_M_NAME,["$target_cpu"]) 23 23 24 # Endianness detection 25 AC_C_BIGENDIAN([AC_SUBST(ac_bigendian,1) 26 AC_DEFINE(PJ_IS_LITTLE_ENDIAN,0) 27 AC_DEFINE(PJ_IS_BIG_ENDIAN,1) 28 ], 29 [AC_SUBST(ac_bigendian,0) 30 AC_DEFINE(PJ_IS_LITTLE_ENDIAN,1) 31 AC_DEFINE(PJ_IS_BIG_ENDIAN,0) 32 ]) 33 34 # --disable-floating-point option 24 dnl # Endianness detection 25 AC_C_BIGENDIAN 26 27 dnl # --disable-floating-point option 35 28 AC_ARG_ENABLE(floating-point, 36 29 AC_HELP_STRING([--disable-floating-point], … … 91 84 AC_DEFINE(PJ_ATOMIC_VALUE_TYPE,long) 92 85 93 # Determine if inet_aton() is available86 dnl # Determine if inet_aton() is available 94 87 AC_MSG_CHECKING([if inet_aton is available]) 95 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h> 96 #include <netinet/in.h> 97 #include <arpa/inet.h>]], 88 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <arpa/inet.h>]], 98 89 [inet_aton(0, 0);])], 99 90 [AC_DEFINE(PJ_SOCK_HAS_INET_ATON,1) … … 101 92 [AC_MSG_RESULT(no)]) 102 93 103 # Determine if sockaddr_in has sin_len member94 dnl # Determine if sockaddr_in has sin_len member 104 95 AC_MSG_CHECKING([if sockaddr_in has sin_len member]) 105 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h> 106 #include <netinet/in.h> 107 #include <arpa/inet.h>]], 96 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 97 #include <sys/socket.h> 98 #include <netinet/in.h> 99 #include <arpa/inet.h>]], 108 100 [struct sockaddr_in a; a.sin_len=0;])], 109 101 [AC_DEFINE(PJ_SOCKADDR_HAS_LEN,1) … … 111 103 AC_MSG_RESULT(no)) 112 104 113 # Determine if socklen_t is available105 dnl # Determine if socklen_t is available 114 106 AC_MSG_CHECKING([if socklen_t is available]) 115 107 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], … … 119 111 AC_MSG_RESULT(no)) 120 112 121 # Determine if SO_ERROR is available113 dnl # Determine if SO_ERROR is available 122 114 AC_MSG_CHECKING([if SO_ERROR is available]) 123 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h> 124 #include <netinet/in.h> 125 #include <arpa/inet.h>]], 115 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 116 #include <sys/socket.h> 117 #include <netinet/in.h> 118 #include <arpa/inet.h>]], 126 119 [int i=SO_ERROR;])], 127 120 [AC_DEFINE(PJ_HAS_SO_ERROR,1) … … 129 122 AC_MSG_RESULT(no)) 130 123 131 # Determine if RW-mutex is available124 dnl # Determine if RW-mutex is available 132 125 AC_MSG_CHECKING([if pthread_rwlock_t is available]) 133 126 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>], … … 139 132 140 133 141 ##########################################142 #143 # PJMEDIA144 #145 146 # Sound device backend selection134 dnl ########################################## 135 dnl # 136 dnl # PJMEDIA 137 dnl # 138 139 dnl # Sound device backend selection 147 140 AC_SUBST(ac_pjmedia_snd) 148 141 case $target in 149 *cygwin* | *win* | *mingw*) 142 *darwin*) 143 ac_pjmedia_snd=pa_darwinos 144 AC_MSG_RESULT([Checking sound device backend... coreaudio]) 145 LIBS="$LIBS -framework CoreAudio" 146 ;; 147 *cygwin* | *mingw*) 150 148 ac_pjmedia_snd=pa_win32 151 149 AC_MSG_RESULT([Checking sound device backend... win32 sound]) … … 154 152 ac_pjmedia_snd=null 155 153 AC_MSG_RESULT([Checking sound device backend... null sound]) 156 ;;157 *darwin*)158 ac_pjmedia_snd=pa_darwin_os159 AC_MSG_RESULT([Checking sound device backend... coreaudio])160 154 ;; 161 155 *) … … 170 164 esac 171 165 172 # Include resampling small filter166 dnl # Include resampling small filter 173 167 AC_SUBST(ac_no_small_filter) 174 168 AC_ARG_ENABLE(small-filter, … … 181 175 AC_MSG_RESULT([Checking if small filter is disabled... no])) 182 176 183 # Include resampling large filter177 dnl # Include resampling large filter 184 178 AC_SUBST(ac_no_large_filter) 185 179 AC_ARG_ENABLE(large-filter, … … 192 186 AC_MSG_RESULT([Checking if large filter is disabled... no])) 193 187 194 # Include G.711 Annex A PLC188 dnl # Include G.711 Annex A PLC 195 189 AC_SUBST(ac_no_g711_plc) 196 190 AC_ARG_ENABLE(g711-plc, … … 203 197 AC_MSG_RESULT([Checking if G.711 Annex A PLC is disabled...no])) 204 198 205 # Include Speex AEC199 dnl # Include Speex AEC 206 200 AC_SUBST(ac_no_speex_aec) 207 201 AC_ARG_ENABLE(speex-aec, … … 214 208 AC_MSG_RESULT([Checking if Speex AEC is disabled...no])) 215 209 216 # Include G711 codec210 dnl # Include G711 codec 217 211 AC_SUBST(ac_no_g711_codec) 218 212 AC_ARG_ENABLE(g711-codec, … … 226 220 227 221 228 # Include L16 codec222 dnl # Include L16 codec 229 223 AC_SUBST(ac_no_l16_codec) 230 224 AC_ARG_ENABLE(l16-codec, … … 238 232 239 233 240 # Include GSM codec234 dnl # Include GSM codec 241 235 AC_SUBST(ac_no_gsm_codec) 242 236 AC_ARG_ENABLE(gsm-codec, … … 249 243 AC_MSG_RESULT([Checking if GSM codec is disabled...no])) 250 244 251 # Include Speex codec245 dnl # Include Speex codec 252 246 AC_SUBST(ac_no_speex_codec) 253 247 AC_ARG_ENABLE(speex-codec, … … 260 254 AC_MSG_RESULT([Checking if Speex codec is disabled...no])) 261 255 262 # Include iLBC codec256 dnl # Include iLBC codec 263 257 AC_SUBST(ac_no_ilbc_codec) 264 258 AC_ARG_ENABLE(ilbc-codec, … … 273 267 274 268 275 ##########################################276 #277 # MANUAL CONFIG278 #279 280 281 # Determine if select() requires nfds to be filled up with282 # correct value (max_fd+1). If zero, nfds will be filled up with283 # PJ_FD_SETSIZE269 dnl ########################################## 270 dnl # 271 dnl # MANUAL CONFIG 272 dnl # 273 274 275 dnl # Determine if select() requires nfds to be filled up with 276 dnl # correct value (max_fd+1). If zero, nfds will be filled up with 277 dnl # PJ_FD_SETSIZE 284 278 AC_MSG_CHECKING([if select() needs correct nfds]) 285 279 case $target in … … 293 287 esac 294 288 295 # Determine if pj_thread_create() should enforce thread stack size when296 # creating thread. Default is zero, to allow OS to allocate appropriate297 # thread's stack size.289 dnl # Determine if pj_thread_create() should enforce thread stack size when 290 dnl # creating thread. Default is zero, to allow OS to allocate appropriate 291 dnl # thread's stack size. 298 292 AC_MSG_CHECKING([if pj_thread_create() should enforce stack size]) 299 293 case $target in … … 306 300 esac 307 301 308 # Determine if pj_thread_create() should allocate thread's stack from309 # the pool. Default is zero, to let OS allocate thread's stack.302 dnl # Determine if pj_thread_create() should allocate thread's stack from 303 dnl # the pool. Default is zero, to let OS allocate thread's stack. 310 304 AC_MSG_CHECKING([if pj_thread_create() should allocate stack]) 311 305 case $target in … … 318 312 esac 319 313 320 # This value specifies the value set in errno by the OS when a non-blocking321 # socket recv() can not return immediate data.314 dnl # This value specifies the value set in errno by the OS when a non-blocking 315 dnl # socket recv() can not return immediate data. 322 316 case $target in 323 317 *) AC_DEFINE(PJ_BLOCKING_ERROR_VAL,EAGAIN) … … 326 320 esac 327 321 328 # This value specifies the value set in errno by the OS when a non-blocking329 # socket connect() can not get connected immediately.322 dnl # This value specifies the value set in errno by the OS when a non-blocking 323 dnl # socket connect() can not get connected immediately. 330 324 case $target in 331 325 *) AC_DEFINE(PJ_BLOCKING_CONNECT_ERROR_VAL,EINPROGRESS)
Note: See TracChangeset
for help on using the changeset viewer.