Adding test framework and some sample test modules and test cases to the sytem.
[csql.git] / configure.in
blob2373385c5b1578be79d188d72d943b7936d45a64
1 AC_INIT(configure.in)
3 AM_CONFIG_HEADER(config.h)
4 AM_INIT_AUTOMAKE(csql, 0.1)
6 AC_PROG_CC
7 AC_LANG_CPLUSPLUS
9 AM_PROG_LIBTOOL
10 AC_C_BIGENDIAN
11 AC_CANONICAL_HOST
12 AM_PROG_LEX
13 AC_PROG_YACC
14 AC_PROG_CXX
16 case "${host_os}" in
17   *linux* )
18    OSTYPE=linux
19     ;;
20 esac
21 case "${host_cpu}" in
22   i686 | i386 )
23     CPUTYPE=i686
24     ;;
25 esac
26 echo "#ifndef BUILD_H" >build.h
27 echo "#define BUILD_H" >>build.h
28 echo "#define CSQL" >>build.h
29 echo "#define ${OSTYPE}" >>build.h
30 echo "#define ${CPUTYPE}" >>build.h
31 echo "#endif " >>build.h
32 cp build.h include
34 AC_CHECK_HEADERS(stdio.h sys/mman.h sys/shm.h sys/errno.h crypt.h unistd.h \
35         string.h sys/types.h sys/stat.h fcntl.h pthread.h math.h  \
36         signal.h)
40 AC_OUTPUT(Makefile src/Makefile include/Makefile src/server/Makefile )