2 dnl Configuration input file for GetOpt++
4 dnl Robert Collins, rbtcollins@hotmail.com
10 AC_INIT(src/GetOption.cc)
12 AC_CONFIG_AUX_DIR(cfgaux)
13 AM_INIT_AUTOMAKE(GetOpt++, 0.0.1-DEVEL)
14 AM_CONFIG_HEADER(include/autoconf.h)
15 AC_REVISION($Revision$)dnl
16 AC_PREFIX_DEFAULT(/usr/local)
19 dnl Set default LDFLAGS
20 if test -z "$LDFLAGS"; then
24 PRESET_CFLAGS="$CFLAGS"
37 LIBREGEX='' # libregex.a
39 dnl find out the exe extension for this platform. If it's not empty, use it for CGI's as well.
53 AC_CHECK_TYPE(ssize_t, int)
57 dnl Check for special functions
60 dnl Check for needed libraries
62 AC_CHECK_LIB(regex, main, [REGEXLIB="-lregex"])
65 dnl Check for libcrypt
66 dnl We use crypt(3) which may be in libc, or in libcrypt (eg FreeBSD)
67 AC_CHECK_LIB(crypt, crypt, [CRYPTLIB="-lcrypt"])
70 dnl Check for pthreads
71 dnl We use pthreads when doing ASYNC I/O
72 AC_CHECK_LIB(pthread, main, [PTHREADLIB="-lpthread"])
76 dnl We use AIO in the coss store
77 AC_CHECK_LIB(rt, aio_read, [AIOLIB="-lrt"])
80 dnl Check for library functions