DBAPI example for update in User Manual
[csql.git] / configure.in
blobc34eeeb5dc89eecf82197edac065c0794f2a94bd
1 AC_INIT(configure.in)
3 AM_CONFIG_HEADER(config.h)
4 AM_INIT_AUTOMAKE(csql, 0.1)
6 AC_LANG_CPLUSPLUS
7 AC_PROG_CXX
9 AM_PROG_LIBTOOL
10 AC_C_BIGENDIAN
11 AC_CANONICAL_HOST
12 AC_PROG_YACC
13 AM_PROG_LEX
15 case "${host_os}" in
16   *linux* )
17    OSTYPE=LINUX
18     ;;
19 esac
20 case "${host_cpu}" in
21   i686 | i386 )
22     CPUTYPE=i686
23     ;;
24 esac
25 echo "#ifndef BUILD_H" >build.h
26 echo "#define BUILD_H" >>build.h
27 echo "#define CSQL" >>build.h
28 echo "#define ${OSTYPE}" >>build.h
29 echo "#define ${CPUTYPE}" >>build.h
30 echo "#endif " >>build.h
31 cp build.h include
33 AC_CHECK_HEADERS(stdio.h sys/mman.h sys/shm.h sys/errno.h crypt.h unistd.h \
34         string.h sys/types.h sys/stat.h fcntl.h pthread.h math.h  \
35         signal.h)
39 AC_OUTPUT(Makefile src/Makefile include/Makefile src/server/Makefile src/sql/Makefile src/adapter/Makefile src/gateway/Makefile src/cache/Makefile src/network/Makefile src/sqllog/Makefile src/tools/Makefile src/jdbc/Makefile)