| version 1.1.2.3, 2011/04/30 21:24:21 | version 1.4, 2012/02/10 23:38:29 | 
| Line 2 | Line 2 | 
 | # $Author$ | # $Author$ | 
 | # $Id$ | # $Id$ | 
 | # | # | 
| AC_INIT(libaitsess, 2.0, misho@openbsd-bg.org) | AC_INIT(libaitsess, 3.0, misho@elwix.org) | 
 | AC_CONFIG_SRCDIR([src/aitsess.c]) | AC_CONFIG_SRCDIR([src/aitsess.c]) | 
 | AC_CONFIG_HEADERS([inc/config.h]) | AC_CONFIG_HEADERS([inc/config.h]) | 
 |  |  | 
| Line 20  CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS} | Line 20  CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS} | 
 | LDFLAGS="-L/usr/local/lib ${LDFLAGS}" | LDFLAGS="-L/usr/local/lib ${LDFLAGS}" | 
 |  |  | 
 | # Checks for libraries. | # Checks for libraries. | 
 |  | AC_CHECK_LIB(pthread, [pthread_create]) | 
 |  |  | 
 | # Checks for header files. | # Checks for header files. | 
 |  |  | 
| Line 31  AC_C_INLINE | Line 32  AC_C_INLINE | 
 | AC_FUNC_MALLOC | AC_FUNC_MALLOC | 
 | AC_FUNC_MMAP | AC_FUNC_MMAP | 
 | AC_CHECK_FUNCS([bzero memset munmap]) | AC_CHECK_FUNCS([bzero memset munmap]) | 
 |  | AC_CHECK_FUNCS([pthread_create pthread_exit]) | 
 |  |  | 
 | # It's stupid, but not all platforms have union semun, even those that need it. | # It's stupid, but not all platforms have union semun, even those that need it. | 
 | AC_MSG_CHECKING(looking for union semun in sys/sem.h) | AC_MSG_CHECKING(looking for union semun in sys/sem.h) | 
| Line 42  AC_TRY_COMPILE([ | Line 44  AC_TRY_COMPILE([ | 
 | union semun arg; | union semun arg; | 
 | semctl(0, 0, 0, arg); | semctl(0, 0, 0, arg); | 
 | ], [ | ], [ | 
| AC_DEFINE(HAVE_UNION_SEMUN, $have_union_semun, [union semun]) | AC_DEFINE(HAVE_UNION_SEMUN,, [union semun]) | 
 | ] msg=yes, msg=no ) | ] msg=yes, msg=no ) | 
 | AC_MSG_RESULT([$msg]) | AC_MSG_RESULT([$msg]) | 
 |  |  |