fixing exp files
[csql.git] / configure.in
blobcc99ed7b8443d3f4888bb2d616193c4da43a29ff
1 AC_INIT(configure.in)
3 AM_CONFIG_HEADER(config.h)
4 AM_INIT_AUTOMAKE(csql, 2.7)
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   x86_64 )
25     CPUTYPE=x86_64
26     ;;
27   sparc )
28     CPUTYPE=sparc
29     ;;
30   amd64 )
31     CPUTYPE=x86_64
32     ;;
33 esac
34 echo "#ifndef BUILD_H" >build.h
35 echo "#define BUILD_H" >>build.h
36 echo "#define CSQL" >>build.h
37 echo "#define ${OSTYPE}" >>build.h
38 echo "#define ${CPUTYPE}" >>build.h
39 echo "#endif" >>build.h
40 cp build.h include
42 AC_CHECK_HEADERS(stdio.h sys/mman.h sys/shm.h sys/errno.h crypt.h unistd.h \
43         string.h sys/types.h sys/stat.h fcntl.h pthread.h math.h  \
44         signal.h)
48 AC_OUTPUT(Makefile src/Makefile include/Makefile src/storage/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 src/odbc/Makefile src/oci/Makefile src/sqlnetwork/Makefile src/faulttest/Makefile)