diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-09-18 21:22:16 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-09-18 21:22:16 +0000 |
commit | 1ae2ddfa0c18f4f22cfd7d06d8e7e6ab2622b8c7 (patch) | |
tree | 94d607e80e0e6bdd3a6ac4185e2b34f64088fae2 /aconfigure.ac | |
parent | e7130aeee4d10c1da69568d32a78784f412adc3f (diff) |
Ticket #622: initial integration of ioqueue_epoll patch, updated the configure script
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2295 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r-- | aconfigure.ac | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/aconfigure.ac b/aconfigure.ac index 85e06f20..05e7df11 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -322,13 +322,33 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>], AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) +dnl ###################### +dnl # ioqueue selection +dnl # AC_SUBST(ac_os_objs) +AC_MSG_CHECKING([ioqueue backend]) +AC_ARG_ENABLE(epoll, + AC_HELP_STRING([--enable-epoll], + [Use /dev/epoll ioqueue on Linux (beta)]), + [ + ac_os_objs=ioqueue_epoll.o + AC_MSG_RESULT([/dev/epoll]) + ], + [ + ac_os_objs=ioqueue_select.o + AC_MSG_RESULT([select()]) + ]) + + +dnl ###################### +dnl # OS specific files +dnl # case $target in *mingw* | *cygw* | *win32* | *w32* ) - ac_os_objs="file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o ioqueue_select.o" + ac_os_objs="$ac_os_objs file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o" ;; *) - ac_os_objs="file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o ioqueue_select.o" + ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o" # UUID if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then ac_os_objs="$ac_os_objs guid_uuid.o" |