when no option is specified it should print help message
[csql.git] / configure.in
blob7e35d28ea1cc54c2df208de1cb166a4c230becc6
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 esac
28 echo "#ifndef BUILD_H" >build.h
29 echo "#define BUILD_H" >>build.h
30 echo "#define CSQL" >>build.h
31 echo "#define ${OSTYPE}" >>build.h
32 echo "#define ${CPUTYPE}" >>build.h
33 echo "#endif" >>build.h
34 cp build.h include
36 AC_CHECK_HEADERS(stdio.h sys/mman.h sys/shm.h sys/errno.h crypt.h unistd.h \
37         string.h sys/types.h sys/stat.h fcntl.h pthread.h math.h  \
38         signal.h)
42 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)